where.go 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670
  1. // Code generated by ent, DO NOT EDIT.
  2. package paymentproviderinstance
  3. import (
  4. "time"
  5. "entgo.io/ent/dialect/sql"
  6. "github.com/Wei-Shaw/sub2api/ent/predicate"
  7. )
  8. // ID filters vertices based on their ID field.
  9. func ID(id int64) predicate.PaymentProviderInstance {
  10. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldID, id))
  11. }
  12. // IDEQ applies the EQ predicate on the ID field.
  13. func IDEQ(id int64) predicate.PaymentProviderInstance {
  14. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldID, id))
  15. }
  16. // IDNEQ applies the NEQ predicate on the ID field.
  17. func IDNEQ(id int64) predicate.PaymentProviderInstance {
  18. return predicate.PaymentProviderInstance(sql.FieldNEQ(FieldID, id))
  19. }
  20. // IDIn applies the In predicate on the ID field.
  21. func IDIn(ids ...int64) predicate.PaymentProviderInstance {
  22. return predicate.PaymentProviderInstance(sql.FieldIn(FieldID, ids...))
  23. }
  24. // IDNotIn applies the NotIn predicate on the ID field.
  25. func IDNotIn(ids ...int64) predicate.PaymentProviderInstance {
  26. return predicate.PaymentProviderInstance(sql.FieldNotIn(FieldID, ids...))
  27. }
  28. // IDGT applies the GT predicate on the ID field.
  29. func IDGT(id int64) predicate.PaymentProviderInstance {
  30. return predicate.PaymentProviderInstance(sql.FieldGT(FieldID, id))
  31. }
  32. // IDGTE applies the GTE predicate on the ID field.
  33. func IDGTE(id int64) predicate.PaymentProviderInstance {
  34. return predicate.PaymentProviderInstance(sql.FieldGTE(FieldID, id))
  35. }
  36. // IDLT applies the LT predicate on the ID field.
  37. func IDLT(id int64) predicate.PaymentProviderInstance {
  38. return predicate.PaymentProviderInstance(sql.FieldLT(FieldID, id))
  39. }
  40. // IDLTE applies the LTE predicate on the ID field.
  41. func IDLTE(id int64) predicate.PaymentProviderInstance {
  42. return predicate.PaymentProviderInstance(sql.FieldLTE(FieldID, id))
  43. }
  44. // ProviderKey applies equality check predicate on the "provider_key" field. It's identical to ProviderKeyEQ.
  45. func ProviderKey(v string) predicate.PaymentProviderInstance {
  46. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldProviderKey, v))
  47. }
  48. // Name applies equality check predicate on the "name" field. It's identical to NameEQ.
  49. func Name(v string) predicate.PaymentProviderInstance {
  50. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldName, v))
  51. }
  52. // Config applies equality check predicate on the "config" field. It's identical to ConfigEQ.
  53. func Config(v string) predicate.PaymentProviderInstance {
  54. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldConfig, v))
  55. }
  56. // SupportedTypes applies equality check predicate on the "supported_types" field. It's identical to SupportedTypesEQ.
  57. func SupportedTypes(v string) predicate.PaymentProviderInstance {
  58. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldSupportedTypes, v))
  59. }
  60. // Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.
  61. func Enabled(v bool) predicate.PaymentProviderInstance {
  62. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldEnabled, v))
  63. }
  64. // PaymentMode applies equality check predicate on the "payment_mode" field. It's identical to PaymentModeEQ.
  65. func PaymentMode(v string) predicate.PaymentProviderInstance {
  66. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldPaymentMode, v))
  67. }
  68. // SortOrder applies equality check predicate on the "sort_order" field. It's identical to SortOrderEQ.
  69. func SortOrder(v int) predicate.PaymentProviderInstance {
  70. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldSortOrder, v))
  71. }
  72. // Limits applies equality check predicate on the "limits" field. It's identical to LimitsEQ.
  73. func Limits(v string) predicate.PaymentProviderInstance {
  74. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldLimits, v))
  75. }
  76. // RefundEnabled applies equality check predicate on the "refund_enabled" field. It's identical to RefundEnabledEQ.
  77. func RefundEnabled(v bool) predicate.PaymentProviderInstance {
  78. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldRefundEnabled, v))
  79. }
  80. // AllowUserRefund applies equality check predicate on the "allow_user_refund" field. It's identical to AllowUserRefundEQ.
  81. func AllowUserRefund(v bool) predicate.PaymentProviderInstance {
  82. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldAllowUserRefund, v))
  83. }
  84. // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
  85. func CreatedAt(v time.Time) predicate.PaymentProviderInstance {
  86. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldCreatedAt, v))
  87. }
  88. // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
  89. func UpdatedAt(v time.Time) predicate.PaymentProviderInstance {
  90. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldUpdatedAt, v))
  91. }
  92. // ProviderKeyEQ applies the EQ predicate on the "provider_key" field.
  93. func ProviderKeyEQ(v string) predicate.PaymentProviderInstance {
  94. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldProviderKey, v))
  95. }
  96. // ProviderKeyNEQ applies the NEQ predicate on the "provider_key" field.
  97. func ProviderKeyNEQ(v string) predicate.PaymentProviderInstance {
  98. return predicate.PaymentProviderInstance(sql.FieldNEQ(FieldProviderKey, v))
  99. }
  100. // ProviderKeyIn applies the In predicate on the "provider_key" field.
  101. func ProviderKeyIn(vs ...string) predicate.PaymentProviderInstance {
  102. return predicate.PaymentProviderInstance(sql.FieldIn(FieldProviderKey, vs...))
  103. }
  104. // ProviderKeyNotIn applies the NotIn predicate on the "provider_key" field.
  105. func ProviderKeyNotIn(vs ...string) predicate.PaymentProviderInstance {
  106. return predicate.PaymentProviderInstance(sql.FieldNotIn(FieldProviderKey, vs...))
  107. }
  108. // ProviderKeyGT applies the GT predicate on the "provider_key" field.
  109. func ProviderKeyGT(v string) predicate.PaymentProviderInstance {
  110. return predicate.PaymentProviderInstance(sql.FieldGT(FieldProviderKey, v))
  111. }
  112. // ProviderKeyGTE applies the GTE predicate on the "provider_key" field.
  113. func ProviderKeyGTE(v string) predicate.PaymentProviderInstance {
  114. return predicate.PaymentProviderInstance(sql.FieldGTE(FieldProviderKey, v))
  115. }
  116. // ProviderKeyLT applies the LT predicate on the "provider_key" field.
  117. func ProviderKeyLT(v string) predicate.PaymentProviderInstance {
  118. return predicate.PaymentProviderInstance(sql.FieldLT(FieldProviderKey, v))
  119. }
  120. // ProviderKeyLTE applies the LTE predicate on the "provider_key" field.
  121. func ProviderKeyLTE(v string) predicate.PaymentProviderInstance {
  122. return predicate.PaymentProviderInstance(sql.FieldLTE(FieldProviderKey, v))
  123. }
  124. // ProviderKeyContains applies the Contains predicate on the "provider_key" field.
  125. func ProviderKeyContains(v string) predicate.PaymentProviderInstance {
  126. return predicate.PaymentProviderInstance(sql.FieldContains(FieldProviderKey, v))
  127. }
  128. // ProviderKeyHasPrefix applies the HasPrefix predicate on the "provider_key" field.
  129. func ProviderKeyHasPrefix(v string) predicate.PaymentProviderInstance {
  130. return predicate.PaymentProviderInstance(sql.FieldHasPrefix(FieldProviderKey, v))
  131. }
  132. // ProviderKeyHasSuffix applies the HasSuffix predicate on the "provider_key" field.
  133. func ProviderKeyHasSuffix(v string) predicate.PaymentProviderInstance {
  134. return predicate.PaymentProviderInstance(sql.FieldHasSuffix(FieldProviderKey, v))
  135. }
  136. // ProviderKeyEqualFold applies the EqualFold predicate on the "provider_key" field.
  137. func ProviderKeyEqualFold(v string) predicate.PaymentProviderInstance {
  138. return predicate.PaymentProviderInstance(sql.FieldEqualFold(FieldProviderKey, v))
  139. }
  140. // ProviderKeyContainsFold applies the ContainsFold predicate on the "provider_key" field.
  141. func ProviderKeyContainsFold(v string) predicate.PaymentProviderInstance {
  142. return predicate.PaymentProviderInstance(sql.FieldContainsFold(FieldProviderKey, v))
  143. }
  144. // NameEQ applies the EQ predicate on the "name" field.
  145. func NameEQ(v string) predicate.PaymentProviderInstance {
  146. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldName, v))
  147. }
  148. // NameNEQ applies the NEQ predicate on the "name" field.
  149. func NameNEQ(v string) predicate.PaymentProviderInstance {
  150. return predicate.PaymentProviderInstance(sql.FieldNEQ(FieldName, v))
  151. }
  152. // NameIn applies the In predicate on the "name" field.
  153. func NameIn(vs ...string) predicate.PaymentProviderInstance {
  154. return predicate.PaymentProviderInstance(sql.FieldIn(FieldName, vs...))
  155. }
  156. // NameNotIn applies the NotIn predicate on the "name" field.
  157. func NameNotIn(vs ...string) predicate.PaymentProviderInstance {
  158. return predicate.PaymentProviderInstance(sql.FieldNotIn(FieldName, vs...))
  159. }
  160. // NameGT applies the GT predicate on the "name" field.
  161. func NameGT(v string) predicate.PaymentProviderInstance {
  162. return predicate.PaymentProviderInstance(sql.FieldGT(FieldName, v))
  163. }
  164. // NameGTE applies the GTE predicate on the "name" field.
  165. func NameGTE(v string) predicate.PaymentProviderInstance {
  166. return predicate.PaymentProviderInstance(sql.FieldGTE(FieldName, v))
  167. }
  168. // NameLT applies the LT predicate on the "name" field.
  169. func NameLT(v string) predicate.PaymentProviderInstance {
  170. return predicate.PaymentProviderInstance(sql.FieldLT(FieldName, v))
  171. }
  172. // NameLTE applies the LTE predicate on the "name" field.
  173. func NameLTE(v string) predicate.PaymentProviderInstance {
  174. return predicate.PaymentProviderInstance(sql.FieldLTE(FieldName, v))
  175. }
  176. // NameContains applies the Contains predicate on the "name" field.
  177. func NameContains(v string) predicate.PaymentProviderInstance {
  178. return predicate.PaymentProviderInstance(sql.FieldContains(FieldName, v))
  179. }
  180. // NameHasPrefix applies the HasPrefix predicate on the "name" field.
  181. func NameHasPrefix(v string) predicate.PaymentProviderInstance {
  182. return predicate.PaymentProviderInstance(sql.FieldHasPrefix(FieldName, v))
  183. }
  184. // NameHasSuffix applies the HasSuffix predicate on the "name" field.
  185. func NameHasSuffix(v string) predicate.PaymentProviderInstance {
  186. return predicate.PaymentProviderInstance(sql.FieldHasSuffix(FieldName, v))
  187. }
  188. // NameEqualFold applies the EqualFold predicate on the "name" field.
  189. func NameEqualFold(v string) predicate.PaymentProviderInstance {
  190. return predicate.PaymentProviderInstance(sql.FieldEqualFold(FieldName, v))
  191. }
  192. // NameContainsFold applies the ContainsFold predicate on the "name" field.
  193. func NameContainsFold(v string) predicate.PaymentProviderInstance {
  194. return predicate.PaymentProviderInstance(sql.FieldContainsFold(FieldName, v))
  195. }
  196. // ConfigEQ applies the EQ predicate on the "config" field.
  197. func ConfigEQ(v string) predicate.PaymentProviderInstance {
  198. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldConfig, v))
  199. }
  200. // ConfigNEQ applies the NEQ predicate on the "config" field.
  201. func ConfigNEQ(v string) predicate.PaymentProviderInstance {
  202. return predicate.PaymentProviderInstance(sql.FieldNEQ(FieldConfig, v))
  203. }
  204. // ConfigIn applies the In predicate on the "config" field.
  205. func ConfigIn(vs ...string) predicate.PaymentProviderInstance {
  206. return predicate.PaymentProviderInstance(sql.FieldIn(FieldConfig, vs...))
  207. }
  208. // ConfigNotIn applies the NotIn predicate on the "config" field.
  209. func ConfigNotIn(vs ...string) predicate.PaymentProviderInstance {
  210. return predicate.PaymentProviderInstance(sql.FieldNotIn(FieldConfig, vs...))
  211. }
  212. // ConfigGT applies the GT predicate on the "config" field.
  213. func ConfigGT(v string) predicate.PaymentProviderInstance {
  214. return predicate.PaymentProviderInstance(sql.FieldGT(FieldConfig, v))
  215. }
  216. // ConfigGTE applies the GTE predicate on the "config" field.
  217. func ConfigGTE(v string) predicate.PaymentProviderInstance {
  218. return predicate.PaymentProviderInstance(sql.FieldGTE(FieldConfig, v))
  219. }
  220. // ConfigLT applies the LT predicate on the "config" field.
  221. func ConfigLT(v string) predicate.PaymentProviderInstance {
  222. return predicate.PaymentProviderInstance(sql.FieldLT(FieldConfig, v))
  223. }
  224. // ConfigLTE applies the LTE predicate on the "config" field.
  225. func ConfigLTE(v string) predicate.PaymentProviderInstance {
  226. return predicate.PaymentProviderInstance(sql.FieldLTE(FieldConfig, v))
  227. }
  228. // ConfigContains applies the Contains predicate on the "config" field.
  229. func ConfigContains(v string) predicate.PaymentProviderInstance {
  230. return predicate.PaymentProviderInstance(sql.FieldContains(FieldConfig, v))
  231. }
  232. // ConfigHasPrefix applies the HasPrefix predicate on the "config" field.
  233. func ConfigHasPrefix(v string) predicate.PaymentProviderInstance {
  234. return predicate.PaymentProviderInstance(sql.FieldHasPrefix(FieldConfig, v))
  235. }
  236. // ConfigHasSuffix applies the HasSuffix predicate on the "config" field.
  237. func ConfigHasSuffix(v string) predicate.PaymentProviderInstance {
  238. return predicate.PaymentProviderInstance(sql.FieldHasSuffix(FieldConfig, v))
  239. }
  240. // ConfigEqualFold applies the EqualFold predicate on the "config" field.
  241. func ConfigEqualFold(v string) predicate.PaymentProviderInstance {
  242. return predicate.PaymentProviderInstance(sql.FieldEqualFold(FieldConfig, v))
  243. }
  244. // ConfigContainsFold applies the ContainsFold predicate on the "config" field.
  245. func ConfigContainsFold(v string) predicate.PaymentProviderInstance {
  246. return predicate.PaymentProviderInstance(sql.FieldContainsFold(FieldConfig, v))
  247. }
  248. // SupportedTypesEQ applies the EQ predicate on the "supported_types" field.
  249. func SupportedTypesEQ(v string) predicate.PaymentProviderInstance {
  250. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldSupportedTypes, v))
  251. }
  252. // SupportedTypesNEQ applies the NEQ predicate on the "supported_types" field.
  253. func SupportedTypesNEQ(v string) predicate.PaymentProviderInstance {
  254. return predicate.PaymentProviderInstance(sql.FieldNEQ(FieldSupportedTypes, v))
  255. }
  256. // SupportedTypesIn applies the In predicate on the "supported_types" field.
  257. func SupportedTypesIn(vs ...string) predicate.PaymentProviderInstance {
  258. return predicate.PaymentProviderInstance(sql.FieldIn(FieldSupportedTypes, vs...))
  259. }
  260. // SupportedTypesNotIn applies the NotIn predicate on the "supported_types" field.
  261. func SupportedTypesNotIn(vs ...string) predicate.PaymentProviderInstance {
  262. return predicate.PaymentProviderInstance(sql.FieldNotIn(FieldSupportedTypes, vs...))
  263. }
  264. // SupportedTypesGT applies the GT predicate on the "supported_types" field.
  265. func SupportedTypesGT(v string) predicate.PaymentProviderInstance {
  266. return predicate.PaymentProviderInstance(sql.FieldGT(FieldSupportedTypes, v))
  267. }
  268. // SupportedTypesGTE applies the GTE predicate on the "supported_types" field.
  269. func SupportedTypesGTE(v string) predicate.PaymentProviderInstance {
  270. return predicate.PaymentProviderInstance(sql.FieldGTE(FieldSupportedTypes, v))
  271. }
  272. // SupportedTypesLT applies the LT predicate on the "supported_types" field.
  273. func SupportedTypesLT(v string) predicate.PaymentProviderInstance {
  274. return predicate.PaymentProviderInstance(sql.FieldLT(FieldSupportedTypes, v))
  275. }
  276. // SupportedTypesLTE applies the LTE predicate on the "supported_types" field.
  277. func SupportedTypesLTE(v string) predicate.PaymentProviderInstance {
  278. return predicate.PaymentProviderInstance(sql.FieldLTE(FieldSupportedTypes, v))
  279. }
  280. // SupportedTypesContains applies the Contains predicate on the "supported_types" field.
  281. func SupportedTypesContains(v string) predicate.PaymentProviderInstance {
  282. return predicate.PaymentProviderInstance(sql.FieldContains(FieldSupportedTypes, v))
  283. }
  284. // SupportedTypesHasPrefix applies the HasPrefix predicate on the "supported_types" field.
  285. func SupportedTypesHasPrefix(v string) predicate.PaymentProviderInstance {
  286. return predicate.PaymentProviderInstance(sql.FieldHasPrefix(FieldSupportedTypes, v))
  287. }
  288. // SupportedTypesHasSuffix applies the HasSuffix predicate on the "supported_types" field.
  289. func SupportedTypesHasSuffix(v string) predicate.PaymentProviderInstance {
  290. return predicate.PaymentProviderInstance(sql.FieldHasSuffix(FieldSupportedTypes, v))
  291. }
  292. // SupportedTypesEqualFold applies the EqualFold predicate on the "supported_types" field.
  293. func SupportedTypesEqualFold(v string) predicate.PaymentProviderInstance {
  294. return predicate.PaymentProviderInstance(sql.FieldEqualFold(FieldSupportedTypes, v))
  295. }
  296. // SupportedTypesContainsFold applies the ContainsFold predicate on the "supported_types" field.
  297. func SupportedTypesContainsFold(v string) predicate.PaymentProviderInstance {
  298. return predicate.PaymentProviderInstance(sql.FieldContainsFold(FieldSupportedTypes, v))
  299. }
  300. // EnabledEQ applies the EQ predicate on the "enabled" field.
  301. func EnabledEQ(v bool) predicate.PaymentProviderInstance {
  302. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldEnabled, v))
  303. }
  304. // EnabledNEQ applies the NEQ predicate on the "enabled" field.
  305. func EnabledNEQ(v bool) predicate.PaymentProviderInstance {
  306. return predicate.PaymentProviderInstance(sql.FieldNEQ(FieldEnabled, v))
  307. }
  308. // PaymentModeEQ applies the EQ predicate on the "payment_mode" field.
  309. func PaymentModeEQ(v string) predicate.PaymentProviderInstance {
  310. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldPaymentMode, v))
  311. }
  312. // PaymentModeNEQ applies the NEQ predicate on the "payment_mode" field.
  313. func PaymentModeNEQ(v string) predicate.PaymentProviderInstance {
  314. return predicate.PaymentProviderInstance(sql.FieldNEQ(FieldPaymentMode, v))
  315. }
  316. // PaymentModeIn applies the In predicate on the "payment_mode" field.
  317. func PaymentModeIn(vs ...string) predicate.PaymentProviderInstance {
  318. return predicate.PaymentProviderInstance(sql.FieldIn(FieldPaymentMode, vs...))
  319. }
  320. // PaymentModeNotIn applies the NotIn predicate on the "payment_mode" field.
  321. func PaymentModeNotIn(vs ...string) predicate.PaymentProviderInstance {
  322. return predicate.PaymentProviderInstance(sql.FieldNotIn(FieldPaymentMode, vs...))
  323. }
  324. // PaymentModeGT applies the GT predicate on the "payment_mode" field.
  325. func PaymentModeGT(v string) predicate.PaymentProviderInstance {
  326. return predicate.PaymentProviderInstance(sql.FieldGT(FieldPaymentMode, v))
  327. }
  328. // PaymentModeGTE applies the GTE predicate on the "payment_mode" field.
  329. func PaymentModeGTE(v string) predicate.PaymentProviderInstance {
  330. return predicate.PaymentProviderInstance(sql.FieldGTE(FieldPaymentMode, v))
  331. }
  332. // PaymentModeLT applies the LT predicate on the "payment_mode" field.
  333. func PaymentModeLT(v string) predicate.PaymentProviderInstance {
  334. return predicate.PaymentProviderInstance(sql.FieldLT(FieldPaymentMode, v))
  335. }
  336. // PaymentModeLTE applies the LTE predicate on the "payment_mode" field.
  337. func PaymentModeLTE(v string) predicate.PaymentProviderInstance {
  338. return predicate.PaymentProviderInstance(sql.FieldLTE(FieldPaymentMode, v))
  339. }
  340. // PaymentModeContains applies the Contains predicate on the "payment_mode" field.
  341. func PaymentModeContains(v string) predicate.PaymentProviderInstance {
  342. return predicate.PaymentProviderInstance(sql.FieldContains(FieldPaymentMode, v))
  343. }
  344. // PaymentModeHasPrefix applies the HasPrefix predicate on the "payment_mode" field.
  345. func PaymentModeHasPrefix(v string) predicate.PaymentProviderInstance {
  346. return predicate.PaymentProviderInstance(sql.FieldHasPrefix(FieldPaymentMode, v))
  347. }
  348. // PaymentModeHasSuffix applies the HasSuffix predicate on the "payment_mode" field.
  349. func PaymentModeHasSuffix(v string) predicate.PaymentProviderInstance {
  350. return predicate.PaymentProviderInstance(sql.FieldHasSuffix(FieldPaymentMode, v))
  351. }
  352. // PaymentModeEqualFold applies the EqualFold predicate on the "payment_mode" field.
  353. func PaymentModeEqualFold(v string) predicate.PaymentProviderInstance {
  354. return predicate.PaymentProviderInstance(sql.FieldEqualFold(FieldPaymentMode, v))
  355. }
  356. // PaymentModeContainsFold applies the ContainsFold predicate on the "payment_mode" field.
  357. func PaymentModeContainsFold(v string) predicate.PaymentProviderInstance {
  358. return predicate.PaymentProviderInstance(sql.FieldContainsFold(FieldPaymentMode, v))
  359. }
  360. // SortOrderEQ applies the EQ predicate on the "sort_order" field.
  361. func SortOrderEQ(v int) predicate.PaymentProviderInstance {
  362. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldSortOrder, v))
  363. }
  364. // SortOrderNEQ applies the NEQ predicate on the "sort_order" field.
  365. func SortOrderNEQ(v int) predicate.PaymentProviderInstance {
  366. return predicate.PaymentProviderInstance(sql.FieldNEQ(FieldSortOrder, v))
  367. }
  368. // SortOrderIn applies the In predicate on the "sort_order" field.
  369. func SortOrderIn(vs ...int) predicate.PaymentProviderInstance {
  370. return predicate.PaymentProviderInstance(sql.FieldIn(FieldSortOrder, vs...))
  371. }
  372. // SortOrderNotIn applies the NotIn predicate on the "sort_order" field.
  373. func SortOrderNotIn(vs ...int) predicate.PaymentProviderInstance {
  374. return predicate.PaymentProviderInstance(sql.FieldNotIn(FieldSortOrder, vs...))
  375. }
  376. // SortOrderGT applies the GT predicate on the "sort_order" field.
  377. func SortOrderGT(v int) predicate.PaymentProviderInstance {
  378. return predicate.PaymentProviderInstance(sql.FieldGT(FieldSortOrder, v))
  379. }
  380. // SortOrderGTE applies the GTE predicate on the "sort_order" field.
  381. func SortOrderGTE(v int) predicate.PaymentProviderInstance {
  382. return predicate.PaymentProviderInstance(sql.FieldGTE(FieldSortOrder, v))
  383. }
  384. // SortOrderLT applies the LT predicate on the "sort_order" field.
  385. func SortOrderLT(v int) predicate.PaymentProviderInstance {
  386. return predicate.PaymentProviderInstance(sql.FieldLT(FieldSortOrder, v))
  387. }
  388. // SortOrderLTE applies the LTE predicate on the "sort_order" field.
  389. func SortOrderLTE(v int) predicate.PaymentProviderInstance {
  390. return predicate.PaymentProviderInstance(sql.FieldLTE(FieldSortOrder, v))
  391. }
  392. // LimitsEQ applies the EQ predicate on the "limits" field.
  393. func LimitsEQ(v string) predicate.PaymentProviderInstance {
  394. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldLimits, v))
  395. }
  396. // LimitsNEQ applies the NEQ predicate on the "limits" field.
  397. func LimitsNEQ(v string) predicate.PaymentProviderInstance {
  398. return predicate.PaymentProviderInstance(sql.FieldNEQ(FieldLimits, v))
  399. }
  400. // LimitsIn applies the In predicate on the "limits" field.
  401. func LimitsIn(vs ...string) predicate.PaymentProviderInstance {
  402. return predicate.PaymentProviderInstance(sql.FieldIn(FieldLimits, vs...))
  403. }
  404. // LimitsNotIn applies the NotIn predicate on the "limits" field.
  405. func LimitsNotIn(vs ...string) predicate.PaymentProviderInstance {
  406. return predicate.PaymentProviderInstance(sql.FieldNotIn(FieldLimits, vs...))
  407. }
  408. // LimitsGT applies the GT predicate on the "limits" field.
  409. func LimitsGT(v string) predicate.PaymentProviderInstance {
  410. return predicate.PaymentProviderInstance(sql.FieldGT(FieldLimits, v))
  411. }
  412. // LimitsGTE applies the GTE predicate on the "limits" field.
  413. func LimitsGTE(v string) predicate.PaymentProviderInstance {
  414. return predicate.PaymentProviderInstance(sql.FieldGTE(FieldLimits, v))
  415. }
  416. // LimitsLT applies the LT predicate on the "limits" field.
  417. func LimitsLT(v string) predicate.PaymentProviderInstance {
  418. return predicate.PaymentProviderInstance(sql.FieldLT(FieldLimits, v))
  419. }
  420. // LimitsLTE applies the LTE predicate on the "limits" field.
  421. func LimitsLTE(v string) predicate.PaymentProviderInstance {
  422. return predicate.PaymentProviderInstance(sql.FieldLTE(FieldLimits, v))
  423. }
  424. // LimitsContains applies the Contains predicate on the "limits" field.
  425. func LimitsContains(v string) predicate.PaymentProviderInstance {
  426. return predicate.PaymentProviderInstance(sql.FieldContains(FieldLimits, v))
  427. }
  428. // LimitsHasPrefix applies the HasPrefix predicate on the "limits" field.
  429. func LimitsHasPrefix(v string) predicate.PaymentProviderInstance {
  430. return predicate.PaymentProviderInstance(sql.FieldHasPrefix(FieldLimits, v))
  431. }
  432. // LimitsHasSuffix applies the HasSuffix predicate on the "limits" field.
  433. func LimitsHasSuffix(v string) predicate.PaymentProviderInstance {
  434. return predicate.PaymentProviderInstance(sql.FieldHasSuffix(FieldLimits, v))
  435. }
  436. // LimitsEqualFold applies the EqualFold predicate on the "limits" field.
  437. func LimitsEqualFold(v string) predicate.PaymentProviderInstance {
  438. return predicate.PaymentProviderInstance(sql.FieldEqualFold(FieldLimits, v))
  439. }
  440. // LimitsContainsFold applies the ContainsFold predicate on the "limits" field.
  441. func LimitsContainsFold(v string) predicate.PaymentProviderInstance {
  442. return predicate.PaymentProviderInstance(sql.FieldContainsFold(FieldLimits, v))
  443. }
  444. // RefundEnabledEQ applies the EQ predicate on the "refund_enabled" field.
  445. func RefundEnabledEQ(v bool) predicate.PaymentProviderInstance {
  446. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldRefundEnabled, v))
  447. }
  448. // RefundEnabledNEQ applies the NEQ predicate on the "refund_enabled" field.
  449. func RefundEnabledNEQ(v bool) predicate.PaymentProviderInstance {
  450. return predicate.PaymentProviderInstance(sql.FieldNEQ(FieldRefundEnabled, v))
  451. }
  452. // AllowUserRefundEQ applies the EQ predicate on the "allow_user_refund" field.
  453. func AllowUserRefundEQ(v bool) predicate.PaymentProviderInstance {
  454. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldAllowUserRefund, v))
  455. }
  456. // AllowUserRefundNEQ applies the NEQ predicate on the "allow_user_refund" field.
  457. func AllowUserRefundNEQ(v bool) predicate.PaymentProviderInstance {
  458. return predicate.PaymentProviderInstance(sql.FieldNEQ(FieldAllowUserRefund, v))
  459. }
  460. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  461. func CreatedAtEQ(v time.Time) predicate.PaymentProviderInstance {
  462. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldCreatedAt, v))
  463. }
  464. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  465. func CreatedAtNEQ(v time.Time) predicate.PaymentProviderInstance {
  466. return predicate.PaymentProviderInstance(sql.FieldNEQ(FieldCreatedAt, v))
  467. }
  468. // CreatedAtIn applies the In predicate on the "created_at" field.
  469. func CreatedAtIn(vs ...time.Time) predicate.PaymentProviderInstance {
  470. return predicate.PaymentProviderInstance(sql.FieldIn(FieldCreatedAt, vs...))
  471. }
  472. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  473. func CreatedAtNotIn(vs ...time.Time) predicate.PaymentProviderInstance {
  474. return predicate.PaymentProviderInstance(sql.FieldNotIn(FieldCreatedAt, vs...))
  475. }
  476. // CreatedAtGT applies the GT predicate on the "created_at" field.
  477. func CreatedAtGT(v time.Time) predicate.PaymentProviderInstance {
  478. return predicate.PaymentProviderInstance(sql.FieldGT(FieldCreatedAt, v))
  479. }
  480. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  481. func CreatedAtGTE(v time.Time) predicate.PaymentProviderInstance {
  482. return predicate.PaymentProviderInstance(sql.FieldGTE(FieldCreatedAt, v))
  483. }
  484. // CreatedAtLT applies the LT predicate on the "created_at" field.
  485. func CreatedAtLT(v time.Time) predicate.PaymentProviderInstance {
  486. return predicate.PaymentProviderInstance(sql.FieldLT(FieldCreatedAt, v))
  487. }
  488. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  489. func CreatedAtLTE(v time.Time) predicate.PaymentProviderInstance {
  490. return predicate.PaymentProviderInstance(sql.FieldLTE(FieldCreatedAt, v))
  491. }
  492. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  493. func UpdatedAtEQ(v time.Time) predicate.PaymentProviderInstance {
  494. return predicate.PaymentProviderInstance(sql.FieldEQ(FieldUpdatedAt, v))
  495. }
  496. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  497. func UpdatedAtNEQ(v time.Time) predicate.PaymentProviderInstance {
  498. return predicate.PaymentProviderInstance(sql.FieldNEQ(FieldUpdatedAt, v))
  499. }
  500. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  501. func UpdatedAtIn(vs ...time.Time) predicate.PaymentProviderInstance {
  502. return predicate.PaymentProviderInstance(sql.FieldIn(FieldUpdatedAt, vs...))
  503. }
  504. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  505. func UpdatedAtNotIn(vs ...time.Time) predicate.PaymentProviderInstance {
  506. return predicate.PaymentProviderInstance(sql.FieldNotIn(FieldUpdatedAt, vs...))
  507. }
  508. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  509. func UpdatedAtGT(v time.Time) predicate.PaymentProviderInstance {
  510. return predicate.PaymentProviderInstance(sql.FieldGT(FieldUpdatedAt, v))
  511. }
  512. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  513. func UpdatedAtGTE(v time.Time) predicate.PaymentProviderInstance {
  514. return predicate.PaymentProviderInstance(sql.FieldGTE(FieldUpdatedAt, v))
  515. }
  516. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  517. func UpdatedAtLT(v time.Time) predicate.PaymentProviderInstance {
  518. return predicate.PaymentProviderInstance(sql.FieldLT(FieldUpdatedAt, v))
  519. }
  520. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  521. func UpdatedAtLTE(v time.Time) predicate.PaymentProviderInstance {
  522. return predicate.PaymentProviderInstance(sql.FieldLTE(FieldUpdatedAt, v))
  523. }
  524. // And groups predicates with the AND operator between them.
  525. func And(predicates ...predicate.PaymentProviderInstance) predicate.PaymentProviderInstance {
  526. return predicate.PaymentProviderInstance(sql.AndPredicates(predicates...))
  527. }
  528. // Or groups predicates with the OR operator between them.
  529. func Or(predicates ...predicate.PaymentProviderInstance) predicate.PaymentProviderInstance {
  530. return predicate.PaymentProviderInstance(sql.OrPredicates(predicates...))
  531. }
  532. // Not applies the not operator on the given predicate.
  533. func Not(p predicate.PaymentProviderInstance) predicate.PaymentProviderInstance {
  534. return predicate.PaymentProviderInstance(sql.NotPredicates(p))
  535. }