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
@@ -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
  });
@@ -7,8 +7,8 @@ exports.ListMeterBodySchema = void 0;
7
7
  const zod_1 = require("zod");
8
8
  //Meter.list
9
9
  const ListMeterNameSchema = zod_1.z.object({
10
- is: zod_1.z.string().min(1).optional(),
11
10
  starts_with: zod_1.z.string().min(1).optional(),
11
+ is: zod_1.z.string().min(1).optional(),
12
12
  });
13
13
  const ListMeterSortBySchema = zod_1.z.looseObject({
14
14
  asc: zod_1.z.enum(['id', 'name', 'created_at', 'updated_at']).optional(),
@@ -14,7 +14,7 @@ const CreateMeteredFeatureBodySchema = zod_1.z.looseObject({
14
14
  name: zod_1.z.string().max(50),
15
15
  description: zod_1.z.string().max(250).optional(),
16
16
  feature_unit: zod_1.z.string().max(50),
17
- query: zod_1.z.string().max(500),
17
+ query: zod_1.z.string().max(1000),
18
18
  column_definitions: CreateMeteredFeatureColumnDefinitionsSchema.optional(),
19
19
  });
20
20
  exports.CreateMeteredFeatureBodySchema = CreateMeteredFeatureBodySchema;
@@ -34,16 +34,16 @@ const ListOmnichannelSubscriptionIdAtSourceSchema = zod_1.z.object({
34
34
  not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
35
35
  });
36
36
  const ListOmnichannelSubscriptionUpdatedAtSchema = zod_1.z.object({
37
- before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
38
- between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
39
37
  after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
40
38
  on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
41
- });
42
- const ListOmnichannelSubscriptionPurchasedAtSchema = zod_1.z.object({
43
39
  before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
44
40
  between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
41
+ });
42
+ const ListOmnichannelSubscriptionPurchasedAtSchema = zod_1.z.object({
45
43
  after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
46
44
  on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
45
+ before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
46
+ between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
47
47
  });
48
48
  const ListOmnichannelSubscriptionSortBySchema = zod_1.z.looseObject({
49
49
  asc: zod_1.z.enum(['created_at', 'updated_at']).optional(),
@@ -9,6 +9,7 @@ const zod_1 = require("zod");
9
9
  const CreatePaymentIntentPaymentMethodOptionsSchema = zod_1.z.looseObject({});
10
10
  const CreatePaymentIntentBodySchema = zod_1.z.looseObject({
11
11
  business_entity_id: zod_1.z.string().max(50).optional(),
12
+ brand_id: zod_1.z.string().max(50).optional(),
12
13
  customer_id: zod_1.z.string().max(50).optional(),
13
14
  amount: zod_1.z.number().int().min(0),
14
15
  currency_code: zod_1.z.string().max(3),
@@ -69,6 +70,19 @@ const CreatePaymentIntentBodySchema = zod_1.z.looseObject({
69
70
  'touch_n_go',
70
71
  'tamara',
71
72
  'qpay',
73
+ 'ovo',
74
+ 'momo',
75
+ 'mercado_pago',
76
+ 'nequi',
77
+ 'nupay',
78
+ 'picpay',
79
+ 'thai_qr',
80
+ 'blik',
81
+ 'fpx',
82
+ 'wero',
83
+ 'p24',
84
+ 'affirm_pay',
85
+ 'rakuten_pay',
72
86
  ])
73
87
  .optional(),
74
88
  success_url: zod_1.z.string().max(250).optional(),
@@ -136,6 +150,19 @@ const UpdatePaymentIntentBodySchema = zod_1.z.looseObject({
136
150
  'touch_n_go',
137
151
  'tamara',
138
152
  'qpay',
153
+ 'ovo',
154
+ 'momo',
155
+ 'mercado_pago',
156
+ 'nequi',
157
+ 'nupay',
158
+ 'picpay',
159
+ 'thai_qr',
160
+ 'blik',
161
+ 'fpx',
162
+ 'wero',
163
+ 'p24',
164
+ 'affirm_pay',
165
+ 'rakuten_pay',
139
166
  ])
140
167
  .optional(),
141
168
  success_url: zod_1.z.string().max(250).optional(),
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ // Generated Zod schemas: PaymentSchedule
3
+ // Actions: list
4
+ // Do not edit manually – regenerate via sdk-generator
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ListPaymentScheduleBodySchema = void 0;
7
+ const zod_1 = require("zod");
8
+ //PaymentSchedule.list
9
+ const ListPaymentScheduleInvoiceIdSchema = zod_1.z.object({
10
+ is: zod_1.z.string().min(1).optional(),
11
+ is_not: zod_1.z.string().min(1).optional(),
12
+ starts_with: zod_1.z.string().min(1).optional(),
13
+ in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
14
+ not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
15
+ });
16
+ const ListPaymentScheduleIdSchema = zod_1.z.object({
17
+ is: zod_1.z.string().min(1).optional(),
18
+ is_not: zod_1.z.string().min(1).optional(),
19
+ starts_with: zod_1.z.string().min(1).optional(),
20
+ in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
21
+ not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
22
+ });
23
+ const ListPaymentScheduleUpdatedAtSchema = zod_1.z.object({
24
+ after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
25
+ before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
26
+ on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
27
+ between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
28
+ });
29
+ const ListPaymentScheduleBodySchema = zod_1.z.looseObject({
30
+ limit: zod_1.z.number().int().min(1).max(100).optional(),
31
+ offset: zod_1.z.string().max(1000).optional(),
32
+ invoice_id: ListPaymentScheduleInvoiceIdSchema.optional(),
33
+ id: ListPaymentScheduleIdSchema.optional(),
34
+ updated_at: ListPaymentScheduleUpdatedAtSchema.optional(),
35
+ });
36
+ exports.ListPaymentScheduleBodySchema = ListPaymentScheduleBodySchema;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  // Generated Zod schemas: PaymentScheduleScheme
3
- // Actions: create
3
+ // Actions: create, list
4
4
  // Do not edit manually – regenerate via sdk-generator
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.CreatePaymentScheduleSchemeBodySchema = void 0;
6
+ exports.ListPaymentScheduleSchemeBodySchema = exports.CreatePaymentScheduleSchemeBodySchema = void 0;
7
7
  const zod_1 = require("zod");
8
8
  //PaymentScheduleScheme.create
9
9
  const CreatePaymentScheduleSchemeFlexibleSchedulesSchema = zod_1.z.object({
@@ -18,3 +18,24 @@ const CreatePaymentScheduleSchemeBodySchema = zod_1.z.looseObject({
18
18
  flexible_schedules: CreatePaymentScheduleSchemeFlexibleSchedulesSchema.optional(),
19
19
  });
20
20
  exports.CreatePaymentScheduleSchemeBodySchema = CreatePaymentScheduleSchemeBodySchema;
21
+ //PaymentScheduleScheme.list
22
+ const ListPaymentScheduleSchemeIdSchema = zod_1.z.object({
23
+ is: zod_1.z.string().min(1).optional(),
24
+ is_not: zod_1.z.string().min(1).optional(),
25
+ starts_with: zod_1.z.string().min(1).optional(),
26
+ in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
27
+ not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
28
+ });
29
+ const ListPaymentScheduleSchemeUpdatedAtSchema = zod_1.z.object({
30
+ after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
31
+ before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
32
+ on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
33
+ between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
34
+ });
35
+ const ListPaymentScheduleSchemeBodySchema = zod_1.z.looseObject({
36
+ limit: zod_1.z.number().int().min(1).max(100).optional(),
37
+ offset: zod_1.z.string().max(1000).optional(),
38
+ id: ListPaymentScheduleSchemeIdSchema.optional(),
39
+ updated_at: ListPaymentScheduleSchemeUpdatedAtSchema.optional(),
40
+ });
41
+ exports.ListPaymentScheduleSchemeBodySchema = ListPaymentScheduleSchemeBodySchema;
@@ -65,9 +65,23 @@ const CreateUsingTempTokenPaymentSourceBodySchema = zod_1.z.looseObject({
65
65
  'touch_n_go',
66
66
  'tamara',
67
67
  'qpay',
68
+ 'ovo',
69
+ 'momo',
70
+ 'mercado_pago',
71
+ 'nequi',
72
+ 'nupay',
73
+ 'picpay',
74
+ 'thai_qr',
75
+ 'blik',
76
+ 'fpx',
77
+ 'wero',
78
+ 'p24',
79
+ 'affirm_pay',
80
+ 'rakuten_pay',
68
81
  ]),
69
82
  tmp_token: zod_1.z.string().max(65000),
70
83
  issuing_country: zod_1.z.string().max(50).optional(),
84
+ brand_id: zod_1.z.string().max(50).optional(),
71
85
  replace_primary_payment_source: zod_1.z.boolean().default(false).optional(),
72
86
  additional_information: CreateUsingTempTokenPaymentSourceAdditionalInformationSchema.optional(),
73
87
  });
@@ -122,6 +136,7 @@ const CreateUsingPermanentTokenPaymentSourceBillingAddressSchema = zod_1.z.objec
122
136
  });
123
137
  const CreateUsingPermanentTokenPaymentSourceBodySchema = zod_1.z.looseObject({
124
138
  customer_id: zod_1.z.string().max(50),
139
+ brand_id: zod_1.z.string().max(50).optional(),
125
140
  type: zod_1.z.enum([
126
141
  'card',
127
142
  'paypal_express_checkout',
@@ -177,6 +192,19 @@ const CreateUsingPermanentTokenPaymentSourceBodySchema = zod_1.z.looseObject({
177
192
  'touch_n_go',
178
193
  'tamara',
179
194
  'qpay',
195
+ 'ovo',
196
+ 'momo',
197
+ 'mercado_pago',
198
+ 'nequi',
199
+ 'nupay',
200
+ 'picpay',
201
+ 'thai_qr',
202
+ 'blik',
203
+ 'fpx',
204
+ 'wero',
205
+ 'p24',
206
+ 'affirm_pay',
207
+ 'rakuten_pay',
180
208
  ]),
181
209
  gateway_account_id: zod_1.z.string().max(50).optional(),
182
210
  reference_id: zod_1.z.string().max(200).optional(),
@@ -195,6 +223,7 @@ exports.CreateUsingPermanentTokenPaymentSourceBodySchema = CreateUsingPermanentT
195
223
  //PaymentSource.createUsingToken
196
224
  const CreateUsingTokenPaymentSourceBodySchema = zod_1.z.looseObject({
197
225
  customer_id: zod_1.z.string().max(50),
226
+ brand_id: zod_1.z.string().max(50).optional(),
198
227
  replace_primary_payment_source: zod_1.z.boolean().default(false).optional(),
199
228
  token_id: zod_1.z.string().max(40),
200
229
  });
@@ -260,6 +289,19 @@ const CreateUsingPaymentIntentPaymentSourcePaymentIntentSchema = zod_1.z.object(
260
289
  'touch_n_go',
261
290
  'tamara',
262
291
  'qpay',
292
+ 'ovo',
293
+ 'momo',
294
+ 'mercado_pago',
295
+ 'nequi',
296
+ 'nupay',
297
+ 'picpay',
298
+ 'thai_qr',
299
+ 'blik',
300
+ 'fpx',
301
+ 'wero',
302
+ 'p24',
303
+ 'affirm_pay',
304
+ 'rakuten_pay',
263
305
  ])
264
306
  .optional(),
265
307
  reference_id: zod_1.z.string().max(65000).optional(),
@@ -269,6 +311,7 @@ const CreateUsingPaymentIntentPaymentSourcePaymentIntentSchema = zod_1.z.object(
269
311
  });
270
312
  const CreateUsingPaymentIntentPaymentSourceBodySchema = zod_1.z.looseObject({
271
313
  customer_id: zod_1.z.string().max(50),
314
+ brand_id: zod_1.z.string().max(50).optional(),
272
315
  replace_primary_payment_source: zod_1.z.boolean().default(false).optional(),
273
316
  payment_intent: CreateUsingPaymentIntentPaymentSourcePaymentIntentSchema.optional(),
274
317
  });
@@ -283,6 +326,7 @@ const CreateVoucherPaymentSourcePaymentSourceVoucherPaymentSourceSchema = zod_1.
283
326
  });
284
327
  const CreateVoucherPaymentSourcePaymentSourceBodySchema = zod_1.z.looseObject({
285
328
  customer_id: zod_1.z.string().max(50),
329
+ brand_id: zod_1.z.string().max(50).optional(),
286
330
  voucher_payment_source: CreateVoucherPaymentSourcePaymentSourceVoucherPaymentSourceSchema.optional(),
287
331
  });
288
332
  exports.CreateVoucherPaymentSourcePaymentSourceBodySchema = CreateVoucherPaymentSourcePaymentSourceBodySchema;
@@ -297,7 +341,7 @@ const CreateCardPaymentSourceCardSchema = zod_1.z.object({
297
341
  expiry_year: zod_1.z.number().int(),
298
342
  cvv: zod_1.z.string().max(520).optional(),
299
343
  preferred_scheme: zod_1.z
300
- .enum(['cartes_bancaires', 'mastercard', 'visa'])
344
+ .enum(['cartes_bancaires', 'mastercard', 'visa', 'dankort'])
301
345
  .optional(),
302
346
  billing_addr1: zod_1.z.string().max(150).optional(),
303
347
  billing_addr2: zod_1.z.string().max(150).optional(),
@@ -310,6 +354,7 @@ const CreateCardPaymentSourceCardSchema = zod_1.z.object({
310
354
  });
311
355
  const CreateCardPaymentSourceBodySchema = zod_1.z.looseObject({
312
356
  customer_id: zod_1.z.string().max(50),
357
+ brand_id: zod_1.z.string().max(50).optional(),
313
358
  replace_primary_payment_source: zod_1.z.boolean().default(false).optional(),
314
359
  card: CreateCardPaymentSourceCardSchema.optional(),
315
360
  });
@@ -338,6 +383,7 @@ const CreateBankAccountPaymentSourceBankAccountSchema = zod_1.z.object({
338
383
  });
339
384
  const CreateBankAccountPaymentSourceBodySchema = zod_1.z.looseObject({
340
385
  customer_id: zod_1.z.string().max(50),
386
+ brand_id: zod_1.z.string().max(50).optional(),
341
387
  issuing_country: zod_1.z.string().max(50).optional(),
342
388
  replace_primary_payment_source: zod_1.z.boolean().default(false).optional(),
343
389
  bank_account: CreateBankAccountPaymentSourceBankAccountSchema.optional(),
@@ -360,10 +406,14 @@ const UpdateCardPaymentSourceCardSchema = zod_1.z.object({
360
406
  billing_country: zod_1.z.string().max(50).optional(),
361
407
  additional_information: UpdateCardPaymentSourceAdditionalInformationSchema.optional(),
362
408
  });
409
+ const UpdateCardPaymentSourceNetworkTransactionReferenceSchema = zod_1.z.object({
410
+ original_network_transaction_id: zod_1.z.string().max(100).optional(),
411
+ });
363
412
  const UpdateCardPaymentSourceBodySchema = zod_1.z.looseObject({
364
413
  gateway_meta_data: UpdateCardPaymentSourceGatewayMetaDataSchema.optional(),
365
414
  reference_transaction: zod_1.z.string().max(50).optional(),
366
415
  card: UpdateCardPaymentSourceCardSchema.optional(),
416
+ network_transaction_reference: UpdateCardPaymentSourceNetworkTransactionReferenceSchema.optional(),
367
417
  });
368
418
  exports.UpdateCardPaymentSourceBodySchema = UpdateCardPaymentSourceBodySchema;
369
419
  //PaymentSource.updateBankAccount
@@ -454,6 +504,19 @@ const ListPaymentSourceTypeSchema = zod_1.z.object({
454
504
  'touch_n_go',
455
505
  'tamara',
456
506
  'qpay',
507
+ 'ovo',
508
+ 'momo',
509
+ 'mercado_pago',
510
+ 'nequi',
511
+ 'nupay',
512
+ 'picpay',
513
+ 'thai_qr',
514
+ 'blik',
515
+ 'fpx',
516
+ 'wero',
517
+ 'p24',
518
+ 'affirm_pay',
519
+ 'rakuten_pay',
457
520
  ])
458
521
  .optional(),
459
522
  is_not: zod_1.z
@@ -512,6 +575,19 @@ const ListPaymentSourceTypeSchema = zod_1.z.object({
512
575
  'touch_n_go',
513
576
  'tamara',
514
577
  'qpay',
578
+ 'ovo',
579
+ 'momo',
580
+ 'mercado_pago',
581
+ 'nequi',
582
+ 'nupay',
583
+ 'picpay',
584
+ 'thai_qr',
585
+ 'blik',
586
+ 'fpx',
587
+ 'wero',
588
+ 'p24',
589
+ 'affirm_pay',
590
+ 'rakuten_pay',
515
591
  ])
516
592
  .optional(),
517
593
  in: zod_1.z
@@ -570,6 +646,19 @@ const ListPaymentSourceTypeSchema = zod_1.z.object({
570
646
  'touch_n_go',
571
647
  'tamara',
572
648
  'qpay',
649
+ 'ovo',
650
+ 'momo',
651
+ 'mercado_pago',
652
+ 'nequi',
653
+ 'nupay',
654
+ 'picpay',
655
+ 'thai_qr',
656
+ 'blik',
657
+ 'fpx',
658
+ 'wero',
659
+ 'p24',
660
+ 'affirm_pay',
661
+ 'rakuten_pay',
573
662
  ])
574
663
  .optional(),
575
664
  not_in: zod_1.z
@@ -628,6 +717,19 @@ const ListPaymentSourceTypeSchema = zod_1.z.object({
628
717
  'touch_n_go',
629
718
  'tamara',
630
719
  'qpay',
720
+ 'ovo',
721
+ 'momo',
722
+ 'mercado_pago',
723
+ 'nequi',
724
+ 'nupay',
725
+ 'picpay',
726
+ 'thai_qr',
727
+ 'blik',
728
+ 'fpx',
729
+ 'wero',
730
+ 'p24',
731
+ 'affirm_pay',
732
+ 'rakuten_pay',
631
733
  ])
632
734
  .optional(),
633
735
  });
@@ -83,6 +83,7 @@ const CreateForNewSubscriptionPricingPageSessionDiscountsSchema = zod_1.z.object
83
83
  const CreateForNewSubscriptionPricingPageSessionBodySchema = zod_1.z.looseObject({
84
84
  redirect_url: zod_1.z.string().max(250).optional(),
85
85
  business_entity_id: zod_1.z.string().max(50).optional(),
86
+ brand_id: zod_1.z.string().max(50).optional(),
86
87
  auto_select_local_currency: zod_1.z.boolean().default(false).optional(),
87
88
  custom: CreateForNewSubscriptionPricingPageSessionCustomSchema.optional(),
88
89
  pricing_page: CreateForNewSubscriptionPricingPageSessionPricingPageSchema.optional(),
@@ -10,7 +10,9 @@ const PromotionalGrantsPromotionalGrantMetadataSchema = zod_1.z.looseObject({});
10
10
  const PromotionalGrantsPromotionalGrantBodySchema = zod_1.z.looseObject({
11
11
  subscription_id: zod_1.z.string().max(50),
12
12
  unit_id: zod_1.z.string().max(50),
13
+ id: zod_1.z.string().max(50).optional(),
13
14
  amount: zod_1.z.string().max(36),
15
+ effective_from: zod_1.z.number().int().optional(),
14
16
  expires_at: zod_1.z.number().int(),
15
17
  metadata: PromotionalGrantsPromotionalGrantMetadataSchema.optional(),
16
18
  });
@@ -76,6 +76,19 @@ const CreatePurchasePaymentIntentSchema = zod_1.z.object({
76
76
  'touch_n_go',
77
77
  'tamara',
78
78
  'qpay',
79
+ 'ovo',
80
+ 'momo',
81
+ 'mercado_pago',
82
+ 'nequi',
83
+ 'nupay',
84
+ 'picpay',
85
+ 'thai_qr',
86
+ 'blik',
87
+ 'fpx',
88
+ 'wero',
89
+ 'p24',
90
+ 'affirm_pay',
91
+ 'rakuten_pay',
79
92
  ])
80
93
  .optional(),
81
94
  reference_id: zod_1.z.string().max(65000).optional(),
@@ -166,7 +179,7 @@ const EstimatePurchaseCustomerSchema = zod_1.z.object({
166
179
  vat_number: zod_1.z.string().max(20).optional(),
167
180
  vat_number_prefix: zod_1.z.string().max(10).optional(),
168
181
  registered_for_gst: zod_1.z.boolean().optional(),
169
- taxability: zod_1.z.enum(['taxable', 'exempt']).optional(),
182
+ taxability: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
170
183
  entity_code: zod_1.z
171
184
  .enum([
172
185
  'a',