chargebee 3.32.0 → 3.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/CHANGELOG.md +196 -0
  2. package/cjs/environment.js +1 -1
  3. package/cjs/resources/api_endpoints.js +323 -2
  4. package/cjs/resources/webhook/eventType.js +14 -0
  5. package/cjs/schema/business_rule.schema.js +54 -0
  6. package/cjs/schema/business_ruleset.schema.js +68 -0
  7. package/cjs/schema/card.schema.js +3 -1
  8. package/cjs/schema/credit_note.schema.js +10 -4
  9. package/cjs/schema/customer.schema.js +81 -10
  10. package/cjs/schema/dispute.schema.js +104 -0
  11. package/cjs/schema/einvoice.schema.js +37 -0
  12. package/cjs/schema/email_log.schema.js +28 -0
  13. package/cjs/schema/estimate.schema.js +38 -9
  14. package/cjs/schema/event.schema.js +56 -0
  15. package/cjs/schema/export.schema.js +68 -12
  16. package/cjs/schema/feature.schema.js +2 -2
  17. package/cjs/schema/gift.schema.js +27 -1
  18. package/cjs/schema/hosted_page.schema.js +26 -6
  19. package/cjs/schema/index.js +6 -0
  20. package/cjs/schema/invoice.schema.js +74 -10
  21. package/cjs/schema/ledger_operation.schema.js +4 -0
  22. package/cjs/schema/meter.schema.js +1 -1
  23. package/cjs/schema/metered_feature.schema.js +1 -1
  24. package/cjs/schema/payment_intent.schema.js +27 -0
  25. package/cjs/schema/payment_schedule.schema.js +36 -0
  26. package/cjs/schema/payment_schedule_scheme.schema.js +23 -2
  27. package/cjs/schema/payment_source.schema.js +103 -1
  28. package/cjs/schema/pricing_page_session.schema.js +1 -0
  29. package/cjs/schema/promotional_grant.schema.js +2 -0
  30. package/cjs/schema/purchase.schema.js +14 -1
  31. package/cjs/schema/quote.schema.js +2 -2
  32. package/cjs/schema/ramp.schema.js +8 -0
  33. package/cjs/schema/subscription.schema.js +179 -16
  34. package/cjs/schema/transaction.schema.js +60 -2
  35. package/cjs/schema/webhook_endpoint.schema.js +28 -0
  36. package/esm/environment.js +1 -1
  37. package/esm/resources/api_endpoints.js +323 -2
  38. package/esm/resources/webhook/eventType.js +14 -0
  39. package/esm/schema/business_rule.schema.js +51 -0
  40. package/esm/schema/business_ruleset.schema.js +65 -0
  41. package/esm/schema/card.schema.js +3 -1
  42. package/esm/schema/credit_note.schema.js +10 -4
  43. package/esm/schema/customer.schema.js +81 -10
  44. package/esm/schema/dispute.schema.js +101 -0
  45. package/esm/schema/einvoice.schema.js +34 -0
  46. package/esm/schema/email_log.schema.js +25 -0
  47. package/esm/schema/estimate.schema.js +38 -9
  48. package/esm/schema/event.schema.js +56 -0
  49. package/esm/schema/export.schema.js +68 -12
  50. package/esm/schema/feature.schema.js +2 -2
  51. package/esm/schema/gift.schema.js +27 -1
  52. package/esm/schema/hosted_page.schema.js +26 -6
  53. package/esm/schema/index.js +6 -0
  54. package/esm/schema/invoice.schema.js +74 -10
  55. package/esm/schema/ledger_operation.schema.js +4 -0
  56. package/esm/schema/meter.schema.js +1 -1
  57. package/esm/schema/metered_feature.schema.js +1 -1
  58. package/esm/schema/omnichannel_subscription.schema.js +1 -1
  59. package/esm/schema/payment_intent.schema.js +27 -0
  60. package/esm/schema/payment_schedule.schema.js +33 -0
  61. package/esm/schema/payment_schedule_scheme.schema.js +22 -1
  62. package/esm/schema/payment_source.schema.js +103 -1
  63. package/esm/schema/pricing_page_session.schema.js +1 -0
  64. package/esm/schema/promotional_grant.schema.js +2 -0
  65. package/esm/schema/purchase.schema.js +14 -1
  66. package/esm/schema/quote.schema.js +2 -2
  67. package/esm/schema/ramp.schema.js +8 -0
  68. package/esm/schema/subscription.schema.js +179 -16
  69. package/esm/schema/subscription_entitlement.schema.js +2 -2
  70. package/esm/schema/transaction.schema.js +60 -2
  71. package/esm/schema/webhook_endpoint.schema.js +28 -0
  72. package/package.json +1 -1
  73. package/types/core.d.ts +86 -8
  74. package/types/index.d.ts +15 -0
  75. package/types/resources/AppliedBusinessRule.d.ts +15 -0
  76. package/types/resources/AppliedRule.d.ts +14 -0
  77. package/types/resources/ApplyRule.d.ts +28 -0
  78. package/types/resources/BusinessRule.d.ts +161 -0
  79. package/types/resources/BusinessRuleset.d.ts +165 -0
  80. package/types/resources/BusinessRulesetRule.d.ts +9 -0
  81. package/types/resources/Card.d.ts +1 -1
  82. package/types/resources/Content.d.ts +9 -0
  83. package/types/resources/Coupon.d.ts +2 -2
  84. package/types/resources/CreditNote.d.ts +12 -0
  85. package/types/resources/CustomDataSchema.d.ts +15 -0
  86. package/types/resources/Customer.d.ts +42 -5
  87. package/types/resources/Dispute.d.ts +65 -0
  88. package/types/resources/Einvoice.d.ts +64 -1
  89. package/types/resources/EmailLog.d.ts +45 -0
  90. package/types/resources/Estimate.d.ts +34 -5
  91. package/types/resources/Event.d.ts +15 -0
  92. package/types/resources/Gift.d.ts +29 -3
  93. package/types/resources/GrantBlock.d.ts +26 -7
  94. package/types/resources/HostedPage.d.ts +14 -3
  95. package/types/resources/Invoice.d.ts +42 -4
  96. package/types/resources/LedgerEntry.d.ts +4 -4
  97. package/types/resources/LedgerOperation.d.ts +15 -8
  98. package/types/resources/OmnichannelSubscriptionItem.d.ts +5 -1
  99. package/types/resources/PaymentIntent.d.ts +72 -5
  100. package/types/resources/PaymentSchedule.d.ts +38 -1
  101. package/types/resources/PaymentScheduleEstimate.d.ts +1 -0
  102. package/types/resources/PaymentScheduleScheme.d.ts +17 -1
  103. package/types/resources/PaymentSource.d.ts +31 -2
  104. package/types/resources/PricingPageSession.d.ts +1 -0
  105. package/types/resources/PromotionalGrant.d.ts +2 -0
  106. package/types/resources/Purchase.d.ts +14 -1
  107. package/types/resources/Quote.d.ts +2 -2
  108. package/types/resources/QuotedSubscription.d.ts +3 -2
  109. package/types/resources/Ramp.d.ts +12 -0
  110. package/types/resources/Subscription.d.ts +116 -17
  111. package/types/resources/ThirdPartyPaymentMethod.d.ts +1 -0
  112. package/types/resources/Transaction.d.ts +5 -0
  113. package/types/resources/WebhookEvent.d.ts +70 -0
@@ -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 };
@@ -115,7 +115,7 @@ const OmnichannelTransactionsforomnichannelsubscriptionOmnichannelSubscriptionBo
115
115
  limit: z.number().int().min(1).max(100).optional(),
116
116
  offset: z.string().max(1000).optional(),
117
117
  });
118
- export { OmnichannelTransactionsforomnichannelsubscriptionOmnichannelSubscriptionBodySchema };
118
+ export { OmnichannelTransactionsforomnichannelsubscriptionOmnichannelSubscriptionBodySchema, };
119
119
  //OmnichannelSubscription.move
120
120
  const MoveOmnichannelSubscriptionBodySchema = z.looseObject({
121
121
  to_customer_id: z.string().max(50),
@@ -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 };
@@ -62,9 +62,23 @@ const CreateUsingTempTokenPaymentSourceBodySchema = z.looseObject({
62
62
  'touch_n_go',
63
63
  'tamara',
64
64
  'qpay',
65
+ 'ovo',
66
+ 'momo',
67
+ 'mercado_pago',
68
+ 'nequi',
69
+ 'nupay',
70
+ 'picpay',
71
+ 'thai_qr',
72
+ 'blik',
73
+ 'fpx',
74
+ 'wero',
75
+ 'p24',
76
+ 'affirm_pay',
77
+ 'rakuten_pay',
65
78
  ]),
66
79
  tmp_token: z.string().max(65000),
67
80
  issuing_country: z.string().max(50).optional(),
81
+ brand_id: z.string().max(50).optional(),
68
82
  replace_primary_payment_source: z.boolean().default(false).optional(),
69
83
  additional_information: CreateUsingTempTokenPaymentSourceAdditionalInformationSchema.optional(),
70
84
  });
@@ -119,6 +133,7 @@ const CreateUsingPermanentTokenPaymentSourceBillingAddressSchema = z.object({
119
133
  });
120
134
  const CreateUsingPermanentTokenPaymentSourceBodySchema = z.looseObject({
121
135
  customer_id: z.string().max(50),
136
+ brand_id: z.string().max(50).optional(),
122
137
  type: z.enum([
123
138
  'card',
124
139
  'paypal_express_checkout',
@@ -174,6 +189,19 @@ const CreateUsingPermanentTokenPaymentSourceBodySchema = z.looseObject({
174
189
  'touch_n_go',
175
190
  'tamara',
176
191
  'qpay',
192
+ 'ovo',
193
+ 'momo',
194
+ 'mercado_pago',
195
+ 'nequi',
196
+ 'nupay',
197
+ 'picpay',
198
+ 'thai_qr',
199
+ 'blik',
200
+ 'fpx',
201
+ 'wero',
202
+ 'p24',
203
+ 'affirm_pay',
204
+ 'rakuten_pay',
177
205
  ]),
178
206
  gateway_account_id: z.string().max(50).optional(),
179
207
  reference_id: z.string().max(200).optional(),
@@ -192,6 +220,7 @@ export { CreateUsingPermanentTokenPaymentSourceBodySchema };
192
220
  //PaymentSource.createUsingToken
193
221
  const CreateUsingTokenPaymentSourceBodySchema = z.looseObject({
194
222
  customer_id: z.string().max(50),
223
+ brand_id: z.string().max(50).optional(),
195
224
  replace_primary_payment_source: z.boolean().default(false).optional(),
196
225
  token_id: z.string().max(40),
197
226
  });
@@ -257,6 +286,19 @@ const CreateUsingPaymentIntentPaymentSourcePaymentIntentSchema = z.object({
257
286
  'touch_n_go',
258
287
  'tamara',
259
288
  'qpay',
289
+ 'ovo',
290
+ 'momo',
291
+ 'mercado_pago',
292
+ 'nequi',
293
+ 'nupay',
294
+ 'picpay',
295
+ 'thai_qr',
296
+ 'blik',
297
+ 'fpx',
298
+ 'wero',
299
+ 'p24',
300
+ 'affirm_pay',
301
+ 'rakuten_pay',
260
302
  ])
261
303
  .optional(),
262
304
  reference_id: z.string().max(65000).optional(),
@@ -266,6 +308,7 @@ const CreateUsingPaymentIntentPaymentSourcePaymentIntentSchema = z.object({
266
308
  });
267
309
  const CreateUsingPaymentIntentPaymentSourceBodySchema = z.looseObject({
268
310
  customer_id: z.string().max(50),
311
+ brand_id: z.string().max(50).optional(),
269
312
  replace_primary_payment_source: z.boolean().default(false).optional(),
270
313
  payment_intent: CreateUsingPaymentIntentPaymentSourcePaymentIntentSchema.optional(),
271
314
  });
@@ -280,6 +323,7 @@ const CreateVoucherPaymentSourcePaymentSourceVoucherPaymentSourceSchema = z.obje
280
323
  });
281
324
  const CreateVoucherPaymentSourcePaymentSourceBodySchema = z.looseObject({
282
325
  customer_id: z.string().max(50),
326
+ brand_id: z.string().max(50).optional(),
283
327
  voucher_payment_source: CreateVoucherPaymentSourcePaymentSourceVoucherPaymentSourceSchema.optional(),
284
328
  });
285
329
  export { CreateVoucherPaymentSourcePaymentSourceBodySchema };
@@ -294,7 +338,7 @@ const CreateCardPaymentSourceCardSchema = z.object({
294
338
  expiry_year: z.number().int(),
295
339
  cvv: z.string().max(520).optional(),
296
340
  preferred_scheme: z
297
- .enum(['cartes_bancaires', 'mastercard', 'visa'])
341
+ .enum(['cartes_bancaires', 'mastercard', 'visa', 'dankort'])
298
342
  .optional(),
299
343
  billing_addr1: z.string().max(150).optional(),
300
344
  billing_addr2: z.string().max(150).optional(),
@@ -307,6 +351,7 @@ const CreateCardPaymentSourceCardSchema = z.object({
307
351
  });
308
352
  const CreateCardPaymentSourceBodySchema = z.looseObject({
309
353
  customer_id: z.string().max(50),
354
+ brand_id: z.string().max(50).optional(),
310
355
  replace_primary_payment_source: z.boolean().default(false).optional(),
311
356
  card: CreateCardPaymentSourceCardSchema.optional(),
312
357
  });
@@ -335,6 +380,7 @@ const CreateBankAccountPaymentSourceBankAccountSchema = z.object({
335
380
  });
336
381
  const CreateBankAccountPaymentSourceBodySchema = z.looseObject({
337
382
  customer_id: z.string().max(50),
383
+ brand_id: z.string().max(50).optional(),
338
384
  issuing_country: z.string().max(50).optional(),
339
385
  replace_primary_payment_source: z.boolean().default(false).optional(),
340
386
  bank_account: CreateBankAccountPaymentSourceBankAccountSchema.optional(),
@@ -357,10 +403,14 @@ const UpdateCardPaymentSourceCardSchema = z.object({
357
403
  billing_country: z.string().max(50).optional(),
358
404
  additional_information: UpdateCardPaymentSourceAdditionalInformationSchema.optional(),
359
405
  });
406
+ const UpdateCardPaymentSourceNetworkTransactionReferenceSchema = z.object({
407
+ original_network_transaction_id: z.string().max(100).optional(),
408
+ });
360
409
  const UpdateCardPaymentSourceBodySchema = z.looseObject({
361
410
  gateway_meta_data: UpdateCardPaymentSourceGatewayMetaDataSchema.optional(),
362
411
  reference_transaction: z.string().max(50).optional(),
363
412
  card: UpdateCardPaymentSourceCardSchema.optional(),
413
+ network_transaction_reference: UpdateCardPaymentSourceNetworkTransactionReferenceSchema.optional(),
364
414
  });
365
415
  export { UpdateCardPaymentSourceBodySchema };
366
416
  //PaymentSource.updateBankAccount
@@ -451,6 +501,19 @@ const ListPaymentSourceTypeSchema = z.object({
451
501
  'touch_n_go',
452
502
  'tamara',
453
503
  'qpay',
504
+ 'ovo',
505
+ 'momo',
506
+ 'mercado_pago',
507
+ 'nequi',
508
+ 'nupay',
509
+ 'picpay',
510
+ 'thai_qr',
511
+ 'blik',
512
+ 'fpx',
513
+ 'wero',
514
+ 'p24',
515
+ 'affirm_pay',
516
+ 'rakuten_pay',
454
517
  ])
455
518
  .optional(),
456
519
  is_not: z
@@ -509,6 +572,19 @@ const ListPaymentSourceTypeSchema = z.object({
509
572
  'touch_n_go',
510
573
  'tamara',
511
574
  'qpay',
575
+ 'ovo',
576
+ 'momo',
577
+ 'mercado_pago',
578
+ 'nequi',
579
+ 'nupay',
580
+ 'picpay',
581
+ 'thai_qr',
582
+ 'blik',
583
+ 'fpx',
584
+ 'wero',
585
+ 'p24',
586
+ 'affirm_pay',
587
+ 'rakuten_pay',
512
588
  ])
513
589
  .optional(),
514
590
  in: z
@@ -567,6 +643,19 @@ const ListPaymentSourceTypeSchema = z.object({
567
643
  'touch_n_go',
568
644
  'tamara',
569
645
  'qpay',
646
+ 'ovo',
647
+ 'momo',
648
+ 'mercado_pago',
649
+ 'nequi',
650
+ 'nupay',
651
+ 'picpay',
652
+ 'thai_qr',
653
+ 'blik',
654
+ 'fpx',
655
+ 'wero',
656
+ 'p24',
657
+ 'affirm_pay',
658
+ 'rakuten_pay',
570
659
  ])
571
660
  .optional(),
572
661
  not_in: z
@@ -625,6 +714,19 @@ const ListPaymentSourceTypeSchema = z.object({
625
714
  'touch_n_go',
626
715
  'tamara',
627
716
  'qpay',
717
+ 'ovo',
718
+ 'momo',
719
+ 'mercado_pago',
720
+ 'nequi',
721
+ 'nupay',
722
+ 'picpay',
723
+ 'thai_qr',
724
+ 'blik',
725
+ 'fpx',
726
+ 'wero',
727
+ 'p24',
728
+ 'affirm_pay',
729
+ 'rakuten_pay',
628
730
  ])
629
731
  .optional(),
630
732
  });
@@ -80,6 +80,7 @@ const CreateForNewSubscriptionPricingPageSessionDiscountsSchema = z.object({
80
80
  const CreateForNewSubscriptionPricingPageSessionBodySchema = z.looseObject({
81
81
  redirect_url: z.string().max(250).optional(),
82
82
  business_entity_id: z.string().max(50).optional(),
83
+ brand_id: z.string().max(50).optional(),
83
84
  auto_select_local_currency: z.boolean().default(false).optional(),
84
85
  custom: CreateForNewSubscriptionPricingPageSessionCustomSchema.optional(),
85
86
  pricing_page: CreateForNewSubscriptionPricingPageSessionPricingPageSchema.optional(),
@@ -7,7 +7,9 @@ const PromotionalGrantsPromotionalGrantMetadataSchema = z.looseObject({});
7
7
  const PromotionalGrantsPromotionalGrantBodySchema = z.looseObject({
8
8
  subscription_id: z.string().max(50),
9
9
  unit_id: z.string().max(50),
10
+ id: z.string().max(50).optional(),
10
11
  amount: z.string().max(36),
12
+ effective_from: z.number().int().optional(),
11
13
  expires_at: z.number().int(),
12
14
  metadata: PromotionalGrantsPromotionalGrantMetadataSchema.optional(),
13
15
  });
@@ -73,6 +73,19 @@ const CreatePurchasePaymentIntentSchema = z.object({
73
73
  'touch_n_go',
74
74
  'tamara',
75
75
  'qpay',
76
+ 'ovo',
77
+ 'momo',
78
+ 'mercado_pago',
79
+ 'nequi',
80
+ 'nupay',
81
+ 'picpay',
82
+ 'thai_qr',
83
+ 'blik',
84
+ 'fpx',
85
+ 'wero',
86
+ 'p24',
87
+ 'affirm_pay',
88
+ 'rakuten_pay',
76
89
  ])
77
90
  .optional(),
78
91
  reference_id: z.string().max(65000).optional(),
@@ -163,7 +176,7 @@ const EstimatePurchaseCustomerSchema = z.object({
163
176
  vat_number: z.string().max(20).optional(),
164
177
  vat_number_prefix: z.string().max(10).optional(),
165
178
  registered_for_gst: z.boolean().optional(),
166
- taxability: z.enum(['taxable', 'exempt']).optional(),
179
+ taxability: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
167
180
  entity_code: z
168
181
  .enum([
169
182
  'a',
@@ -6,7 +6,7 @@ import { z } from 'zod';
6
6
  const CreateSubForCustomerQuoteQuoteSubscriptionSchema = z.object({
7
7
  id: z.string().max(50).optional(),
8
8
  po_number: z.string().max(100).optional(),
9
- plan_id: z.string().max(100),
9
+ plan_id: z.string().max(100).optional(),
10
10
  plan_quantity: z.number().int().min(1).optional(),
11
11
  plan_quantity_in_decimal: z.string().max(33).optional(),
12
12
  plan_unit_price: z.number().int().min(0).optional(),
@@ -114,7 +114,7 @@ export { CreateSubForCustomerQuoteQuoteBodySchema };
114
114
  const EditCreateSubForCustomerQuoteQuoteSubscriptionSchema = z.object({
115
115
  id: z.string().max(50).optional(),
116
116
  po_number: z.string().max(100).optional(),
117
- plan_id: z.string().max(100),
117
+ plan_id: z.string().max(100).optional(),
118
118
  plan_quantity: z.number().int().min(1).optional(),
119
119
  plan_quantity_in_decimal: z.string().max(33).optional(),
120
120
  plan_unit_price: z.number().int().min(0).optional(),
@@ -3,6 +3,9 @@
3
3
  // Do not edit manually – regenerate via sdk-generator
4
4
  import { z } from 'zod';
5
5
  //Ramp.createForSubscription
6
+ const CreateForSubscriptionRampBillingConfigurationSchema = z.object({
7
+ po_number: z.string().max(100).optional(),
8
+ });
6
9
  const CreateForSubscriptionRampContractTermSchema = z.object({
7
10
  action_at_term_end: z
8
11
  .enum(['renew', 'evergreen', 'cancel', 'renew_once'])
@@ -96,6 +99,7 @@ const CreateForSubscriptionRampBodySchema = z.looseObject({
96
99
  coupons_to_remove: z.array(z.string().max(100).optional()).optional(),
97
100
  discounts_to_remove: z.array(z.string().max(100).optional()).optional(),
98
101
  items_to_remove: z.array(z.string().max(100).optional()).optional(),
102
+ billing_configuration: CreateForSubscriptionRampBillingConfigurationSchema.optional(),
99
103
  contract_term: CreateForSubscriptionRampContractTermSchema.optional(),
100
104
  items_to_add: CreateForSubscriptionRampItemsToAddSchema.optional(),
101
105
  items_to_update: CreateForSubscriptionRampItemsToUpdateSchema.optional(),
@@ -105,6 +109,9 @@ const CreateForSubscriptionRampBodySchema = z.looseObject({
105
109
  });
106
110
  export { CreateForSubscriptionRampBodySchema };
107
111
  //Ramp.update
112
+ const UpdateRampBillingConfigurationSchema = z.object({
113
+ po_number: z.string().max(100).optional(),
114
+ });
108
115
  const UpdateRampContractTermSchema = z.object({
109
116
  action_at_term_end: z
110
117
  .enum(['renew', 'evergreen', 'cancel', 'renew_once'])
@@ -198,6 +205,7 @@ const UpdateRampBodySchema = z.looseObject({
198
205
  coupons_to_remove: z.array(z.string().max(100).optional()).optional(),
199
206
  discounts_to_remove: z.array(z.string().max(100).optional()).optional(),
200
207
  items_to_remove: z.array(z.string().max(100).optional()).optional(),
208
+ billing_configuration: UpdateRampBillingConfigurationSchema.optional(),
201
209
  contract_term: UpdateRampContractTermSchema.optional(),
202
210
  items_to_add: UpdateRampItemsToAddSchema.optional(),
203
211
  items_to_update: UpdateRampItemsToUpdateSchema.optional(),