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,9 +1,9 @@
1
1
  "use strict";
2
2
  // Generated Zod schemas: Invoice
3
- // 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
3
+ // 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
4
4
  // Do not edit manually – regenerate via sdk-generator
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ApplyPaymentScheduleSchemeInvoiceBodySchema = exports.UpdateDetailsInvoiceBodySchema = exports.DeleteInvoiceBodySchema = exports.VoidBeforeCaptureInvoiceBodySchema = exports.WriteOffInvoiceBodySchema = exports.VoidInvoiceInvoiceBodySchema = exports.RemoveCreditNoteInvoiceBodySchema = exports.RemovePaymentInvoiceBodySchema = exports.RecordRefundInvoiceBodySchema = exports.RefundInvoiceBodySchema = exports.RemoveTaxWithheldInvoiceBodySchema = exports.RecordTaxWithheldInvoiceBodySchema = exports.RecordPaymentInvoiceBodySchema = exports.CollectPaymentInvoiceBodySchema = exports.CloseInvoiceBodySchema = exports.AddChargeItemInvoiceBodySchema = exports.AddAddonChargeInvoiceBodySchema = exports.AddChargeInvoiceBodySchema = exports.ListPaymentReferenceNumbersInvoiceBodySchema = exports.PdfInvoiceBodySchema = exports.RetrieveInvoiceBodySchema = exports.InvoicesForSubscriptionInvoiceBodySchema = exports.InvoicesForCustomerInvoiceBodySchema = exports.ListInvoiceBodySchema = exports.ApplyCreditsInvoiceBodySchema = exports.DeleteLineItemsInvoiceBodySchema = exports.ApplyPaymentsInvoiceBodySchema = exports.ImportInvoiceInvoiceBodySchema = exports.ResumeDunningInvoiceBodySchema = exports.PauseDunningInvoiceBodySchema = exports.StopDunningInvoiceBodySchema = exports.CreateForChargeItemInvoiceBodySchema = exports.ChargeAddonInvoiceBodySchema = exports.ChargeInvoiceBodySchema = exports.CreateForChargeItemsAndChargesInvoiceBodySchema = exports.CreateInvoiceBodySchema = void 0;
6
+ exports.RemovePaymentScheduleSchemeInvoiceBodySchema = exports.ApplyPaymentScheduleSchemeInvoiceBodySchema = exports.UpdateDetailsInvoiceBodySchema = exports.DeleteInvoiceBodySchema = exports.VoidBeforeCaptureInvoiceBodySchema = exports.WriteOffInvoiceBodySchema = exports.VoidInvoiceInvoiceBodySchema = exports.RemoveCreditNoteInvoiceBodySchema = exports.RemovePaymentInvoiceBodySchema = exports.RecordRefundInvoiceBodySchema = exports.RefundInvoiceBodySchema = exports.RemoveTaxWithheldInvoiceBodySchema = exports.RecordTaxWithheldInvoiceBodySchema = exports.RecordPaymentInvoiceBodySchema = exports.CollectPaymentInvoiceBodySchema = exports.CloseInvoiceBodySchema = exports.AddChargeItemInvoiceBodySchema = exports.AddAddonChargeInvoiceBodySchema = exports.AddChargeInvoiceBodySchema = exports.ListPaymentReferenceNumbersInvoiceBodySchema = exports.PdfInvoiceBodySchema = exports.RetrieveInvoiceBodySchema = exports.InvoicesForSubscriptionInvoiceBodySchema = exports.InvoicesForCustomerInvoiceBodySchema = exports.ListInvoiceBodySchema = exports.ApplyCreditsInvoiceBodySchema = exports.DeleteLineItemsInvoiceBodySchema = exports.ApplyPaymentsInvoiceBodySchema = exports.ImportInvoiceInvoiceBodySchema = exports.ResumeDunningInvoiceBodySchema = exports.PauseDunningInvoiceBodySchema = exports.StopDunningInvoiceBodySchema = exports.CreateForChargeItemInvoiceBodySchema = exports.ChargeAddonInvoiceBodySchema = exports.ChargeInvoiceBodySchema = exports.CreateForChargeItemsAndChargesInvoiceBodySchema = exports.CreateInvoiceBodySchema = void 0;
7
7
  const zod_1 = require("zod");
8
8
  //Invoice.create
9
9
  const CreateInvoiceShippingAddressSchema = zod_1.z.object({
@@ -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,23 @@ 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(),
1076
+ tax_exempt_reason: zod_1.z
1077
+ .array(zod_1.z
1078
+ .enum([
1079
+ 'region_non_taxable',
1080
+ 'export',
1081
+ 'customer_exempt',
1082
+ 'product_exempt',
1083
+ 'zero_rated',
1084
+ 'reverse_charge',
1085
+ 'high_value_physical_goods',
1086
+ 'zero_value_item',
1087
+ 'tax_not_configured_external_provider',
1088
+ ])
1089
+ .optional())
1090
+ .optional(),
1018
1091
  proration_mode: zod_1.z
1019
1092
  .array(zod_1.z
1020
1093
  .enum(['reset', 'delta', 'service_period_revision', 'adjusted_term'])
@@ -1087,10 +1160,12 @@ const ImportInvoiceInvoicePaymentsSchema = zod_1.z.object({
1087
1160
  'app_store',
1088
1161
  'play_store',
1089
1162
  'custom',
1090
- 'dana',
1091
- 'touch_n_go',
1092
1163
  'tamara',
1093
1164
  'qpay',
1165
+ 'blik',
1166
+ 'fpx',
1167
+ 'wero',
1168
+ 'p24',
1094
1169
  ])
1095
1170
  .optional()),
1096
1171
  date: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
@@ -1424,12 +1499,12 @@ const PdfInvoiceBodySchema = zod_1.z.looseObject({
1424
1499
  exports.PdfInvoiceBodySchema = PdfInvoiceBodySchema;
1425
1500
  //Invoice.listPaymentReferenceNumbers
1426
1501
  const ListPaymentReferenceNumbersInvoiceIdSchema = zod_1.z.object({
1427
- is: zod_1.z.string().min(1).optional(),
1428
1502
  in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
1503
+ is: zod_1.z.string().min(1).optional(),
1429
1504
  });
1430
1505
  const ListPaymentReferenceNumbersInvoiceNumberSchema = zod_1.z.object({
1431
- is: zod_1.z.string().min(1).optional(),
1432
1506
  in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
1507
+ is: zod_1.z.string().min(1).optional(),
1433
1508
  });
1434
1509
  const ListPaymentReferenceNumbersInvoicePaymentReferenceNumberItemSchema = zod_1.z.object({
1435
1510
  number: ListPaymentReferenceNumbersInvoiceNumberSchema.optional(),
@@ -1555,10 +1630,12 @@ const RecordPaymentInvoiceTransactionSchema = zod_1.z.object({
1555
1630
  'app_store',
1556
1631
  'play_store',
1557
1632
  'custom',
1558
- 'dana',
1559
- 'touch_n_go',
1560
1633
  'tamara',
1561
1634
  'qpay',
1635
+ 'blik',
1636
+ 'fpx',
1637
+ 'wero',
1638
+ 'p24',
1562
1639
  ]),
1563
1640
  reference_number: zod_1.z.string().max(100).optional(),
1564
1641
  custom_payment_method_id: zod_1.z.string().max(50).optional(),
@@ -1625,10 +1702,12 @@ const RecordRefundInvoiceTransactionSchema = zod_1.z.object({
1625
1702
  'app_store',
1626
1703
  'play_store',
1627
1704
  'custom',
1628
- 'dana',
1629
- 'touch_n_go',
1630
1705
  'tamara',
1631
1706
  'qpay',
1707
+ 'blik',
1708
+ 'fpx',
1709
+ 'wero',
1710
+ 'p24',
1632
1711
  ]),
1633
1712
  reference_number: zod_1.z.string().max(100).optional(),
1634
1713
  custom_payment_method_id: zod_1.z.string().max(50).optional(),
@@ -1750,3 +1829,8 @@ const ApplyPaymentScheduleSchemeInvoiceBodySchema = zod_1.z.looseObject({
1750
1829
  amount: zod_1.z.number().int().min(0).optional(),
1751
1830
  });
1752
1831
  exports.ApplyPaymentScheduleSchemeInvoiceBodySchema = ApplyPaymentScheduleSchemeInvoiceBodySchema;
1832
+ //Invoice.removePaymentScheduleScheme
1833
+ const RemovePaymentScheduleSchemeInvoiceBodySchema = zod_1.z.looseObject({
1834
+ comment: zod_1.z.string().max(300).optional(),
1835
+ });
1836
+ exports.RemovePaymentScheduleSchemeInvoiceBodySchema = RemovePaymentScheduleSchemeInvoiceBodySchema;
@@ -158,8 +158,8 @@ const ListItemChannelSchema = zod_1.z.object({
158
158
  not_in: zod_1.z.enum(['web', 'app_store', 'play_store']).optional(),
159
159
  });
160
160
  const ListItemBusinessEntityIdSchema = zod_1.z.object({
161
- is: zod_1.z.string().min(1).optional(),
162
161
  is_present: zod_1.z.enum(['true', 'false']).optional(),
162
+ is: zod_1.z.string().min(1).optional(),
163
163
  });
164
164
  const ListItemIncludeSiteLevelResourcesSchema = zod_1.z.object({
165
165
  is: zod_1.z.enum(['true', 'false']).optional(),
@@ -33,8 +33,8 @@ const ListItemFamilyUpdatedAtSchema = zod_1.z.object({
33
33
  between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
34
34
  });
35
35
  const ListItemFamilyBusinessEntityIdSchema = zod_1.z.object({
36
- is: zod_1.z.string().min(1).optional(),
37
36
  is_present: zod_1.z.enum(['true', 'false']).optional(),
37
+ is: zod_1.z.string().min(1).optional(),
38
38
  });
39
39
  const ListItemFamilyIncludeSiteLevelResourcesSchema = zod_1.z.object({
40
40
  is: zod_1.z.enum(['true', 'false']).optional(),
@@ -256,8 +256,8 @@ const ListItemPriceUpdatedAtSchema = zod_1.z.object({
256
256
  between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
257
257
  });
258
258
  const ListItemPriceBusinessEntityIdSchema = zod_1.z.object({
259
- is: zod_1.z.string().min(1).optional(),
260
259
  is_present: zod_1.z.enum(['true', 'false']).optional(),
260
+ is: zod_1.z.string().min(1).optional(),
261
261
  });
262
262
  const ListItemPriceIncludeSiteLevelResourcesSchema = zod_1.z.object({
263
263
  is: zod_1.z.enum(['true', 'false']).optional(),
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  // Generated Zod schemas: LedgerAccountBalance
3
- // Actions: listLedgerAccountBalances
3
+ // Actions: listLedgerAccountBalances, updateOverdraftLimit
4
4
  // Do not edit manually – regenerate via sdk-generator
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ListLedgerAccountBalancesLedgerAccountBalanceBodySchema = void 0;
6
+ exports.UpdateOverdraftLimitLedgerAccountBalanceBodySchema = exports.ListLedgerAccountBalancesLedgerAccountBalanceBodySchema = void 0;
7
7
  const zod_1 = require("zod");
8
8
  //LedgerAccountBalance.listLedgerAccountBalances
9
9
  const ListLedgerAccountBalancesLedgerAccountBalanceSubscriptionIdSchema = zod_1.z.object({
@@ -19,3 +19,12 @@ const ListLedgerAccountBalancesLedgerAccountBalanceBodySchema = zod_1.z.looseObj
19
19
  unit_id: ListLedgerAccountBalancesLedgerAccountBalanceUnitIdSchema.optional(),
20
20
  });
21
21
  exports.ListLedgerAccountBalancesLedgerAccountBalanceBodySchema = ListLedgerAccountBalancesLedgerAccountBalanceBodySchema;
22
+ //LedgerAccountBalance.updateOverdraftLimit
23
+ const UpdateOverdraftLimitLedgerAccountBalanceBodySchema = zod_1.z.looseObject({
24
+ subscription_id: zod_1.z.string().max(50),
25
+ unit_id: zod_1.z.string().max(50),
26
+ is_unlimited: zod_1.z.boolean(),
27
+ limit: zod_1.z.string().max(36).optional(),
28
+ change_reason: zod_1.z.string().max(255).optional(),
29
+ });
30
+ exports.UpdateOverdraftLimitLedgerAccountBalanceBodySchema = UpdateOverdraftLimitLedgerAccountBalanceBodySchema;
@@ -19,7 +19,7 @@ const ListLedgerOperationsLedgerOperationCreatedAtSchema = zod_1.z.object({
19
19
  between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
20
20
  });
21
21
  const ListLedgerOperationsLedgerOperationTypeSchema = zod_1.z.object({
22
- is: zod_1.z
22
+ in: zod_1.z
23
23
  .enum([
24
24
  'allocation',
25
25
  'capture',
@@ -30,9 +30,10 @@ const ListLedgerOperationsLedgerOperationTypeSchema = zod_1.z.object({
30
30
  'void',
31
31
  'rollover',
32
32
  'adjustment',
33
+ 'overdraft_settlement',
33
34
  ])
34
35
  .optional(),
35
- in: zod_1.z
36
+ is: zod_1.z
36
37
  .enum([
37
38
  'allocation',
38
39
  'capture',
@@ -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;
@@ -7,10 +7,18 @@ exports.ListOmnichannelOneTimeOrderBodySchema = void 0;
7
7
  const zod_1 = require("zod");
8
8
  //OmnichannelOneTimeOrder.list
9
9
  const ListOmnichannelOneTimeOrderSourceSchema = zod_1.z.object({
10
- is: zod_1.z.enum(['apple_app_store', 'google_play_store']).optional(),
11
- is_not: zod_1.z.enum(['apple_app_store', 'google_play_store']).optional(),
12
- in: zod_1.z.enum(['apple_app_store', 'google_play_store']).optional(),
13
- not_in: zod_1.z.enum(['apple_app_store', 'google_play_store']).optional(),
10
+ is: zod_1.z
11
+ .enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
12
+ .optional(),
13
+ is_not: zod_1.z
14
+ .enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
15
+ .optional(),
16
+ in: zod_1.z
17
+ .enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
18
+ .optional(),
19
+ not_in: zod_1.z
20
+ .enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
21
+ .optional(),
14
22
  });
15
23
  const ListOmnichannelOneTimeOrderCustomerIdSchema = zod_1.z.object({
16
24
  is: zod_1.z.string().min(1).optional(),
@@ -7,10 +7,18 @@ exports.MoveOmnichannelSubscriptionBodySchema = exports.OmnichannelTransactionsf
7
7
  const zod_1 = require("zod");
8
8
  //OmnichannelSubscription.list
9
9
  const ListOmnichannelSubscriptionSourceSchema = zod_1.z.object({
10
- is: zod_1.z.enum(['apple_app_store', 'google_play_store']).optional(),
11
- is_not: zod_1.z.enum(['apple_app_store', 'google_play_store']).optional(),
12
- in: zod_1.z.enum(['apple_app_store', 'google_play_store']).optional(),
13
- not_in: zod_1.z.enum(['apple_app_store', 'google_play_store']).optional(),
10
+ is: zod_1.z
11
+ .enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
12
+ .optional(),
13
+ is_not: zod_1.z
14
+ .enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
15
+ .optional(),
16
+ in: zod_1.z
17
+ .enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
18
+ .optional(),
19
+ not_in: zod_1.z
20
+ .enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
21
+ .optional(),
14
22
  });
15
23
  const ListOmnichannelSubscriptionCustomerIdSchema = zod_1.z.object({
16
24
  is: zod_1.z.string().min(1).optional(),
@@ -34,16 +42,16 @@ const ListOmnichannelSubscriptionIdAtSourceSchema = zod_1.z.object({
34
42
  not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
35
43
  });
36
44
  const ListOmnichannelSubscriptionUpdatedAtSchema = zod_1.z.object({
37
- before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
38
45
  between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
39
- after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
46
+ before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
40
47
  on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
48
+ after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
41
49
  });
42
50
  const ListOmnichannelSubscriptionPurchasedAtSchema = zod_1.z.object({
43
- before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
44
51
  between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
45
- after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
52
+ before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
46
53
  on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
54
+ after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
47
55
  });
48
56
  const ListOmnichannelSubscriptionSortBySchema = zod_1.z.looseObject({
49
57
  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;