chargebee 3.33.0 → 3.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/CHANGELOG.md +190 -0
  2. package/cjs/environment.js +1 -1
  3. package/cjs/resources/api_endpoints.js +323 -2
  4. package/cjs/resources/webhook/eventType.js +14 -0
  5. package/cjs/schema/business_rule.schema.js +54 -0
  6. package/cjs/schema/business_ruleset.schema.js +68 -0
  7. package/cjs/schema/card.schema.js +3 -1
  8. package/cjs/schema/credit_note.schema.js +10 -4
  9. package/cjs/schema/customer.schema.js +81 -10
  10. package/cjs/schema/dispute.schema.js +104 -0
  11. package/cjs/schema/einvoice.schema.js +37 -0
  12. package/cjs/schema/email_log.schema.js +28 -0
  13. package/cjs/schema/estimate.schema.js +35 -6
  14. package/cjs/schema/event.schema.js +56 -0
  15. package/cjs/schema/export.schema.js +68 -12
  16. package/cjs/schema/feature.schema.js +2 -2
  17. package/cjs/schema/gift.schema.js +26 -0
  18. package/cjs/schema/hosted_page.schema.js +24 -4
  19. package/cjs/schema/index.js +6 -0
  20. package/cjs/schema/invoice.schema.js +74 -10
  21. package/cjs/schema/ledger_operation.schema.js +4 -0
  22. package/cjs/schema/meter.schema.js +1 -1
  23. package/cjs/schema/metered_feature.schema.js +1 -1
  24. package/cjs/schema/omnichannel_subscription.schema.js +4 -4
  25. package/cjs/schema/payment_intent.schema.js +27 -0
  26. package/cjs/schema/payment_schedule.schema.js +36 -0
  27. package/cjs/schema/payment_schedule_scheme.schema.js +23 -2
  28. package/cjs/schema/payment_source.schema.js +103 -1
  29. package/cjs/schema/pricing_page_session.schema.js +1 -0
  30. package/cjs/schema/promotional_grant.schema.js +2 -0
  31. package/cjs/schema/purchase.schema.js +14 -1
  32. package/cjs/schema/ramp.schema.js +8 -0
  33. package/cjs/schema/subscription.schema.js +175 -12
  34. package/cjs/schema/transaction.schema.js +60 -2
  35. package/cjs/schema/webhook_endpoint.schema.js +28 -0
  36. package/esm/environment.js +1 -1
  37. package/esm/resources/api_endpoints.js +323 -2
  38. package/esm/resources/webhook/eventType.js +14 -0
  39. package/esm/schema/business_rule.schema.js +51 -0
  40. package/esm/schema/business_ruleset.schema.js +65 -0
  41. package/esm/schema/card.schema.js +3 -1
  42. package/esm/schema/credit_note.schema.js +10 -4
  43. package/esm/schema/customer.schema.js +81 -10
  44. package/esm/schema/dispute.schema.js +101 -0
  45. package/esm/schema/einvoice.schema.js +34 -0
  46. package/esm/schema/email_log.schema.js +25 -0
  47. package/esm/schema/estimate.schema.js +35 -6
  48. package/esm/schema/event.schema.js +56 -0
  49. package/esm/schema/export.schema.js +68 -12
  50. package/esm/schema/feature.schema.js +2 -2
  51. package/esm/schema/gift.schema.js +26 -0
  52. package/esm/schema/hosted_page.schema.js +24 -4
  53. package/esm/schema/index.js +6 -0
  54. package/esm/schema/invoice.schema.js +74 -10
  55. package/esm/schema/ledger_operation.schema.js +4 -0
  56. package/esm/schema/meter.schema.js +1 -1
  57. package/esm/schema/metered_feature.schema.js +1 -1
  58. package/esm/schema/omnichannel_subscription.schema.js +4 -4
  59. package/esm/schema/payment_intent.schema.js +27 -0
  60. package/esm/schema/payment_schedule.schema.js +33 -0
  61. package/esm/schema/payment_schedule_scheme.schema.js +22 -1
  62. package/esm/schema/payment_source.schema.js +103 -1
  63. package/esm/schema/pricing_page_session.schema.js +1 -0
  64. package/esm/schema/promotional_grant.schema.js +2 -0
  65. package/esm/schema/purchase.schema.js +14 -1
  66. package/esm/schema/ramp.schema.js +8 -0
  67. package/esm/schema/subscription.schema.js +175 -12
  68. package/esm/schema/transaction.schema.js +60 -2
  69. package/esm/schema/webhook_endpoint.schema.js +28 -0
  70. package/package.json +1 -1
  71. package/types/core.d.ts +86 -8
  72. package/types/index.d.ts +15 -0
  73. package/types/resources/AppliedBusinessRule.d.ts +15 -0
  74. package/types/resources/AppliedRule.d.ts +14 -0
  75. package/types/resources/ApplyRule.d.ts +28 -0
  76. package/types/resources/BusinessRule.d.ts +161 -0
  77. package/types/resources/BusinessRuleset.d.ts +165 -0
  78. package/types/resources/BusinessRulesetRule.d.ts +9 -0
  79. package/types/resources/Card.d.ts +1 -1
  80. package/types/resources/Content.d.ts +9 -0
  81. package/types/resources/CreditNote.d.ts +12 -0
  82. package/types/resources/CustomDataSchema.d.ts +15 -0
  83. package/types/resources/Customer.d.ts +42 -5
  84. package/types/resources/Dispute.d.ts +65 -0
  85. package/types/resources/Einvoice.d.ts +64 -1
  86. package/types/resources/EmailLog.d.ts +45 -0
  87. package/types/resources/Estimate.d.ts +31 -2
  88. package/types/resources/Event.d.ts +15 -0
  89. package/types/resources/Gift.d.ts +28 -2
  90. package/types/resources/GrantBlock.d.ts +26 -7
  91. package/types/resources/HostedPage.d.ts +11 -0
  92. package/types/resources/Invoice.d.ts +42 -4
  93. package/types/resources/LedgerEntry.d.ts +4 -4
  94. package/types/resources/LedgerOperation.d.ts +15 -8
  95. package/types/resources/OmnichannelSubscriptionItem.d.ts +5 -1
  96. package/types/resources/PaymentIntent.d.ts +72 -5
  97. package/types/resources/PaymentSchedule.d.ts +38 -1
  98. package/types/resources/PaymentScheduleEstimate.d.ts +1 -0
  99. package/types/resources/PaymentScheduleScheme.d.ts +17 -1
  100. package/types/resources/PaymentSource.d.ts +31 -2
  101. package/types/resources/PricingPageSession.d.ts +1 -0
  102. package/types/resources/PromotionalGrant.d.ts +2 -0
  103. package/types/resources/Purchase.d.ts +14 -1
  104. package/types/resources/QuotedSubscription.d.ts +1 -0
  105. package/types/resources/Ramp.d.ts +12 -0
  106. package/types/resources/Subscription.d.ts +110 -11
  107. package/types/resources/ThirdPartyPaymentMethod.d.ts +1 -0
  108. package/types/resources/Transaction.d.ts +5 -0
  109. package/types/resources/WebhookEvent.d.ts +70 -0
@@ -6,6 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ListRampBodySchema = exports.UpdateRampBodySchema = exports.CreateForSubscriptionRampBodySchema = void 0;
7
7
  const zod_1 = require("zod");
8
8
  //Ramp.createForSubscription
9
+ const CreateForSubscriptionRampBillingConfigurationSchema = zod_1.z.object({
10
+ po_number: zod_1.z.string().max(100).optional(),
11
+ });
9
12
  const CreateForSubscriptionRampContractTermSchema = zod_1.z.object({
10
13
  action_at_term_end: zod_1.z
11
14
  .enum(['renew', 'evergreen', 'cancel', 'renew_once'])
@@ -99,6 +102,7 @@ const CreateForSubscriptionRampBodySchema = zod_1.z.looseObject({
99
102
  coupons_to_remove: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
100
103
  discounts_to_remove: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
101
104
  items_to_remove: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
105
+ billing_configuration: CreateForSubscriptionRampBillingConfigurationSchema.optional(),
102
106
  contract_term: CreateForSubscriptionRampContractTermSchema.optional(),
103
107
  items_to_add: CreateForSubscriptionRampItemsToAddSchema.optional(),
104
108
  items_to_update: CreateForSubscriptionRampItemsToUpdateSchema.optional(),
@@ -108,6 +112,9 @@ const CreateForSubscriptionRampBodySchema = zod_1.z.looseObject({
108
112
  });
109
113
  exports.CreateForSubscriptionRampBodySchema = CreateForSubscriptionRampBodySchema;
110
114
  //Ramp.update
115
+ const UpdateRampBillingConfigurationSchema = zod_1.z.object({
116
+ po_number: zod_1.z.string().max(100).optional(),
117
+ });
111
118
  const UpdateRampContractTermSchema = zod_1.z.object({
112
119
  action_at_term_end: zod_1.z
113
120
  .enum(['renew', 'evergreen', 'cancel', 'renew_once'])
@@ -201,6 +208,7 @@ const UpdateRampBodySchema = zod_1.z.looseObject({
201
208
  coupons_to_remove: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
202
209
  discounts_to_remove: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
203
210
  items_to_remove: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
211
+ billing_configuration: UpdateRampBillingConfigurationSchema.optional(),
204
212
  contract_term: UpdateRampContractTermSchema.optional(),
205
213
  items_to_add: UpdateRampItemsToAddSchema.optional(),
206
214
  items_to_update: UpdateRampItemsToUpdateSchema.optional(),
@@ -15,7 +15,7 @@ const CreateSubscriptionCustomerSchema = zod_1.z.looseObject({
15
15
  company: zod_1.z.string().max(250).optional(),
16
16
  phone: zod_1.z.string().max(50).optional(),
17
17
  locale: zod_1.z.string().max(50).optional(),
18
- taxability: zod_1.z.enum(['taxable', 'exempt']).optional(),
18
+ taxability: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
19
19
  entity_code: zod_1.z
20
20
  .enum([
21
21
  'a',
@@ -140,6 +140,7 @@ const CreateSubscriptionCardSchema = zod_1.z.object({
140
140
  'tempus',
141
141
  'moyasar',
142
142
  'payway',
143
+ 'payu',
143
144
  ])
144
145
  .optional(),
145
146
  gateway_account_id: zod_1.z.string().max(50).optional(),
@@ -151,7 +152,7 @@ const CreateSubscriptionCardSchema = zod_1.z.object({
151
152
  expiry_year: zod_1.z.number().int().optional(),
152
153
  cvv: zod_1.z.string().max(520).optional(),
153
154
  preferred_scheme: zod_1.z
154
- .enum(['cartes_bancaires', 'mastercard', 'visa'])
155
+ .enum(['cartes_bancaires', 'mastercard', 'visa', 'dankort'])
155
156
  .optional(),
156
157
  billing_addr1: zod_1.z.string().max(150).optional(),
157
158
  billing_addr2: zod_1.z.string().max(150).optional(),
@@ -242,6 +243,19 @@ const CreateSubscriptionPaymentMethodSchema = zod_1.z.object({
242
243
  'touch_n_go',
243
244
  'tamara',
244
245
  'qpay',
246
+ 'ovo',
247
+ 'momo',
248
+ 'mercado_pago',
249
+ 'nequi',
250
+ 'nupay',
251
+ 'picpay',
252
+ 'thai_qr',
253
+ 'blik',
254
+ 'fpx',
255
+ 'wero',
256
+ 'p24',
257
+ 'affirm_pay',
258
+ 'rakuten_pay',
245
259
  ])
246
260
  .optional(),
247
261
  gateway: zod_1.z
@@ -305,6 +319,7 @@ const CreateSubscriptionPaymentMethodSchema = zod_1.z.object({
305
319
  'tempus',
306
320
  'moyasar',
307
321
  'payway',
322
+ 'payu',
308
323
  ])
309
324
  .optional(),
310
325
  gateway_account_id: zod_1.z.string().max(50).optional(),
@@ -371,6 +386,19 @@ const CreateSubscriptionPaymentIntentSchema = zod_1.z.object({
371
386
  'touch_n_go',
372
387
  'tamara',
373
388
  'qpay',
389
+ 'ovo',
390
+ 'momo',
391
+ 'mercado_pago',
392
+ 'nequi',
393
+ 'nupay',
394
+ 'picpay',
395
+ 'thai_qr',
396
+ 'blik',
397
+ 'fpx',
398
+ 'wero',
399
+ 'p24',
400
+ 'affirm_pay',
401
+ 'rakuten_pay',
374
402
  ])
375
403
  .optional(),
376
404
  reference_id: zod_1.z.string().max(65000).optional(),
@@ -451,6 +479,7 @@ const CreateSubscriptionCouponsSchema = zod_1.z.object({
451
479
  });
452
480
  const CreateSubscriptionBodySchema = zod_1.z.looseObject({
453
481
  id: zod_1.z.string().max(50).optional(),
482
+ brand_id: zod_1.z.string().max(50).optional(),
454
483
  plan_id: zod_1.z.string().max(100).optional(),
455
484
  plan_quantity: zod_1.z.number().int().min(1).optional(),
456
485
  plan_quantity_in_decimal: zod_1.z.string().max(33).optional(),
@@ -609,6 +638,19 @@ const CreateForCustomerSubscriptionPaymentIntentSchema = zod_1.z.object({
609
638
  'touch_n_go',
610
639
  'tamara',
611
640
  'qpay',
641
+ 'ovo',
642
+ 'momo',
643
+ 'mercado_pago',
644
+ 'nequi',
645
+ 'nupay',
646
+ 'picpay',
647
+ 'thai_qr',
648
+ 'blik',
649
+ 'fpx',
650
+ 'wero',
651
+ 'p24',
652
+ 'affirm_pay',
653
+ 'rakuten_pay',
612
654
  ])
613
655
  .optional(),
614
656
  reference_id: zod_1.z.string().max(65000).optional(),
@@ -657,6 +699,7 @@ const CreateForCustomerSubscriptionCouponsSchema = zod_1.z.object({
657
699
  });
658
700
  const CreateForCustomerSubscriptionBodySchema = zod_1.z.looseObject({
659
701
  id: zod_1.z.string().max(50).optional(),
702
+ brand_id: zod_1.z.string().max(50).optional(),
660
703
  plan_id: zod_1.z.string().max(100).optional(),
661
704
  plan_quantity: zod_1.z.number().int().min(1).optional(),
662
705
  plan_quantity_in_decimal: zod_1.z.string().max(33).optional(),
@@ -807,6 +850,19 @@ const CreateWithItemsSubscriptionPaymentIntentSchema = zod_1.z.object({
807
850
  'touch_n_go',
808
851
  'tamara',
809
852
  'qpay',
853
+ 'ovo',
854
+ 'momo',
855
+ 'mercado_pago',
856
+ 'nequi',
857
+ 'nupay',
858
+ 'picpay',
859
+ 'thai_qr',
860
+ 'blik',
861
+ 'fpx',
862
+ 'wero',
863
+ 'p24',
864
+ 'affirm_pay',
865
+ 'rakuten_pay',
810
866
  ])
811
867
  .optional(),
812
868
  reference_id: zod_1.z.string().max(65000).optional(),
@@ -846,6 +902,7 @@ const CreateWithItemsSubscriptionSubscriptionItemsSchema = zod_1.z.object({
846
902
  .optional(),
847
903
  charge_once: zod_1.z.array(zod_1.z.boolean().optional()).optional(),
848
904
  item_type: zod_1.z.array(zod_1.z.enum(['plan', 'addon', 'charge']).optional()).optional(),
905
+ description: zod_1.z.array(zod_1.z.string().max(500).optional()).optional(),
849
906
  charge_on_option: zod_1.z
850
907
  .array(zod_1.z.enum(['immediately', 'on_event']).optional())
851
908
  .optional(),
@@ -888,6 +945,7 @@ const CreateWithItemsSubscriptionCouponsSchema = zod_1.z.object({
888
945
  const CreateWithItemsSubscriptionBodySchema = zod_1.z.looseObject({
889
946
  id: zod_1.z.string().max(50).optional(),
890
947
  business_entity_id: zod_1.z.string().max(50).optional(),
948
+ brand_id: zod_1.z.string().max(50).optional(),
891
949
  trial_end: zod_1.z.number().int().optional(),
892
950
  billing_cycles: zod_1.z.number().int().min(0).optional(),
893
951
  setup_fee: zod_1.z.number().int().min(0).optional(),
@@ -1364,6 +1422,7 @@ const UpdateSubscriptionCardSchema = zod_1.z.object({
1364
1422
  'tempus',
1365
1423
  'moyasar',
1366
1424
  'payway',
1425
+ 'payu',
1367
1426
  ])
1368
1427
  .optional(),
1369
1428
  gateway_account_id: zod_1.z.string().max(50).optional(),
@@ -1375,7 +1434,7 @@ const UpdateSubscriptionCardSchema = zod_1.z.object({
1375
1434
  expiry_year: zod_1.z.number().int().optional(),
1376
1435
  cvv: zod_1.z.string().max(520).optional(),
1377
1436
  preferred_scheme: zod_1.z
1378
- .enum(['cartes_bancaires', 'mastercard', 'visa'])
1437
+ .enum(['cartes_bancaires', 'mastercard', 'visa', 'dankort'])
1379
1438
  .optional(),
1380
1439
  billing_addr1: zod_1.z.string().max(150).optional(),
1381
1440
  billing_addr2: zod_1.z.string().max(150).optional(),
@@ -1444,6 +1503,19 @@ const UpdateSubscriptionPaymentMethodSchema = zod_1.z.object({
1444
1503
  'touch_n_go',
1445
1504
  'tamara',
1446
1505
  'qpay',
1506
+ 'ovo',
1507
+ 'momo',
1508
+ 'mercado_pago',
1509
+ 'nequi',
1510
+ 'nupay',
1511
+ 'picpay',
1512
+ 'thai_qr',
1513
+ 'blik',
1514
+ 'fpx',
1515
+ 'wero',
1516
+ 'p24',
1517
+ 'affirm_pay',
1518
+ 'rakuten_pay',
1447
1519
  ])
1448
1520
  .optional(),
1449
1521
  gateway: zod_1.z
@@ -1507,6 +1579,7 @@ const UpdateSubscriptionPaymentMethodSchema = zod_1.z.object({
1507
1579
  'tempus',
1508
1580
  'moyasar',
1509
1581
  'payway',
1582
+ 'payu',
1510
1583
  ])
1511
1584
  .optional(),
1512
1585
  gateway_account_id: zod_1.z.string().max(50).optional(),
@@ -1573,6 +1646,19 @@ const UpdateSubscriptionPaymentIntentSchema = zod_1.z.object({
1573
1646
  'touch_n_go',
1574
1647
  'tamara',
1575
1648
  'qpay',
1649
+ 'ovo',
1650
+ 'momo',
1651
+ 'mercado_pago',
1652
+ 'nequi',
1653
+ 'nupay',
1654
+ 'picpay',
1655
+ 'thai_qr',
1656
+ 'blik',
1657
+ 'fpx',
1658
+ 'wero',
1659
+ 'p24',
1660
+ 'affirm_pay',
1661
+ 'rakuten_pay',
1576
1662
  ])
1577
1663
  .optional(),
1578
1664
  reference_id: zod_1.z.string().max(65000).optional(),
@@ -1820,6 +1906,7 @@ const UpdateForItemsSubscriptionCardSchema = zod_1.z.object({
1820
1906
  'tempus',
1821
1907
  'moyasar',
1822
1908
  'payway',
1909
+ 'payu',
1823
1910
  ])
1824
1911
  .optional(),
1825
1912
  gateway_account_id: zod_1.z.string().max(50).optional(),
@@ -1831,7 +1918,7 @@ const UpdateForItemsSubscriptionCardSchema = zod_1.z.object({
1831
1918
  expiry_year: zod_1.z.number().int().optional(),
1832
1919
  cvv: zod_1.z.string().max(520).optional(),
1833
1920
  preferred_scheme: zod_1.z
1834
- .enum(['cartes_bancaires', 'mastercard', 'visa'])
1921
+ .enum(['cartes_bancaires', 'mastercard', 'visa', 'dankort'])
1835
1922
  .optional(),
1836
1923
  billing_addr1: zod_1.z.string().max(150).optional(),
1837
1924
  billing_addr2: zod_1.z.string().max(150).optional(),
@@ -1900,6 +1987,19 @@ const UpdateForItemsSubscriptionPaymentMethodSchema = zod_1.z.object({
1900
1987
  'touch_n_go',
1901
1988
  'tamara',
1902
1989
  'qpay',
1990
+ 'ovo',
1991
+ 'momo',
1992
+ 'mercado_pago',
1993
+ 'nequi',
1994
+ 'nupay',
1995
+ 'picpay',
1996
+ 'thai_qr',
1997
+ 'blik',
1998
+ 'fpx',
1999
+ 'wero',
2000
+ 'p24',
2001
+ 'affirm_pay',
2002
+ 'rakuten_pay',
1903
2003
  ])
1904
2004
  .optional(),
1905
2005
  gateway: zod_1.z
@@ -1963,6 +2063,7 @@ const UpdateForItemsSubscriptionPaymentMethodSchema = zod_1.z.object({
1963
2063
  'tempus',
1964
2064
  'moyasar',
1965
2065
  'payway',
2066
+ 'payu',
1966
2067
  ])
1967
2068
  .optional(),
1968
2069
  gateway_account_id: zod_1.z.string().max(50).optional(),
@@ -2029,6 +2130,19 @@ const UpdateForItemsSubscriptionPaymentIntentSchema = zod_1.z.object({
2029
2130
  'touch_n_go',
2030
2131
  'tamara',
2031
2132
  'qpay',
2133
+ 'ovo',
2134
+ 'momo',
2135
+ 'mercado_pago',
2136
+ 'nequi',
2137
+ 'nupay',
2138
+ 'picpay',
2139
+ 'thai_qr',
2140
+ 'blik',
2141
+ 'fpx',
2142
+ 'wero',
2143
+ 'p24',
2144
+ 'affirm_pay',
2145
+ 'rakuten_pay',
2032
2146
  ])
2033
2147
  .optional(),
2034
2148
  reference_id: zod_1.z.string().max(65000).optional(),
@@ -2122,6 +2236,7 @@ const UpdateForItemsSubscriptionSubscriptionItemsSchema = zod_1.z.object({
2122
2236
  .array(zod_1.z.enum(['immediately', 'on_event']).optional())
2123
2237
  .optional(),
2124
2238
  item_type: zod_1.z.array(zod_1.z.enum(['plan', 'addon', 'charge']).optional()).optional(),
2239
+ description: zod_1.z.array(zod_1.z.string().max(500).optional()).optional(),
2125
2240
  proration_type: zod_1.z
2126
2241
  .array(zod_1.z.enum(['full_term', 'partial_term', 'none']).optional())
2127
2242
  .optional(),
@@ -2319,6 +2434,19 @@ const ReactivateSubscriptionPaymentIntentSchema = zod_1.z.object({
2319
2434
  'touch_n_go',
2320
2435
  'tamara',
2321
2436
  'qpay',
2437
+ 'ovo',
2438
+ 'momo',
2439
+ 'mercado_pago',
2440
+ 'nequi',
2441
+ 'nupay',
2442
+ 'picpay',
2443
+ 'thai_qr',
2444
+ 'blik',
2445
+ 'fpx',
2446
+ 'wero',
2447
+ 'p24',
2448
+ 'affirm_pay',
2449
+ 'rakuten_pay',
2322
2450
  ])
2323
2451
  .optional(),
2324
2452
  reference_id: zod_1.z.string().max(65000).optional(),
@@ -2441,7 +2569,7 @@ const ImportSubscriptionSubscriptionCustomerSchema = zod_1.z.looseObject({
2441
2569
  company: zod_1.z.string().max(250).optional(),
2442
2570
  phone: zod_1.z.string().max(50).optional(),
2443
2571
  locale: zod_1.z.string().max(50).optional(),
2444
- taxability: zod_1.z.enum(['taxable', 'exempt']).optional(),
2572
+ taxability: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
2445
2573
  entity_code: zod_1.z
2446
2574
  .enum([
2447
2575
  'a',
@@ -2553,6 +2681,7 @@ const ImportSubscriptionSubscriptionCardSchema = zod_1.z.object({
2553
2681
  'tempus',
2554
2682
  'moyasar',
2555
2683
  'payway',
2684
+ 'payu',
2556
2685
  ])
2557
2686
  .optional(),
2558
2687
  gateway_account_id: zod_1.z.string().max(50).optional(),
@@ -2564,7 +2693,7 @@ const ImportSubscriptionSubscriptionCardSchema = zod_1.z.object({
2564
2693
  expiry_year: zod_1.z.number().int().optional(),
2565
2694
  cvv: zod_1.z.string().max(520).optional(),
2566
2695
  preferred_scheme: zod_1.z
2567
- .enum(['cartes_bancaires', 'mastercard', 'visa'])
2696
+ .enum(['cartes_bancaires', 'mastercard', 'visa', 'dankort'])
2568
2697
  .optional(),
2569
2698
  billing_addr1: zod_1.z.string().max(150).optional(),
2570
2699
  billing_addr2: zod_1.z.string().max(150).optional(),
@@ -2632,6 +2761,19 @@ const ImportSubscriptionSubscriptionPaymentMethodSchema = zod_1.z.object({
2632
2761
  'touch_n_go',
2633
2762
  'tamara',
2634
2763
  'qpay',
2764
+ 'ovo',
2765
+ 'momo',
2766
+ 'mercado_pago',
2767
+ 'nequi',
2768
+ 'nupay',
2769
+ 'picpay',
2770
+ 'thai_qr',
2771
+ 'blik',
2772
+ 'fpx',
2773
+ 'wero',
2774
+ 'p24',
2775
+ 'affirm_pay',
2776
+ 'rakuten_pay',
2635
2777
  ])
2636
2778
  .optional(),
2637
2779
  gateway: zod_1.z
@@ -2695,6 +2837,7 @@ const ImportSubscriptionSubscriptionPaymentMethodSchema = zod_1.z.object({
2695
2837
  'tempus',
2696
2838
  'moyasar',
2697
2839
  'payway',
2840
+ 'payu',
2698
2841
  ])
2699
2842
  .optional(),
2700
2843
  gateway_account_id: zod_1.z.string().max(50).optional(),
@@ -2749,10 +2892,12 @@ const ImportSubscriptionSubscriptionTransactionSchema = zod_1.z.object({
2749
2892
  'app_store',
2750
2893
  'play_store',
2751
2894
  'custom',
2752
- 'dana',
2753
- 'touch_n_go',
2754
2895
  'tamara',
2755
2896
  'qpay',
2897
+ 'blik',
2898
+ 'fpx',
2899
+ 'wero',
2900
+ 'p24',
2756
2901
  ])
2757
2902
  .optional(),
2758
2903
  reference_number: zod_1.z.string().max(100).optional(),
@@ -2876,10 +3021,12 @@ const ImportForCustomerSubscriptionTransactionSchema = zod_1.z.object({
2876
3021
  'app_store',
2877
3022
  'play_store',
2878
3023
  'custom',
2879
- 'dana',
2880
- 'touch_n_go',
2881
3024
  'tamara',
2882
3025
  'qpay',
3026
+ 'blik',
3027
+ 'fpx',
3028
+ 'wero',
3029
+ 'p24',
2883
3030
  ])
2884
3031
  .optional(),
2885
3032
  reference_number: zod_1.z.string().max(100).optional(),
@@ -3104,10 +3251,12 @@ const ImportForItemsSubscriptionTransactionSchema = zod_1.z.object({
3104
3251
  'app_store',
3105
3252
  'play_store',
3106
3253
  'custom',
3107
- 'dana',
3108
- 'touch_n_go',
3109
3254
  'tamara',
3110
3255
  'qpay',
3256
+ 'blik',
3257
+ 'fpx',
3258
+ 'wero',
3259
+ 'p24',
3111
3260
  ])
3112
3261
  .optional(),
3113
3262
  reference_number: zod_1.z.string().max(100).optional(),
@@ -3155,6 +3304,7 @@ const ImportForItemsSubscriptionSubscriptionItemsSchema = zod_1.z.object({
3155
3304
  .optional(),
3156
3305
  charge_once: zod_1.z.array(zod_1.z.boolean().optional()).optional(),
3157
3306
  item_type: zod_1.z.array(zod_1.z.enum(['plan', 'addon', 'charge']).optional()).optional(),
3307
+ description: zod_1.z.array(zod_1.z.string().max(500).optional()).optional(),
3158
3308
  });
3159
3309
  const ImportForItemsSubscriptionDiscountsSchema = zod_1.z.object({
3160
3310
  apply_on: zod_1.z
@@ -3411,6 +3561,19 @@ const ResumeSubscriptionPaymentIntentSchema = zod_1.z.object({
3411
3561
  'touch_n_go',
3412
3562
  'tamara',
3413
3563
  'qpay',
3564
+ 'ovo',
3565
+ 'momo',
3566
+ 'mercado_pago',
3567
+ 'nequi',
3568
+ 'nupay',
3569
+ 'picpay',
3570
+ 'thai_qr',
3571
+ 'blik',
3572
+ 'fpx',
3573
+ 'wero',
3574
+ 'p24',
3575
+ 'affirm_pay',
3576
+ 'rakuten_pay',
3414
3577
  ])
3415
3578
  .optional(),
3416
3579
  reference_id: zod_1.z.string().max(65000).optional(),
@@ -25,10 +25,12 @@ const RecordRefundTransactionBodySchema = zod_1.z.looseObject({
25
25
  'app_store',
26
26
  'play_store',
27
27
  'custom',
28
- 'dana',
29
- 'touch_n_go',
30
28
  'tamara',
31
29
  'qpay',
30
+ 'blik',
31
+ 'fpx',
32
+ 'wero',
33
+ 'p24',
32
34
  ]),
33
35
  date: zod_1.z.number().int(),
34
36
  reference_number: zod_1.z.string().max(100).optional(),
@@ -148,6 +150,19 @@ const ListTransactionPaymentMethodSchema = zod_1.z.object({
148
150
  'touch_n_go',
149
151
  'tamara',
150
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',
151
166
  ])
152
167
  .optional(),
153
168
  is_not: zod_1.z
@@ -216,6 +231,19 @@ const ListTransactionPaymentMethodSchema = zod_1.z.object({
216
231
  'touch_n_go',
217
232
  'tamara',
218
233
  'qpay',
234
+ 'ovo',
235
+ 'momo',
236
+ 'mercado_pago',
237
+ 'nequi',
238
+ 'nupay',
239
+ 'picpay',
240
+ 'thai_qr',
241
+ 'blik',
242
+ 'fpx',
243
+ 'wero',
244
+ 'p24',
245
+ 'affirm_pay',
246
+ 'rakuten_pay',
219
247
  ])
220
248
  .optional(),
221
249
  in: zod_1.z
@@ -284,6 +312,19 @@ const ListTransactionPaymentMethodSchema = zod_1.z.object({
284
312
  'touch_n_go',
285
313
  'tamara',
286
314
  'qpay',
315
+ 'ovo',
316
+ 'momo',
317
+ 'mercado_pago',
318
+ 'nequi',
319
+ 'nupay',
320
+ 'picpay',
321
+ 'thai_qr',
322
+ 'blik',
323
+ 'fpx',
324
+ 'wero',
325
+ 'p24',
326
+ 'affirm_pay',
327
+ 'rakuten_pay',
287
328
  ])
288
329
  .optional(),
289
330
  not_in: zod_1.z
@@ -352,6 +393,19 @@ const ListTransactionPaymentMethodSchema = zod_1.z.object({
352
393
  'touch_n_go',
353
394
  'tamara',
354
395
  'qpay',
396
+ 'ovo',
397
+ 'momo',
398
+ 'mercado_pago',
399
+ 'nequi',
400
+ 'nupay',
401
+ 'picpay',
402
+ 'thai_qr',
403
+ 'blik',
404
+ 'fpx',
405
+ 'wero',
406
+ 'p24',
407
+ 'affirm_pay',
408
+ 'rakuten_pay',
355
409
  ])
356
410
  .optional(),
357
411
  });
@@ -418,6 +472,7 @@ const ListTransactionGatewaySchema = zod_1.z.object({
418
472
  'tempus',
419
473
  'moyasar',
420
474
  'payway',
475
+ 'payu',
421
476
  'not_applicable',
422
477
  ])
423
478
  .optional(),
@@ -483,6 +538,7 @@ const ListTransactionGatewaySchema = zod_1.z.object({
483
538
  'tempus',
484
539
  'moyasar',
485
540
  'payway',
541
+ 'payu',
486
542
  'not_applicable',
487
543
  ])
488
544
  .optional(),
@@ -548,6 +604,7 @@ const ListTransactionGatewaySchema = zod_1.z.object({
548
604
  'tempus',
549
605
  'moyasar',
550
606
  'payway',
607
+ 'payu',
551
608
  'not_applicable',
552
609
  ])
553
610
  .optional(),
@@ -613,6 +670,7 @@ const ListTransactionGatewaySchema = zod_1.z.object({
613
670
  'tempus',
614
671
  'moyasar',
615
672
  'payway',
673
+ 'payu',
616
674
  'not_applicable',
617
675
  ])
618
676
  .optional(),
@@ -79,6 +79,8 @@ const CreateWebhookEndpointBodySchema = zod_1.z.looseObject({
79
79
  'credit_note_created_with_backdating',
80
80
  'credit_note_updated',
81
81
  'credit_note_deleted',
82
+ 'einvoice_created',
83
+ 'einvoice_updated',
82
84
  'payment_schedules_created',
83
85
  'payment_schedules_updated',
84
86
  'payment_schedule_scheme_created',
@@ -249,9 +251,21 @@ const CreateWebhookEndpointBodySchema = zod_1.z.looseObject({
249
251
  'grant_blocks_created',
250
252
  'grant_blocks_updated',
251
253
  'ledger_updated',
254
+ 'business_rule_created',
255
+ 'business_rule_updated',
256
+ 'business_rule_activated',
257
+ 'business_rule_deactivated',
258
+ 'business_rule_deleted',
259
+ 'business_rule_released',
252
260
  'vault_token_created',
253
261
  'vault_token_updated',
254
262
  'vault_token_deleted',
263
+ 'business_rules_applied',
264
+ 'business_ruleset_created',
265
+ 'business_ruleset_updated',
266
+ 'business_ruleset_activated',
267
+ 'business_ruleset_deactivated',
268
+ 'business_ruleset_deleted',
255
269
  'plan_created',
256
270
  'plan_updated',
257
271
  'plan_deleted',
@@ -334,6 +348,8 @@ const UpdateWebhookEndpointBodySchema = zod_1.z.looseObject({
334
348
  'credit_note_created_with_backdating',
335
349
  'credit_note_updated',
336
350
  'credit_note_deleted',
351
+ 'einvoice_created',
352
+ 'einvoice_updated',
337
353
  'payment_schedules_created',
338
354
  'payment_schedules_updated',
339
355
  'payment_schedule_scheme_created',
@@ -504,9 +520,21 @@ const UpdateWebhookEndpointBodySchema = zod_1.z.looseObject({
504
520
  'grant_blocks_created',
505
521
  'grant_blocks_updated',
506
522
  'ledger_updated',
523
+ 'business_rule_created',
524
+ 'business_rule_updated',
525
+ 'business_rule_activated',
526
+ 'business_rule_deactivated',
527
+ 'business_rule_deleted',
528
+ 'business_rule_released',
507
529
  'vault_token_created',
508
530
  'vault_token_updated',
509
531
  'vault_token_deleted',
532
+ 'business_rules_applied',
533
+ 'business_ruleset_created',
534
+ 'business_ruleset_updated',
535
+ 'business_ruleset_activated',
536
+ 'business_ruleset_deactivated',
537
+ 'business_ruleset_deleted',
510
538
  'plan_created',
511
539
  'plan_updated',
512
540
  'plan_deleted',
@@ -8,7 +8,7 @@ export const Environment = {
8
8
  hostSuffix: '.chargebee.com',
9
9
  apiPath: '/api/v2',
10
10
  timeout: DEFAULT_TIME_OUT,
11
- clientVersion: 'v3.33.0',
11
+ clientVersion: 'v3.34.0',
12
12
  port: DEFAULT_PORT,
13
13
  timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
14
14
  exportWaitInMillis: DEFAULT_EXPORT_WAIT,