chargebee 3.33.0 → 3.35.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 (172) hide show
  1. package/CHANGELOG.md +362 -0
  2. package/cjs/environment.js +1 -1
  3. package/cjs/resources/api_endpoints.js +496 -3
  4. package/cjs/resources/webhook/eventType.js +36 -0
  5. package/cjs/schema/business_entity.schema.js +28 -2
  6. package/cjs/schema/business_rule.schema.js +54 -0
  7. package/cjs/schema/business_ruleset.schema.js +68 -0
  8. package/cjs/schema/card.schema.js +3 -1
  9. package/cjs/schema/collections_payment_promise.schema.js +43 -0
  10. package/cjs/schema/comment.schema.js +2 -0
  11. package/cjs/schema/coupon.schema.js +1 -1
  12. package/cjs/schema/credit_note.schema.js +11 -4
  13. package/cjs/schema/credit_unit.schema.js +2 -2
  14. package/cjs/schema/customer.schema.js +81 -10
  15. package/cjs/schema/dispute.schema.js +104 -0
  16. package/cjs/schema/einvoice.schema.js +37 -0
  17. package/cjs/schema/email_log.schema.js +28 -0
  18. package/cjs/schema/entitlement.schema.js +4 -4
  19. package/cjs/schema/estimate.schema.js +39 -10
  20. package/cjs/schema/event.schema.js +156 -0
  21. package/cjs/schema/export.schema.js +75 -19
  22. package/cjs/schema/feature.schema.js +2 -2
  23. package/cjs/schema/gift.schema.js +26 -0
  24. package/cjs/schema/hosted_page.schema.js +26 -6
  25. package/cjs/schema/index.js +9 -0
  26. package/cjs/schema/invoice.schema.js +98 -14
  27. package/cjs/schema/item.schema.js +1 -1
  28. package/cjs/schema/item_family.schema.js +1 -1
  29. package/cjs/schema/item_price.schema.js +1 -1
  30. package/cjs/schema/ledger_account_balance.schema.js +11 -2
  31. package/cjs/schema/ledger_operation.schema.js +6 -2
  32. package/cjs/schema/meter.schema.js +1 -1
  33. package/cjs/schema/metered_feature.schema.js +1 -1
  34. package/cjs/schema/omnichannel_one_time_order.schema.js +12 -4
  35. package/cjs/schema/omnichannel_subscription.schema.js +16 -8
  36. package/cjs/schema/payment_intent.schema.js +27 -0
  37. package/cjs/schema/payment_schedule.schema.js +36 -0
  38. package/cjs/schema/payment_schedule_scheme.schema.js +23 -2
  39. package/cjs/schema/payment_source.schema.js +118 -1
  40. package/cjs/schema/price_ramp.schema.js +88 -0
  41. package/cjs/schema/price_variant.schema.js +1 -1
  42. package/cjs/schema/pricing_page_session.schema.js +1 -0
  43. package/cjs/schema/promotional_grant.schema.js +2 -0
  44. package/cjs/schema/purchase.schema.js +20 -1
  45. package/cjs/schema/quote.schema.js +6 -6
  46. package/cjs/schema/ramp.schema.js +18 -6
  47. package/cjs/schema/retry_segment.schema.js +12 -0
  48. package/cjs/schema/subscription.schema.js +179 -16
  49. package/cjs/schema/transaction.schema.js +60 -2
  50. package/cjs/schema/usage.schema.js +5 -0
  51. package/cjs/schema/usage_summary.schema.js +1 -0
  52. package/cjs/schema/webhook_endpoint.schema.js +72 -0
  53. package/esm/environment.js +1 -1
  54. package/esm/resources/api_endpoints.js +496 -3
  55. package/esm/resources/webhook/eventType.js +36 -0
  56. package/esm/schema/business_entity.schema.js +27 -1
  57. package/esm/schema/business_rule.schema.js +51 -0
  58. package/esm/schema/business_ruleset.schema.js +65 -0
  59. package/esm/schema/card.schema.js +3 -1
  60. package/esm/schema/collections_payment_promise.schema.js +40 -0
  61. package/esm/schema/comment.schema.js +2 -0
  62. package/esm/schema/coupon.schema.js +1 -1
  63. package/esm/schema/credit_note.schema.js +11 -4
  64. package/esm/schema/credit_unit.schema.js +2 -2
  65. package/esm/schema/customer.schema.js +81 -10
  66. package/esm/schema/dispute.schema.js +101 -0
  67. package/esm/schema/einvoice.schema.js +34 -0
  68. package/esm/schema/email_log.schema.js +25 -0
  69. package/esm/schema/entitlement.schema.js +4 -4
  70. package/esm/schema/estimate.schema.js +39 -10
  71. package/esm/schema/event.schema.js +156 -0
  72. package/esm/schema/export.schema.js +75 -19
  73. package/esm/schema/feature.schema.js +2 -2
  74. package/esm/schema/gift.schema.js +26 -0
  75. package/esm/schema/hosted_page.schema.js +26 -6
  76. package/esm/schema/index.js +9 -0
  77. package/esm/schema/invoice.schema.js +97 -13
  78. package/esm/schema/item.schema.js +1 -1
  79. package/esm/schema/item_family.schema.js +1 -1
  80. package/esm/schema/item_price.schema.js +1 -1
  81. package/esm/schema/ledger_account_balance.schema.js +10 -1
  82. package/esm/schema/ledger_operation.schema.js +6 -2
  83. package/esm/schema/meter.schema.js +1 -1
  84. package/esm/schema/metered_feature.schema.js +1 -1
  85. package/esm/schema/omnichannel_one_time_order.schema.js +12 -4
  86. package/esm/schema/omnichannel_subscription.schema.js +16 -8
  87. package/esm/schema/payment_intent.schema.js +27 -0
  88. package/esm/schema/payment_schedule.schema.js +33 -0
  89. package/esm/schema/payment_schedule_scheme.schema.js +22 -1
  90. package/esm/schema/payment_source.schema.js +118 -1
  91. package/esm/schema/price_ramp.schema.js +85 -0
  92. package/esm/schema/price_variant.schema.js +1 -1
  93. package/esm/schema/pricing_page_session.schema.js +1 -0
  94. package/esm/schema/promotional_grant.schema.js +2 -0
  95. package/esm/schema/purchase.schema.js +20 -1
  96. package/esm/schema/quote.schema.js +6 -6
  97. package/esm/schema/ramp.schema.js +18 -6
  98. package/esm/schema/retry_segment.schema.js +9 -0
  99. package/esm/schema/subscription.schema.js +179 -16
  100. package/esm/schema/transaction.schema.js +60 -2
  101. package/esm/schema/usage.schema.js +5 -0
  102. package/esm/schema/usage_summary.schema.js +1 -0
  103. package/esm/schema/webhook_endpoint.schema.js +72 -0
  104. package/package.json +1 -1
  105. package/types/core.d.ts +135 -72
  106. package/types/index.d.ts +36 -0
  107. package/types/resources/AppliedRule.d.ts +14 -0
  108. package/types/resources/ApplyRule.d.ts +28 -0
  109. package/types/resources/BusinessEntity.d.ts +52 -0
  110. package/types/resources/BusinessRule.d.ts +161 -0
  111. package/types/resources/BusinessRuleset.d.ts +165 -0
  112. package/types/resources/BusinessRulesetRule.d.ts +9 -0
  113. package/types/resources/Card.d.ts +1 -1
  114. package/types/resources/Citation.d.ts +13 -0
  115. package/types/resources/CollectionsDispute.d.ts +24 -0
  116. package/types/resources/CollectionsPaymentPromise.d.ts +93 -0
  117. package/types/resources/CollectionsReminderSequence.d.ts +35 -0
  118. package/types/resources/Comment.d.ts +2 -1
  119. package/types/resources/Content.d.ts +26 -0
  120. package/types/resources/CreditNote.d.ts +13 -0
  121. package/types/resources/CustomData.d.ts +14 -0
  122. package/types/resources/CustomDataSchema.d.ts +15 -0
  123. package/types/resources/Customer.d.ts +42 -5
  124. package/types/resources/Dispute.d.ts +65 -0
  125. package/types/resources/DraftEstimate.d.ts +13 -0
  126. package/types/resources/DraftRequest.d.ts +45 -0
  127. package/types/resources/Einvoice.d.ts +64 -1
  128. package/types/resources/EmailAttachment.d.ts +16 -0
  129. package/types/resources/EmailConversation.d.ts +18 -0
  130. package/types/resources/EmailLog.d.ts +46 -0
  131. package/types/resources/EmailMessage.d.ts +40 -0
  132. package/types/resources/Estimate.d.ts +31 -2
  133. package/types/resources/Event.d.ts +37 -0
  134. package/types/resources/Execution.d.ts +12 -0
  135. package/types/resources/GatewayPaymentMethodToken.d.ts +2 -2
  136. package/types/resources/Gift.d.ts +28 -2
  137. package/types/resources/GrantBlock.d.ts +26 -7
  138. package/types/resources/GroupByAttribute.d.ts +15 -0
  139. package/types/resources/GroupByRecommendation.d.ts +10 -0
  140. package/types/resources/HostedPage.d.ts +11 -0
  141. package/types/resources/Invoice.d.ts +57 -4
  142. package/types/resources/ItemPrice.d.ts +1 -0
  143. package/types/resources/LedgerAccountBalance.d.ts +19 -0
  144. package/types/resources/LedgerEntry.d.ts +4 -4
  145. package/types/resources/LedgerOperation.d.ts +15 -8
  146. package/types/resources/Meter.d.ts +1 -0
  147. package/types/resources/MeteredFeature.d.ts +1 -0
  148. package/types/resources/OmnichannelOneTimeOrder.d.ts +5 -1
  149. package/types/resources/OmnichannelSubscription.d.ts +6 -1
  150. package/types/resources/OmnichannelSubscriptionItem.d.ts +9 -2
  151. package/types/resources/PaymentIntent.d.ts +72 -5
  152. package/types/resources/PaymentSchedule.d.ts +39 -2
  153. package/types/resources/PaymentScheduleEstimate.d.ts +2 -1
  154. package/types/resources/PaymentScheduleScheme.d.ts +17 -1
  155. package/types/resources/PaymentSource.d.ts +50 -2
  156. package/types/resources/PreferenceVariant.d.ts +10 -0
  157. package/types/resources/PriceRamp.d.ts +113 -0
  158. package/types/resources/PricingPageSession.d.ts +1 -0
  159. package/types/resources/PrivateNote.d.ts +18 -0
  160. package/types/resources/PromotionalGrant.d.ts +2 -0
  161. package/types/resources/Purchase.d.ts +20 -1
  162. package/types/resources/QuotedSubscription.d.ts +1 -0
  163. package/types/resources/Ramp.d.ts +18 -0
  164. package/types/resources/RampInterval.d.ts +12 -0
  165. package/types/resources/RecordedPurchase.d.ts +5 -1
  166. package/types/resources/RetrySegment.d.ts +36 -0
  167. package/types/resources/Subscription.d.ts +110 -11
  168. package/types/resources/ThirdPartyPaymentMethod.d.ts +1 -0
  169. package/types/resources/Transaction.d.ts +9 -0
  170. package/types/resources/Usage.d.ts +6 -0
  171. package/types/resources/UsageSummary.d.ts +2 -0
  172. package/types/resources/WebhookEvent.d.ts +214 -0
@@ -1,5 +1,5 @@
1
1
  // Generated Zod schemas: Invoice
2
- // Actions: create, createForChargeItemsAndCharges, charge, chargeAddon, createForChargeItem, stopDunning, pauseDunning, resumeDunning, importInvoice, applyPayments, deleteLineItems, applyCredits, list, invoicesForCustomer, invoicesForSubscription, retrieve, pdf, listPaymentReferenceNumbers, addCharge, addAddonCharge, addChargeItem, close, collectPayment, recordPayment, recordTaxWithheld, removeTaxWithheld, refund, recordRefund, removePayment, removeCreditNote, voidInvoice, writeOff, voidBeforeCapture, delete, updateDetails, applyPaymentScheduleScheme
2
+ // Actions: create, createForChargeItemsAndCharges, charge, chargeAddon, createForChargeItem, stopDunning, pauseDunning, resumeDunning, importInvoice, applyPayments, deleteLineItems, applyCredits, list, invoicesForCustomer, invoicesForSubscription, retrieve, pdf, listPaymentReferenceNumbers, addCharge, addAddonCharge, addChargeItem, close, collectPayment, recordPayment, recordTaxWithheld, removeTaxWithheld, refund, recordRefund, removePayment, removeCreditNote, voidInvoice, writeOff, voidBeforeCapture, delete, updateDetails, applyPaymentScheduleScheme, removePaymentScheduleScheme
3
3
  // Do not edit manually – regenerate via sdk-generator
4
4
  import { z } from 'zod';
5
5
  //Invoice.create
@@ -87,6 +87,7 @@ const CreateInvoiceCardSchema = z.object({
87
87
  'tempus',
88
88
  'moyasar',
89
89
  'payway',
90
+ 'payu',
90
91
  ])
91
92
  .optional(),
92
93
  gateway_account_id: z.string().max(50).optional(),
@@ -98,7 +99,7 @@ const CreateInvoiceCardSchema = z.object({
98
99
  expiry_year: z.number().int().optional(),
99
100
  cvv: z.string().max(520).optional(),
100
101
  preferred_scheme: z
101
- .enum(['cartes_bancaires', 'mastercard', 'visa'])
102
+ .enum(['cartes_bancaires', 'mastercard', 'visa', 'dankort'])
102
103
  .optional(),
103
104
  billing_addr1: z.string().max(150).optional(),
104
105
  billing_addr2: z.string().max(150).optional(),
@@ -189,6 +190,19 @@ const CreateInvoicePaymentMethodSchema = z.object({
189
190
  'touch_n_go',
190
191
  'tamara',
191
192
  'qpay',
193
+ 'ovo',
194
+ 'momo',
195
+ 'mercado_pago',
196
+ 'nequi',
197
+ 'nupay',
198
+ 'picpay',
199
+ 'thai_qr',
200
+ 'blik',
201
+ 'fpx',
202
+ 'wero',
203
+ 'p24',
204
+ 'affirm_pay',
205
+ 'rakuten_pay',
192
206
  ])
193
207
  .optional(),
194
208
  gateway: z
@@ -252,6 +266,7 @@ const CreateInvoicePaymentMethodSchema = z.object({
252
266
  'tempus',
253
267
  'moyasar',
254
268
  'payway',
269
+ 'payu',
255
270
  ])
256
271
  .optional(),
257
272
  gateway_account_id: z.string().max(50).optional(),
@@ -318,6 +333,19 @@ const CreateInvoicePaymentIntentSchema = z.object({
318
333
  'touch_n_go',
319
334
  'tamara',
320
335
  'qpay',
336
+ 'ovo',
337
+ 'momo',
338
+ 'mercado_pago',
339
+ 'nequi',
340
+ 'nupay',
341
+ 'picpay',
342
+ 'thai_qr',
343
+ 'blik',
344
+ 'fpx',
345
+ 'wero',
346
+ 'p24',
347
+ 'affirm_pay',
348
+ 'rakuten_pay',
321
349
  ])
322
350
  .optional(),
323
351
  reference_id: z.string().max(65000).optional(),
@@ -477,6 +505,7 @@ const CreateForChargeItemsAndChargesInvoiceCardSchema = z.object({
477
505
  'tempus',
478
506
  'moyasar',
479
507
  'payway',
508
+ 'payu',
480
509
  ])
481
510
  .optional(),
482
511
  gateway_account_id: z.string().max(50).optional(),
@@ -488,7 +517,7 @@ const CreateForChargeItemsAndChargesInvoiceCardSchema = z.object({
488
517
  expiry_year: z.number().int().optional(),
489
518
  cvv: z.string().max(520).optional(),
490
519
  preferred_scheme: z
491
- .enum(['cartes_bancaires', 'mastercard', 'visa'])
520
+ .enum(['cartes_bancaires', 'mastercard', 'visa', 'dankort'])
492
521
  .optional(),
493
522
  billing_addr1: z.string().max(150).optional(),
494
523
  billing_addr2: z.string().max(150).optional(),
@@ -579,6 +608,19 @@ const CreateForChargeItemsAndChargesInvoicePaymentMethodSchema = z.object({
579
608
  'touch_n_go',
580
609
  'tamara',
581
610
  'qpay',
611
+ 'ovo',
612
+ 'momo',
613
+ 'mercado_pago',
614
+ 'nequi',
615
+ 'nupay',
616
+ 'picpay',
617
+ 'thai_qr',
618
+ 'blik',
619
+ 'fpx',
620
+ 'wero',
621
+ 'p24',
622
+ 'affirm_pay',
623
+ 'rakuten_pay',
582
624
  ])
583
625
  .optional(),
584
626
  gateway: z
@@ -642,6 +684,7 @@ const CreateForChargeItemsAndChargesInvoicePaymentMethodSchema = z.object({
642
684
  'tempus',
643
685
  'moyasar',
644
686
  'payway',
687
+ 'payu',
645
688
  ])
646
689
  .optional(),
647
690
  gateway_account_id: z.string().max(50).optional(),
@@ -708,6 +751,19 @@ const CreateForChargeItemsAndChargesInvoicePaymentIntentSchema = z.object({
708
751
  'touch_n_go',
709
752
  'tamara',
710
753
  'qpay',
754
+ 'ovo',
755
+ 'momo',
756
+ 'mercado_pago',
757
+ 'nequi',
758
+ 'nupay',
759
+ 'picpay',
760
+ 'thai_qr',
761
+ 'blik',
762
+ 'fpx',
763
+ 'wero',
764
+ 'p24',
765
+ 'affirm_pay',
766
+ 'rakuten_pay',
711
767
  ])
712
768
  .optional(),
713
769
  reference_id: z.string().max(65000).optional(),
@@ -723,7 +779,7 @@ const CreateForChargeItemsAndChargesInvoiceItemPricesSchema = z.object({
723
779
  date_from: z.array(z.number().int().optional()).optional(),
724
780
  date_to: z.array(z.number().int().optional()).optional(),
725
781
  description: z.array(z.string().max(250).optional()).optional(),
726
- entity_description: z.array(z.string().max(500).optional()).optional(),
782
+ entity_description: z.array(z.string().max(2000).optional()).optional(),
727
783
  });
728
784
  const CreateForChargeItemsAndChargesInvoiceItemTiersSchema = z.object({
729
785
  item_price_id: z.array(z.string().max(100).optional()).optional(),
@@ -739,7 +795,7 @@ const CreateForChargeItemsAndChargesInvoiceItemTiersSchema = z.object({
739
795
  package_size: z.array(z.number().int().min(1).optional()).optional(),
740
796
  });
741
797
  const CreateForChargeItemsAndChargesInvoiceChargesSchema = z.object({
742
- entity_description: z.array(z.string().max(500).optional()).optional(),
798
+ entity_description: z.array(z.string().max(2000).optional()).optional(),
743
799
  amount: z.array(z.number().int().min(1).optional()).optional(),
744
800
  amount_in_decimal: z.array(z.string().max(39).optional()).optional(),
745
801
  description: z.array(z.string().max(250).optional()).optional(),
@@ -1012,6 +1068,23 @@ const ImportInvoiceInvoiceLineItemsSchema = z.object({
1012
1068
  tax9_amount: z.array(z.number().int().min(0).optional()).optional(),
1013
1069
  tax10_name: z.array(z.string().max(50).optional()).optional(),
1014
1070
  tax10_amount: z.array(z.number().int().min(0).optional()).optional(),
1071
+ is_partial_tax_applied: z.array(z.boolean().optional()).optional(),
1072
+ taxable_amount: z.array(z.number().int().min(0).optional()).optional(),
1073
+ tax_exempt_reason: z
1074
+ .array(z
1075
+ .enum([
1076
+ 'region_non_taxable',
1077
+ 'export',
1078
+ 'customer_exempt',
1079
+ 'product_exempt',
1080
+ 'zero_rated',
1081
+ 'reverse_charge',
1082
+ 'high_value_physical_goods',
1083
+ 'zero_value_item',
1084
+ 'tax_not_configured_external_provider',
1085
+ ])
1086
+ .optional())
1087
+ .optional(),
1015
1088
  proration_mode: z
1016
1089
  .array(z
1017
1090
  .enum(['reset', 'delta', 'service_period_revision', 'adjusted_term'])
@@ -1084,10 +1157,12 @@ const ImportInvoiceInvoicePaymentsSchema = z.object({
1084
1157
  'app_store',
1085
1158
  'play_store',
1086
1159
  'custom',
1087
- 'dana',
1088
- 'touch_n_go',
1089
1160
  'tamara',
1090
1161
  'qpay',
1162
+ 'blik',
1163
+ 'fpx',
1164
+ 'wero',
1165
+ 'p24',
1091
1166
  ])
1092
1167
  .optional()),
1093
1168
  date: z.array(z.number().int().optional()).optional(),
@@ -1421,12 +1496,12 @@ const PdfInvoiceBodySchema = z.looseObject({
1421
1496
  export { PdfInvoiceBodySchema };
1422
1497
  //Invoice.listPaymentReferenceNumbers
1423
1498
  const ListPaymentReferenceNumbersInvoiceIdSchema = z.object({
1424
- is: z.string().min(1).optional(),
1425
1499
  in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
1500
+ is: z.string().min(1).optional(),
1426
1501
  });
1427
1502
  const ListPaymentReferenceNumbersInvoiceNumberSchema = z.object({
1428
- is: z.string().min(1).optional(),
1429
1503
  in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
1504
+ is: z.string().min(1).optional(),
1430
1505
  });
1431
1506
  const ListPaymentReferenceNumbersInvoicePaymentReferenceNumberItemSchema = z.object({
1432
1507
  number: ListPaymentReferenceNumbersInvoiceNumberSchema.optional(),
@@ -1552,10 +1627,12 @@ const RecordPaymentInvoiceTransactionSchema = z.object({
1552
1627
  'app_store',
1553
1628
  'play_store',
1554
1629
  'custom',
1555
- 'dana',
1556
- 'touch_n_go',
1557
1630
  'tamara',
1558
1631
  'qpay',
1632
+ 'blik',
1633
+ 'fpx',
1634
+ 'wero',
1635
+ 'p24',
1559
1636
  ]),
1560
1637
  reference_number: z.string().max(100).optional(),
1561
1638
  custom_payment_method_id: z.string().max(50).optional(),
@@ -1622,10 +1699,12 @@ const RecordRefundInvoiceTransactionSchema = z.object({
1622
1699
  'app_store',
1623
1700
  'play_store',
1624
1701
  'custom',
1625
- 'dana',
1626
- 'touch_n_go',
1627
1702
  'tamara',
1628
1703
  'qpay',
1704
+ 'blik',
1705
+ 'fpx',
1706
+ 'wero',
1707
+ 'p24',
1629
1708
  ]),
1630
1709
  reference_number: z.string().max(100).optional(),
1631
1710
  custom_payment_method_id: z.string().max(50).optional(),
@@ -1747,3 +1826,8 @@ const ApplyPaymentScheduleSchemeInvoiceBodySchema = z.looseObject({
1747
1826
  amount: z.number().int().min(0).optional(),
1748
1827
  });
1749
1828
  export { ApplyPaymentScheduleSchemeInvoiceBodySchema };
1829
+ //Invoice.removePaymentScheduleScheme
1830
+ const RemovePaymentScheduleSchemeInvoiceBodySchema = z.looseObject({
1831
+ comment: z.string().max(300).optional(),
1832
+ });
1833
+ export { RemovePaymentScheduleSchemeInvoiceBodySchema };
@@ -155,8 +155,8 @@ const ListItemChannelSchema = z.object({
155
155
  not_in: z.enum(['web', 'app_store', 'play_store']).optional(),
156
156
  });
157
157
  const ListItemBusinessEntityIdSchema = z.object({
158
- is: z.string().min(1).optional(),
159
158
  is_present: z.enum(['true', 'false']).optional(),
159
+ is: z.string().min(1).optional(),
160
160
  });
161
161
  const ListItemIncludeSiteLevelResourcesSchema = z.object({
162
162
  is: z.enum(['true', 'false']).optional(),
@@ -30,8 +30,8 @@ const ListItemFamilyUpdatedAtSchema = z.object({
30
30
  between: z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
31
31
  });
32
32
  const ListItemFamilyBusinessEntityIdSchema = z.object({
33
- is: z.string().min(1).optional(),
34
33
  is_present: z.enum(['true', 'false']).optional(),
34
+ is: z.string().min(1).optional(),
35
35
  });
36
36
  const ListItemFamilyIncludeSiteLevelResourcesSchema = z.object({
37
37
  is: z.enum(['true', 'false']).optional(),
@@ -253,8 +253,8 @@ const ListItemPriceUpdatedAtSchema = z.object({
253
253
  between: z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
254
254
  });
255
255
  const ListItemPriceBusinessEntityIdSchema = z.object({
256
- is: z.string().min(1).optional(),
257
256
  is_present: z.enum(['true', 'false']).optional(),
257
+ is: z.string().min(1).optional(),
258
258
  });
259
259
  const ListItemPriceIncludeSiteLevelResourcesSchema = z.object({
260
260
  is: z.enum(['true', 'false']).optional(),
@@ -1,5 +1,5 @@
1
1
  // Generated Zod schemas: LedgerAccountBalance
2
- // Actions: listLedgerAccountBalances
2
+ // Actions: listLedgerAccountBalances, updateOverdraftLimit
3
3
  // Do not edit manually – regenerate via sdk-generator
4
4
  import { z } from 'zod';
5
5
  //LedgerAccountBalance.listLedgerAccountBalances
@@ -16,3 +16,12 @@ const ListLedgerAccountBalancesLedgerAccountBalanceBodySchema = z.looseObject({
16
16
  unit_id: ListLedgerAccountBalancesLedgerAccountBalanceUnitIdSchema.optional(),
17
17
  });
18
18
  export { ListLedgerAccountBalancesLedgerAccountBalanceBodySchema };
19
+ //LedgerAccountBalance.updateOverdraftLimit
20
+ const UpdateOverdraftLimitLedgerAccountBalanceBodySchema = z.looseObject({
21
+ subscription_id: z.string().max(50),
22
+ unit_id: z.string().max(50),
23
+ is_unlimited: z.boolean(),
24
+ limit: z.string().max(36).optional(),
25
+ change_reason: z.string().max(255).optional(),
26
+ });
27
+ export { UpdateOverdraftLimitLedgerAccountBalanceBodySchema };
@@ -16,7 +16,7 @@ const ListLedgerOperationsLedgerOperationCreatedAtSchema = z.object({
16
16
  between: z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
17
17
  });
18
18
  const ListLedgerOperationsLedgerOperationTypeSchema = z.object({
19
- is: z
19
+ in: z
20
20
  .enum([
21
21
  'allocation',
22
22
  'capture',
@@ -27,9 +27,10 @@ const ListLedgerOperationsLedgerOperationTypeSchema = z.object({
27
27
  'void',
28
28
  'rollover',
29
29
  'adjustment',
30
+ 'overdraft_settlement',
30
31
  ])
31
32
  .optional(),
32
- in: z
33
+ is: z
33
34
  .enum([
34
35
  'allocation',
35
36
  'capture',
@@ -40,6 +41,7 @@ const ListLedgerOperationsLedgerOperationTypeSchema = z.object({
40
41
  'void',
41
42
  'rollover',
42
43
  'adjustment',
44
+ 'overdraft_settlement',
43
45
  ])
44
46
  .optional(),
45
47
  });
@@ -104,7 +106,9 @@ const AllocateLedgerOperationMetadataSchema = z.looseObject({});
104
106
  const AllocateLedgerOperationBodySchema = z.looseObject({
105
107
  subscription_id: z.string().max(50),
106
108
  unit_id: z.string().max(50),
109
+ id: z.string().max(50).optional(),
107
110
  amount: z.string().max(36),
111
+ effective_from: z.number().int().optional(),
108
112
  expires_at: z.number().int(),
109
113
  metadata: AllocateLedgerOperationMetadataSchema.optional(),
110
114
  });
@@ -4,8 +4,8 @@
4
4
  import { z } from 'zod';
5
5
  //Meter.list
6
6
  const ListMeterNameSchema = z.object({
7
- is: z.string().min(1).optional(),
8
7
  starts_with: z.string().min(1).optional(),
8
+ is: z.string().min(1).optional(),
9
9
  });
10
10
  const ListMeterSortBySchema = z.looseObject({
11
11
  asc: z.enum(['id', 'name', 'created_at', 'updated_at']).optional(),
@@ -11,7 +11,7 @@ const CreateMeteredFeatureBodySchema = z.looseObject({
11
11
  name: z.string().max(50),
12
12
  description: z.string().max(250).optional(),
13
13
  feature_unit: z.string().max(50),
14
- query: z.string().max(500),
14
+ query: z.string().max(1000),
15
15
  column_definitions: CreateMeteredFeatureColumnDefinitionsSchema.optional(),
16
16
  });
17
17
  export { CreateMeteredFeatureBodySchema };
@@ -4,10 +4,18 @@
4
4
  import { z } from 'zod';
5
5
  //OmnichannelOneTimeOrder.list
6
6
  const ListOmnichannelOneTimeOrderSourceSchema = z.object({
7
- is: z.enum(['apple_app_store', 'google_play_store']).optional(),
8
- is_not: z.enum(['apple_app_store', 'google_play_store']).optional(),
9
- in: z.enum(['apple_app_store', 'google_play_store']).optional(),
10
- not_in: z.enum(['apple_app_store', 'google_play_store']).optional(),
7
+ is: z
8
+ .enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
9
+ .optional(),
10
+ is_not: z
11
+ .enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
12
+ .optional(),
13
+ in: z
14
+ .enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
15
+ .optional(),
16
+ not_in: z
17
+ .enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
18
+ .optional(),
11
19
  });
12
20
  const ListOmnichannelOneTimeOrderCustomerIdSchema = z.object({
13
21
  is: z.string().min(1).optional(),
@@ -4,10 +4,18 @@
4
4
  import { z } from 'zod';
5
5
  //OmnichannelSubscription.list
6
6
  const ListOmnichannelSubscriptionSourceSchema = z.object({
7
- is: z.enum(['apple_app_store', 'google_play_store']).optional(),
8
- is_not: z.enum(['apple_app_store', 'google_play_store']).optional(),
9
- in: z.enum(['apple_app_store', 'google_play_store']).optional(),
10
- not_in: z.enum(['apple_app_store', 'google_play_store']).optional(),
7
+ is: z
8
+ .enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
9
+ .optional(),
10
+ is_not: z
11
+ .enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
12
+ .optional(),
13
+ in: z
14
+ .enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
15
+ .optional(),
16
+ not_in: z
17
+ .enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
18
+ .optional(),
11
19
  });
12
20
  const ListOmnichannelSubscriptionCustomerIdSchema = z.object({
13
21
  is: z.string().min(1).optional(),
@@ -31,16 +39,16 @@ const ListOmnichannelSubscriptionIdAtSourceSchema = z.object({
31
39
  not_in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
32
40
  });
33
41
  const ListOmnichannelSubscriptionUpdatedAtSchema = z.object({
34
- before: z.string().regex(RegExp('^\\d{10}$')).optional(),
35
42
  between: z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
36
- after: z.string().regex(RegExp('^\\d{10}$')).optional(),
43
+ before: z.string().regex(RegExp('^\\d{10}$')).optional(),
37
44
  on: z.string().regex(RegExp('^\\d{10}$')).optional(),
45
+ after: z.string().regex(RegExp('^\\d{10}$')).optional(),
38
46
  });
39
47
  const ListOmnichannelSubscriptionPurchasedAtSchema = z.object({
40
- before: z.string().regex(RegExp('^\\d{10}$')).optional(),
41
48
  between: z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
42
- after: z.string().regex(RegExp('^\\d{10}$')).optional(),
49
+ before: z.string().regex(RegExp('^\\d{10}$')).optional(),
43
50
  on: z.string().regex(RegExp('^\\d{10}$')).optional(),
51
+ after: z.string().regex(RegExp('^\\d{10}$')).optional(),
44
52
  });
45
53
  const ListOmnichannelSubscriptionSortBySchema = z.looseObject({
46
54
  asc: z.enum(['created_at', 'updated_at']).optional(),
@@ -6,6 +6,7 @@ import { z } from 'zod';
6
6
  const CreatePaymentIntentPaymentMethodOptionsSchema = z.looseObject({});
7
7
  const CreatePaymentIntentBodySchema = z.looseObject({
8
8
  business_entity_id: z.string().max(50).optional(),
9
+ brand_id: z.string().max(50).optional(),
9
10
  customer_id: z.string().max(50).optional(),
10
11
  amount: z.number().int().min(0),
11
12
  currency_code: z.string().max(3),
@@ -66,6 +67,19 @@ const CreatePaymentIntentBodySchema = z.looseObject({
66
67
  'touch_n_go',
67
68
  'tamara',
68
69
  'qpay',
70
+ 'ovo',
71
+ 'momo',
72
+ 'mercado_pago',
73
+ 'nequi',
74
+ 'nupay',
75
+ 'picpay',
76
+ 'thai_qr',
77
+ 'blik',
78
+ 'fpx',
79
+ 'wero',
80
+ 'p24',
81
+ 'affirm_pay',
82
+ 'rakuten_pay',
69
83
  ])
70
84
  .optional(),
71
85
  success_url: z.string().max(250).optional(),
@@ -133,6 +147,19 @@ const UpdatePaymentIntentBodySchema = z.looseObject({
133
147
  'touch_n_go',
134
148
  'tamara',
135
149
  'qpay',
150
+ 'ovo',
151
+ 'momo',
152
+ 'mercado_pago',
153
+ 'nequi',
154
+ 'nupay',
155
+ 'picpay',
156
+ 'thai_qr',
157
+ 'blik',
158
+ 'fpx',
159
+ 'wero',
160
+ 'p24',
161
+ 'affirm_pay',
162
+ 'rakuten_pay',
136
163
  ])
137
164
  .optional(),
138
165
  success_url: z.string().max(250).optional(),
@@ -0,0 +1,33 @@
1
+ // Generated Zod schemas: PaymentSchedule
2
+ // Actions: list
3
+ // Do not edit manually – regenerate via sdk-generator
4
+ import { z } from 'zod';
5
+ //PaymentSchedule.list
6
+ const ListPaymentScheduleInvoiceIdSchema = z.object({
7
+ is: z.string().min(1).optional(),
8
+ is_not: z.string().min(1).optional(),
9
+ starts_with: z.string().min(1).optional(),
10
+ in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
11
+ not_in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
12
+ });
13
+ const ListPaymentScheduleIdSchema = z.object({
14
+ is: z.string().min(1).optional(),
15
+ is_not: z.string().min(1).optional(),
16
+ starts_with: z.string().min(1).optional(),
17
+ in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
18
+ not_in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
19
+ });
20
+ const ListPaymentScheduleUpdatedAtSchema = z.object({
21
+ after: z.string().regex(RegExp('^\\d{10}$')).optional(),
22
+ before: z.string().regex(RegExp('^\\d{10}$')).optional(),
23
+ on: z.string().regex(RegExp('^\\d{10}$')).optional(),
24
+ between: z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
25
+ });
26
+ const ListPaymentScheduleBodySchema = z.looseObject({
27
+ limit: z.number().int().min(1).max(100).optional(),
28
+ offset: z.string().max(1000).optional(),
29
+ invoice_id: ListPaymentScheduleInvoiceIdSchema.optional(),
30
+ id: ListPaymentScheduleIdSchema.optional(),
31
+ updated_at: ListPaymentScheduleUpdatedAtSchema.optional(),
32
+ });
33
+ export { ListPaymentScheduleBodySchema };
@@ -1,5 +1,5 @@
1
1
  // Generated Zod schemas: PaymentScheduleScheme
2
- // Actions: create
2
+ // Actions: create, list
3
3
  // Do not edit manually – regenerate via sdk-generator
4
4
  import { z } from 'zod';
5
5
  //PaymentScheduleScheme.create
@@ -15,3 +15,24 @@ const CreatePaymentScheduleSchemeBodySchema = z.looseObject({
15
15
  flexible_schedules: CreatePaymentScheduleSchemeFlexibleSchedulesSchema.optional(),
16
16
  });
17
17
  export { CreatePaymentScheduleSchemeBodySchema };
18
+ //PaymentScheduleScheme.list
19
+ const ListPaymentScheduleSchemeIdSchema = z.object({
20
+ is: z.string().min(1).optional(),
21
+ is_not: z.string().min(1).optional(),
22
+ starts_with: z.string().min(1).optional(),
23
+ in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
24
+ not_in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
25
+ });
26
+ const ListPaymentScheduleSchemeUpdatedAtSchema = z.object({
27
+ after: z.string().regex(RegExp('^\\d{10}$')).optional(),
28
+ before: z.string().regex(RegExp('^\\d{10}$')).optional(),
29
+ on: z.string().regex(RegExp('^\\d{10}$')).optional(),
30
+ between: z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
31
+ });
32
+ const ListPaymentScheduleSchemeBodySchema = z.looseObject({
33
+ limit: z.number().int().min(1).max(100).optional(),
34
+ offset: z.string().max(1000).optional(),
35
+ id: ListPaymentScheduleSchemeIdSchema.optional(),
36
+ updated_at: ListPaymentScheduleSchemeUpdatedAtSchema.optional(),
37
+ });
38
+ export { ListPaymentScheduleSchemeBodySchema };