File size: 89,292 Bytes
63a69a8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 | // Code generated by ent, DO NOT EDIT.
package chargeusagebased
import (
"time"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"github.com/openmeterio/openmeter/openmeter/billing"
"github.com/openmeterio/openmeter/openmeter/billing/charges/meta"
"github.com/openmeterio/openmeter/openmeter/billing/charges/usagebased"
"github.com/openmeterio/openmeter/openmeter/ent/db/predicate"
"github.com/openmeterio/openmeter/openmeter/productcatalog"
"github.com/openmeterio/openmeter/pkg/currencyx"
)
// ID filters vertices based on their ID field.
func ID(id string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldID, id))
}
// IDEqualFold applies the EqualFold predicate on the ID field.
func IDEqualFold(id string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldID, id))
}
// IDContainsFold applies the ContainsFold predicate on the ID field.
func IDContainsFold(id string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldID, id))
}
// CustomerID applies equality check predicate on the "customer_id" field. It's identical to CustomerIDEQ.
func CustomerID(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldCustomerID, v))
}
// ServicePeriodFrom applies equality check predicate on the "service_period_from" field. It's identical to ServicePeriodFromEQ.
func ServicePeriodFrom(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldServicePeriodFrom, v))
}
// ServicePeriodTo applies equality check predicate on the "service_period_to" field. It's identical to ServicePeriodToEQ.
func ServicePeriodTo(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldServicePeriodTo, v))
}
// BillingPeriodFrom applies equality check predicate on the "billing_period_from" field. It's identical to BillingPeriodFromEQ.
func BillingPeriodFrom(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldBillingPeriodFrom, v))
}
// BillingPeriodTo applies equality check predicate on the "billing_period_to" field. It's identical to BillingPeriodToEQ.
func BillingPeriodTo(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldBillingPeriodTo, v))
}
// FullServicePeriodFrom applies equality check predicate on the "full_service_period_from" field. It's identical to FullServicePeriodFromEQ.
func FullServicePeriodFrom(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldFullServicePeriodFrom, v))
}
// FullServicePeriodTo applies equality check predicate on the "full_service_period_to" field. It's identical to FullServicePeriodToEQ.
func FullServicePeriodTo(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldFullServicePeriodTo, v))
}
// UniqueReferenceID applies equality check predicate on the "unique_reference_id" field. It's identical to UniqueReferenceIDEQ.
func UniqueReferenceID(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldUniqueReferenceID, v))
}
// Currency applies equality check predicate on the "currency" field. It's identical to CurrencyEQ.
func Currency(v currencyx.Code) predicate.ChargeUsageBased {
vc := string(v)
return predicate.ChargeUsageBased(sql.FieldEQ(FieldCurrency, vc))
}
// SubscriptionID applies equality check predicate on the "subscription_id" field. It's identical to SubscriptionIDEQ.
func SubscriptionID(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldSubscriptionID, v))
}
// SubscriptionPhaseID applies equality check predicate on the "subscription_phase_id" field. It's identical to SubscriptionPhaseIDEQ.
func SubscriptionPhaseID(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldSubscriptionPhaseID, v))
}
// SubscriptionItemID applies equality check predicate on the "subscription_item_id" field. It's identical to SubscriptionItemIDEQ.
func SubscriptionItemID(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldSubscriptionItemID, v))
}
// AdvanceAfter applies equality check predicate on the "advance_after" field. It's identical to AdvanceAfterEQ.
func AdvanceAfter(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldAdvanceAfter, v))
}
// TaxCodeID applies equality check predicate on the "tax_code_id" field. It's identical to TaxCodeIDEQ.
func TaxCodeID(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldTaxCodeID, v))
}
// Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.
func Namespace(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldNamespace, v))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldCreatedAt, v))
}
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAt(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldUpdatedAt, v))
}
// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAt(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldDeletedAt, v))
}
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func Name(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldName, v))
}
// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func Description(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldDescription, v))
}
// InvoiceAt applies equality check predicate on the "invoice_at" field. It's identical to InvoiceAtEQ.
func InvoiceAt(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldInvoiceAt, v))
}
// IntentDeletedAt applies equality check predicate on the "intent_deleted_at" field. It's identical to IntentDeletedAtEQ.
func IntentDeletedAt(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldIntentDeletedAt, v))
}
// FeatureKey applies equality check predicate on the "feature_key" field. It's identical to FeatureKeyEQ.
func FeatureKey(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldFeatureKey, v))
}
// FeatureID applies equality check predicate on the "feature_id" field. It's identical to FeatureIDEQ.
func FeatureID(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldFeatureID, v))
}
// CurrentRealizationRunID applies equality check predicate on the "current_realization_run_id" field. It's identical to CurrentRealizationRunIDEQ.
func CurrentRealizationRunID(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldCurrentRealizationRunID, v))
}
// CustomerIDEQ applies the EQ predicate on the "customer_id" field.
func CustomerIDEQ(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldCustomerID, v))
}
// CustomerIDNEQ applies the NEQ predicate on the "customer_id" field.
func CustomerIDNEQ(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldCustomerID, v))
}
// CustomerIDIn applies the In predicate on the "customer_id" field.
func CustomerIDIn(vs ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldCustomerID, vs...))
}
// CustomerIDNotIn applies the NotIn predicate on the "customer_id" field.
func CustomerIDNotIn(vs ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldCustomerID, vs...))
}
// CustomerIDGT applies the GT predicate on the "customer_id" field.
func CustomerIDGT(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldCustomerID, v))
}
// CustomerIDGTE applies the GTE predicate on the "customer_id" field.
func CustomerIDGTE(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldCustomerID, v))
}
// CustomerIDLT applies the LT predicate on the "customer_id" field.
func CustomerIDLT(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldCustomerID, v))
}
// CustomerIDLTE applies the LTE predicate on the "customer_id" field.
func CustomerIDLTE(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldCustomerID, v))
}
// CustomerIDContains applies the Contains predicate on the "customer_id" field.
func CustomerIDContains(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContains(FieldCustomerID, v))
}
// CustomerIDHasPrefix applies the HasPrefix predicate on the "customer_id" field.
func CustomerIDHasPrefix(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldCustomerID, v))
}
// CustomerIDHasSuffix applies the HasSuffix predicate on the "customer_id" field.
func CustomerIDHasSuffix(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldCustomerID, v))
}
// CustomerIDEqualFold applies the EqualFold predicate on the "customer_id" field.
func CustomerIDEqualFold(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldCustomerID, v))
}
// CustomerIDContainsFold applies the ContainsFold predicate on the "customer_id" field.
func CustomerIDContainsFold(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldCustomerID, v))
}
// ServicePeriodFromEQ applies the EQ predicate on the "service_period_from" field.
func ServicePeriodFromEQ(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldServicePeriodFrom, v))
}
// ServicePeriodFromNEQ applies the NEQ predicate on the "service_period_from" field.
func ServicePeriodFromNEQ(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldServicePeriodFrom, v))
}
// ServicePeriodFromIn applies the In predicate on the "service_period_from" field.
func ServicePeriodFromIn(vs ...time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldServicePeriodFrom, vs...))
}
// ServicePeriodFromNotIn applies the NotIn predicate on the "service_period_from" field.
func ServicePeriodFromNotIn(vs ...time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldServicePeriodFrom, vs...))
}
// ServicePeriodFromGT applies the GT predicate on the "service_period_from" field.
func ServicePeriodFromGT(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldServicePeriodFrom, v))
}
// ServicePeriodFromGTE applies the GTE predicate on the "service_period_from" field.
func ServicePeriodFromGTE(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldServicePeriodFrom, v))
}
// ServicePeriodFromLT applies the LT predicate on the "service_period_from" field.
func ServicePeriodFromLT(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldServicePeriodFrom, v))
}
// ServicePeriodFromLTE applies the LTE predicate on the "service_period_from" field.
func ServicePeriodFromLTE(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldServicePeriodFrom, v))
}
// ServicePeriodToEQ applies the EQ predicate on the "service_period_to" field.
func ServicePeriodToEQ(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldServicePeriodTo, v))
}
// ServicePeriodToNEQ applies the NEQ predicate on the "service_period_to" field.
func ServicePeriodToNEQ(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldServicePeriodTo, v))
}
// ServicePeriodToIn applies the In predicate on the "service_period_to" field.
func ServicePeriodToIn(vs ...time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldServicePeriodTo, vs...))
}
// ServicePeriodToNotIn applies the NotIn predicate on the "service_period_to" field.
func ServicePeriodToNotIn(vs ...time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldServicePeriodTo, vs...))
}
// ServicePeriodToGT applies the GT predicate on the "service_period_to" field.
func ServicePeriodToGT(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldServicePeriodTo, v))
}
// ServicePeriodToGTE applies the GTE predicate on the "service_period_to" field.
func ServicePeriodToGTE(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldServicePeriodTo, v))
}
// ServicePeriodToLT applies the LT predicate on the "service_period_to" field.
func ServicePeriodToLT(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldServicePeriodTo, v))
}
// ServicePeriodToLTE applies the LTE predicate on the "service_period_to" field.
func ServicePeriodToLTE(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldServicePeriodTo, v))
}
// BillingPeriodFromEQ applies the EQ predicate on the "billing_period_from" field.
func BillingPeriodFromEQ(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldBillingPeriodFrom, v))
}
// BillingPeriodFromNEQ applies the NEQ predicate on the "billing_period_from" field.
func BillingPeriodFromNEQ(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldBillingPeriodFrom, v))
}
// BillingPeriodFromIn applies the In predicate on the "billing_period_from" field.
func BillingPeriodFromIn(vs ...time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldBillingPeriodFrom, vs...))
}
// BillingPeriodFromNotIn applies the NotIn predicate on the "billing_period_from" field.
func BillingPeriodFromNotIn(vs ...time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldBillingPeriodFrom, vs...))
}
// BillingPeriodFromGT applies the GT predicate on the "billing_period_from" field.
func BillingPeriodFromGT(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldBillingPeriodFrom, v))
}
// BillingPeriodFromGTE applies the GTE predicate on the "billing_period_from" field.
func BillingPeriodFromGTE(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldBillingPeriodFrom, v))
}
// BillingPeriodFromLT applies the LT predicate on the "billing_period_from" field.
func BillingPeriodFromLT(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldBillingPeriodFrom, v))
}
// BillingPeriodFromLTE applies the LTE predicate on the "billing_period_from" field.
func BillingPeriodFromLTE(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldBillingPeriodFrom, v))
}
// BillingPeriodToEQ applies the EQ predicate on the "billing_period_to" field.
func BillingPeriodToEQ(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldBillingPeriodTo, v))
}
// BillingPeriodToNEQ applies the NEQ predicate on the "billing_period_to" field.
func BillingPeriodToNEQ(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldBillingPeriodTo, v))
}
// BillingPeriodToIn applies the In predicate on the "billing_period_to" field.
func BillingPeriodToIn(vs ...time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldBillingPeriodTo, vs...))
}
// BillingPeriodToNotIn applies the NotIn predicate on the "billing_period_to" field.
func BillingPeriodToNotIn(vs ...time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldBillingPeriodTo, vs...))
}
// BillingPeriodToGT applies the GT predicate on the "billing_period_to" field.
func BillingPeriodToGT(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldBillingPeriodTo, v))
}
// BillingPeriodToGTE applies the GTE predicate on the "billing_period_to" field.
func BillingPeriodToGTE(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldBillingPeriodTo, v))
}
// BillingPeriodToLT applies the LT predicate on the "billing_period_to" field.
func BillingPeriodToLT(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldBillingPeriodTo, v))
}
// BillingPeriodToLTE applies the LTE predicate on the "billing_period_to" field.
func BillingPeriodToLTE(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldBillingPeriodTo, v))
}
// FullServicePeriodFromEQ applies the EQ predicate on the "full_service_period_from" field.
func FullServicePeriodFromEQ(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldFullServicePeriodFrom, v))
}
// FullServicePeriodFromNEQ applies the NEQ predicate on the "full_service_period_from" field.
func FullServicePeriodFromNEQ(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldFullServicePeriodFrom, v))
}
// FullServicePeriodFromIn applies the In predicate on the "full_service_period_from" field.
func FullServicePeriodFromIn(vs ...time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldFullServicePeriodFrom, vs...))
}
// FullServicePeriodFromNotIn applies the NotIn predicate on the "full_service_period_from" field.
func FullServicePeriodFromNotIn(vs ...time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldFullServicePeriodFrom, vs...))
}
// FullServicePeriodFromGT applies the GT predicate on the "full_service_period_from" field.
func FullServicePeriodFromGT(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldFullServicePeriodFrom, v))
}
// FullServicePeriodFromGTE applies the GTE predicate on the "full_service_period_from" field.
func FullServicePeriodFromGTE(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldFullServicePeriodFrom, v))
}
// FullServicePeriodFromLT applies the LT predicate on the "full_service_period_from" field.
func FullServicePeriodFromLT(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldFullServicePeriodFrom, v))
}
// FullServicePeriodFromLTE applies the LTE predicate on the "full_service_period_from" field.
func FullServicePeriodFromLTE(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldFullServicePeriodFrom, v))
}
// FullServicePeriodToEQ applies the EQ predicate on the "full_service_period_to" field.
func FullServicePeriodToEQ(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldFullServicePeriodTo, v))
}
// FullServicePeriodToNEQ applies the NEQ predicate on the "full_service_period_to" field.
func FullServicePeriodToNEQ(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldFullServicePeriodTo, v))
}
// FullServicePeriodToIn applies the In predicate on the "full_service_period_to" field.
func FullServicePeriodToIn(vs ...time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldFullServicePeriodTo, vs...))
}
// FullServicePeriodToNotIn applies the NotIn predicate on the "full_service_period_to" field.
func FullServicePeriodToNotIn(vs ...time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldFullServicePeriodTo, vs...))
}
// FullServicePeriodToGT applies the GT predicate on the "full_service_period_to" field.
func FullServicePeriodToGT(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldFullServicePeriodTo, v))
}
// FullServicePeriodToGTE applies the GTE predicate on the "full_service_period_to" field.
func FullServicePeriodToGTE(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldFullServicePeriodTo, v))
}
// FullServicePeriodToLT applies the LT predicate on the "full_service_period_to" field.
func FullServicePeriodToLT(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldFullServicePeriodTo, v))
}
// FullServicePeriodToLTE applies the LTE predicate on the "full_service_period_to" field.
func FullServicePeriodToLTE(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldFullServicePeriodTo, v))
}
// StatusEQ applies the EQ predicate on the "status" field.
func StatusEQ(v meta.ChargeStatus) predicate.ChargeUsageBased {
vc := v
return predicate.ChargeUsageBased(sql.FieldEQ(FieldStatus, vc))
}
// StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNEQ(v meta.ChargeStatus) predicate.ChargeUsageBased {
vc := v
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldStatus, vc))
}
// StatusIn applies the In predicate on the "status" field.
func StatusIn(vs ...meta.ChargeStatus) predicate.ChargeUsageBased {
v := make([]any, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.ChargeUsageBased(sql.FieldIn(FieldStatus, v...))
}
// StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotIn(vs ...meta.ChargeStatus) predicate.ChargeUsageBased {
v := make([]any, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldStatus, v...))
}
// UniqueReferenceIDEQ applies the EQ predicate on the "unique_reference_id" field.
func UniqueReferenceIDEQ(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldUniqueReferenceID, v))
}
// UniqueReferenceIDNEQ applies the NEQ predicate on the "unique_reference_id" field.
func UniqueReferenceIDNEQ(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldUniqueReferenceID, v))
}
// UniqueReferenceIDIn applies the In predicate on the "unique_reference_id" field.
func UniqueReferenceIDIn(vs ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldUniqueReferenceID, vs...))
}
// UniqueReferenceIDNotIn applies the NotIn predicate on the "unique_reference_id" field.
func UniqueReferenceIDNotIn(vs ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldUniqueReferenceID, vs...))
}
// UniqueReferenceIDGT applies the GT predicate on the "unique_reference_id" field.
func UniqueReferenceIDGT(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldUniqueReferenceID, v))
}
// UniqueReferenceIDGTE applies the GTE predicate on the "unique_reference_id" field.
func UniqueReferenceIDGTE(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldUniqueReferenceID, v))
}
// UniqueReferenceIDLT applies the LT predicate on the "unique_reference_id" field.
func UniqueReferenceIDLT(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldUniqueReferenceID, v))
}
// UniqueReferenceIDLTE applies the LTE predicate on the "unique_reference_id" field.
func UniqueReferenceIDLTE(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldUniqueReferenceID, v))
}
// UniqueReferenceIDContains applies the Contains predicate on the "unique_reference_id" field.
func UniqueReferenceIDContains(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContains(FieldUniqueReferenceID, v))
}
// UniqueReferenceIDHasPrefix applies the HasPrefix predicate on the "unique_reference_id" field.
func UniqueReferenceIDHasPrefix(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldUniqueReferenceID, v))
}
// UniqueReferenceIDHasSuffix applies the HasSuffix predicate on the "unique_reference_id" field.
func UniqueReferenceIDHasSuffix(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldUniqueReferenceID, v))
}
// UniqueReferenceIDIsNil applies the IsNil predicate on the "unique_reference_id" field.
func UniqueReferenceIDIsNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIsNull(FieldUniqueReferenceID))
}
// UniqueReferenceIDNotNil applies the NotNil predicate on the "unique_reference_id" field.
func UniqueReferenceIDNotNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotNull(FieldUniqueReferenceID))
}
// UniqueReferenceIDEqualFold applies the EqualFold predicate on the "unique_reference_id" field.
func UniqueReferenceIDEqualFold(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldUniqueReferenceID, v))
}
// UniqueReferenceIDContainsFold applies the ContainsFold predicate on the "unique_reference_id" field.
func UniqueReferenceIDContainsFold(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldUniqueReferenceID, v))
}
// CurrencyEQ applies the EQ predicate on the "currency" field.
func CurrencyEQ(v currencyx.Code) predicate.ChargeUsageBased {
vc := string(v)
return predicate.ChargeUsageBased(sql.FieldEQ(FieldCurrency, vc))
}
// CurrencyNEQ applies the NEQ predicate on the "currency" field.
func CurrencyNEQ(v currencyx.Code) predicate.ChargeUsageBased {
vc := string(v)
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldCurrency, vc))
}
// CurrencyIn applies the In predicate on the "currency" field.
func CurrencyIn(vs ...currencyx.Code) predicate.ChargeUsageBased {
v := make([]any, len(vs))
for i := range v {
v[i] = string(vs[i])
}
return predicate.ChargeUsageBased(sql.FieldIn(FieldCurrency, v...))
}
// CurrencyNotIn applies the NotIn predicate on the "currency" field.
func CurrencyNotIn(vs ...currencyx.Code) predicate.ChargeUsageBased {
v := make([]any, len(vs))
for i := range v {
v[i] = string(vs[i])
}
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldCurrency, v...))
}
// CurrencyGT applies the GT predicate on the "currency" field.
func CurrencyGT(v currencyx.Code) predicate.ChargeUsageBased {
vc := string(v)
return predicate.ChargeUsageBased(sql.FieldGT(FieldCurrency, vc))
}
// CurrencyGTE applies the GTE predicate on the "currency" field.
func CurrencyGTE(v currencyx.Code) predicate.ChargeUsageBased {
vc := string(v)
return predicate.ChargeUsageBased(sql.FieldGTE(FieldCurrency, vc))
}
// CurrencyLT applies the LT predicate on the "currency" field.
func CurrencyLT(v currencyx.Code) predicate.ChargeUsageBased {
vc := string(v)
return predicate.ChargeUsageBased(sql.FieldLT(FieldCurrency, vc))
}
// CurrencyLTE applies the LTE predicate on the "currency" field.
func CurrencyLTE(v currencyx.Code) predicate.ChargeUsageBased {
vc := string(v)
return predicate.ChargeUsageBased(sql.FieldLTE(FieldCurrency, vc))
}
// CurrencyContains applies the Contains predicate on the "currency" field.
func CurrencyContains(v currencyx.Code) predicate.ChargeUsageBased {
vc := string(v)
return predicate.ChargeUsageBased(sql.FieldContains(FieldCurrency, vc))
}
// CurrencyHasPrefix applies the HasPrefix predicate on the "currency" field.
func CurrencyHasPrefix(v currencyx.Code) predicate.ChargeUsageBased {
vc := string(v)
return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldCurrency, vc))
}
// CurrencyHasSuffix applies the HasSuffix predicate on the "currency" field.
func CurrencyHasSuffix(v currencyx.Code) predicate.ChargeUsageBased {
vc := string(v)
return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldCurrency, vc))
}
// CurrencyEqualFold applies the EqualFold predicate on the "currency" field.
func CurrencyEqualFold(v currencyx.Code) predicate.ChargeUsageBased {
vc := string(v)
return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldCurrency, vc))
}
// CurrencyContainsFold applies the ContainsFold predicate on the "currency" field.
func CurrencyContainsFold(v currencyx.Code) predicate.ChargeUsageBased {
vc := string(v)
return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldCurrency, vc))
}
// ManagedByEQ applies the EQ predicate on the "managed_by" field.
func ManagedByEQ(v billing.InvoiceLineManagedBy) predicate.ChargeUsageBased {
vc := v
return predicate.ChargeUsageBased(sql.FieldEQ(FieldManagedBy, vc))
}
// ManagedByNEQ applies the NEQ predicate on the "managed_by" field.
func ManagedByNEQ(v billing.InvoiceLineManagedBy) predicate.ChargeUsageBased {
vc := v
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldManagedBy, vc))
}
// ManagedByIn applies the In predicate on the "managed_by" field.
func ManagedByIn(vs ...billing.InvoiceLineManagedBy) predicate.ChargeUsageBased {
v := make([]any, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.ChargeUsageBased(sql.FieldIn(FieldManagedBy, v...))
}
// ManagedByNotIn applies the NotIn predicate on the "managed_by" field.
func ManagedByNotIn(vs ...billing.InvoiceLineManagedBy) predicate.ChargeUsageBased {
v := make([]any, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldManagedBy, v...))
}
// SubscriptionIDEQ applies the EQ predicate on the "subscription_id" field.
func SubscriptionIDEQ(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldSubscriptionID, v))
}
// SubscriptionIDNEQ applies the NEQ predicate on the "subscription_id" field.
func SubscriptionIDNEQ(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldSubscriptionID, v))
}
// SubscriptionIDIn applies the In predicate on the "subscription_id" field.
func SubscriptionIDIn(vs ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldSubscriptionID, vs...))
}
// SubscriptionIDNotIn applies the NotIn predicate on the "subscription_id" field.
func SubscriptionIDNotIn(vs ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldSubscriptionID, vs...))
}
// SubscriptionIDGT applies the GT predicate on the "subscription_id" field.
func SubscriptionIDGT(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldSubscriptionID, v))
}
// SubscriptionIDGTE applies the GTE predicate on the "subscription_id" field.
func SubscriptionIDGTE(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldSubscriptionID, v))
}
// SubscriptionIDLT applies the LT predicate on the "subscription_id" field.
func SubscriptionIDLT(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldSubscriptionID, v))
}
// SubscriptionIDLTE applies the LTE predicate on the "subscription_id" field.
func SubscriptionIDLTE(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldSubscriptionID, v))
}
// SubscriptionIDContains applies the Contains predicate on the "subscription_id" field.
func SubscriptionIDContains(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContains(FieldSubscriptionID, v))
}
// SubscriptionIDHasPrefix applies the HasPrefix predicate on the "subscription_id" field.
func SubscriptionIDHasPrefix(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldSubscriptionID, v))
}
// SubscriptionIDHasSuffix applies the HasSuffix predicate on the "subscription_id" field.
func SubscriptionIDHasSuffix(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldSubscriptionID, v))
}
// SubscriptionIDIsNil applies the IsNil predicate on the "subscription_id" field.
func SubscriptionIDIsNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIsNull(FieldSubscriptionID))
}
// SubscriptionIDNotNil applies the NotNil predicate on the "subscription_id" field.
func SubscriptionIDNotNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotNull(FieldSubscriptionID))
}
// SubscriptionIDEqualFold applies the EqualFold predicate on the "subscription_id" field.
func SubscriptionIDEqualFold(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldSubscriptionID, v))
}
// SubscriptionIDContainsFold applies the ContainsFold predicate on the "subscription_id" field.
func SubscriptionIDContainsFold(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldSubscriptionID, v))
}
// SubscriptionPhaseIDEQ applies the EQ predicate on the "subscription_phase_id" field.
func SubscriptionPhaseIDEQ(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldSubscriptionPhaseID, v))
}
// SubscriptionPhaseIDNEQ applies the NEQ predicate on the "subscription_phase_id" field.
func SubscriptionPhaseIDNEQ(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldSubscriptionPhaseID, v))
}
// SubscriptionPhaseIDIn applies the In predicate on the "subscription_phase_id" field.
func SubscriptionPhaseIDIn(vs ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldSubscriptionPhaseID, vs...))
}
// SubscriptionPhaseIDNotIn applies the NotIn predicate on the "subscription_phase_id" field.
func SubscriptionPhaseIDNotIn(vs ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldSubscriptionPhaseID, vs...))
}
// SubscriptionPhaseIDGT applies the GT predicate on the "subscription_phase_id" field.
func SubscriptionPhaseIDGT(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldSubscriptionPhaseID, v))
}
// SubscriptionPhaseIDGTE applies the GTE predicate on the "subscription_phase_id" field.
func SubscriptionPhaseIDGTE(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldSubscriptionPhaseID, v))
}
// SubscriptionPhaseIDLT applies the LT predicate on the "subscription_phase_id" field.
func SubscriptionPhaseIDLT(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldSubscriptionPhaseID, v))
}
// SubscriptionPhaseIDLTE applies the LTE predicate on the "subscription_phase_id" field.
func SubscriptionPhaseIDLTE(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldSubscriptionPhaseID, v))
}
// SubscriptionPhaseIDContains applies the Contains predicate on the "subscription_phase_id" field.
func SubscriptionPhaseIDContains(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContains(FieldSubscriptionPhaseID, v))
}
// SubscriptionPhaseIDHasPrefix applies the HasPrefix predicate on the "subscription_phase_id" field.
func SubscriptionPhaseIDHasPrefix(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldSubscriptionPhaseID, v))
}
// SubscriptionPhaseIDHasSuffix applies the HasSuffix predicate on the "subscription_phase_id" field.
func SubscriptionPhaseIDHasSuffix(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldSubscriptionPhaseID, v))
}
// SubscriptionPhaseIDIsNil applies the IsNil predicate on the "subscription_phase_id" field.
func SubscriptionPhaseIDIsNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIsNull(FieldSubscriptionPhaseID))
}
// SubscriptionPhaseIDNotNil applies the NotNil predicate on the "subscription_phase_id" field.
func SubscriptionPhaseIDNotNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotNull(FieldSubscriptionPhaseID))
}
// SubscriptionPhaseIDEqualFold applies the EqualFold predicate on the "subscription_phase_id" field.
func SubscriptionPhaseIDEqualFold(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldSubscriptionPhaseID, v))
}
// SubscriptionPhaseIDContainsFold applies the ContainsFold predicate on the "subscription_phase_id" field.
func SubscriptionPhaseIDContainsFold(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldSubscriptionPhaseID, v))
}
// SubscriptionItemIDEQ applies the EQ predicate on the "subscription_item_id" field.
func SubscriptionItemIDEQ(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldSubscriptionItemID, v))
}
// SubscriptionItemIDNEQ applies the NEQ predicate on the "subscription_item_id" field.
func SubscriptionItemIDNEQ(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldSubscriptionItemID, v))
}
// SubscriptionItemIDIn applies the In predicate on the "subscription_item_id" field.
func SubscriptionItemIDIn(vs ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldSubscriptionItemID, vs...))
}
// SubscriptionItemIDNotIn applies the NotIn predicate on the "subscription_item_id" field.
func SubscriptionItemIDNotIn(vs ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldSubscriptionItemID, vs...))
}
// SubscriptionItemIDGT applies the GT predicate on the "subscription_item_id" field.
func SubscriptionItemIDGT(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldSubscriptionItemID, v))
}
// SubscriptionItemIDGTE applies the GTE predicate on the "subscription_item_id" field.
func SubscriptionItemIDGTE(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldSubscriptionItemID, v))
}
// SubscriptionItemIDLT applies the LT predicate on the "subscription_item_id" field.
func SubscriptionItemIDLT(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldSubscriptionItemID, v))
}
// SubscriptionItemIDLTE applies the LTE predicate on the "subscription_item_id" field.
func SubscriptionItemIDLTE(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldSubscriptionItemID, v))
}
// SubscriptionItemIDContains applies the Contains predicate on the "subscription_item_id" field.
func SubscriptionItemIDContains(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContains(FieldSubscriptionItemID, v))
}
// SubscriptionItemIDHasPrefix applies the HasPrefix predicate on the "subscription_item_id" field.
func SubscriptionItemIDHasPrefix(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldSubscriptionItemID, v))
}
// SubscriptionItemIDHasSuffix applies the HasSuffix predicate on the "subscription_item_id" field.
func SubscriptionItemIDHasSuffix(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldSubscriptionItemID, v))
}
// SubscriptionItemIDIsNil applies the IsNil predicate on the "subscription_item_id" field.
func SubscriptionItemIDIsNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIsNull(FieldSubscriptionItemID))
}
// SubscriptionItemIDNotNil applies the NotNil predicate on the "subscription_item_id" field.
func SubscriptionItemIDNotNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotNull(FieldSubscriptionItemID))
}
// SubscriptionItemIDEqualFold applies the EqualFold predicate on the "subscription_item_id" field.
func SubscriptionItemIDEqualFold(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldSubscriptionItemID, v))
}
// SubscriptionItemIDContainsFold applies the ContainsFold predicate on the "subscription_item_id" field.
func SubscriptionItemIDContainsFold(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldSubscriptionItemID, v))
}
// AdvanceAfterEQ applies the EQ predicate on the "advance_after" field.
func AdvanceAfterEQ(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldAdvanceAfter, v))
}
// AdvanceAfterNEQ applies the NEQ predicate on the "advance_after" field.
func AdvanceAfterNEQ(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldAdvanceAfter, v))
}
// AdvanceAfterIn applies the In predicate on the "advance_after" field.
func AdvanceAfterIn(vs ...time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldAdvanceAfter, vs...))
}
// AdvanceAfterNotIn applies the NotIn predicate on the "advance_after" field.
func AdvanceAfterNotIn(vs ...time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldAdvanceAfter, vs...))
}
// AdvanceAfterGT applies the GT predicate on the "advance_after" field.
func AdvanceAfterGT(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldAdvanceAfter, v))
}
// AdvanceAfterGTE applies the GTE predicate on the "advance_after" field.
func AdvanceAfterGTE(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldAdvanceAfter, v))
}
// AdvanceAfterLT applies the LT predicate on the "advance_after" field.
func AdvanceAfterLT(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldAdvanceAfter, v))
}
// AdvanceAfterLTE applies the LTE predicate on the "advance_after" field.
func AdvanceAfterLTE(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldAdvanceAfter, v))
}
// AdvanceAfterIsNil applies the IsNil predicate on the "advance_after" field.
func AdvanceAfterIsNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIsNull(FieldAdvanceAfter))
}
// AdvanceAfterNotNil applies the NotNil predicate on the "advance_after" field.
func AdvanceAfterNotNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotNull(FieldAdvanceAfter))
}
// TaxCodeIDEQ applies the EQ predicate on the "tax_code_id" field.
func TaxCodeIDEQ(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldTaxCodeID, v))
}
// TaxCodeIDNEQ applies the NEQ predicate on the "tax_code_id" field.
func TaxCodeIDNEQ(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldTaxCodeID, v))
}
// TaxCodeIDIn applies the In predicate on the "tax_code_id" field.
func TaxCodeIDIn(vs ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldTaxCodeID, vs...))
}
// TaxCodeIDNotIn applies the NotIn predicate on the "tax_code_id" field.
func TaxCodeIDNotIn(vs ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldTaxCodeID, vs...))
}
// TaxCodeIDGT applies the GT predicate on the "tax_code_id" field.
func TaxCodeIDGT(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldTaxCodeID, v))
}
// TaxCodeIDGTE applies the GTE predicate on the "tax_code_id" field.
func TaxCodeIDGTE(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldTaxCodeID, v))
}
// TaxCodeIDLT applies the LT predicate on the "tax_code_id" field.
func TaxCodeIDLT(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldTaxCodeID, v))
}
// TaxCodeIDLTE applies the LTE predicate on the "tax_code_id" field.
func TaxCodeIDLTE(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldTaxCodeID, v))
}
// TaxCodeIDContains applies the Contains predicate on the "tax_code_id" field.
func TaxCodeIDContains(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContains(FieldTaxCodeID, v))
}
// TaxCodeIDHasPrefix applies the HasPrefix predicate on the "tax_code_id" field.
func TaxCodeIDHasPrefix(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldTaxCodeID, v))
}
// TaxCodeIDHasSuffix applies the HasSuffix predicate on the "tax_code_id" field.
func TaxCodeIDHasSuffix(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldTaxCodeID, v))
}
// TaxCodeIDEqualFold applies the EqualFold predicate on the "tax_code_id" field.
func TaxCodeIDEqualFold(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldTaxCodeID, v))
}
// TaxCodeIDContainsFold applies the ContainsFold predicate on the "tax_code_id" field.
func TaxCodeIDContainsFold(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldTaxCodeID, v))
}
// TaxBehaviorEQ applies the EQ predicate on the "tax_behavior" field.
func TaxBehaviorEQ(v productcatalog.TaxBehavior) predicate.ChargeUsageBased {
vc := v
return predicate.ChargeUsageBased(sql.FieldEQ(FieldTaxBehavior, vc))
}
// TaxBehaviorNEQ applies the NEQ predicate on the "tax_behavior" field.
func TaxBehaviorNEQ(v productcatalog.TaxBehavior) predicate.ChargeUsageBased {
vc := v
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldTaxBehavior, vc))
}
// TaxBehaviorIn applies the In predicate on the "tax_behavior" field.
func TaxBehaviorIn(vs ...productcatalog.TaxBehavior) predicate.ChargeUsageBased {
v := make([]any, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.ChargeUsageBased(sql.FieldIn(FieldTaxBehavior, v...))
}
// TaxBehaviorNotIn applies the NotIn predicate on the "tax_behavior" field.
func TaxBehaviorNotIn(vs ...productcatalog.TaxBehavior) predicate.ChargeUsageBased {
v := make([]any, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldTaxBehavior, v...))
}
// TaxBehaviorIsNil applies the IsNil predicate on the "tax_behavior" field.
func TaxBehaviorIsNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIsNull(FieldTaxBehavior))
}
// TaxBehaviorNotNil applies the NotNil predicate on the "tax_behavior" field.
func TaxBehaviorNotNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotNull(FieldTaxBehavior))
}
// AnnotationsIsNil applies the IsNil predicate on the "annotations" field.
func AnnotationsIsNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIsNull(FieldAnnotations))
}
// AnnotationsNotNil applies the NotNil predicate on the "annotations" field.
func AnnotationsNotNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotNull(FieldAnnotations))
}
// NamespaceEQ applies the EQ predicate on the "namespace" field.
func NamespaceEQ(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldNamespace, v))
}
// NamespaceNEQ applies the NEQ predicate on the "namespace" field.
func NamespaceNEQ(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldNamespace, v))
}
// NamespaceIn applies the In predicate on the "namespace" field.
func NamespaceIn(vs ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldNamespace, vs...))
}
// NamespaceNotIn applies the NotIn predicate on the "namespace" field.
func NamespaceNotIn(vs ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldNamespace, vs...))
}
// NamespaceGT applies the GT predicate on the "namespace" field.
func NamespaceGT(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldNamespace, v))
}
// NamespaceGTE applies the GTE predicate on the "namespace" field.
func NamespaceGTE(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldNamespace, v))
}
// NamespaceLT applies the LT predicate on the "namespace" field.
func NamespaceLT(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldNamespace, v))
}
// NamespaceLTE applies the LTE predicate on the "namespace" field.
func NamespaceLTE(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldNamespace, v))
}
// NamespaceContains applies the Contains predicate on the "namespace" field.
func NamespaceContains(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContains(FieldNamespace, v))
}
// NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.
func NamespaceHasPrefix(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldNamespace, v))
}
// NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.
func NamespaceHasSuffix(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldNamespace, v))
}
// NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.
func NamespaceEqualFold(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldNamespace, v))
}
// NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.
func NamespaceContainsFold(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldNamespace, v))
}
// MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataIsNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIsNull(FieldMetadata))
}
// MetadataNotNil applies the NotNil predicate on the "metadata" field.
func MetadataNotNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotNull(FieldMetadata))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldCreatedAt, v))
}
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldUpdatedAt, v))
}
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldUpdatedAt, v))
}
// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldUpdatedAt, vs...))
}
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldUpdatedAt, vs...))
}
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldUpdatedAt, v))
}
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldUpdatedAt, v))
}
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldUpdatedAt, v))
}
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldUpdatedAt, v))
}
// DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtEQ(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldDeletedAt, v))
}
// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNEQ(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldDeletedAt, v))
}
// DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIn(vs ...time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldDeletedAt, vs...))
}
// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotIn(vs ...time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldDeletedAt, vs...))
}
// DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGT(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldDeletedAt, v))
}
// DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtGTE(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldDeletedAt, v))
}
// DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLT(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldDeletedAt, v))
}
// DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtLTE(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldDeletedAt, v))
}
// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtIsNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIsNull(FieldDeletedAt))
}
// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedAtNotNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotNull(FieldDeletedAt))
}
// NameEQ applies the EQ predicate on the "name" field.
func NameEQ(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldName, v))
}
// NameNEQ applies the NEQ predicate on the "name" field.
func NameNEQ(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldName, v))
}
// NameIn applies the In predicate on the "name" field.
func NameIn(vs ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldName, vs...))
}
// NameNotIn applies the NotIn predicate on the "name" field.
func NameNotIn(vs ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldName, vs...))
}
// NameGT applies the GT predicate on the "name" field.
func NameGT(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldName, v))
}
// NameGTE applies the GTE predicate on the "name" field.
func NameGTE(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldName, v))
}
// NameLT applies the LT predicate on the "name" field.
func NameLT(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldName, v))
}
// NameLTE applies the LTE predicate on the "name" field.
func NameLTE(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldName, v))
}
// NameContains applies the Contains predicate on the "name" field.
func NameContains(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContains(FieldName, v))
}
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasPrefix(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldName, v))
}
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameHasSuffix(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldName, v))
}
// NameEqualFold applies the EqualFold predicate on the "name" field.
func NameEqualFold(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldName, v))
}
// NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameContainsFold(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldName, v))
}
// DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEQ(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldDescription, v))
}
// DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNEQ(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldDescription, v))
}
// DescriptionIn applies the In predicate on the "description" field.
func DescriptionIn(vs ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldDescription, vs...))
}
// DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotIn(vs ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldDescription, vs...))
}
// DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGT(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldDescription, v))
}
// DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionGTE(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldDescription, v))
}
// DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLT(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldDescription, v))
}
// DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionLTE(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldDescription, v))
}
// DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContains(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContains(FieldDescription, v))
}
// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasPrefix(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldDescription, v))
}
// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionHasSuffix(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldDescription, v))
}
// DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionIsNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIsNull(FieldDescription))
}
// DescriptionNotNil applies the NotNil predicate on the "description" field.
func DescriptionNotNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotNull(FieldDescription))
}
// DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionEqualFold(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldDescription, v))
}
// DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionContainsFold(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldDescription, v))
}
// InvoiceAtEQ applies the EQ predicate on the "invoice_at" field.
func InvoiceAtEQ(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldInvoiceAt, v))
}
// InvoiceAtNEQ applies the NEQ predicate on the "invoice_at" field.
func InvoiceAtNEQ(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldInvoiceAt, v))
}
// InvoiceAtIn applies the In predicate on the "invoice_at" field.
func InvoiceAtIn(vs ...time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldInvoiceAt, vs...))
}
// InvoiceAtNotIn applies the NotIn predicate on the "invoice_at" field.
func InvoiceAtNotIn(vs ...time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldInvoiceAt, vs...))
}
// InvoiceAtGT applies the GT predicate on the "invoice_at" field.
func InvoiceAtGT(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldInvoiceAt, v))
}
// InvoiceAtGTE applies the GTE predicate on the "invoice_at" field.
func InvoiceAtGTE(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldInvoiceAt, v))
}
// InvoiceAtLT applies the LT predicate on the "invoice_at" field.
func InvoiceAtLT(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldInvoiceAt, v))
}
// InvoiceAtLTE applies the LTE predicate on the "invoice_at" field.
func InvoiceAtLTE(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldInvoiceAt, v))
}
// SettlementModeEQ applies the EQ predicate on the "settlement_mode" field.
func SettlementModeEQ(v productcatalog.SettlementMode) predicate.ChargeUsageBased {
vc := v
return predicate.ChargeUsageBased(sql.FieldEQ(FieldSettlementMode, vc))
}
// SettlementModeNEQ applies the NEQ predicate on the "settlement_mode" field.
func SettlementModeNEQ(v productcatalog.SettlementMode) predicate.ChargeUsageBased {
vc := v
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldSettlementMode, vc))
}
// SettlementModeIn applies the In predicate on the "settlement_mode" field.
func SettlementModeIn(vs ...productcatalog.SettlementMode) predicate.ChargeUsageBased {
v := make([]any, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.ChargeUsageBased(sql.FieldIn(FieldSettlementMode, v...))
}
// SettlementModeNotIn applies the NotIn predicate on the "settlement_mode" field.
func SettlementModeNotIn(vs ...productcatalog.SettlementMode) predicate.ChargeUsageBased {
v := make([]any, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldSettlementMode, v...))
}
// IntentDeletedAtEQ applies the EQ predicate on the "intent_deleted_at" field.
func IntentDeletedAtEQ(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldIntentDeletedAt, v))
}
// IntentDeletedAtNEQ applies the NEQ predicate on the "intent_deleted_at" field.
func IntentDeletedAtNEQ(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldIntentDeletedAt, v))
}
// IntentDeletedAtIn applies the In predicate on the "intent_deleted_at" field.
func IntentDeletedAtIn(vs ...time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldIntentDeletedAt, vs...))
}
// IntentDeletedAtNotIn applies the NotIn predicate on the "intent_deleted_at" field.
func IntentDeletedAtNotIn(vs ...time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldIntentDeletedAt, vs...))
}
// IntentDeletedAtGT applies the GT predicate on the "intent_deleted_at" field.
func IntentDeletedAtGT(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldIntentDeletedAt, v))
}
// IntentDeletedAtGTE applies the GTE predicate on the "intent_deleted_at" field.
func IntentDeletedAtGTE(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldIntentDeletedAt, v))
}
// IntentDeletedAtLT applies the LT predicate on the "intent_deleted_at" field.
func IntentDeletedAtLT(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldIntentDeletedAt, v))
}
// IntentDeletedAtLTE applies the LTE predicate on the "intent_deleted_at" field.
func IntentDeletedAtLTE(v time.Time) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldIntentDeletedAt, v))
}
// IntentDeletedAtIsNil applies the IsNil predicate on the "intent_deleted_at" field.
func IntentDeletedAtIsNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIsNull(FieldIntentDeletedAt))
}
// IntentDeletedAtNotNil applies the NotNil predicate on the "intent_deleted_at" field.
func IntentDeletedAtNotNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotNull(FieldIntentDeletedAt))
}
// DiscountsIsNil applies the IsNil predicate on the "discounts" field.
func DiscountsIsNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIsNull(FieldDiscounts))
}
// DiscountsNotNil applies the NotNil predicate on the "discounts" field.
func DiscountsNotNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotNull(FieldDiscounts))
}
// FeatureKeyEQ applies the EQ predicate on the "feature_key" field.
func FeatureKeyEQ(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldFeatureKey, v))
}
// FeatureKeyNEQ applies the NEQ predicate on the "feature_key" field.
func FeatureKeyNEQ(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldFeatureKey, v))
}
// FeatureKeyIn applies the In predicate on the "feature_key" field.
func FeatureKeyIn(vs ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldFeatureKey, vs...))
}
// FeatureKeyNotIn applies the NotIn predicate on the "feature_key" field.
func FeatureKeyNotIn(vs ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldFeatureKey, vs...))
}
// FeatureKeyGT applies the GT predicate on the "feature_key" field.
func FeatureKeyGT(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldFeatureKey, v))
}
// FeatureKeyGTE applies the GTE predicate on the "feature_key" field.
func FeatureKeyGTE(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldFeatureKey, v))
}
// FeatureKeyLT applies the LT predicate on the "feature_key" field.
func FeatureKeyLT(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldFeatureKey, v))
}
// FeatureKeyLTE applies the LTE predicate on the "feature_key" field.
func FeatureKeyLTE(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldFeatureKey, v))
}
// FeatureKeyContains applies the Contains predicate on the "feature_key" field.
func FeatureKeyContains(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContains(FieldFeatureKey, v))
}
// FeatureKeyHasPrefix applies the HasPrefix predicate on the "feature_key" field.
func FeatureKeyHasPrefix(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldFeatureKey, v))
}
// FeatureKeyHasSuffix applies the HasSuffix predicate on the "feature_key" field.
func FeatureKeyHasSuffix(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldFeatureKey, v))
}
// FeatureKeyEqualFold applies the EqualFold predicate on the "feature_key" field.
func FeatureKeyEqualFold(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldFeatureKey, v))
}
// FeatureKeyContainsFold applies the ContainsFold predicate on the "feature_key" field.
func FeatureKeyContainsFold(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldFeatureKey, v))
}
// FeatureIDEQ applies the EQ predicate on the "feature_id" field.
func FeatureIDEQ(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldFeatureID, v))
}
// FeatureIDNEQ applies the NEQ predicate on the "feature_id" field.
func FeatureIDNEQ(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldFeatureID, v))
}
// FeatureIDIn applies the In predicate on the "feature_id" field.
func FeatureIDIn(vs ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldFeatureID, vs...))
}
// FeatureIDNotIn applies the NotIn predicate on the "feature_id" field.
func FeatureIDNotIn(vs ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldFeatureID, vs...))
}
// FeatureIDGT applies the GT predicate on the "feature_id" field.
func FeatureIDGT(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldFeatureID, v))
}
// FeatureIDGTE applies the GTE predicate on the "feature_id" field.
func FeatureIDGTE(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldFeatureID, v))
}
// FeatureIDLT applies the LT predicate on the "feature_id" field.
func FeatureIDLT(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldFeatureID, v))
}
// FeatureIDLTE applies the LTE predicate on the "feature_id" field.
func FeatureIDLTE(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldFeatureID, v))
}
// FeatureIDContains applies the Contains predicate on the "feature_id" field.
func FeatureIDContains(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContains(FieldFeatureID, v))
}
// FeatureIDHasPrefix applies the HasPrefix predicate on the "feature_id" field.
func FeatureIDHasPrefix(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldFeatureID, v))
}
// FeatureIDHasSuffix applies the HasSuffix predicate on the "feature_id" field.
func FeatureIDHasSuffix(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldFeatureID, v))
}
// FeatureIDEqualFold applies the EqualFold predicate on the "feature_id" field.
func FeatureIDEqualFold(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldFeatureID, v))
}
// FeatureIDContainsFold applies the ContainsFold predicate on the "feature_id" field.
func FeatureIDContainsFold(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldFeatureID, v))
}
// RatingEngineEQ applies the EQ predicate on the "rating_engine" field.
func RatingEngineEQ(v usagebased.RatingEngine) predicate.ChargeUsageBased {
vc := v
return predicate.ChargeUsageBased(sql.FieldEQ(FieldRatingEngine, vc))
}
// RatingEngineNEQ applies the NEQ predicate on the "rating_engine" field.
func RatingEngineNEQ(v usagebased.RatingEngine) predicate.ChargeUsageBased {
vc := v
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldRatingEngine, vc))
}
// RatingEngineIn applies the In predicate on the "rating_engine" field.
func RatingEngineIn(vs ...usagebased.RatingEngine) predicate.ChargeUsageBased {
v := make([]any, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.ChargeUsageBased(sql.FieldIn(FieldRatingEngine, v...))
}
// RatingEngineNotIn applies the NotIn predicate on the "rating_engine" field.
func RatingEngineNotIn(vs ...usagebased.RatingEngine) predicate.ChargeUsageBased {
v := make([]any, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldRatingEngine, v...))
}
// UnitConfigIsNil applies the IsNil predicate on the "unit_config" field.
func UnitConfigIsNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIsNull(FieldUnitConfig))
}
// UnitConfigNotNil applies the NotNil predicate on the "unit_config" field.
func UnitConfigNotNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotNull(FieldUnitConfig))
}
// CurrentRealizationRunIDEQ applies the EQ predicate on the "current_realization_run_id" field.
func CurrentRealizationRunIDEQ(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEQ(FieldCurrentRealizationRunID, v))
}
// CurrentRealizationRunIDNEQ applies the NEQ predicate on the "current_realization_run_id" field.
func CurrentRealizationRunIDNEQ(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldCurrentRealizationRunID, v))
}
// CurrentRealizationRunIDIn applies the In predicate on the "current_realization_run_id" field.
func CurrentRealizationRunIDIn(vs ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIn(FieldCurrentRealizationRunID, vs...))
}
// CurrentRealizationRunIDNotIn applies the NotIn predicate on the "current_realization_run_id" field.
func CurrentRealizationRunIDNotIn(vs ...string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldCurrentRealizationRunID, vs...))
}
// CurrentRealizationRunIDGT applies the GT predicate on the "current_realization_run_id" field.
func CurrentRealizationRunIDGT(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGT(FieldCurrentRealizationRunID, v))
}
// CurrentRealizationRunIDGTE applies the GTE predicate on the "current_realization_run_id" field.
func CurrentRealizationRunIDGTE(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldGTE(FieldCurrentRealizationRunID, v))
}
// CurrentRealizationRunIDLT applies the LT predicate on the "current_realization_run_id" field.
func CurrentRealizationRunIDLT(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLT(FieldCurrentRealizationRunID, v))
}
// CurrentRealizationRunIDLTE applies the LTE predicate on the "current_realization_run_id" field.
func CurrentRealizationRunIDLTE(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldLTE(FieldCurrentRealizationRunID, v))
}
// CurrentRealizationRunIDContains applies the Contains predicate on the "current_realization_run_id" field.
func CurrentRealizationRunIDContains(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContains(FieldCurrentRealizationRunID, v))
}
// CurrentRealizationRunIDHasPrefix applies the HasPrefix predicate on the "current_realization_run_id" field.
func CurrentRealizationRunIDHasPrefix(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldCurrentRealizationRunID, v))
}
// CurrentRealizationRunIDHasSuffix applies the HasSuffix predicate on the "current_realization_run_id" field.
func CurrentRealizationRunIDHasSuffix(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldCurrentRealizationRunID, v))
}
// CurrentRealizationRunIDIsNil applies the IsNil predicate on the "current_realization_run_id" field.
func CurrentRealizationRunIDIsNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldIsNull(FieldCurrentRealizationRunID))
}
// CurrentRealizationRunIDNotNil applies the NotNil predicate on the "current_realization_run_id" field.
func CurrentRealizationRunIDNotNil() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldNotNull(FieldCurrentRealizationRunID))
}
// CurrentRealizationRunIDEqualFold applies the EqualFold predicate on the "current_realization_run_id" field.
func CurrentRealizationRunIDEqualFold(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldCurrentRealizationRunID, v))
}
// CurrentRealizationRunIDContainsFold applies the ContainsFold predicate on the "current_realization_run_id" field.
func CurrentRealizationRunIDContainsFold(v string) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldCurrentRealizationRunID, v))
}
// StatusDetailedEQ applies the EQ predicate on the "status_detailed" field.
func StatusDetailedEQ(v usagebased.Status) predicate.ChargeUsageBased {
vc := v
return predicate.ChargeUsageBased(sql.FieldEQ(FieldStatusDetailed, vc))
}
// StatusDetailedNEQ applies the NEQ predicate on the "status_detailed" field.
func StatusDetailedNEQ(v usagebased.Status) predicate.ChargeUsageBased {
vc := v
return predicate.ChargeUsageBased(sql.FieldNEQ(FieldStatusDetailed, vc))
}
// StatusDetailedIn applies the In predicate on the "status_detailed" field.
func StatusDetailedIn(vs ...usagebased.Status) predicate.ChargeUsageBased {
v := make([]any, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.ChargeUsageBased(sql.FieldIn(FieldStatusDetailed, v...))
}
// StatusDetailedNotIn applies the NotIn predicate on the "status_detailed" field.
func StatusDetailedNotIn(vs ...usagebased.Status) predicate.ChargeUsageBased {
v := make([]any, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.ChargeUsageBased(sql.FieldNotIn(FieldStatusDetailed, v...))
}
// HasRuns applies the HasEdge predicate on the "runs" edge.
func HasRuns() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, RunsTable, RunsColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasRunsWith applies the HasEdge predicate on the "runs" edge with a given conditions (other predicates).
func HasRunsWith(preds ...predicate.ChargeUsageBasedRuns) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(func(s *sql.Selector) {
step := newRunsStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasDetailedLines applies the HasEdge predicate on the "detailed_lines" edge.
func HasDetailedLines() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, DetailedLinesTable, DetailedLinesColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasDetailedLinesWith applies the HasEdge predicate on the "detailed_lines" edge with a given conditions (other predicates).
func HasDetailedLinesWith(preds ...predicate.ChargeUsageBasedRunDetailedLine) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(func(s *sql.Selector) {
step := newDetailedLinesStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasCurrentRun applies the HasEdge predicate on the "current_run" edge.
func HasCurrentRun() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, false, CurrentRunTable, CurrentRunColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasCurrentRunWith applies the HasEdge predicate on the "current_run" edge with a given conditions (other predicates).
func HasCurrentRunWith(preds ...predicate.ChargeUsageBasedRuns) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(func(s *sql.Selector) {
step := newCurrentRunStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasCharge applies the HasEdge predicate on the "charge" edge.
func HasCharge() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2O, false, ChargeTable, ChargeColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasChargeWith applies the HasEdge predicate on the "charge" edge with a given conditions (other predicates).
func HasChargeWith(preds ...predicate.Charge) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(func(s *sql.Selector) {
step := newChargeStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasIntentOverride applies the HasEdge predicate on the "intent_override" edge.
func HasIntentOverride() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2O, false, IntentOverrideTable, IntentOverrideColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasIntentOverrideWith applies the HasEdge predicate on the "intent_override" edge with a given conditions (other predicates).
func HasIntentOverrideWith(preds ...predicate.ChargeUsageBasedOverride) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(func(s *sql.Selector) {
step := newIntentOverrideStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasSubscription applies the HasEdge predicate on the "subscription" edge.
func HasSubscription() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, SubscriptionTable, SubscriptionColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasSubscriptionWith applies the HasEdge predicate on the "subscription" edge with a given conditions (other predicates).
func HasSubscriptionWith(preds ...predicate.Subscription) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(func(s *sql.Selector) {
step := newSubscriptionStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasSubscriptionPhase applies the HasEdge predicate on the "subscription_phase" edge.
func HasSubscriptionPhase() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, SubscriptionPhaseTable, SubscriptionPhaseColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasSubscriptionPhaseWith applies the HasEdge predicate on the "subscription_phase" edge with a given conditions (other predicates).
func HasSubscriptionPhaseWith(preds ...predicate.SubscriptionPhase) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(func(s *sql.Selector) {
step := newSubscriptionPhaseStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasSubscriptionItem applies the HasEdge predicate on the "subscription_item" edge.
func HasSubscriptionItem() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, SubscriptionItemTable, SubscriptionItemColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasSubscriptionItemWith applies the HasEdge predicate on the "subscription_item" edge with a given conditions (other predicates).
func HasSubscriptionItemWith(preds ...predicate.SubscriptionItem) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(func(s *sql.Selector) {
step := newSubscriptionItemStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasCustomer applies the HasEdge predicate on the "customer" edge.
func HasCustomer() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, CustomerTable, CustomerColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasCustomerWith applies the HasEdge predicate on the "customer" edge with a given conditions (other predicates).
func HasCustomerWith(preds ...predicate.Customer) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(func(s *sql.Selector) {
step := newCustomerStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasFeature applies the HasEdge predicate on the "feature" edge.
func HasFeature() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, FeatureTable, FeatureColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasFeatureWith applies the HasEdge predicate on the "feature" edge with a given conditions (other predicates).
func HasFeatureWith(preds ...predicate.Feature) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(func(s *sql.Selector) {
step := newFeatureStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasTaxCode applies the HasEdge predicate on the "tax_code" edge.
func HasTaxCode() predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, TaxCodeTable, TaxCodeColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasTaxCodeWith applies the HasEdge predicate on the "tax_code" edge with a given conditions (other predicates).
func HasTaxCodeWith(preds ...predicate.TaxCode) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(func(s *sql.Selector) {
step := newTaxCodeStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.ChargeUsageBased) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.ChargeUsageBased) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.ChargeUsageBased) predicate.ChargeUsageBased {
return predicate.ChargeUsageBased(sql.NotPredicates(p))
}
|