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.
- package/CHANGELOG.md +190 -0
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +323 -2
- package/cjs/resources/webhook/eventType.js +14 -0
- package/cjs/schema/business_rule.schema.js +54 -0
- package/cjs/schema/business_ruleset.schema.js +68 -0
- package/cjs/schema/card.schema.js +3 -1
- package/cjs/schema/credit_note.schema.js +10 -4
- package/cjs/schema/customer.schema.js +81 -10
- package/cjs/schema/dispute.schema.js +104 -0
- package/cjs/schema/einvoice.schema.js +37 -0
- package/cjs/schema/email_log.schema.js +28 -0
- package/cjs/schema/estimate.schema.js +35 -6
- package/cjs/schema/event.schema.js +56 -0
- package/cjs/schema/export.schema.js +68 -12
- package/cjs/schema/feature.schema.js +2 -2
- package/cjs/schema/gift.schema.js +26 -0
- package/cjs/schema/hosted_page.schema.js +24 -4
- package/cjs/schema/index.js +6 -0
- package/cjs/schema/invoice.schema.js +74 -10
- package/cjs/schema/ledger_operation.schema.js +4 -0
- package/cjs/schema/meter.schema.js +1 -1
- package/cjs/schema/metered_feature.schema.js +1 -1
- package/cjs/schema/omnichannel_subscription.schema.js +4 -4
- package/cjs/schema/payment_intent.schema.js +27 -0
- package/cjs/schema/payment_schedule.schema.js +36 -0
- package/cjs/schema/payment_schedule_scheme.schema.js +23 -2
- package/cjs/schema/payment_source.schema.js +103 -1
- package/cjs/schema/pricing_page_session.schema.js +1 -0
- package/cjs/schema/promotional_grant.schema.js +2 -0
- package/cjs/schema/purchase.schema.js +14 -1
- package/cjs/schema/ramp.schema.js +8 -0
- package/cjs/schema/subscription.schema.js +175 -12
- package/cjs/schema/transaction.schema.js +60 -2
- package/cjs/schema/webhook_endpoint.schema.js +28 -0
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +323 -2
- package/esm/resources/webhook/eventType.js +14 -0
- package/esm/schema/business_rule.schema.js +51 -0
- package/esm/schema/business_ruleset.schema.js +65 -0
- package/esm/schema/card.schema.js +3 -1
- package/esm/schema/credit_note.schema.js +10 -4
- package/esm/schema/customer.schema.js +81 -10
- package/esm/schema/dispute.schema.js +101 -0
- package/esm/schema/einvoice.schema.js +34 -0
- package/esm/schema/email_log.schema.js +25 -0
- package/esm/schema/estimate.schema.js +35 -6
- package/esm/schema/event.schema.js +56 -0
- package/esm/schema/export.schema.js +68 -12
- package/esm/schema/feature.schema.js +2 -2
- package/esm/schema/gift.schema.js +26 -0
- package/esm/schema/hosted_page.schema.js +24 -4
- package/esm/schema/index.js +6 -0
- package/esm/schema/invoice.schema.js +74 -10
- package/esm/schema/ledger_operation.schema.js +4 -0
- package/esm/schema/meter.schema.js +1 -1
- package/esm/schema/metered_feature.schema.js +1 -1
- package/esm/schema/omnichannel_subscription.schema.js +4 -4
- package/esm/schema/payment_intent.schema.js +27 -0
- package/esm/schema/payment_schedule.schema.js +33 -0
- package/esm/schema/payment_schedule_scheme.schema.js +22 -1
- package/esm/schema/payment_source.schema.js +103 -1
- package/esm/schema/pricing_page_session.schema.js +1 -0
- package/esm/schema/promotional_grant.schema.js +2 -0
- package/esm/schema/purchase.schema.js +14 -1
- package/esm/schema/ramp.schema.js +8 -0
- package/esm/schema/subscription.schema.js +175 -12
- package/esm/schema/transaction.schema.js +60 -2
- package/esm/schema/webhook_endpoint.schema.js +28 -0
- package/package.json +1 -1
- package/types/core.d.ts +86 -8
- package/types/index.d.ts +15 -0
- package/types/resources/AppliedBusinessRule.d.ts +15 -0
- package/types/resources/AppliedRule.d.ts +14 -0
- package/types/resources/ApplyRule.d.ts +28 -0
- package/types/resources/BusinessRule.d.ts +161 -0
- package/types/resources/BusinessRuleset.d.ts +165 -0
- package/types/resources/BusinessRulesetRule.d.ts +9 -0
- package/types/resources/Card.d.ts +1 -1
- package/types/resources/Content.d.ts +9 -0
- package/types/resources/CreditNote.d.ts +12 -0
- package/types/resources/CustomDataSchema.d.ts +15 -0
- package/types/resources/Customer.d.ts +42 -5
- package/types/resources/Dispute.d.ts +65 -0
- package/types/resources/Einvoice.d.ts +64 -1
- package/types/resources/EmailLog.d.ts +45 -0
- package/types/resources/Estimate.d.ts +31 -2
- package/types/resources/Event.d.ts +15 -0
- package/types/resources/Gift.d.ts +28 -2
- package/types/resources/GrantBlock.d.ts +26 -7
- package/types/resources/HostedPage.d.ts +11 -0
- package/types/resources/Invoice.d.ts +42 -4
- package/types/resources/LedgerEntry.d.ts +4 -4
- package/types/resources/LedgerOperation.d.ts +15 -8
- package/types/resources/OmnichannelSubscriptionItem.d.ts +5 -1
- package/types/resources/PaymentIntent.d.ts +72 -5
- package/types/resources/PaymentSchedule.d.ts +38 -1
- package/types/resources/PaymentScheduleEstimate.d.ts +1 -0
- package/types/resources/PaymentScheduleScheme.d.ts +17 -1
- package/types/resources/PaymentSource.d.ts +31 -2
- package/types/resources/PricingPageSession.d.ts +1 -0
- package/types/resources/PromotionalGrant.d.ts +2 -0
- package/types/resources/Purchase.d.ts +14 -1
- package/types/resources/QuotedSubscription.d.ts +1 -0
- package/types/resources/Ramp.d.ts +12 -0
- package/types/resources/Subscription.d.ts +110 -11
- package/types/resources/ThirdPartyPaymentMethod.d.ts +1 -0
- package/types/resources/Transaction.d.ts +5 -0
- package/types/resources/WebhookEvent.d.ts +70 -0
|
@@ -97,6 +97,7 @@ declare module 'chargebee' {
|
|
|
97
97
|
discounts?: Subscription.Discount[];
|
|
98
98
|
business_entity_id?: string;
|
|
99
99
|
decommissioned: boolean;
|
|
100
|
+
brand_id?: string;
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
export namespace Subscription {
|
|
@@ -586,6 +587,7 @@ declare module 'chargebee' {
|
|
|
586
587
|
usage_accumulation_reset_frequency?:
|
|
587
588
|
| 'never'
|
|
588
589
|
| 'subscription_billing_frequency';
|
|
590
|
+
description?: string;
|
|
589
591
|
}
|
|
590
592
|
export interface ItemTier {
|
|
591
593
|
item_price_id: string;
|
|
@@ -715,6 +717,7 @@ declare module 'chargebee' {
|
|
|
715
717
|
|
|
716
718
|
export interface CreateInputParam {
|
|
717
719
|
id?: string;
|
|
720
|
+
brand_id?: string;
|
|
718
721
|
plan_id?: string;
|
|
719
722
|
plan_quantity?: number;
|
|
720
723
|
plan_quantity_in_decimal?: string;
|
|
@@ -769,6 +772,7 @@ declare module 'chargebee' {
|
|
|
769
772
|
}
|
|
770
773
|
export interface CreateForCustomerInputParam {
|
|
771
774
|
id?: string;
|
|
775
|
+
brand_id?: string;
|
|
772
776
|
plan_id?: string;
|
|
773
777
|
plan_quantity?: number;
|
|
774
778
|
plan_quantity_in_decimal?: string;
|
|
@@ -813,6 +817,7 @@ declare module 'chargebee' {
|
|
|
813
817
|
export interface CreateWithItemsInputParam {
|
|
814
818
|
id?: string;
|
|
815
819
|
business_entity_id?: string;
|
|
820
|
+
brand_id?: string;
|
|
816
821
|
trial_end?: number;
|
|
817
822
|
billing_cycles?: number /**
|
|
818
823
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1440,7 +1445,20 @@ declare module 'chargebee' {
|
|
|
1440
1445
|
| 'dana'
|
|
1441
1446
|
| 'touch_n_go'
|
|
1442
1447
|
| 'tamara'
|
|
1443
|
-
| 'qpay'
|
|
1448
|
+
| 'qpay'
|
|
1449
|
+
| 'ovo'
|
|
1450
|
+
| 'momo'
|
|
1451
|
+
| 'mercado_pago'
|
|
1452
|
+
| 'nequi'
|
|
1453
|
+
| 'nupay'
|
|
1454
|
+
| 'picpay'
|
|
1455
|
+
| 'thai_qr'
|
|
1456
|
+
| 'blik'
|
|
1457
|
+
| 'fpx'
|
|
1458
|
+
| 'wero'
|
|
1459
|
+
| 'p24'
|
|
1460
|
+
| 'affirm_pay'
|
|
1461
|
+
| 'rakuten_pay';
|
|
1444
1462
|
reference_id?: string;
|
|
1445
1463
|
/**
|
|
1446
1464
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1464,7 +1482,7 @@ declare module 'chargebee' {
|
|
|
1464
1482
|
expiry_month?: number;
|
|
1465
1483
|
expiry_year?: number;
|
|
1466
1484
|
cvv?: string;
|
|
1467
|
-
preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa';
|
|
1485
|
+
preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa' | 'dankort';
|
|
1468
1486
|
billing_addr1?: string;
|
|
1469
1487
|
billing_addr2?: string;
|
|
1470
1488
|
billing_city?: string;
|
|
@@ -1599,7 +1617,20 @@ declare module 'chargebee' {
|
|
|
1599
1617
|
| 'dana'
|
|
1600
1618
|
| 'touch_n_go'
|
|
1601
1619
|
| 'tamara'
|
|
1602
|
-
| 'qpay'
|
|
1620
|
+
| 'qpay'
|
|
1621
|
+
| 'ovo'
|
|
1622
|
+
| 'momo'
|
|
1623
|
+
| 'mercado_pago'
|
|
1624
|
+
| 'nequi'
|
|
1625
|
+
| 'nupay'
|
|
1626
|
+
| 'picpay'
|
|
1627
|
+
| 'thai_qr'
|
|
1628
|
+
| 'blik'
|
|
1629
|
+
| 'fpx'
|
|
1630
|
+
| 'wero'
|
|
1631
|
+
| 'p24'
|
|
1632
|
+
| 'affirm_pay'
|
|
1633
|
+
| 'rakuten_pay';
|
|
1603
1634
|
reference_id?: string;
|
|
1604
1635
|
/**
|
|
1605
1636
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1725,7 +1756,20 @@ declare module 'chargebee' {
|
|
|
1725
1756
|
| 'dana'
|
|
1726
1757
|
| 'touch_n_go'
|
|
1727
1758
|
| 'tamara'
|
|
1728
|
-
| 'qpay'
|
|
1759
|
+
| 'qpay'
|
|
1760
|
+
| 'ovo'
|
|
1761
|
+
| 'momo'
|
|
1762
|
+
| 'mercado_pago'
|
|
1763
|
+
| 'nequi'
|
|
1764
|
+
| 'nupay'
|
|
1765
|
+
| 'picpay'
|
|
1766
|
+
| 'thai_qr'
|
|
1767
|
+
| 'blik'
|
|
1768
|
+
| 'fpx'
|
|
1769
|
+
| 'wero'
|
|
1770
|
+
| 'p24'
|
|
1771
|
+
| 'affirm_pay'
|
|
1772
|
+
| 'rakuten_pay';
|
|
1729
1773
|
reference_id?: string;
|
|
1730
1774
|
/**
|
|
1731
1775
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1749,6 +1793,7 @@ declare module 'chargebee' {
|
|
|
1749
1793
|
* @deprecated Please refer API docs to use other attributes
|
|
1750
1794
|
*/
|
|
1751
1795
|
item_type?: ItemTypeEnum;
|
|
1796
|
+
description?: string;
|
|
1752
1797
|
charge_on_option?: ChargeOnOptionEnum;
|
|
1753
1798
|
usage_accumulation_reset_frequency?: UsageAccumulationResetFrequencyEnum;
|
|
1754
1799
|
}
|
|
@@ -1906,7 +1951,20 @@ declare module 'chargebee' {
|
|
|
1906
1951
|
| 'dana'
|
|
1907
1952
|
| 'touch_n_go'
|
|
1908
1953
|
| 'tamara'
|
|
1909
|
-
| 'qpay'
|
|
1954
|
+
| 'qpay'
|
|
1955
|
+
| 'ovo'
|
|
1956
|
+
| 'momo'
|
|
1957
|
+
| 'mercado_pago'
|
|
1958
|
+
| 'nequi'
|
|
1959
|
+
| 'nupay'
|
|
1960
|
+
| 'picpay'
|
|
1961
|
+
| 'thai_qr'
|
|
1962
|
+
| 'blik'
|
|
1963
|
+
| 'fpx'
|
|
1964
|
+
| 'wero'
|
|
1965
|
+
| 'p24'
|
|
1966
|
+
| 'affirm_pay'
|
|
1967
|
+
| 'rakuten_pay';
|
|
1910
1968
|
reference_id?: string;
|
|
1911
1969
|
/**
|
|
1912
1970
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1930,7 +1988,7 @@ declare module 'chargebee' {
|
|
|
1930
1988
|
expiry_month?: number;
|
|
1931
1989
|
expiry_year?: number;
|
|
1932
1990
|
cvv?: string;
|
|
1933
|
-
preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa';
|
|
1991
|
+
preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa' | 'dankort';
|
|
1934
1992
|
billing_addr1?: string;
|
|
1935
1993
|
billing_addr2?: string;
|
|
1936
1994
|
billing_city?: string;
|
|
@@ -2101,7 +2159,20 @@ declare module 'chargebee' {
|
|
|
2101
2159
|
| 'dana'
|
|
2102
2160
|
| 'touch_n_go'
|
|
2103
2161
|
| 'tamara'
|
|
2104
|
-
| 'qpay'
|
|
2162
|
+
| 'qpay'
|
|
2163
|
+
| 'ovo'
|
|
2164
|
+
| 'momo'
|
|
2165
|
+
| 'mercado_pago'
|
|
2166
|
+
| 'nequi'
|
|
2167
|
+
| 'nupay'
|
|
2168
|
+
| 'picpay'
|
|
2169
|
+
| 'thai_qr'
|
|
2170
|
+
| 'blik'
|
|
2171
|
+
| 'fpx'
|
|
2172
|
+
| 'wero'
|
|
2173
|
+
| 'p24'
|
|
2174
|
+
| 'affirm_pay'
|
|
2175
|
+
| 'rakuten_pay';
|
|
2105
2176
|
reference_id?: string;
|
|
2106
2177
|
/**
|
|
2107
2178
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -2125,7 +2196,7 @@ declare module 'chargebee' {
|
|
|
2125
2196
|
expiry_month?: number;
|
|
2126
2197
|
expiry_year?: number;
|
|
2127
2198
|
cvv?: string;
|
|
2128
|
-
preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa';
|
|
2199
|
+
preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa' | 'dankort';
|
|
2129
2200
|
billing_addr1?: string;
|
|
2130
2201
|
billing_addr2?: string;
|
|
2131
2202
|
billing_city?: string;
|
|
@@ -2156,6 +2227,7 @@ declare module 'chargebee' {
|
|
|
2156
2227
|
* @deprecated Please refer API docs to use other attributes
|
|
2157
2228
|
*/
|
|
2158
2229
|
item_type?: ItemTypeEnum;
|
|
2230
|
+
description?: string;
|
|
2159
2231
|
proration_type?: ProrationTypeEnum;
|
|
2160
2232
|
usage_accumulation_reset_frequency?: UsageAccumulationResetFrequencyEnum;
|
|
2161
2233
|
}
|
|
@@ -2252,7 +2324,20 @@ declare module 'chargebee' {
|
|
|
2252
2324
|
| 'dana'
|
|
2253
2325
|
| 'touch_n_go'
|
|
2254
2326
|
| 'tamara'
|
|
2255
|
-
| 'qpay'
|
|
2327
|
+
| 'qpay'
|
|
2328
|
+
| 'ovo'
|
|
2329
|
+
| 'momo'
|
|
2330
|
+
| 'mercado_pago'
|
|
2331
|
+
| 'nequi'
|
|
2332
|
+
| 'nupay'
|
|
2333
|
+
| 'picpay'
|
|
2334
|
+
| 'thai_qr'
|
|
2335
|
+
| 'blik'
|
|
2336
|
+
| 'fpx'
|
|
2337
|
+
| 'wero'
|
|
2338
|
+
| 'p24'
|
|
2339
|
+
| 'affirm_pay'
|
|
2340
|
+
| 'rakuten_pay';
|
|
2256
2341
|
reference_id?: string;
|
|
2257
2342
|
/**
|
|
2258
2343
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -2385,7 +2470,7 @@ declare module 'chargebee' {
|
|
|
2385
2470
|
expiry_month?: number;
|
|
2386
2471
|
expiry_year?: number;
|
|
2387
2472
|
cvv?: string;
|
|
2388
|
-
preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa';
|
|
2473
|
+
preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa' | 'dankort';
|
|
2389
2474
|
billing_addr1?: string;
|
|
2390
2475
|
billing_addr2?: string;
|
|
2391
2476
|
billing_city?: string;
|
|
@@ -2602,6 +2687,7 @@ declare module 'chargebee' {
|
|
|
2602
2687
|
* @deprecated Please refer API docs to use other attributes
|
|
2603
2688
|
*/
|
|
2604
2689
|
item_type?: ItemTypeEnum;
|
|
2690
|
+
description?: string;
|
|
2605
2691
|
}
|
|
2606
2692
|
export interface DiscountsImportForItemsInputParam {
|
|
2607
2693
|
apply_on?: ApplyOnEnum;
|
|
@@ -2709,7 +2795,20 @@ declare module 'chargebee' {
|
|
|
2709
2795
|
| 'dana'
|
|
2710
2796
|
| 'touch_n_go'
|
|
2711
2797
|
| 'tamara'
|
|
2712
|
-
| 'qpay'
|
|
2798
|
+
| 'qpay'
|
|
2799
|
+
| 'ovo'
|
|
2800
|
+
| 'momo'
|
|
2801
|
+
| 'mercado_pago'
|
|
2802
|
+
| 'nequi'
|
|
2803
|
+
| 'nupay'
|
|
2804
|
+
| 'picpay'
|
|
2805
|
+
| 'thai_qr'
|
|
2806
|
+
| 'blik'
|
|
2807
|
+
| 'fpx'
|
|
2808
|
+
| 'wero'
|
|
2809
|
+
| 'p24'
|
|
2810
|
+
| 'affirm_pay'
|
|
2811
|
+
| 'rakuten_pay';
|
|
2713
2812
|
reference_id?: string;
|
|
2714
2813
|
/**
|
|
2715
2814
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -59,6 +59,7 @@ declare module 'chargebee' {
|
|
|
59
59
|
payment_method_details?: string;
|
|
60
60
|
error_detail?: Transaction.GatewayErrorDetail;
|
|
61
61
|
custom_payment_method_name?: string;
|
|
62
|
+
network_transaction_details?: Transaction.NetworkTransactionDetail;
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
export namespace Transaction {
|
|
@@ -262,6 +263,10 @@ declare module 'chargebee' {
|
|
|
262
263
|
error_cause_id?: string;
|
|
263
264
|
processor_advice_code?: string;
|
|
264
265
|
}
|
|
266
|
+
export interface NetworkTransactionDetail {
|
|
267
|
+
network_transaction_id?: string;
|
|
268
|
+
original_network_transaction_id?: string;
|
|
269
|
+
}
|
|
265
270
|
// REQUEST PARAMS
|
|
266
271
|
//---------------
|
|
267
272
|
|
|
@@ -18,6 +18,7 @@ declare module 'chargebee' {
|
|
|
18
18
|
SubscriptionResumed = 'subscription_resumed',
|
|
19
19
|
OmnichannelOneTimeOrderItemCancelled = 'omnichannel_one_time_order_item_cancelled',
|
|
20
20
|
SubscriptionCancelled = 'subscription_cancelled',
|
|
21
|
+
BusinessRuleDeleted = 'business_rule_deleted',
|
|
21
22
|
ItemEntitlementsRemoved = 'item_entitlements_removed',
|
|
22
23
|
BusinessEntityCreated = 'business_entity_created',
|
|
23
24
|
CouponSetUpdated = 'coupon_set_updated',
|
|
@@ -29,6 +30,7 @@ declare module 'chargebee' {
|
|
|
29
30
|
SubscriptionShippingAddressUpdated = 'subscription_shipping_address_updated',
|
|
30
31
|
VoucherCreateFailed = 'voucher_create_failed',
|
|
31
32
|
GiftClaimed = 'gift_claimed',
|
|
33
|
+
BusinessRulesApplied = 'business_rules_applied',
|
|
32
34
|
CustomerDeleted = 'customer_deleted',
|
|
33
35
|
RefundInitiated = 'refund_initiated',
|
|
34
36
|
InvoiceGeneratedWithBackdating = 'invoice_generated_with_backdating',
|
|
@@ -57,12 +59,15 @@ declare module 'chargebee' {
|
|
|
57
59
|
PriceVariantDeleted = 'price_variant_deleted',
|
|
58
60
|
AlertStatusChanged = 'alert_status_changed',
|
|
59
61
|
SubscriptionMovementFailed = 'subscription_movement_failed',
|
|
62
|
+
BusinessRulesetUpdated = 'business_ruleset_updated',
|
|
60
63
|
CustomerMovedIn = 'customer_moved_in',
|
|
61
64
|
SubscriptionAdvanceInvoiceScheduleUpdated = 'subscription_advance_invoice_schedule_updated',
|
|
62
65
|
ItemDeleted = 'item_deleted',
|
|
63
66
|
SubscriptionRampDrafted = 'subscription_ramp_drafted',
|
|
67
|
+
BusinessRuleCreated = 'business_rule_created',
|
|
64
68
|
VaultTokenUpdated = 'vault_token_updated',
|
|
65
69
|
DunningUpdated = 'dunning_updated',
|
|
70
|
+
EinvoiceCreated = 'einvoice_created',
|
|
66
71
|
OmnichannelSubscriptionItemRecovered = 'omnichannel_subscription_item_recovered',
|
|
67
72
|
ItemEntitlementsUpdated = 'item_entitlements_updated',
|
|
68
73
|
TokenConsumed = 'token_consumed',
|
|
@@ -84,9 +89,11 @@ declare module 'chargebee' {
|
|
|
84
89
|
CardExpired = 'card_expired',
|
|
85
90
|
CreditNoteUpdated = 'credit_note_updated',
|
|
86
91
|
OmnichannelSubscriptionItemDowngraded = 'omnichannel_subscription_item_downgraded',
|
|
92
|
+
BusinessRulesetDeactivated = 'business_ruleset_deactivated',
|
|
87
93
|
PriceVariantUpdated = 'price_variant_updated',
|
|
88
94
|
PromotionalCreditsDeducted = 'promotional_credits_deducted',
|
|
89
95
|
SubscriptionRampApplied = 'subscription_ramp_applied',
|
|
96
|
+
BusinessRulesetDeleted = 'business_ruleset_deleted',
|
|
90
97
|
SubscriptionPaused = 'subscription_paused',
|
|
91
98
|
OrderReadyToProcess = 'order_ready_to_process',
|
|
92
99
|
FeatureCreated = 'feature_created',
|
|
@@ -95,6 +102,7 @@ declare module 'chargebee' {
|
|
|
95
102
|
OmnichannelSubscriptionItemResubscribed = 'omnichannel_subscription_item_resubscribed',
|
|
96
103
|
RecordPurchaseFailed = 'record_purchase_failed',
|
|
97
104
|
ItemCreated = 'item_created',
|
|
105
|
+
BusinessRulesetCreated = 'business_ruleset_created',
|
|
98
106
|
TransactionUpdated = 'transaction_updated',
|
|
99
107
|
MrrUpdated = 'mrr_updated',
|
|
100
108
|
UnbilledChargesInvoiced = 'unbilled_charges_invoiced',
|
|
@@ -124,6 +132,7 @@ declare module 'chargebee' {
|
|
|
124
132
|
SubscriptionScheduledChangesRemoved = 'subscription_scheduled_changes_removed',
|
|
125
133
|
PendingInvoiceCreated = 'pending_invoice_created',
|
|
126
134
|
EntitlementOverridesAutoRemoved = 'entitlement_overrides_auto_removed',
|
|
135
|
+
BusinessRulesetActivated = 'business_ruleset_activated',
|
|
127
136
|
OmnichannelSubscriptionItemUpgraded = 'omnichannel_subscription_item_upgraded',
|
|
128
137
|
SubscriptionBusinessEntityChanged = 'subscription_business_entity_changed',
|
|
129
138
|
OmnichannelOneTimeOrderCreated = 'omnichannel_one_time_order_created',
|
|
@@ -191,11 +200,14 @@ declare module 'chargebee' {
|
|
|
191
200
|
PaymentSourceBusinessEntityChanged = 'payment_source_business_entity_changed',
|
|
192
201
|
PromotionalCreditsAdded = 'promotional_credits_added',
|
|
193
202
|
SubscriptionRampUpdated = 'subscription_ramp_updated',
|
|
203
|
+
BusinessRuleDeactivated = 'business_rule_deactivated',
|
|
194
204
|
LedgerAccountBalanceUpdated = 'ledger_account_balance_updated',
|
|
195
205
|
VaultTokenCreated = 'vault_token_created',
|
|
206
|
+
EinvoiceUpdated = 'einvoice_updated',
|
|
196
207
|
CustomerEntitlementsUpdated = 'customer_entitlements_updated',
|
|
197
208
|
PaymentSourceExpired = 'payment_source_expired',
|
|
198
209
|
CustomerMovedOut = 'customer_moved_out',
|
|
210
|
+
BusinessRuleReleased = 'business_rule_released',
|
|
199
211
|
SubscriptionEntitlementsUpdated = 'subscription_entitlements_updated',
|
|
200
212
|
OmnichannelSubscriptionItemDunningExpired = 'omnichannel_subscription_item_dunning_expired',
|
|
201
213
|
HierarchyCreated = 'hierarchy_created',
|
|
@@ -209,11 +221,13 @@ declare module 'chargebee' {
|
|
|
209
221
|
TaxWithheldRecorded = 'tax_withheld_recorded',
|
|
210
222
|
PriceVariantCreated = 'price_variant_created',
|
|
211
223
|
DifferentialPriceDeleted = 'differential_price_deleted',
|
|
224
|
+
BusinessRuleActivated = 'business_rule_activated',
|
|
212
225
|
SubscriptionItemsRenewed = 'subscription_items_renewed',
|
|
213
226
|
RuleCreated = 'rule_created',
|
|
214
227
|
ContractTermCancelled = 'contract_term_cancelled',
|
|
215
228
|
ContractTermRenewed = 'contract_term_renewed',
|
|
216
229
|
InvoiceDeleted = 'invoice_deleted',
|
|
230
|
+
BusinessRuleUpdated = 'business_rule_updated',
|
|
217
231
|
ItemPriceEntitlementsRemoved = 'item_price_entitlements_removed',
|
|
218
232
|
SalesOrderUpdated = 'sales_order_updated',
|
|
219
233
|
OmnichannelSubscriptionItemDunningStarted = 'omnichannel_subscription_item_dunning_started',
|
|
@@ -254,6 +268,7 @@ declare module 'chargebee' {
|
|
|
254
268
|
[WebhookEventType.SubscriptionResumed]: SubscriptionResumedContent;
|
|
255
269
|
[WebhookEventType.OmnichannelOneTimeOrderItemCancelled]: OmnichannelOneTimeOrderItemCancelledContent;
|
|
256
270
|
[WebhookEventType.SubscriptionCancelled]: SubscriptionCancelledContent;
|
|
271
|
+
[WebhookEventType.BusinessRuleDeleted]: BusinessRuleDeletedContent;
|
|
257
272
|
[WebhookEventType.ItemEntitlementsRemoved]: ItemEntitlementsRemovedContent;
|
|
258
273
|
[WebhookEventType.BusinessEntityCreated]: BusinessEntityCreatedContent;
|
|
259
274
|
[WebhookEventType.CouponSetUpdated]: CouponSetUpdatedContent;
|
|
@@ -265,6 +280,7 @@ declare module 'chargebee' {
|
|
|
265
280
|
[WebhookEventType.SubscriptionShippingAddressUpdated]: SubscriptionShippingAddressUpdatedContent;
|
|
266
281
|
[WebhookEventType.VoucherCreateFailed]: VoucherCreateFailedContent;
|
|
267
282
|
[WebhookEventType.GiftClaimed]: GiftClaimedContent;
|
|
283
|
+
[WebhookEventType.BusinessRulesApplied]: BusinessRulesAppliedContent;
|
|
268
284
|
[WebhookEventType.CustomerDeleted]: CustomerDeletedContent;
|
|
269
285
|
[WebhookEventType.RefundInitiated]: RefundInitiatedContent;
|
|
270
286
|
[WebhookEventType.InvoiceGeneratedWithBackdating]: InvoiceGeneratedWithBackdatingContent;
|
|
@@ -293,12 +309,15 @@ declare module 'chargebee' {
|
|
|
293
309
|
[WebhookEventType.PriceVariantDeleted]: PriceVariantDeletedContent;
|
|
294
310
|
[WebhookEventType.AlertStatusChanged]: AlertStatusChangedContent;
|
|
295
311
|
[WebhookEventType.SubscriptionMovementFailed]: SubscriptionMovementFailedContent;
|
|
312
|
+
[WebhookEventType.BusinessRulesetUpdated]: BusinessRulesetUpdatedContent;
|
|
296
313
|
[WebhookEventType.CustomerMovedIn]: CustomerMovedInContent;
|
|
297
314
|
[WebhookEventType.SubscriptionAdvanceInvoiceScheduleUpdated]: SubscriptionAdvanceInvoiceScheduleUpdatedContent;
|
|
298
315
|
[WebhookEventType.ItemDeleted]: ItemDeletedContent;
|
|
299
316
|
[WebhookEventType.SubscriptionRampDrafted]: SubscriptionRampDraftedContent;
|
|
317
|
+
[WebhookEventType.BusinessRuleCreated]: BusinessRuleCreatedContent;
|
|
300
318
|
[WebhookEventType.VaultTokenUpdated]: VaultTokenUpdatedContent;
|
|
301
319
|
[WebhookEventType.DunningUpdated]: DunningUpdatedContent;
|
|
320
|
+
[WebhookEventType.EinvoiceCreated]: EinvoiceCreatedContent;
|
|
302
321
|
[WebhookEventType.OmnichannelSubscriptionItemRecovered]: OmnichannelSubscriptionItemRecoveredContent;
|
|
303
322
|
[WebhookEventType.ItemEntitlementsUpdated]: ItemEntitlementsUpdatedContent;
|
|
304
323
|
[WebhookEventType.TokenConsumed]: TokenConsumedContent;
|
|
@@ -320,9 +339,11 @@ declare module 'chargebee' {
|
|
|
320
339
|
[WebhookEventType.CardExpired]: CardExpiredContent;
|
|
321
340
|
[WebhookEventType.CreditNoteUpdated]: CreditNoteUpdatedContent;
|
|
322
341
|
[WebhookEventType.OmnichannelSubscriptionItemDowngraded]: OmnichannelSubscriptionItemDowngradedContent;
|
|
342
|
+
[WebhookEventType.BusinessRulesetDeactivated]: BusinessRulesetDeactivatedContent;
|
|
323
343
|
[WebhookEventType.PriceVariantUpdated]: PriceVariantUpdatedContent;
|
|
324
344
|
[WebhookEventType.PromotionalCreditsDeducted]: PromotionalCreditsDeductedContent;
|
|
325
345
|
[WebhookEventType.SubscriptionRampApplied]: SubscriptionRampAppliedContent;
|
|
346
|
+
[WebhookEventType.BusinessRulesetDeleted]: BusinessRulesetDeletedContent;
|
|
326
347
|
[WebhookEventType.SubscriptionPaused]: SubscriptionPausedContent;
|
|
327
348
|
[WebhookEventType.OrderReadyToProcess]: OrderReadyToProcessContent;
|
|
328
349
|
[WebhookEventType.FeatureCreated]: FeatureCreatedContent;
|
|
@@ -331,6 +352,7 @@ declare module 'chargebee' {
|
|
|
331
352
|
[WebhookEventType.OmnichannelSubscriptionItemResubscribed]: OmnichannelSubscriptionItemResubscribedContent;
|
|
332
353
|
[WebhookEventType.RecordPurchaseFailed]: RecordPurchaseFailedContent;
|
|
333
354
|
[WebhookEventType.ItemCreated]: ItemCreatedContent;
|
|
355
|
+
[WebhookEventType.BusinessRulesetCreated]: BusinessRulesetCreatedContent;
|
|
334
356
|
[WebhookEventType.TransactionUpdated]: TransactionUpdatedContent;
|
|
335
357
|
[WebhookEventType.MrrUpdated]: MrrUpdatedContent;
|
|
336
358
|
[WebhookEventType.UnbilledChargesInvoiced]: UnbilledChargesInvoicedContent;
|
|
@@ -360,6 +382,7 @@ declare module 'chargebee' {
|
|
|
360
382
|
[WebhookEventType.SubscriptionScheduledChangesRemoved]: SubscriptionScheduledChangesRemovedContent;
|
|
361
383
|
[WebhookEventType.PendingInvoiceCreated]: PendingInvoiceCreatedContent;
|
|
362
384
|
[WebhookEventType.EntitlementOverridesAutoRemoved]: EntitlementOverridesAutoRemovedContent;
|
|
385
|
+
[WebhookEventType.BusinessRulesetActivated]: BusinessRulesetActivatedContent;
|
|
363
386
|
[WebhookEventType.OmnichannelSubscriptionItemUpgraded]: OmnichannelSubscriptionItemUpgradedContent;
|
|
364
387
|
[WebhookEventType.SubscriptionBusinessEntityChanged]: SubscriptionBusinessEntityChangedContent;
|
|
365
388
|
[WebhookEventType.OmnichannelOneTimeOrderCreated]: OmnichannelOneTimeOrderCreatedContent;
|
|
@@ -427,11 +450,14 @@ declare module 'chargebee' {
|
|
|
427
450
|
[WebhookEventType.PaymentSourceBusinessEntityChanged]: PaymentSourceBusinessEntityChangedContent;
|
|
428
451
|
[WebhookEventType.PromotionalCreditsAdded]: PromotionalCreditsAddedContent;
|
|
429
452
|
[WebhookEventType.SubscriptionRampUpdated]: SubscriptionRampUpdatedContent;
|
|
453
|
+
[WebhookEventType.BusinessRuleDeactivated]: BusinessRuleDeactivatedContent;
|
|
430
454
|
[WebhookEventType.LedgerAccountBalanceUpdated]: LedgerAccountBalanceUpdatedContent;
|
|
431
455
|
[WebhookEventType.VaultTokenCreated]: VaultTokenCreatedContent;
|
|
456
|
+
[WebhookEventType.EinvoiceUpdated]: EinvoiceUpdatedContent;
|
|
432
457
|
[WebhookEventType.CustomerEntitlementsUpdated]: CustomerEntitlementsUpdatedContent;
|
|
433
458
|
[WebhookEventType.PaymentSourceExpired]: PaymentSourceExpiredContent;
|
|
434
459
|
[WebhookEventType.CustomerMovedOut]: CustomerMovedOutContent;
|
|
460
|
+
[WebhookEventType.BusinessRuleReleased]: BusinessRuleReleasedContent;
|
|
435
461
|
[WebhookEventType.SubscriptionEntitlementsUpdated]: SubscriptionEntitlementsUpdatedContent;
|
|
436
462
|
[WebhookEventType.OmnichannelSubscriptionItemDunningExpired]: OmnichannelSubscriptionItemDunningExpiredContent;
|
|
437
463
|
[WebhookEventType.HierarchyCreated]: HierarchyCreatedContent;
|
|
@@ -445,11 +471,13 @@ declare module 'chargebee' {
|
|
|
445
471
|
[WebhookEventType.TaxWithheldRecorded]: TaxWithheldRecordedContent;
|
|
446
472
|
[WebhookEventType.PriceVariantCreated]: PriceVariantCreatedContent;
|
|
447
473
|
[WebhookEventType.DifferentialPriceDeleted]: DifferentialPriceDeletedContent;
|
|
474
|
+
[WebhookEventType.BusinessRuleActivated]: BusinessRuleActivatedContent;
|
|
448
475
|
[WebhookEventType.SubscriptionItemsRenewed]: SubscriptionItemsRenewedContent;
|
|
449
476
|
[WebhookEventType.RuleCreated]: RuleCreatedContent;
|
|
450
477
|
[WebhookEventType.ContractTermCancelled]: ContractTermCancelledContent;
|
|
451
478
|
[WebhookEventType.ContractTermRenewed]: ContractTermRenewedContent;
|
|
452
479
|
[WebhookEventType.InvoiceDeleted]: InvoiceDeletedContent;
|
|
480
|
+
[WebhookEventType.BusinessRuleUpdated]: BusinessRuleUpdatedContent;
|
|
453
481
|
[WebhookEventType.ItemPriceEntitlementsRemoved]: ItemPriceEntitlementsRemovedContent;
|
|
454
482
|
[WebhookEventType.SalesOrderUpdated]: SalesOrderUpdatedContent;
|
|
455
483
|
[WebhookEventType.OmnichannelSubscriptionItemDunningStarted]: OmnichannelSubscriptionItemDunningStartedContent;
|
|
@@ -585,6 +613,9 @@ declare module 'chargebee' {
|
|
|
585
613
|
|
|
586
614
|
unbilled_charge: UnbilledCharge[];
|
|
587
615
|
};
|
|
616
|
+
export type BusinessRuleDeletedContent = {
|
|
617
|
+
business_rule: BusinessRule;
|
|
618
|
+
};
|
|
588
619
|
export type ItemEntitlementsRemovedContent = {
|
|
589
620
|
feature: Feature;
|
|
590
621
|
|
|
@@ -652,6 +683,9 @@ declare module 'chargebee' {
|
|
|
652
683
|
export type GiftClaimedContent = {
|
|
653
684
|
gift: Gift;
|
|
654
685
|
};
|
|
686
|
+
export type BusinessRulesAppliedContent = {
|
|
687
|
+
applied_business_rule: AppliedBusinessRule;
|
|
688
|
+
};
|
|
655
689
|
export type CustomerDeletedContent = {
|
|
656
690
|
customer: Customer;
|
|
657
691
|
|
|
@@ -796,6 +830,9 @@ declare module 'chargebee' {
|
|
|
796
830
|
export type SubscriptionMovementFailedContent = {
|
|
797
831
|
subscription: Subscription;
|
|
798
832
|
};
|
|
833
|
+
export type BusinessRulesetUpdatedContent = {
|
|
834
|
+
business_ruleset: BusinessRuleset;
|
|
835
|
+
};
|
|
799
836
|
export type CustomerMovedInContent = {
|
|
800
837
|
customer: Customer;
|
|
801
838
|
|
|
@@ -814,12 +851,18 @@ declare module 'chargebee' {
|
|
|
814
851
|
export type SubscriptionRampDraftedContent = {
|
|
815
852
|
ramp: Ramp;
|
|
816
853
|
};
|
|
854
|
+
export type BusinessRuleCreatedContent = {
|
|
855
|
+
business_rule: BusinessRule;
|
|
856
|
+
};
|
|
817
857
|
export type VaultTokenUpdatedContent = {
|
|
818
858
|
vaulted_payment_method: VaultedPaymentMethod;
|
|
819
859
|
};
|
|
820
860
|
export type DunningUpdatedContent = {
|
|
821
861
|
invoice: Invoice;
|
|
822
862
|
};
|
|
863
|
+
export type EinvoiceCreatedContent = {
|
|
864
|
+
einvoice: Einvoice;
|
|
865
|
+
};
|
|
823
866
|
export type OmnichannelSubscriptionItemRecoveredContent = {
|
|
824
867
|
omnichannel_subscription_item: OmnichannelSubscriptionItem;
|
|
825
868
|
|
|
@@ -947,6 +990,9 @@ declare module 'chargebee' {
|
|
|
947
990
|
|
|
948
991
|
customer: Customer;
|
|
949
992
|
};
|
|
993
|
+
export type BusinessRulesetDeactivatedContent = {
|
|
994
|
+
business_ruleset: BusinessRuleset;
|
|
995
|
+
};
|
|
950
996
|
export type PriceVariantUpdatedContent = {
|
|
951
997
|
price_variant: PriceVariant;
|
|
952
998
|
|
|
@@ -960,6 +1006,9 @@ declare module 'chargebee' {
|
|
|
960
1006
|
export type SubscriptionRampAppliedContent = {
|
|
961
1007
|
ramp: Ramp;
|
|
962
1008
|
};
|
|
1009
|
+
export type BusinessRulesetDeletedContent = {
|
|
1010
|
+
business_ruleset: BusinessRuleset;
|
|
1011
|
+
};
|
|
963
1012
|
export type SubscriptionPausedContent = {
|
|
964
1013
|
subscription: Subscription;
|
|
965
1014
|
|
|
@@ -1010,6 +1059,9 @@ declare module 'chargebee' {
|
|
|
1010
1059
|
export type ItemCreatedContent = {
|
|
1011
1060
|
item: Item;
|
|
1012
1061
|
};
|
|
1062
|
+
export type BusinessRulesetCreatedContent = {
|
|
1063
|
+
business_ruleset: BusinessRuleset;
|
|
1064
|
+
};
|
|
1013
1065
|
export type TransactionUpdatedContent = {
|
|
1014
1066
|
transaction: Transaction;
|
|
1015
1067
|
};
|
|
@@ -1167,6 +1219,9 @@ declare module 'chargebee' {
|
|
|
1167
1219
|
|
|
1168
1220
|
impacted_subscription: ImpactedSubscription;
|
|
1169
1221
|
};
|
|
1222
|
+
export type BusinessRulesetActivatedContent = {
|
|
1223
|
+
business_ruleset: BusinessRuleset;
|
|
1224
|
+
};
|
|
1170
1225
|
export type OmnichannelSubscriptionItemUpgradedContent = {
|
|
1171
1226
|
omnichannel_subscription_item: OmnichannelSubscriptionItem;
|
|
1172
1227
|
|
|
@@ -1560,12 +1615,18 @@ declare module 'chargebee' {
|
|
|
1560
1615
|
export type SubscriptionRampUpdatedContent = {
|
|
1561
1616
|
ramp: Ramp;
|
|
1562
1617
|
};
|
|
1618
|
+
export type BusinessRuleDeactivatedContent = {
|
|
1619
|
+
business_rule: BusinessRule;
|
|
1620
|
+
};
|
|
1563
1621
|
export type LedgerAccountBalanceUpdatedContent = {
|
|
1564
1622
|
ledger_account_balance: LedgerAccountBalance;
|
|
1565
1623
|
};
|
|
1566
1624
|
export type VaultTokenCreatedContent = {
|
|
1567
1625
|
vaulted_payment_method: VaultedPaymentMethod;
|
|
1568
1626
|
};
|
|
1627
|
+
export type EinvoiceUpdatedContent = {
|
|
1628
|
+
einvoice: Einvoice;
|
|
1629
|
+
};
|
|
1569
1630
|
export type CustomerEntitlementsUpdatedContent = {
|
|
1570
1631
|
impacted_customer: ImpactedCustomer;
|
|
1571
1632
|
};
|
|
@@ -1579,6 +1640,9 @@ declare module 'chargebee' {
|
|
|
1579
1640
|
|
|
1580
1641
|
card: Card;
|
|
1581
1642
|
};
|
|
1643
|
+
export type BusinessRuleReleasedContent = {
|
|
1644
|
+
business_rule: BusinessRule;
|
|
1645
|
+
};
|
|
1582
1646
|
export type SubscriptionEntitlementsUpdatedContent = {
|
|
1583
1647
|
subscription_entitlements_updated_detail: SubscriptionEntitlementsUpdatedDetail;
|
|
1584
1648
|
};
|
|
@@ -1640,6 +1704,9 @@ declare module 'chargebee' {
|
|
|
1640
1704
|
export type DifferentialPriceDeletedContent = {
|
|
1641
1705
|
differential_price: DifferentialPrice;
|
|
1642
1706
|
};
|
|
1707
|
+
export type BusinessRuleActivatedContent = {
|
|
1708
|
+
business_rule: BusinessRule;
|
|
1709
|
+
};
|
|
1643
1710
|
export type SubscriptionItemsRenewedContent = {
|
|
1644
1711
|
subscription: Subscription;
|
|
1645
1712
|
|
|
@@ -1665,6 +1732,9 @@ declare module 'chargebee' {
|
|
|
1665
1732
|
export type InvoiceDeletedContent = {
|
|
1666
1733
|
invoice: Invoice;
|
|
1667
1734
|
};
|
|
1735
|
+
export type BusinessRuleUpdatedContent = {
|
|
1736
|
+
business_rule: BusinessRule;
|
|
1737
|
+
};
|
|
1668
1738
|
export type ItemPriceEntitlementsRemovedContent = {
|
|
1669
1739
|
feature: Feature;
|
|
1670
1740
|
|