chargebee 3.32.0 → 3.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/CHANGELOG.md +196 -0
  2. package/cjs/environment.js +1 -1
  3. package/cjs/resources/api_endpoints.js +323 -2
  4. package/cjs/resources/webhook/eventType.js +14 -0
  5. package/cjs/schema/business_rule.schema.js +54 -0
  6. package/cjs/schema/business_ruleset.schema.js +68 -0
  7. package/cjs/schema/card.schema.js +3 -1
  8. package/cjs/schema/credit_note.schema.js +10 -4
  9. package/cjs/schema/customer.schema.js +81 -10
  10. package/cjs/schema/dispute.schema.js +104 -0
  11. package/cjs/schema/einvoice.schema.js +37 -0
  12. package/cjs/schema/email_log.schema.js +28 -0
  13. package/cjs/schema/estimate.schema.js +38 -9
  14. package/cjs/schema/event.schema.js +56 -0
  15. package/cjs/schema/export.schema.js +68 -12
  16. package/cjs/schema/feature.schema.js +2 -2
  17. package/cjs/schema/gift.schema.js +27 -1
  18. package/cjs/schema/hosted_page.schema.js +26 -6
  19. package/cjs/schema/index.js +6 -0
  20. package/cjs/schema/invoice.schema.js +74 -10
  21. package/cjs/schema/ledger_operation.schema.js +4 -0
  22. package/cjs/schema/meter.schema.js +1 -1
  23. package/cjs/schema/metered_feature.schema.js +1 -1
  24. package/cjs/schema/payment_intent.schema.js +27 -0
  25. package/cjs/schema/payment_schedule.schema.js +36 -0
  26. package/cjs/schema/payment_schedule_scheme.schema.js +23 -2
  27. package/cjs/schema/payment_source.schema.js +103 -1
  28. package/cjs/schema/pricing_page_session.schema.js +1 -0
  29. package/cjs/schema/promotional_grant.schema.js +2 -0
  30. package/cjs/schema/purchase.schema.js +14 -1
  31. package/cjs/schema/quote.schema.js +2 -2
  32. package/cjs/schema/ramp.schema.js +8 -0
  33. package/cjs/schema/subscription.schema.js +179 -16
  34. package/cjs/schema/transaction.schema.js +60 -2
  35. package/cjs/schema/webhook_endpoint.schema.js +28 -0
  36. package/esm/environment.js +1 -1
  37. package/esm/resources/api_endpoints.js +323 -2
  38. package/esm/resources/webhook/eventType.js +14 -0
  39. package/esm/schema/business_rule.schema.js +51 -0
  40. package/esm/schema/business_ruleset.schema.js +65 -0
  41. package/esm/schema/card.schema.js +3 -1
  42. package/esm/schema/credit_note.schema.js +10 -4
  43. package/esm/schema/customer.schema.js +81 -10
  44. package/esm/schema/dispute.schema.js +101 -0
  45. package/esm/schema/einvoice.schema.js +34 -0
  46. package/esm/schema/email_log.schema.js +25 -0
  47. package/esm/schema/estimate.schema.js +38 -9
  48. package/esm/schema/event.schema.js +56 -0
  49. package/esm/schema/export.schema.js +68 -12
  50. package/esm/schema/feature.schema.js +2 -2
  51. package/esm/schema/gift.schema.js +27 -1
  52. package/esm/schema/hosted_page.schema.js +26 -6
  53. package/esm/schema/index.js +6 -0
  54. package/esm/schema/invoice.schema.js +74 -10
  55. package/esm/schema/ledger_operation.schema.js +4 -0
  56. package/esm/schema/meter.schema.js +1 -1
  57. package/esm/schema/metered_feature.schema.js +1 -1
  58. package/esm/schema/omnichannel_subscription.schema.js +1 -1
  59. package/esm/schema/payment_intent.schema.js +27 -0
  60. package/esm/schema/payment_schedule.schema.js +33 -0
  61. package/esm/schema/payment_schedule_scheme.schema.js +22 -1
  62. package/esm/schema/payment_source.schema.js +103 -1
  63. package/esm/schema/pricing_page_session.schema.js +1 -0
  64. package/esm/schema/promotional_grant.schema.js +2 -0
  65. package/esm/schema/purchase.schema.js +14 -1
  66. package/esm/schema/quote.schema.js +2 -2
  67. package/esm/schema/ramp.schema.js +8 -0
  68. package/esm/schema/subscription.schema.js +179 -16
  69. package/esm/schema/subscription_entitlement.schema.js +2 -2
  70. package/esm/schema/transaction.schema.js +60 -2
  71. package/esm/schema/webhook_endpoint.schema.js +28 -0
  72. package/package.json +1 -1
  73. package/types/core.d.ts +86 -8
  74. package/types/index.d.ts +15 -0
  75. package/types/resources/AppliedBusinessRule.d.ts +15 -0
  76. package/types/resources/AppliedRule.d.ts +14 -0
  77. package/types/resources/ApplyRule.d.ts +28 -0
  78. package/types/resources/BusinessRule.d.ts +161 -0
  79. package/types/resources/BusinessRuleset.d.ts +165 -0
  80. package/types/resources/BusinessRulesetRule.d.ts +9 -0
  81. package/types/resources/Card.d.ts +1 -1
  82. package/types/resources/Content.d.ts +9 -0
  83. package/types/resources/Coupon.d.ts +2 -2
  84. package/types/resources/CreditNote.d.ts +12 -0
  85. package/types/resources/CustomDataSchema.d.ts +15 -0
  86. package/types/resources/Customer.d.ts +42 -5
  87. package/types/resources/Dispute.d.ts +65 -0
  88. package/types/resources/Einvoice.d.ts +64 -1
  89. package/types/resources/EmailLog.d.ts +45 -0
  90. package/types/resources/Estimate.d.ts +34 -5
  91. package/types/resources/Event.d.ts +15 -0
  92. package/types/resources/Gift.d.ts +29 -3
  93. package/types/resources/GrantBlock.d.ts +26 -7
  94. package/types/resources/HostedPage.d.ts +14 -3
  95. package/types/resources/Invoice.d.ts +42 -4
  96. package/types/resources/LedgerEntry.d.ts +4 -4
  97. package/types/resources/LedgerOperation.d.ts +15 -8
  98. package/types/resources/OmnichannelSubscriptionItem.d.ts +5 -1
  99. package/types/resources/PaymentIntent.d.ts +72 -5
  100. package/types/resources/PaymentSchedule.d.ts +38 -1
  101. package/types/resources/PaymentScheduleEstimate.d.ts +1 -0
  102. package/types/resources/PaymentScheduleScheme.d.ts +17 -1
  103. package/types/resources/PaymentSource.d.ts +31 -2
  104. package/types/resources/PricingPageSession.d.ts +1 -0
  105. package/types/resources/PromotionalGrant.d.ts +2 -0
  106. package/types/resources/Purchase.d.ts +14 -1
  107. package/types/resources/Quote.d.ts +2 -2
  108. package/types/resources/QuotedSubscription.d.ts +3 -2
  109. package/types/resources/Ramp.d.ts +12 -0
  110. package/types/resources/Subscription.d.ts +116 -17
  111. package/types/resources/ThirdPartyPaymentMethod.d.ts +1 -0
  112. package/types/resources/Transaction.d.ts +5 -0
  113. package/types/resources/WebhookEvent.d.ts +70 -0
@@ -387,10 +387,10 @@ const RevenueRecognitionExportAutoCollectionSchema = zod_1.z.object({
387
387
  not_in: zod_1.z.enum(['on', 'off']).optional(),
388
388
  });
389
389
  const RevenueRecognitionExportTaxabilitySchema = zod_1.z.object({
390
- is: zod_1.z.enum(['taxable', 'exempt']).optional(),
391
- is_not: zod_1.z.enum(['taxable', 'exempt']).optional(),
392
- in: zod_1.z.enum(['taxable', 'exempt']).optional(),
393
- not_in: zod_1.z.enum(['taxable', 'exempt']).optional(),
390
+ is: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
391
+ is_not: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
392
+ in: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
393
+ not_in: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
394
394
  });
395
395
  const RevenueRecognitionExportCustomerItemSchema = zod_1.z.object({
396
396
  id: RevenueRecognitionExportIdSchema.optional(),
@@ -834,10 +834,10 @@ const DeferredRevenueExportAutoCollectionSchema = zod_1.z.object({
834
834
  not_in: zod_1.z.enum(['on', 'off']).optional(),
835
835
  });
836
836
  const DeferredRevenueExportTaxabilitySchema = zod_1.z.object({
837
- is: zod_1.z.enum(['taxable', 'exempt']).optional(),
838
- is_not: zod_1.z.enum(['taxable', 'exempt']).optional(),
839
- in: zod_1.z.enum(['taxable', 'exempt']).optional(),
840
- not_in: zod_1.z.enum(['taxable', 'exempt']).optional(),
837
+ is: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
838
+ is_not: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
839
+ in: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
840
+ not_in: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
841
841
  });
842
842
  const DeferredRevenueExportCustomerItemSchema = zod_1.z.object({
843
843
  id: DeferredRevenueExportIdSchema.optional(),
@@ -1253,10 +1253,10 @@ const CustomersExportAutoCollectionSchema = zod_1.z.object({
1253
1253
  not_in: zod_1.z.enum(['on', 'off']).optional(),
1254
1254
  });
1255
1255
  const CustomersExportTaxabilitySchema = zod_1.z.object({
1256
- is: zod_1.z.enum(['taxable', 'exempt']).optional(),
1257
- is_not: zod_1.z.enum(['taxable', 'exempt']).optional(),
1258
- in: zod_1.z.enum(['taxable', 'exempt']).optional(),
1259
- not_in: zod_1.z.enum(['taxable', 'exempt']).optional(),
1256
+ is: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
1257
+ is_not: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
1258
+ in: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
1259
+ not_in: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
1260
1260
  });
1261
1261
  const CustomersExportCreatedAtSchema = zod_1.z.object({
1262
1262
  after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
@@ -2139,6 +2139,19 @@ const TransactionsExportPaymentMethodSchema = zod_1.z.object({
2139
2139
  'touch_n_go',
2140
2140
  'tamara',
2141
2141
  'qpay',
2142
+ 'ovo',
2143
+ 'momo',
2144
+ 'mercado_pago',
2145
+ 'nequi',
2146
+ 'nupay',
2147
+ 'picpay',
2148
+ 'thai_qr',
2149
+ 'blik',
2150
+ 'fpx',
2151
+ 'wero',
2152
+ 'p24',
2153
+ 'affirm_pay',
2154
+ 'rakuten_pay',
2142
2155
  ])
2143
2156
  .optional(),
2144
2157
  is_not: zod_1.z
@@ -2207,6 +2220,19 @@ const TransactionsExportPaymentMethodSchema = zod_1.z.object({
2207
2220
  'touch_n_go',
2208
2221
  'tamara',
2209
2222
  'qpay',
2223
+ 'ovo',
2224
+ 'momo',
2225
+ 'mercado_pago',
2226
+ 'nequi',
2227
+ 'nupay',
2228
+ 'picpay',
2229
+ 'thai_qr',
2230
+ 'blik',
2231
+ 'fpx',
2232
+ 'wero',
2233
+ 'p24',
2234
+ 'affirm_pay',
2235
+ 'rakuten_pay',
2210
2236
  ])
2211
2237
  .optional(),
2212
2238
  in: zod_1.z
@@ -2275,6 +2301,19 @@ const TransactionsExportPaymentMethodSchema = zod_1.z.object({
2275
2301
  'touch_n_go',
2276
2302
  'tamara',
2277
2303
  'qpay',
2304
+ 'ovo',
2305
+ 'momo',
2306
+ 'mercado_pago',
2307
+ 'nequi',
2308
+ 'nupay',
2309
+ 'picpay',
2310
+ 'thai_qr',
2311
+ 'blik',
2312
+ 'fpx',
2313
+ 'wero',
2314
+ 'p24',
2315
+ 'affirm_pay',
2316
+ 'rakuten_pay',
2278
2317
  ])
2279
2318
  .optional(),
2280
2319
  not_in: zod_1.z
@@ -2343,6 +2382,19 @@ const TransactionsExportPaymentMethodSchema = zod_1.z.object({
2343
2382
  'touch_n_go',
2344
2383
  'tamara',
2345
2384
  'qpay',
2385
+ 'ovo',
2386
+ 'momo',
2387
+ 'mercado_pago',
2388
+ 'nequi',
2389
+ 'nupay',
2390
+ 'picpay',
2391
+ 'thai_qr',
2392
+ 'blik',
2393
+ 'fpx',
2394
+ 'wero',
2395
+ 'p24',
2396
+ 'affirm_pay',
2397
+ 'rakuten_pay',
2346
2398
  ])
2347
2399
  .optional(),
2348
2400
  });
@@ -2409,6 +2461,7 @@ const TransactionsExportGatewaySchema = zod_1.z.object({
2409
2461
  'tempus',
2410
2462
  'moyasar',
2411
2463
  'payway',
2464
+ 'payu',
2412
2465
  'not_applicable',
2413
2466
  ])
2414
2467
  .optional(),
@@ -2474,6 +2527,7 @@ const TransactionsExportGatewaySchema = zod_1.z.object({
2474
2527
  'tempus',
2475
2528
  'moyasar',
2476
2529
  'payway',
2530
+ 'payu',
2477
2531
  'not_applicable',
2478
2532
  ])
2479
2533
  .optional(),
@@ -2539,6 +2593,7 @@ const TransactionsExportGatewaySchema = zod_1.z.object({
2539
2593
  'tempus',
2540
2594
  'moyasar',
2541
2595
  'payway',
2596
+ 'payu',
2542
2597
  'not_applicable',
2543
2598
  ])
2544
2599
  .optional(),
@@ -2604,6 +2659,7 @@ const TransactionsExportGatewaySchema = zod_1.z.object({
2604
2659
  'tempus',
2605
2660
  'moyasar',
2606
2661
  'payway',
2662
+ 'payu',
2607
2663
  'not_applicable',
2608
2664
  ])
2609
2665
  .optional(),
@@ -47,7 +47,7 @@ const ListFeatureBodySchema = zod_1.z.looseObject({
47
47
  exports.ListFeatureBodySchema = ListFeatureBodySchema;
48
48
  //Feature.create
49
49
  const CreateFeatureLevelsSchema = zod_1.z.object({
50
- name: zod_1.z.array(zod_1.z.string().max(50).optional()).optional(),
50
+ name: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
51
51
  value: zod_1.z.array(zod_1.z.string().max(50).optional()).optional(),
52
52
  is_unlimited: zod_1.z.array(zod_1.z.boolean().optional()).optional(),
53
53
  level: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
@@ -63,7 +63,7 @@ const CreateFeatureBodySchema = zod_1.z.looseObject({
63
63
  exports.CreateFeatureBodySchema = CreateFeatureBodySchema;
64
64
  //Feature.update
65
65
  const UpdateFeatureLevelsSchema = zod_1.z.object({
66
- name: zod_1.z.array(zod_1.z.string().max(50).optional()).optional(),
66
+ name: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
67
67
  value: zod_1.z.array(zod_1.z.string().max(50).optional()).optional(),
68
68
  is_unlimited: zod_1.z.array(zod_1.z.boolean().optional()).optional(),
69
69
  level: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
@@ -77,6 +77,19 @@ const CreateGiftPaymentIntentSchema = zod_1.z.object({
77
77
  'touch_n_go',
78
78
  'tamara',
79
79
  'qpay',
80
+ 'ovo',
81
+ 'momo',
82
+ 'mercado_pago',
83
+ 'nequi',
84
+ 'nupay',
85
+ 'picpay',
86
+ 'thai_qr',
87
+ 'blik',
88
+ 'fpx',
89
+ 'wero',
90
+ 'p24',
91
+ 'affirm_pay',
92
+ 'rakuten_pay',
80
93
  ])
81
94
  .optional(),
82
95
  reference_id: zod_1.z.string().max(65000).optional(),
@@ -102,7 +115,7 @@ const CreateGiftShippingAddressSchema = zod_1.z.object({
102
115
  .optional(),
103
116
  });
104
117
  const CreateGiftSubscriptionSchema = zod_1.z.looseObject({
105
- plan_id: zod_1.z.string().max(100),
118
+ plan_id: zod_1.z.string().max(100).optional(),
106
119
  plan_quantity: zod_1.z.number().int().min(1).optional(),
107
120
  plan_quantity_in_decimal: zod_1.z.string().max(33).optional(),
108
121
  });
@@ -198,6 +211,19 @@ const CreateForItemsGiftPaymentIntentSchema = zod_1.z.object({
198
211
  'touch_n_go',
199
212
  'tamara',
200
213
  'qpay',
214
+ 'ovo',
215
+ 'momo',
216
+ 'mercado_pago',
217
+ 'nequi',
218
+ 'nupay',
219
+ 'picpay',
220
+ 'thai_qr',
221
+ 'blik',
222
+ 'fpx',
223
+ 'wero',
224
+ 'p24',
225
+ 'affirm_pay',
226
+ 'rakuten_pay',
201
227
  ])
202
228
  .optional(),
203
229
  reference_id: zod_1.z.string().max(65000).optional(),
@@ -8,7 +8,7 @@ const zod_1 = require("zod");
8
8
  //HostedPage.checkoutNew
9
9
  const CheckoutNewHostedPageSubscriptionSchema = zod_1.z.looseObject({
10
10
  id: zod_1.z.string().max(50).optional(),
11
- plan_id: zod_1.z.string().max(100),
11
+ plan_id: zod_1.z.string().max(100).optional(),
12
12
  plan_quantity: zod_1.z.number().int().min(1).optional(),
13
13
  plan_quantity_in_decimal: zod_1.z.string().max(33).optional(),
14
14
  plan_unit_price: zod_1.z.number().int().min(0).optional(),
@@ -52,7 +52,7 @@ const CheckoutNewHostedPageCustomerSchema = zod_1.z.looseObject({
52
52
  company: zod_1.z.string().max(250).optional(),
53
53
  phone: zod_1.z.string().max(50).optional(),
54
54
  locale: zod_1.z.string().max(50).optional(),
55
- taxability: zod_1.z.enum(['taxable', 'exempt']).optional(),
55
+ taxability: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
56
56
  vat_number: zod_1.z.string().max(20).optional(),
57
57
  vat_number_prefix: zod_1.z.string().max(10).optional(),
58
58
  consolidated_invoicing: zod_1.z.boolean().optional(),
@@ -119,6 +119,7 @@ const CheckoutNewHostedPageCardSchema = zod_1.z.object({
119
119
  'tempus',
120
120
  'moyasar',
121
121
  'payway',
122
+ 'payu',
122
123
  ])
123
124
  .optional(),
124
125
  gateway_account_id: zod_1.z.string().max(50).optional(),
@@ -227,7 +228,7 @@ const CheckoutOneTimeHostedPageCustomerSchema = zod_1.z.looseObject({
227
228
  company: zod_1.z.string().max(250).optional(),
228
229
  phone: zod_1.z.string().max(50).optional(),
229
230
  locale: zod_1.z.string().max(50).optional(),
230
- taxability: zod_1.z.enum(['taxable', 'exempt']).optional(),
231
+ taxability: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
231
232
  vat_number: zod_1.z.string().max(20).optional(),
232
233
  vat_number_prefix: zod_1.z.string().max(10).optional(),
233
234
  consolidated_invoicing: zod_1.z.boolean().optional(),
@@ -297,6 +298,7 @@ const CheckoutOneTimeHostedPageCardSchema = zod_1.z.object({
297
298
  'tempus',
298
299
  'moyasar',
299
300
  'payway',
301
+ 'payu',
300
302
  ])
301
303
  .optional(),
302
304
  gateway_account_id: zod_1.z.string().max(50).optional(),
@@ -391,7 +393,7 @@ const CheckoutOneTimeForItemsHostedPageCustomerSchema = zod_1.z.looseObject({
391
393
  company: zod_1.z.string().max(250).optional(),
392
394
  phone: zod_1.z.string().max(50).optional(),
393
395
  locale: zod_1.z.string().max(50).optional(),
394
- taxability: zod_1.z.enum(['taxable', 'exempt']).optional(),
396
+ taxability: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
395
397
  vat_number: zod_1.z.string().max(20).optional(),
396
398
  vat_number_prefix: zod_1.z.string().max(10).optional(),
397
399
  einvoicing_method: zod_1.z.enum(['automatic', 'manual', 'site_default']).optional(),
@@ -465,6 +467,7 @@ const CheckoutOneTimeForItemsHostedPageCardSchema = zod_1.z.object({
465
467
  'tempus',
466
468
  'moyasar',
467
469
  'payway',
470
+ 'payu',
468
471
  ])
469
472
  .optional(),
470
473
  gateway_account_id: zod_1.z.string().max(50).optional(),
@@ -562,6 +565,7 @@ const CheckoutOneTimeForItemsHostedPageEntityIdentifiersSchema = zod_1.z.object(
562
565
  });
563
566
  const CheckoutOneTimeForItemsHostedPageBodySchema = zod_1.z.looseObject({
564
567
  business_entity_id: zod_1.z.string().max(50).optional(),
568
+ brand_id: zod_1.z.string().max(50).optional(),
565
569
  layout: zod_1.z.enum(['in_app', 'full_page']).optional(),
566
570
  invoice_note: zod_1.z.string().max(2000).optional(),
567
571
  coupon: zod_1.z.string().max(100).optional(),
@@ -624,7 +628,7 @@ const CheckoutNewForItemsHostedPageCustomerSchema = zod_1.z.looseObject({
624
628
  company: zod_1.z.string().max(250).optional(),
625
629
  phone: zod_1.z.string().max(50).optional(),
626
630
  locale: zod_1.z.string().max(50).optional(),
627
- taxability: zod_1.z.enum(['taxable', 'exempt']).optional(),
631
+ taxability: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
628
632
  vat_number: zod_1.z.string().max(20).optional(),
629
633
  vat_number_prefix: zod_1.z.string().max(10).optional(),
630
634
  is_einvoice_enabled: zod_1.z.boolean().optional(),
@@ -694,6 +698,7 @@ const CheckoutNewForItemsHostedPageCardSchema = zod_1.z.object({
694
698
  'tempus',
695
699
  'moyasar',
696
700
  'payway',
701
+ 'payu',
697
702
  ])
698
703
  .optional(),
699
704
  gateway_account_id: zod_1.z.string().max(50).optional(),
@@ -806,6 +811,7 @@ const CheckoutNewForItemsHostedPageEntityIdentifiersSchema = zod_1.z.object({
806
811
  const CheckoutNewForItemsHostedPageBodySchema = zod_1.z.looseObject({
807
812
  layout: zod_1.z.enum(['in_app', 'full_page']).optional(),
808
813
  business_entity_id: zod_1.z.string().max(50).optional(),
814
+ brand_id: zod_1.z.string().max(50).optional(),
809
815
  billing_cycles: zod_1.z.number().int().min(0).optional(),
810
816
  mandatory_items_to_remove: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
811
817
  terms_to_charge: zod_1.z.number().int().min(1).optional(),
@@ -931,6 +937,7 @@ const CheckoutExistingHostedPageCardSchema = zod_1.z.object({
931
937
  'tempus',
932
938
  'moyasar',
933
939
  'payway',
940
+ 'payu',
934
941
  ])
935
942
  .optional(),
936
943
  gateway_account_id: zod_1.z.string().max(50).optional(),
@@ -1100,6 +1107,7 @@ const CheckoutExistingForItemsHostedPageCardSchema = zod_1.z.object({
1100
1107
  'tempus',
1101
1108
  'moyasar',
1102
1109
  'payway',
1110
+ 'payu',
1103
1111
  ])
1104
1112
  .optional(),
1105
1113
  gateway_account_id: zod_1.z.string().max(50).optional(),
@@ -1177,6 +1185,7 @@ const CheckoutExistingForItemsHostedPageEntityIdentifiersSchema = zod_1.z.object
1177
1185
  });
1178
1186
  const CheckoutExistingForItemsHostedPageBodySchema = zod_1.z.looseObject({
1179
1187
  layout: zod_1.z.enum(['in_app', 'full_page']).optional(),
1188
+ brand_id: zod_1.z.string().max(50).optional(),
1180
1189
  mandatory_items_to_remove: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
1181
1190
  replace_items_list: zod_1.z.boolean().default(false).optional(),
1182
1191
  invoice_date: zod_1.z.number().int().optional(),
@@ -1275,6 +1284,7 @@ const UpdateCardHostedPageCardSchema = zod_1.z.object({
1275
1284
  'tempus',
1276
1285
  'moyasar',
1277
1286
  'payway',
1287
+ 'payu',
1278
1288
  ])
1279
1289
  .optional(),
1280
1290
  gateway_account_id: zod_1.z.string().max(50).optional(),
@@ -1357,6 +1367,7 @@ const UpdatePaymentMethodHostedPageCardSchema = zod_1.z.object({
1357
1367
  'tempus',
1358
1368
  'moyasar',
1359
1369
  'payway',
1370
+ 'payu',
1360
1371
  ])
1361
1372
  .optional(),
1362
1373
  gateway_account_id: zod_1.z.string().max(50).optional(),
@@ -1437,12 +1448,14 @@ const ManagePaymentSourcesHostedPageCardSchema = zod_1.z.object({
1437
1448
  'tempus',
1438
1449
  'moyasar',
1439
1450
  'payway',
1451
+ 'payu',
1440
1452
  ])
1441
1453
  .optional(),
1442
1454
  gateway_account_id: zod_1.z.string().max(50).optional(),
1443
1455
  });
1444
1456
  const ManagePaymentSourcesHostedPageBodySchema = zod_1.z.looseObject({
1445
1457
  business_entity_id: zod_1.z.string().max(50).optional(),
1458
+ brand_id: zod_1.z.string().max(50).optional(),
1446
1459
  redirect_url: zod_1.z.string().max(250).optional(),
1447
1460
  customer: ManagePaymentSourcesHostedPageCustomerSchema.optional(),
1448
1461
  card: ManagePaymentSourcesHostedPageCardSchema.optional(),
@@ -1514,11 +1527,13 @@ const CollectNowHostedPageCardSchema = zod_1.z.object({
1514
1527
  'tempus',
1515
1528
  'moyasar',
1516
1529
  'payway',
1530
+ 'payu',
1517
1531
  ])
1518
1532
  .optional(),
1519
1533
  gateway_account_id: zod_1.z.string().max(50).optional(),
1520
1534
  });
1521
1535
  const CollectNowHostedPageBodySchema = zod_1.z.looseObject({
1536
+ brand_id: zod_1.z.string().max(50).optional(),
1522
1537
  redirect_url: zod_1.z.string().max(250).optional(),
1523
1538
  currency_code: zod_1.z.string().max(3).optional(),
1524
1539
  payment_method_save_policy: zod_1.z.enum(['always', 'ask', 'never']).optional(),
@@ -1531,6 +1546,7 @@ const AcceptQuoteHostedPageQuoteSchema = zod_1.z.object({
1531
1546
  id: zod_1.z.string().max(50),
1532
1547
  });
1533
1548
  const AcceptQuoteHostedPageBodySchema = zod_1.z.looseObject({
1549
+ brand_id: zod_1.z.string().max(50).optional(),
1534
1550
  redirect_url: zod_1.z.string().max(250).optional(),
1535
1551
  layout: zod_1.z.enum(['in_app', 'full_page']).optional(),
1536
1552
  quote: AcceptQuoteHostedPageQuoteSchema.optional(),
@@ -1541,6 +1557,7 @@ const ExtendSubscriptionHostedPageSubscriptionSchema = zod_1.z.object({
1541
1557
  id: zod_1.z.string().max(50),
1542
1558
  });
1543
1559
  const ExtendSubscriptionHostedPageBodySchema = zod_1.z.looseObject({
1560
+ brand_id: zod_1.z.string().max(50).optional(),
1544
1561
  expiry: zod_1.z.number().int().min(1).max(500).optional(),
1545
1562
  billing_cycle: zod_1.z.number().int().min(1).optional(),
1546
1563
  subscription: ExtendSubscriptionHostedPageSubscriptionSchema.optional(),
@@ -1551,7 +1568,7 @@ const CheckoutGiftHostedPageGifterSchema = zod_1.z.object({
1551
1568
  customer_id: zod_1.z.string().max(50).optional(),
1552
1569
  });
1553
1570
  const CheckoutGiftHostedPageSubscriptionSchema = zod_1.z.looseObject({
1554
- plan_id: zod_1.z.string().max(100),
1571
+ plan_id: zod_1.z.string().max(100).optional(),
1555
1572
  plan_quantity: zod_1.z.number().int().min(1).optional(),
1556
1573
  plan_quantity_in_decimal: zod_1.z.string().max(33).optional(),
1557
1574
  coupon: zod_1.z.string().max(100).optional(),
@@ -1592,6 +1609,7 @@ const CheckoutGiftForItemsHostedPageItemTiersSchema = zod_1.z.object({
1592
1609
  const CheckoutGiftForItemsHostedPageBodySchema = zod_1.z.looseObject({
1593
1610
  layout: zod_1.z.enum(['in_app', 'full_page']).optional(),
1594
1611
  business_entity_id: zod_1.z.string().max(50).optional(),
1612
+ brand_id: zod_1.z.string().max(50).optional(),
1595
1613
  redirect_url: zod_1.z.string().max(250).optional(),
1596
1614
  coupon_ids: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
1597
1615
  gifter: CheckoutGiftForItemsHostedPageGifterSchema.optional(),
@@ -1607,6 +1625,7 @@ const ClaimGiftHostedPageCustomerSchema = zod_1.z.object({
1607
1625
  locale: zod_1.z.string().max(50).optional(),
1608
1626
  });
1609
1627
  const ClaimGiftHostedPageBodySchema = zod_1.z.looseObject({
1628
+ brand_id: zod_1.z.string().max(50).optional(),
1610
1629
  redirect_url: zod_1.z.string().max(250).optional(),
1611
1630
  gift: ClaimGiftHostedPageGiftSchema.optional(),
1612
1631
  customer: ClaimGiftHostedPageCustomerSchema.optional(),
@@ -1749,6 +1768,7 @@ const PreCancelHostedPageSubscriptionSchema = zod_1.z.object({
1749
1768
  id: zod_1.z.string().max(50),
1750
1769
  });
1751
1770
  const PreCancelHostedPageBodySchema = zod_1.z.looseObject({
1771
+ brand_id: zod_1.z.string().max(50).optional(),
1752
1772
  pass_thru_content: zod_1.z.string().max(2048).optional(),
1753
1773
  cancel_url: zod_1.z.string().max(250).optional(),
1754
1774
  redirect_url: zod_1.z.string().max(250).optional(),
@@ -21,6 +21,8 @@ __exportStar(require("./alert.schema.js"), exports);
21
21
  __exportStar(require("./alert_status.schema.js"), exports);
22
22
  __exportStar(require("./attached_item.schema.js"), exports);
23
23
  __exportStar(require("./business_entity.schema.js"), exports);
24
+ __exportStar(require("./business_rule.schema.js"), exports);
25
+ __exportStar(require("./business_ruleset.schema.js"), exports);
24
26
  __exportStar(require("./card.schema.js"), exports);
25
27
  __exportStar(require("./comment.schema.js"), exports);
26
28
  __exportStar(require("./coupon.schema.js"), exports);
@@ -32,6 +34,9 @@ __exportStar(require("./currency.schema.js"), exports);
32
34
  __exportStar(require("./customer.schema.js"), exports);
33
35
  __exportStar(require("./customer_entitlement.schema.js"), exports);
34
36
  __exportStar(require("./differential_price.schema.js"), exports);
37
+ __exportStar(require("./dispute.schema.js"), exports);
38
+ __exportStar(require("./einvoice.schema.js"), exports);
39
+ __exportStar(require("./email_log.schema.js"), exports);
35
40
  __exportStar(require("./entitlement.schema.js"), exports);
36
41
  __exportStar(require("./entitlement_override.schema.js"), exports);
37
42
  __exportStar(require("./estimate.schema.js"), exports);
@@ -59,6 +64,7 @@ __exportStar(require("./omnichannel_subscription.schema.js"), exports);
59
64
  __exportStar(require("./omnichannel_subscription_item.schema.js"), exports);
60
65
  __exportStar(require("./order.schema.js"), exports);
61
66
  __exportStar(require("./payment_intent.schema.js"), exports);
67
+ __exportStar(require("./payment_schedule.schema.js"), exports);
62
68
  __exportStar(require("./payment_schedule_scheme.schema.js"), exports);
63
69
  __exportStar(require("./payment_source.schema.js"), exports);
64
70
  __exportStar(require("./payment_voucher.schema.js"), exports);
@@ -90,6 +90,7 @@ const CreateInvoiceCardSchema = zod_1.z.object({
90
90
  'tempus',
91
91
  'moyasar',
92
92
  'payway',
93
+ 'payu',
93
94
  ])
94
95
  .optional(),
95
96
  gateway_account_id: zod_1.z.string().max(50).optional(),
@@ -101,7 +102,7 @@ const CreateInvoiceCardSchema = zod_1.z.object({
101
102
  expiry_year: zod_1.z.number().int().optional(),
102
103
  cvv: zod_1.z.string().max(520).optional(),
103
104
  preferred_scheme: zod_1.z
104
- .enum(['cartes_bancaires', 'mastercard', 'visa'])
105
+ .enum(['cartes_bancaires', 'mastercard', 'visa', 'dankort'])
105
106
  .optional(),
106
107
  billing_addr1: zod_1.z.string().max(150).optional(),
107
108
  billing_addr2: zod_1.z.string().max(150).optional(),
@@ -192,6 +193,19 @@ const CreateInvoicePaymentMethodSchema = zod_1.z.object({
192
193
  'touch_n_go',
193
194
  'tamara',
194
195
  'qpay',
196
+ 'ovo',
197
+ 'momo',
198
+ 'mercado_pago',
199
+ 'nequi',
200
+ 'nupay',
201
+ 'picpay',
202
+ 'thai_qr',
203
+ 'blik',
204
+ 'fpx',
205
+ 'wero',
206
+ 'p24',
207
+ 'affirm_pay',
208
+ 'rakuten_pay',
195
209
  ])
196
210
  .optional(),
197
211
  gateway: zod_1.z
@@ -255,6 +269,7 @@ const CreateInvoicePaymentMethodSchema = zod_1.z.object({
255
269
  'tempus',
256
270
  'moyasar',
257
271
  'payway',
272
+ 'payu',
258
273
  ])
259
274
  .optional(),
260
275
  gateway_account_id: zod_1.z.string().max(50).optional(),
@@ -321,6 +336,19 @@ const CreateInvoicePaymentIntentSchema = zod_1.z.object({
321
336
  'touch_n_go',
322
337
  'tamara',
323
338
  'qpay',
339
+ 'ovo',
340
+ 'momo',
341
+ 'mercado_pago',
342
+ 'nequi',
343
+ 'nupay',
344
+ 'picpay',
345
+ 'thai_qr',
346
+ 'blik',
347
+ 'fpx',
348
+ 'wero',
349
+ 'p24',
350
+ 'affirm_pay',
351
+ 'rakuten_pay',
324
352
  ])
325
353
  .optional(),
326
354
  reference_id: zod_1.z.string().max(65000).optional(),
@@ -480,6 +508,7 @@ const CreateForChargeItemsAndChargesInvoiceCardSchema = zod_1.z.object({
480
508
  'tempus',
481
509
  'moyasar',
482
510
  'payway',
511
+ 'payu',
483
512
  ])
484
513
  .optional(),
485
514
  gateway_account_id: zod_1.z.string().max(50).optional(),
@@ -491,7 +520,7 @@ const CreateForChargeItemsAndChargesInvoiceCardSchema = zod_1.z.object({
491
520
  expiry_year: zod_1.z.number().int().optional(),
492
521
  cvv: zod_1.z.string().max(520).optional(),
493
522
  preferred_scheme: zod_1.z
494
- .enum(['cartes_bancaires', 'mastercard', 'visa'])
523
+ .enum(['cartes_bancaires', 'mastercard', 'visa', 'dankort'])
495
524
  .optional(),
496
525
  billing_addr1: zod_1.z.string().max(150).optional(),
497
526
  billing_addr2: zod_1.z.string().max(150).optional(),
@@ -582,6 +611,19 @@ const CreateForChargeItemsAndChargesInvoicePaymentMethodSchema = zod_1.z.object(
582
611
  'touch_n_go',
583
612
  'tamara',
584
613
  'qpay',
614
+ 'ovo',
615
+ 'momo',
616
+ 'mercado_pago',
617
+ 'nequi',
618
+ 'nupay',
619
+ 'picpay',
620
+ 'thai_qr',
621
+ 'blik',
622
+ 'fpx',
623
+ 'wero',
624
+ 'p24',
625
+ 'affirm_pay',
626
+ 'rakuten_pay',
585
627
  ])
586
628
  .optional(),
587
629
  gateway: zod_1.z
@@ -645,6 +687,7 @@ const CreateForChargeItemsAndChargesInvoicePaymentMethodSchema = zod_1.z.object(
645
687
  'tempus',
646
688
  'moyasar',
647
689
  'payway',
690
+ 'payu',
648
691
  ])
649
692
  .optional(),
650
693
  gateway_account_id: zod_1.z.string().max(50).optional(),
@@ -711,6 +754,19 @@ const CreateForChargeItemsAndChargesInvoicePaymentIntentSchema = zod_1.z.object(
711
754
  'touch_n_go',
712
755
  'tamara',
713
756
  'qpay',
757
+ 'ovo',
758
+ 'momo',
759
+ 'mercado_pago',
760
+ 'nequi',
761
+ 'nupay',
762
+ 'picpay',
763
+ 'thai_qr',
764
+ 'blik',
765
+ 'fpx',
766
+ 'wero',
767
+ 'p24',
768
+ 'affirm_pay',
769
+ 'rakuten_pay',
714
770
  ])
715
771
  .optional(),
716
772
  reference_id: zod_1.z.string().max(65000).optional(),
@@ -726,7 +782,7 @@ const CreateForChargeItemsAndChargesInvoiceItemPricesSchema = zod_1.z.object({
726
782
  date_from: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
727
783
  date_to: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
728
784
  description: zod_1.z.array(zod_1.z.string().max(250).optional()).optional(),
729
- entity_description: zod_1.z.array(zod_1.z.string().max(500).optional()).optional(),
785
+ entity_description: zod_1.z.array(zod_1.z.string().max(2000).optional()).optional(),
730
786
  });
731
787
  const CreateForChargeItemsAndChargesInvoiceItemTiersSchema = zod_1.z.object({
732
788
  item_price_id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
@@ -742,7 +798,7 @@ const CreateForChargeItemsAndChargesInvoiceItemTiersSchema = zod_1.z.object({
742
798
  package_size: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
743
799
  });
744
800
  const CreateForChargeItemsAndChargesInvoiceChargesSchema = zod_1.z.object({
745
- entity_description: zod_1.z.array(zod_1.z.string().max(500).optional()).optional(),
801
+ entity_description: zod_1.z.array(zod_1.z.string().max(2000).optional()).optional(),
746
802
  amount: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
747
803
  amount_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
748
804
  description: zod_1.z.array(zod_1.z.string().max(250).optional()).optional(),
@@ -1015,6 +1071,8 @@ const ImportInvoiceInvoiceLineItemsSchema = zod_1.z.object({
1015
1071
  tax9_amount: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
1016
1072
  tax10_name: zod_1.z.array(zod_1.z.string().max(50).optional()).optional(),
1017
1073
  tax10_amount: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
1074
+ is_partial_tax_applied: zod_1.z.array(zod_1.z.boolean().optional()).optional(),
1075
+ taxable_amount: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
1018
1076
  proration_mode: zod_1.z
1019
1077
  .array(zod_1.z
1020
1078
  .enum(['reset', 'delta', 'service_period_revision', 'adjusted_term'])
@@ -1087,10 +1145,12 @@ const ImportInvoiceInvoicePaymentsSchema = zod_1.z.object({
1087
1145
  'app_store',
1088
1146
  'play_store',
1089
1147
  'custom',
1090
- 'dana',
1091
- 'touch_n_go',
1092
1148
  'tamara',
1093
1149
  'qpay',
1150
+ 'blik',
1151
+ 'fpx',
1152
+ 'wero',
1153
+ 'p24',
1094
1154
  ])
1095
1155
  .optional()),
1096
1156
  date: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
@@ -1555,10 +1615,12 @@ const RecordPaymentInvoiceTransactionSchema = zod_1.z.object({
1555
1615
  'app_store',
1556
1616
  'play_store',
1557
1617
  'custom',
1558
- 'dana',
1559
- 'touch_n_go',
1560
1618
  'tamara',
1561
1619
  'qpay',
1620
+ 'blik',
1621
+ 'fpx',
1622
+ 'wero',
1623
+ 'p24',
1562
1624
  ]),
1563
1625
  reference_number: zod_1.z.string().max(100).optional(),
1564
1626
  custom_payment_method_id: zod_1.z.string().max(50).optional(),
@@ -1625,10 +1687,12 @@ const RecordRefundInvoiceTransactionSchema = zod_1.z.object({
1625
1687
  'app_store',
1626
1688
  'play_store',
1627
1689
  'custom',
1628
- 'dana',
1629
- 'touch_n_go',
1630
1690
  'tamara',
1631
1691
  'qpay',
1692
+ 'blik',
1693
+ 'fpx',
1694
+ 'wero',
1695
+ 'p24',
1632
1696
  ]),
1633
1697
  reference_number: zod_1.z.string().max(100).optional(),
1634
1698
  custom_payment_method_id: zod_1.z.string().max(50).optional(),
@@ -30,6 +30,7 @@ const ListLedgerOperationsLedgerOperationTypeSchema = zod_1.z.object({
30
30
  'void',
31
31
  'rollover',
32
32
  'adjustment',
33
+ 'overdraft_settlement',
33
34
  ])
34
35
  .optional(),
35
36
  in: zod_1.z
@@ -43,6 +44,7 @@ const ListLedgerOperationsLedgerOperationTypeSchema = zod_1.z.object({
43
44
  'void',
44
45
  'rollover',
45
46
  'adjustment',
47
+ 'overdraft_settlement',
46
48
  ])
47
49
  .optional(),
48
50
  });
@@ -107,7 +109,9 @@ const AllocateLedgerOperationMetadataSchema = zod_1.z.looseObject({});
107
109
  const AllocateLedgerOperationBodySchema = zod_1.z.looseObject({
108
110
  subscription_id: zod_1.z.string().max(50),
109
111
  unit_id: zod_1.z.string().max(50),
112
+ id: zod_1.z.string().max(50).optional(),
110
113
  amount: zod_1.z.string().max(36),
114
+ effective_from: zod_1.z.number().int().optional(),
111
115
  expires_at: zod_1.z.number().int(),
112
116
  metadata: AllocateLedgerOperationMetadataSchema.optional(),
113
117
  });