chargebee 3.33.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 (109) hide show
  1. package/CHANGELOG.md +190 -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 +35 -6
  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 +26 -0
  18. package/cjs/schema/hosted_page.schema.js +24 -4
  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/omnichannel_subscription.schema.js +4 -4
  25. package/cjs/schema/payment_intent.schema.js +27 -0
  26. package/cjs/schema/payment_schedule.schema.js +36 -0
  27. package/cjs/schema/payment_schedule_scheme.schema.js +23 -2
  28. package/cjs/schema/payment_source.schema.js +103 -1
  29. package/cjs/schema/pricing_page_session.schema.js +1 -0
  30. package/cjs/schema/promotional_grant.schema.js +2 -0
  31. package/cjs/schema/purchase.schema.js +14 -1
  32. package/cjs/schema/ramp.schema.js +8 -0
  33. package/cjs/schema/subscription.schema.js +175 -12
  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 +35 -6
  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 +26 -0
  52. package/esm/schema/hosted_page.schema.js +24 -4
  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 +4 -4
  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/ramp.schema.js +8 -0
  67. package/esm/schema/subscription.schema.js +175 -12
  68. package/esm/schema/transaction.schema.js +60 -2
  69. package/esm/schema/webhook_endpoint.schema.js +28 -0
  70. package/package.json +1 -1
  71. package/types/core.d.ts +86 -8
  72. package/types/index.d.ts +15 -0
  73. package/types/resources/AppliedBusinessRule.d.ts +15 -0
  74. package/types/resources/AppliedRule.d.ts +14 -0
  75. package/types/resources/ApplyRule.d.ts +28 -0
  76. package/types/resources/BusinessRule.d.ts +161 -0
  77. package/types/resources/BusinessRuleset.d.ts +165 -0
  78. package/types/resources/BusinessRulesetRule.d.ts +9 -0
  79. package/types/resources/Card.d.ts +1 -1
  80. package/types/resources/Content.d.ts +9 -0
  81. package/types/resources/CreditNote.d.ts +12 -0
  82. package/types/resources/CustomDataSchema.d.ts +15 -0
  83. package/types/resources/Customer.d.ts +42 -5
  84. package/types/resources/Dispute.d.ts +65 -0
  85. package/types/resources/Einvoice.d.ts +64 -1
  86. package/types/resources/EmailLog.d.ts +45 -0
  87. package/types/resources/Estimate.d.ts +31 -2
  88. package/types/resources/Event.d.ts +15 -0
  89. package/types/resources/Gift.d.ts +28 -2
  90. package/types/resources/GrantBlock.d.ts +26 -7
  91. package/types/resources/HostedPage.d.ts +11 -0
  92. package/types/resources/Invoice.d.ts +42 -4
  93. package/types/resources/LedgerEntry.d.ts +4 -4
  94. package/types/resources/LedgerOperation.d.ts +15 -8
  95. package/types/resources/OmnichannelSubscriptionItem.d.ts +5 -1
  96. package/types/resources/PaymentIntent.d.ts +72 -5
  97. package/types/resources/PaymentSchedule.d.ts +38 -1
  98. package/types/resources/PaymentScheduleEstimate.d.ts +1 -0
  99. package/types/resources/PaymentScheduleScheme.d.ts +17 -1
  100. package/types/resources/PaymentSource.d.ts +31 -2
  101. package/types/resources/PricingPageSession.d.ts +1 -0
  102. package/types/resources/PromotionalGrant.d.ts +2 -0
  103. package/types/resources/Purchase.d.ts +14 -1
  104. package/types/resources/QuotedSubscription.d.ts +1 -0
  105. package/types/resources/Ramp.d.ts +12 -0
  106. package/types/resources/Subscription.d.ts +110 -11
  107. package/types/resources/ThirdPartyPaymentMethod.d.ts +1 -0
  108. package/types/resources/Transaction.d.ts +5 -0
  109. package/types/resources/WebhookEvent.d.ts +70 -0
@@ -79,7 +79,7 @@ const CreateSubscriptionEstimateCustomerSchema = zod_1.z.object({
79
79
  vat_number: zod_1.z.string().max(20).optional(),
80
80
  vat_number_prefix: zod_1.z.string().max(10).optional(),
81
81
  registered_for_gst: zod_1.z.boolean().optional(),
82
- taxability: zod_1.z.enum(['taxable', 'exempt']).optional(),
82
+ taxability: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
83
83
  entity_code: zod_1.z
84
84
  .enum([
85
85
  'a',
@@ -240,7 +240,7 @@ const CreateSubItemEstimateEstimateCustomerSchema = zod_1.z.object({
240
240
  vat_number: zod_1.z.string().max(20).optional(),
241
241
  vat_number_prefix: zod_1.z.string().max(10).optional(),
242
242
  registered_for_gst: zod_1.z.boolean().optional(),
243
- taxability: zod_1.z.enum(['taxable', 'exempt']).optional(),
243
+ taxability: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
244
244
  entity_code: zod_1.z
245
245
  .enum([
246
246
  'a',
@@ -299,6 +299,7 @@ const CreateSubItemEstimateEstimateSubscriptionItemsSchema = zod_1.z.object({
299
299
  .optional(),
300
300
  charge_once: zod_1.z.array(zod_1.z.boolean().optional()).optional(),
301
301
  item_type: zod_1.z.array(zod_1.z.enum(['plan', 'addon', 'charge']).optional()).optional(),
302
+ description: zod_1.z.array(zod_1.z.string().max(500).optional()).optional(),
302
303
  charge_on_option: zod_1.z
303
304
  .array(zod_1.z.enum(['immediately', 'on_event']).optional())
304
305
  .optional(),
@@ -566,6 +567,7 @@ const CreateSubItemForCustomerEstimateEstimateSubscriptionItemsSchema = zod_1.z.
566
567
  item_type: zod_1.z
567
568
  .array(zod_1.z.enum(['plan', 'addon', 'charge']).optional())
568
569
  .optional(),
570
+ description: zod_1.z.array(zod_1.z.string().max(500).optional()).optional(),
569
571
  charge_on_option: zod_1.z
570
572
  .array(zod_1.z.enum(['immediately', 'on_event']).optional())
571
573
  .optional(),
@@ -686,7 +688,7 @@ const UpdateSubscriptionEstimateCustomerSchema = zod_1.z.object({
686
688
  vat_number: zod_1.z.string().max(20).optional(),
687
689
  vat_number_prefix: zod_1.z.string().max(10).optional(),
688
690
  registered_for_gst: zod_1.z.boolean().optional(),
689
- taxability: zod_1.z.enum(['taxable', 'exempt']).optional(),
691
+ taxability: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
690
692
  });
691
693
  const UpdateSubscriptionEstimateAddonsSchema = zod_1.z.object({
692
694
  id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
@@ -818,7 +820,7 @@ const UpdateSubscriptionForItemsEstimateCustomerSchema = zod_1.z.object({
818
820
  vat_number: zod_1.z.string().max(20).optional(),
819
821
  vat_number_prefix: zod_1.z.string().max(10).optional(),
820
822
  registered_for_gst: zod_1.z.boolean().optional(),
821
- taxability: zod_1.z.enum(['taxable', 'exempt']).optional(),
823
+ taxability: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
822
824
  });
823
825
  const UpdateSubscriptionForItemsEstimateBillingOverrideSchema = zod_1.z.object({
824
826
  max_excess_payment_usage: zod_1.z.number().int().min(-1).optional(),
@@ -851,6 +853,7 @@ const UpdateSubscriptionForItemsEstimateSubscriptionItemsSchema = zod_1.z.object
851
853
  .array(zod_1.z.enum(['immediately', 'on_event']).optional())
852
854
  .optional(),
853
855
  item_type: zod_1.z.array(zod_1.z.enum(['plan', 'addon', 'charge']).optional()).optional(),
856
+ description: zod_1.z.array(zod_1.z.string().max(500).optional()).optional(),
854
857
  proration_type: zod_1.z
855
858
  .array(zod_1.z.enum(['full_term', 'partial_term', 'none']).optional())
856
859
  .optional(),
@@ -1162,6 +1165,19 @@ const GiftSubscriptionEstimatePaymentIntentSchema = zod_1.z.object({
1162
1165
  'touch_n_go',
1163
1166
  'tamara',
1164
1167
  'qpay',
1168
+ 'ovo',
1169
+ 'momo',
1170
+ 'mercado_pago',
1171
+ 'nequi',
1172
+ 'nupay',
1173
+ 'picpay',
1174
+ 'thai_qr',
1175
+ 'blik',
1176
+ 'fpx',
1177
+ 'wero',
1178
+ 'p24',
1179
+ 'affirm_pay',
1180
+ 'rakuten_pay',
1165
1181
  ])
1166
1182
  .optional(),
1167
1183
  reference_id: zod_1.z.string().max(65000).optional(),
@@ -1285,6 +1301,19 @@ const GiftSubscriptionForItemsEstimatePaymentIntentSchema = zod_1.z.object({
1285
1301
  'touch_n_go',
1286
1302
  'tamara',
1287
1303
  'qpay',
1304
+ 'ovo',
1305
+ 'momo',
1306
+ 'mercado_pago',
1307
+ 'nequi',
1308
+ 'nupay',
1309
+ 'picpay',
1310
+ 'thai_qr',
1311
+ 'blik',
1312
+ 'fpx',
1313
+ 'wero',
1314
+ 'p24',
1315
+ 'affirm_pay',
1316
+ 'rakuten_pay',
1288
1317
  ])
1289
1318
  .optional(),
1290
1319
  reference_id: zod_1.z.string().max(65000).optional(),
@@ -1462,7 +1491,7 @@ const CreateInvoiceForItemsEstimateItemPricesSchema = zod_1.z.object({
1462
1491
  date_from: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1463
1492
  date_to: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1464
1493
  description: zod_1.z.array(zod_1.z.string().max(250).optional()).optional(),
1465
- entity_description: zod_1.z.array(zod_1.z.string().max(500).optional()).optional(),
1494
+ entity_description: zod_1.z.array(zod_1.z.string().max(2000).optional()).optional(),
1466
1495
  });
1467
1496
  const CreateInvoiceForItemsEstimateItemTiersSchema = zod_1.z.object({
1468
1497
  item_price_id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
@@ -1493,7 +1522,7 @@ const CreateInvoiceForItemsEstimateChargesSchema = zod_1.z.object({
1493
1522
  avalara_service_type: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1494
1523
  date_from: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1495
1524
  date_to: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1496
- entity_description: zod_1.z.array(zod_1.z.string().max(500).optional()).optional(),
1525
+ entity_description: zod_1.z.array(zod_1.z.string().max(2000).optional()).optional(),
1497
1526
  });
1498
1527
  const CreateInvoiceForItemsEstimateNotesToRemoveSchema = zod_1.z.object({
1499
1528
  entity_type: zod_1.z
@@ -128,6 +128,8 @@ const ListEventEventTypeSchema = zod_1.z.object({
128
128
  'credit_note_created_with_backdating',
129
129
  'credit_note_updated',
130
130
  'credit_note_deleted',
131
+ 'einvoice_created',
132
+ 'einvoice_updated',
131
133
  'payment_schedules_created',
132
134
  'payment_schedules_updated',
133
135
  'payment_schedule_scheme_created',
@@ -298,9 +300,21 @@ const ListEventEventTypeSchema = zod_1.z.object({
298
300
  'grant_blocks_created',
299
301
  'grant_blocks_updated',
300
302
  'ledger_updated',
303
+ 'business_rule_created',
304
+ 'business_rule_updated',
305
+ 'business_rule_activated',
306
+ 'business_rule_deactivated',
307
+ 'business_rule_deleted',
308
+ 'business_rule_released',
301
309
  'vault_token_created',
302
310
  'vault_token_updated',
303
311
  'vault_token_deleted',
312
+ 'business_rules_applied',
313
+ 'business_ruleset_created',
314
+ 'business_ruleset_updated',
315
+ 'business_ruleset_activated',
316
+ 'business_ruleset_deactivated',
317
+ 'business_ruleset_deleted',
304
318
  ])
305
319
  .optional(),
306
320
  is_not: zod_1.z
@@ -363,6 +377,8 @@ const ListEventEventTypeSchema = zod_1.z.object({
363
377
  'credit_note_created_with_backdating',
364
378
  'credit_note_updated',
365
379
  'credit_note_deleted',
380
+ 'einvoice_created',
381
+ 'einvoice_updated',
366
382
  'payment_schedules_created',
367
383
  'payment_schedules_updated',
368
384
  'payment_schedule_scheme_created',
@@ -533,9 +549,21 @@ const ListEventEventTypeSchema = zod_1.z.object({
533
549
  'grant_blocks_created',
534
550
  'grant_blocks_updated',
535
551
  'ledger_updated',
552
+ 'business_rule_created',
553
+ 'business_rule_updated',
554
+ 'business_rule_activated',
555
+ 'business_rule_deactivated',
556
+ 'business_rule_deleted',
557
+ 'business_rule_released',
536
558
  'vault_token_created',
537
559
  'vault_token_updated',
538
560
  'vault_token_deleted',
561
+ 'business_rules_applied',
562
+ 'business_ruleset_created',
563
+ 'business_ruleset_updated',
564
+ 'business_ruleset_activated',
565
+ 'business_ruleset_deactivated',
566
+ 'business_ruleset_deleted',
539
567
  ])
540
568
  .optional(),
541
569
  in: zod_1.z
@@ -598,6 +626,8 @@ const ListEventEventTypeSchema = zod_1.z.object({
598
626
  'credit_note_created_with_backdating',
599
627
  'credit_note_updated',
600
628
  'credit_note_deleted',
629
+ 'einvoice_created',
630
+ 'einvoice_updated',
601
631
  'payment_schedules_created',
602
632
  'payment_schedules_updated',
603
633
  'payment_schedule_scheme_created',
@@ -768,9 +798,21 @@ const ListEventEventTypeSchema = zod_1.z.object({
768
798
  'grant_blocks_created',
769
799
  'grant_blocks_updated',
770
800
  'ledger_updated',
801
+ 'business_rule_created',
802
+ 'business_rule_updated',
803
+ 'business_rule_activated',
804
+ 'business_rule_deactivated',
805
+ 'business_rule_deleted',
806
+ 'business_rule_released',
771
807
  'vault_token_created',
772
808
  'vault_token_updated',
773
809
  'vault_token_deleted',
810
+ 'business_rules_applied',
811
+ 'business_ruleset_created',
812
+ 'business_ruleset_updated',
813
+ 'business_ruleset_activated',
814
+ 'business_ruleset_deactivated',
815
+ 'business_ruleset_deleted',
774
816
  ])
775
817
  .optional(),
776
818
  not_in: zod_1.z
@@ -833,6 +875,8 @@ const ListEventEventTypeSchema = zod_1.z.object({
833
875
  'credit_note_created_with_backdating',
834
876
  'credit_note_updated',
835
877
  'credit_note_deleted',
878
+ 'einvoice_created',
879
+ 'einvoice_updated',
836
880
  'payment_schedules_created',
837
881
  'payment_schedules_updated',
838
882
  'payment_schedule_scheme_created',
@@ -1003,9 +1047,21 @@ const ListEventEventTypeSchema = zod_1.z.object({
1003
1047
  'grant_blocks_created',
1004
1048
  'grant_blocks_updated',
1005
1049
  'ledger_updated',
1050
+ 'business_rule_created',
1051
+ 'business_rule_updated',
1052
+ 'business_rule_activated',
1053
+ 'business_rule_deactivated',
1054
+ 'business_rule_deleted',
1055
+ 'business_rule_released',
1006
1056
  'vault_token_created',
1007
1057
  'vault_token_updated',
1008
1058
  'vault_token_deleted',
1059
+ 'business_rules_applied',
1060
+ 'business_ruleset_created',
1061
+ 'business_ruleset_updated',
1062
+ 'business_ruleset_activated',
1063
+ 'business_ruleset_deactivated',
1064
+ 'business_ruleset_deleted',
1009
1065
  ])
1010
1066
  .optional(),
1011
1067
  });
@@ -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(),
@@ -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(),
@@ -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(),
@@ -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);