chargebee 3.17.0-beta.1 → 3.17.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 +33 -4
- package/README.md +25 -173
- package/cjs/chargebee.cjs.js +4 -7
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +6 -2
- package/cjs/resources/webhook/eventType.js +238 -0
- package/esm/chargebee.esm.js +2 -4
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +6 -2
- package/esm/resources/webhook/eventType.js +235 -0
- package/package.json +6 -11
- package/types/core.d.ts +19 -2
- package/types/index.d.ts +0 -65
- package/types/resources/CouponCode.d.ts +4 -0
- package/types/resources/CreditNote.d.ts +4 -0
- package/types/resources/Customer.d.ts +24 -2
- package/types/resources/Estimate.d.ts +13 -2
- package/types/resources/Gift.d.ts +12 -2
- package/types/resources/HostedPage.d.ts +4 -0
- package/types/resources/Invoice.d.ts +25 -2
- package/types/resources/ItemPrice.d.ts +5 -0
- package/types/resources/Order.d.ts +4 -0
- package/types/resources/PaymentIntent.d.ts +30 -5
- package/types/resources/PaymentSource.d.ts +6 -1
- package/types/resources/PricingPageSession.d.ts +2 -0
- package/types/resources/Purchase.d.ts +6 -1
- package/types/resources/Subscription.d.ts +46 -7
- package/types/resources/Transaction.d.ts +8 -0
- package/types/resources/WebhookEvent.d.ts +1 -0
- package/cjs/resources/webhook/auth.js +0 -27
- package/cjs/resources/webhook/content.js +0 -3
- package/cjs/resources/webhook/handler.js +0 -37
- package/esm/resources/webhook/auth.js +0 -23
- package/esm/resources/webhook/content.js +0 -2
- package/esm/resources/webhook/handler.js +0 -33
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum representing all possible webhook event types from Chargebee.
|
|
3
|
+
* This enum provides both compile-time type safety and runtime values.
|
|
4
|
+
*/
|
|
5
|
+
export var WebhookEventType;
|
|
6
|
+
(function (WebhookEventType) {
|
|
7
|
+
WebhookEventType["AddUsagesReminder"] = "add_usages_reminder";
|
|
8
|
+
WebhookEventType["AddonCreated"] = "addon_created";
|
|
9
|
+
WebhookEventType["AddonDeleted"] = "addon_deleted";
|
|
10
|
+
WebhookEventType["AddonUpdated"] = "addon_updated";
|
|
11
|
+
WebhookEventType["AttachedItemCreated"] = "attached_item_created";
|
|
12
|
+
WebhookEventType["AttachedItemDeleted"] = "attached_item_deleted";
|
|
13
|
+
WebhookEventType["AttachedItemUpdated"] = "attached_item_updated";
|
|
14
|
+
WebhookEventType["AuthorizationSucceeded"] = "authorization_succeeded";
|
|
15
|
+
WebhookEventType["AuthorizationVoided"] = "authorization_voided";
|
|
16
|
+
WebhookEventType["BusinessEntityCreated"] = "business_entity_created";
|
|
17
|
+
WebhookEventType["BusinessEntityDeleted"] = "business_entity_deleted";
|
|
18
|
+
WebhookEventType["BusinessEntityUpdated"] = "business_entity_updated";
|
|
19
|
+
WebhookEventType["CardAdded"] = "card_added";
|
|
20
|
+
WebhookEventType["CardDeleted"] = "card_deleted";
|
|
21
|
+
WebhookEventType["CardExpired"] = "card_expired";
|
|
22
|
+
WebhookEventType["CardExpiryReminder"] = "card_expiry_reminder";
|
|
23
|
+
WebhookEventType["CardUpdated"] = "card_updated";
|
|
24
|
+
WebhookEventType["ContractTermCancelled"] = "contract_term_cancelled";
|
|
25
|
+
WebhookEventType["ContractTermCompleted"] = "contract_term_completed";
|
|
26
|
+
WebhookEventType["ContractTermCreated"] = "contract_term_created";
|
|
27
|
+
WebhookEventType["ContractTermRenewed"] = "contract_term_renewed";
|
|
28
|
+
WebhookEventType["ContractTermTerminated"] = "contract_term_terminated";
|
|
29
|
+
WebhookEventType["CouponCodesAdded"] = "coupon_codes_added";
|
|
30
|
+
WebhookEventType["CouponCodesDeleted"] = "coupon_codes_deleted";
|
|
31
|
+
WebhookEventType["CouponCodesUpdated"] = "coupon_codes_updated";
|
|
32
|
+
WebhookEventType["CouponCreated"] = "coupon_created";
|
|
33
|
+
WebhookEventType["CouponDeleted"] = "coupon_deleted";
|
|
34
|
+
WebhookEventType["CouponSetCreated"] = "coupon_set_created";
|
|
35
|
+
WebhookEventType["CouponSetDeleted"] = "coupon_set_deleted";
|
|
36
|
+
WebhookEventType["CouponSetUpdated"] = "coupon_set_updated";
|
|
37
|
+
WebhookEventType["CouponUpdated"] = "coupon_updated";
|
|
38
|
+
WebhookEventType["CreditNoteCreated"] = "credit_note_created";
|
|
39
|
+
WebhookEventType["CreditNoteCreatedWithBackdating"] = "credit_note_created_with_backdating";
|
|
40
|
+
WebhookEventType["CreditNoteDeleted"] = "credit_note_deleted";
|
|
41
|
+
WebhookEventType["CreditNoteUpdated"] = "credit_note_updated";
|
|
42
|
+
WebhookEventType["CustomerBusinessEntityChanged"] = "customer_business_entity_changed";
|
|
43
|
+
WebhookEventType["CustomerChanged"] = "customer_changed";
|
|
44
|
+
WebhookEventType["CustomerCreated"] = "customer_created";
|
|
45
|
+
WebhookEventType["CustomerDeleted"] = "customer_deleted";
|
|
46
|
+
WebhookEventType["CustomerEntitlementsUpdated"] = "customer_entitlements_updated";
|
|
47
|
+
WebhookEventType["CustomerMovedIn"] = "customer_moved_in";
|
|
48
|
+
WebhookEventType["CustomerMovedOut"] = "customer_moved_out";
|
|
49
|
+
WebhookEventType["DifferentialPriceCreated"] = "differential_price_created";
|
|
50
|
+
WebhookEventType["DifferentialPriceDeleted"] = "differential_price_deleted";
|
|
51
|
+
WebhookEventType["DifferentialPriceUpdated"] = "differential_price_updated";
|
|
52
|
+
WebhookEventType["DunningUpdated"] = "dunning_updated";
|
|
53
|
+
WebhookEventType["EntitlementOverridesAutoRemoved"] = "entitlement_overrides_auto_removed";
|
|
54
|
+
WebhookEventType["EntitlementOverridesRemoved"] = "entitlement_overrides_removed";
|
|
55
|
+
WebhookEventType["EntitlementOverridesUpdated"] = "entitlement_overrides_updated";
|
|
56
|
+
WebhookEventType["FeatureActivated"] = "feature_activated";
|
|
57
|
+
WebhookEventType["FeatureArchived"] = "feature_archived";
|
|
58
|
+
WebhookEventType["FeatureCreated"] = "feature_created";
|
|
59
|
+
WebhookEventType["FeatureDeleted"] = "feature_deleted";
|
|
60
|
+
WebhookEventType["FeatureReactivated"] = "feature_reactivated";
|
|
61
|
+
WebhookEventType["FeatureUpdated"] = "feature_updated";
|
|
62
|
+
WebhookEventType["GiftCancelled"] = "gift_cancelled";
|
|
63
|
+
WebhookEventType["GiftClaimed"] = "gift_claimed";
|
|
64
|
+
WebhookEventType["GiftExpired"] = "gift_expired";
|
|
65
|
+
WebhookEventType["GiftScheduled"] = "gift_scheduled";
|
|
66
|
+
WebhookEventType["GiftUnclaimed"] = "gift_unclaimed";
|
|
67
|
+
WebhookEventType["GiftUpdated"] = "gift_updated";
|
|
68
|
+
WebhookEventType["HierarchyCreated"] = "hierarchy_created";
|
|
69
|
+
WebhookEventType["HierarchyDeleted"] = "hierarchy_deleted";
|
|
70
|
+
WebhookEventType["InvoiceDeleted"] = "invoice_deleted";
|
|
71
|
+
WebhookEventType["InvoiceGenerated"] = "invoice_generated";
|
|
72
|
+
WebhookEventType["InvoiceGeneratedWithBackdating"] = "invoice_generated_with_backdating";
|
|
73
|
+
WebhookEventType["InvoiceUpdated"] = "invoice_updated";
|
|
74
|
+
WebhookEventType["ItemCreated"] = "item_created";
|
|
75
|
+
WebhookEventType["ItemDeleted"] = "item_deleted";
|
|
76
|
+
WebhookEventType["ItemEntitlementsRemoved"] = "item_entitlements_removed";
|
|
77
|
+
WebhookEventType["ItemEntitlementsUpdated"] = "item_entitlements_updated";
|
|
78
|
+
WebhookEventType["ItemFamilyCreated"] = "item_family_created";
|
|
79
|
+
WebhookEventType["ItemFamilyDeleted"] = "item_family_deleted";
|
|
80
|
+
WebhookEventType["ItemFamilyUpdated"] = "item_family_updated";
|
|
81
|
+
WebhookEventType["ItemPriceCreated"] = "item_price_created";
|
|
82
|
+
WebhookEventType["ItemPriceDeleted"] = "item_price_deleted";
|
|
83
|
+
WebhookEventType["ItemPriceEntitlementsRemoved"] = "item_price_entitlements_removed";
|
|
84
|
+
WebhookEventType["ItemPriceEntitlementsUpdated"] = "item_price_entitlements_updated";
|
|
85
|
+
WebhookEventType["ItemPriceUpdated"] = "item_price_updated";
|
|
86
|
+
WebhookEventType["ItemUpdated"] = "item_updated";
|
|
87
|
+
WebhookEventType["MrrUpdated"] = "mrr_updated";
|
|
88
|
+
WebhookEventType["NetdPaymentDueReminder"] = "netd_payment_due_reminder";
|
|
89
|
+
WebhookEventType["OmnichannelOneTimeOrderCreated"] = "omnichannel_one_time_order_created";
|
|
90
|
+
WebhookEventType["OmnichannelOneTimeOrderItemCancelled"] = "omnichannel_one_time_order_item_cancelled";
|
|
91
|
+
WebhookEventType["OmnichannelSubscriptionCreated"] = "omnichannel_subscription_created";
|
|
92
|
+
WebhookEventType["OmnichannelSubscriptionImported"] = "omnichannel_subscription_imported";
|
|
93
|
+
WebhookEventType["OmnichannelSubscriptionItemCancellationScheduled"] = "omnichannel_subscription_item_cancellation_scheduled";
|
|
94
|
+
WebhookEventType["OmnichannelSubscriptionItemCancelled"] = "omnichannel_subscription_item_cancelled";
|
|
95
|
+
WebhookEventType["OmnichannelSubscriptionItemChangeScheduled"] = "omnichannel_subscription_item_change_scheduled";
|
|
96
|
+
WebhookEventType["OmnichannelSubscriptionItemChanged"] = "omnichannel_subscription_item_changed";
|
|
97
|
+
WebhookEventType["OmnichannelSubscriptionItemDowngradeScheduled"] = "omnichannel_subscription_item_downgrade_scheduled";
|
|
98
|
+
WebhookEventType["OmnichannelSubscriptionItemDowngraded"] = "omnichannel_subscription_item_downgraded";
|
|
99
|
+
WebhookEventType["OmnichannelSubscriptionItemDunningExpired"] = "omnichannel_subscription_item_dunning_expired";
|
|
100
|
+
WebhookEventType["OmnichannelSubscriptionItemDunningStarted"] = "omnichannel_subscription_item_dunning_started";
|
|
101
|
+
WebhookEventType["OmnichannelSubscriptionItemExpired"] = "omnichannel_subscription_item_expired";
|
|
102
|
+
WebhookEventType["OmnichannelSubscriptionItemGracePeriodExpired"] = "omnichannel_subscription_item_grace_period_expired";
|
|
103
|
+
WebhookEventType["OmnichannelSubscriptionItemGracePeriodStarted"] = "omnichannel_subscription_item_grace_period_started";
|
|
104
|
+
WebhookEventType["OmnichannelSubscriptionItemPauseScheduled"] = "omnichannel_subscription_item_pause_scheduled";
|
|
105
|
+
WebhookEventType["OmnichannelSubscriptionItemPaused"] = "omnichannel_subscription_item_paused";
|
|
106
|
+
WebhookEventType["OmnichannelSubscriptionItemReactivated"] = "omnichannel_subscription_item_reactivated";
|
|
107
|
+
WebhookEventType["OmnichannelSubscriptionItemRenewed"] = "omnichannel_subscription_item_renewed";
|
|
108
|
+
WebhookEventType["OmnichannelSubscriptionItemResubscribed"] = "omnichannel_subscription_item_resubscribed";
|
|
109
|
+
WebhookEventType["OmnichannelSubscriptionItemResumed"] = "omnichannel_subscription_item_resumed";
|
|
110
|
+
WebhookEventType["OmnichannelSubscriptionItemScheduledCancellationRemoved"] = "omnichannel_subscription_item_scheduled_cancellation_removed";
|
|
111
|
+
WebhookEventType["OmnichannelSubscriptionItemScheduledChangeRemoved"] = "omnichannel_subscription_item_scheduled_change_removed";
|
|
112
|
+
WebhookEventType["OmnichannelSubscriptionItemScheduledDowngradeRemoved"] = "omnichannel_subscription_item_scheduled_downgrade_removed";
|
|
113
|
+
WebhookEventType["OmnichannelSubscriptionItemUpgraded"] = "omnichannel_subscription_item_upgraded";
|
|
114
|
+
WebhookEventType["OmnichannelSubscriptionMovedIn"] = "omnichannel_subscription_moved_in";
|
|
115
|
+
WebhookEventType["OmnichannelTransactionCreated"] = "omnichannel_transaction_created";
|
|
116
|
+
WebhookEventType["OrderCancelled"] = "order_cancelled";
|
|
117
|
+
WebhookEventType["OrderCreated"] = "order_created";
|
|
118
|
+
WebhookEventType["OrderDeleted"] = "order_deleted";
|
|
119
|
+
WebhookEventType["OrderDelivered"] = "order_delivered";
|
|
120
|
+
WebhookEventType["OrderReadyToProcess"] = "order_ready_to_process";
|
|
121
|
+
WebhookEventType["OrderReadyToShip"] = "order_ready_to_ship";
|
|
122
|
+
WebhookEventType["OrderResent"] = "order_resent";
|
|
123
|
+
WebhookEventType["OrderReturned"] = "order_returned";
|
|
124
|
+
WebhookEventType["OrderUpdated"] = "order_updated";
|
|
125
|
+
WebhookEventType["PaymentFailed"] = "payment_failed";
|
|
126
|
+
WebhookEventType["PaymentInitiated"] = "payment_initiated";
|
|
127
|
+
WebhookEventType["PaymentIntentCreated"] = "payment_intent_created";
|
|
128
|
+
WebhookEventType["PaymentIntentUpdated"] = "payment_intent_updated";
|
|
129
|
+
WebhookEventType["PaymentRefunded"] = "payment_refunded";
|
|
130
|
+
WebhookEventType["PaymentScheduleSchemeCreated"] = "payment_schedule_scheme_created";
|
|
131
|
+
WebhookEventType["PaymentScheduleSchemeDeleted"] = "payment_schedule_scheme_deleted";
|
|
132
|
+
WebhookEventType["PaymentSchedulesCreated"] = "payment_schedules_created";
|
|
133
|
+
WebhookEventType["PaymentSchedulesUpdated"] = "payment_schedules_updated";
|
|
134
|
+
WebhookEventType["PaymentSourceAdded"] = "payment_source_added";
|
|
135
|
+
WebhookEventType["PaymentSourceDeleted"] = "payment_source_deleted";
|
|
136
|
+
WebhookEventType["PaymentSourceExpired"] = "payment_source_expired";
|
|
137
|
+
WebhookEventType["PaymentSourceExpiring"] = "payment_source_expiring";
|
|
138
|
+
WebhookEventType["PaymentSourceLocallyDeleted"] = "payment_source_locally_deleted";
|
|
139
|
+
WebhookEventType["PaymentSourceUpdated"] = "payment_source_updated";
|
|
140
|
+
WebhookEventType["PaymentSucceeded"] = "payment_succeeded";
|
|
141
|
+
WebhookEventType["PendingInvoiceCreated"] = "pending_invoice_created";
|
|
142
|
+
WebhookEventType["PendingInvoiceUpdated"] = "pending_invoice_updated";
|
|
143
|
+
WebhookEventType["PlanCreated"] = "plan_created";
|
|
144
|
+
WebhookEventType["PlanDeleted"] = "plan_deleted";
|
|
145
|
+
WebhookEventType["PlanUpdated"] = "plan_updated";
|
|
146
|
+
WebhookEventType["PriceVariantCreated"] = "price_variant_created";
|
|
147
|
+
WebhookEventType["PriceVariantDeleted"] = "price_variant_deleted";
|
|
148
|
+
WebhookEventType["PriceVariantUpdated"] = "price_variant_updated";
|
|
149
|
+
WebhookEventType["ProductCreated"] = "product_created";
|
|
150
|
+
WebhookEventType["ProductDeleted"] = "product_deleted";
|
|
151
|
+
WebhookEventType["ProductUpdated"] = "product_updated";
|
|
152
|
+
WebhookEventType["PromotionalCreditsAdded"] = "promotional_credits_added";
|
|
153
|
+
WebhookEventType["PromotionalCreditsDeducted"] = "promotional_credits_deducted";
|
|
154
|
+
WebhookEventType["PurchaseCreated"] = "purchase_created";
|
|
155
|
+
WebhookEventType["QuoteCreated"] = "quote_created";
|
|
156
|
+
WebhookEventType["QuoteDeleted"] = "quote_deleted";
|
|
157
|
+
WebhookEventType["QuoteUpdated"] = "quote_updated";
|
|
158
|
+
WebhookEventType["RecordPurchaseFailed"] = "record_purchase_failed";
|
|
159
|
+
WebhookEventType["RefundInitiated"] = "refund_initiated";
|
|
160
|
+
WebhookEventType["RuleCreated"] = "rule_created";
|
|
161
|
+
WebhookEventType["RuleDeleted"] = "rule_deleted";
|
|
162
|
+
WebhookEventType["RuleUpdated"] = "rule_updated";
|
|
163
|
+
WebhookEventType["SalesOrderCreated"] = "sales_order_created";
|
|
164
|
+
WebhookEventType["SalesOrderUpdated"] = "sales_order_updated";
|
|
165
|
+
WebhookEventType["SubscriptionActivated"] = "subscription_activated";
|
|
166
|
+
WebhookEventType["SubscriptionActivatedWithBackdating"] = "subscription_activated_with_backdating";
|
|
167
|
+
WebhookEventType["SubscriptionAdvanceInvoiceScheduleAdded"] = "subscription_advance_invoice_schedule_added";
|
|
168
|
+
WebhookEventType["SubscriptionAdvanceInvoiceScheduleRemoved"] = "subscription_advance_invoice_schedule_removed";
|
|
169
|
+
WebhookEventType["SubscriptionAdvanceInvoiceScheduleUpdated"] = "subscription_advance_invoice_schedule_updated";
|
|
170
|
+
WebhookEventType["SubscriptionBusinessEntityChanged"] = "subscription_business_entity_changed";
|
|
171
|
+
WebhookEventType["SubscriptionCanceledWithBackdating"] = "subscription_canceled_with_backdating";
|
|
172
|
+
WebhookEventType["SubscriptionCancellationReminder"] = "subscription_cancellation_reminder";
|
|
173
|
+
WebhookEventType["SubscriptionCancellationScheduled"] = "subscription_cancellation_scheduled";
|
|
174
|
+
WebhookEventType["SubscriptionCancelled"] = "subscription_cancelled";
|
|
175
|
+
WebhookEventType["SubscriptionChanged"] = "subscription_changed";
|
|
176
|
+
WebhookEventType["SubscriptionChangedWithBackdating"] = "subscription_changed_with_backdating";
|
|
177
|
+
WebhookEventType["SubscriptionChangesScheduled"] = "subscription_changes_scheduled";
|
|
178
|
+
WebhookEventType["SubscriptionCreated"] = "subscription_created";
|
|
179
|
+
WebhookEventType["SubscriptionCreatedWithBackdating"] = "subscription_created_with_backdating";
|
|
180
|
+
WebhookEventType["SubscriptionDeleted"] = "subscription_deleted";
|
|
181
|
+
WebhookEventType["SubscriptionEntitlementsCreated"] = "subscription_entitlements_created";
|
|
182
|
+
WebhookEventType["SubscriptionEntitlementsUpdated"] = "subscription_entitlements_updated";
|
|
183
|
+
WebhookEventType["SubscriptionItemsRenewed"] = "subscription_items_renewed";
|
|
184
|
+
WebhookEventType["SubscriptionMovedIn"] = "subscription_moved_in";
|
|
185
|
+
WebhookEventType["SubscriptionMovedOut"] = "subscription_moved_out";
|
|
186
|
+
WebhookEventType["SubscriptionMovementFailed"] = "subscription_movement_failed";
|
|
187
|
+
WebhookEventType["SubscriptionPauseScheduled"] = "subscription_pause_scheduled";
|
|
188
|
+
WebhookEventType["SubscriptionPaused"] = "subscription_paused";
|
|
189
|
+
WebhookEventType["SubscriptionRampApplied"] = "subscription_ramp_applied";
|
|
190
|
+
WebhookEventType["SubscriptionRampCreated"] = "subscription_ramp_created";
|
|
191
|
+
WebhookEventType["SubscriptionRampDeleted"] = "subscription_ramp_deleted";
|
|
192
|
+
WebhookEventType["SubscriptionRampDrafted"] = "subscription_ramp_drafted";
|
|
193
|
+
WebhookEventType["SubscriptionRampUpdated"] = "subscription_ramp_updated";
|
|
194
|
+
WebhookEventType["SubscriptionReactivated"] = "subscription_reactivated";
|
|
195
|
+
WebhookEventType["SubscriptionReactivatedWithBackdating"] = "subscription_reactivated_with_backdating";
|
|
196
|
+
WebhookEventType["SubscriptionRenewalReminder"] = "subscription_renewal_reminder";
|
|
197
|
+
WebhookEventType["SubscriptionRenewed"] = "subscription_renewed";
|
|
198
|
+
WebhookEventType["SubscriptionResumed"] = "subscription_resumed";
|
|
199
|
+
WebhookEventType["SubscriptionResumptionScheduled"] = "subscription_resumption_scheduled";
|
|
200
|
+
WebhookEventType["SubscriptionScheduledCancellationRemoved"] = "subscription_scheduled_cancellation_removed";
|
|
201
|
+
WebhookEventType["SubscriptionScheduledChangesRemoved"] = "subscription_scheduled_changes_removed";
|
|
202
|
+
WebhookEventType["SubscriptionScheduledPauseRemoved"] = "subscription_scheduled_pause_removed";
|
|
203
|
+
WebhookEventType["SubscriptionScheduledResumptionRemoved"] = "subscription_scheduled_resumption_removed";
|
|
204
|
+
WebhookEventType["SubscriptionShippingAddressUpdated"] = "subscription_shipping_address_updated";
|
|
205
|
+
WebhookEventType["SubscriptionStarted"] = "subscription_started";
|
|
206
|
+
WebhookEventType["SubscriptionTrialEndReminder"] = "subscription_trial_end_reminder";
|
|
207
|
+
WebhookEventType["SubscriptionTrialExtended"] = "subscription_trial_extended";
|
|
208
|
+
WebhookEventType["TaxWithheldDeleted"] = "tax_withheld_deleted";
|
|
209
|
+
WebhookEventType["TaxWithheldRecorded"] = "tax_withheld_recorded";
|
|
210
|
+
WebhookEventType["TaxWithheldRefunded"] = "tax_withheld_refunded";
|
|
211
|
+
WebhookEventType["TokenConsumed"] = "token_consumed";
|
|
212
|
+
WebhookEventType["TokenCreated"] = "token_created";
|
|
213
|
+
WebhookEventType["TokenExpired"] = "token_expired";
|
|
214
|
+
WebhookEventType["TransactionCreated"] = "transaction_created";
|
|
215
|
+
WebhookEventType["TransactionDeleted"] = "transaction_deleted";
|
|
216
|
+
WebhookEventType["TransactionUpdated"] = "transaction_updated";
|
|
217
|
+
WebhookEventType["UnbilledChargesCreated"] = "unbilled_charges_created";
|
|
218
|
+
WebhookEventType["UnbilledChargesDeleted"] = "unbilled_charges_deleted";
|
|
219
|
+
WebhookEventType["UnbilledChargesInvoiced"] = "unbilled_charges_invoiced";
|
|
220
|
+
WebhookEventType["UnbilledChargesVoided"] = "unbilled_charges_voided";
|
|
221
|
+
WebhookEventType["UsageFileIngested"] = "usage_file_ingested";
|
|
222
|
+
WebhookEventType["VariantCreated"] = "variant_created";
|
|
223
|
+
WebhookEventType["VariantDeleted"] = "variant_deleted";
|
|
224
|
+
WebhookEventType["VariantUpdated"] = "variant_updated";
|
|
225
|
+
WebhookEventType["VirtualBankAccountAdded"] = "virtual_bank_account_added";
|
|
226
|
+
WebhookEventType["VirtualBankAccountDeleted"] = "virtual_bank_account_deleted";
|
|
227
|
+
WebhookEventType["VirtualBankAccountUpdated"] = "virtual_bank_account_updated";
|
|
228
|
+
WebhookEventType["VoucherCreateFailed"] = "voucher_create_failed";
|
|
229
|
+
WebhookEventType["VoucherCreated"] = "voucher_created";
|
|
230
|
+
WebhookEventType["VoucherExpired"] = "voucher_expired";
|
|
231
|
+
})(WebhookEventType || (WebhookEventType = {}));
|
|
232
|
+
/**
|
|
233
|
+
* @deprecated Use WebhookEventType instead.
|
|
234
|
+
*/
|
|
235
|
+
export const WebhookContentType = WebhookEventType;
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chargebee",
|
|
3
|
-
"version": "3.17.0
|
|
3
|
+
"version": "3.17.0",
|
|
4
4
|
"description": "A library for integrating with Chargebee.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepack": "npm install && npm run build",
|
|
7
|
-
"test": "mocha -r ts-node/register 'test/**/*.test.ts'",
|
|
8
7
|
"build": "npm run build-esm && npm run build-cjs",
|
|
9
8
|
"build-esm": "rm -rf esm && mkdir -p esm && tsc -p tsconfig.esm.json && echo '{\"type\":\"module\"}' > esm/package.json",
|
|
10
9
|
"build-cjs": "rm -rf cjs && mkdir -p cjs && tsc -p tsconfig.cjs.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json",
|
|
@@ -33,6 +32,8 @@
|
|
|
33
32
|
"url": "http://github.com/chargebee/chargebee-node/blob/master/LICENSE"
|
|
34
33
|
}
|
|
35
34
|
],
|
|
35
|
+
"dependencies": {
|
|
36
|
+
},
|
|
36
37
|
"exports": {
|
|
37
38
|
"types": "./types/index.d.ts",
|
|
38
39
|
"browser": {
|
|
@@ -61,19 +62,13 @@
|
|
|
61
62
|
}
|
|
62
63
|
},
|
|
63
64
|
"devDependencies": {
|
|
64
|
-
"@types/
|
|
65
|
-
"@types/mocha": "^10.0.10",
|
|
66
|
-
"@types/node": "20.12.0",
|
|
67
|
-
"chai": "^4.3.7",
|
|
68
|
-
"mocha": "^10.2.0",
|
|
65
|
+
"@types/node": "20.0.0",
|
|
69
66
|
"prettier": "^3.3.3",
|
|
70
|
-
"
|
|
71
|
-
"typescript": "^5.5.4",
|
|
72
|
-
"undici-types": "^7.16.0"
|
|
67
|
+
"typescript": "^5.5.4"
|
|
73
68
|
},
|
|
74
69
|
"prettier": {
|
|
75
70
|
"semi": true,
|
|
76
71
|
"singleQuote": true,
|
|
77
72
|
"parser": "typescript"
|
|
78
73
|
}
|
|
79
|
-
}
|
|
74
|
+
}
|
package/types/core.d.ts
CHANGED
|
@@ -369,6 +369,7 @@ declare module 'chargebee' {
|
|
|
369
369
|
| 'addon_created'
|
|
370
370
|
| 'addon_updated'
|
|
371
371
|
| 'addon_deleted';
|
|
372
|
+
type ExcludeTaxTypeEnum = 'exclusive' | 'none';
|
|
372
373
|
type ExportTypeEnum = 'data' | 'import_friendly_data';
|
|
373
374
|
type FreePeriodUnitEnum = 'day' | 'week' | 'month' | 'year';
|
|
374
375
|
type FriendOfferTypeEnum = 'none' | 'coupon' | 'coupon_code';
|
|
@@ -502,7 +503,12 @@ declare module 'chargebee' {
|
|
|
502
503
|
| 'automated_bank_transfer'
|
|
503
504
|
| 'klarna_pay_now'
|
|
504
505
|
| 'online_banking_poland'
|
|
505
|
-
| 'payconiq_by_bancontact'
|
|
506
|
+
| 'payconiq_by_bancontact'
|
|
507
|
+
| 'electronic_payment_standard'
|
|
508
|
+
| 'kbc_payment_button'
|
|
509
|
+
| 'pay_by_bank'
|
|
510
|
+
| 'trustly'
|
|
511
|
+
| 'stablecoin';
|
|
506
512
|
type PaymentMethodTypeEnum =
|
|
507
513
|
| 'card'
|
|
508
514
|
| 'paypal_express_checkout'
|
|
@@ -528,7 +534,12 @@ declare module 'chargebee' {
|
|
|
528
534
|
| 'automated_bank_transfer'
|
|
529
535
|
| 'klarna_pay_now'
|
|
530
536
|
| 'online_banking_poland'
|
|
531
|
-
| 'payconiq_by_bancontact'
|
|
537
|
+
| 'payconiq_by_bancontact'
|
|
538
|
+
| 'electronic_payment_standard'
|
|
539
|
+
| 'kbc_payment_button'
|
|
540
|
+
| 'pay_by_bank'
|
|
541
|
+
| 'trustly'
|
|
542
|
+
| 'stablecoin';
|
|
532
543
|
type PaymentVoucherTypeEnum = 'boleto';
|
|
533
544
|
type PeriodUnitEnum = 'day' | 'week' | 'month' | 'year';
|
|
534
545
|
type PriceTypeEnum = 'tax_exclusive' | 'tax_inclusive';
|
|
@@ -553,6 +564,7 @@ declare module 'chargebee' {
|
|
|
553
564
|
type RefundableCreditsHandlingEnum = 'no_action' | 'schedule_refund';
|
|
554
565
|
type ReportByEnum = 'customer' | 'invoice' | 'product' | 'subscription';
|
|
555
566
|
type ResumeOptionEnum = 'immediately' | 'specific_date';
|
|
567
|
+
type RetryEngineEnum = 'chargebee' | 'flexpay' | 'successplus';
|
|
556
568
|
type RoleEnum = 'primary' | 'backup' | 'none';
|
|
557
569
|
type ScheduleTypeEnum = 'immediate' | 'specific_dates' | 'fixed_intervals';
|
|
558
570
|
type SourceEnum =
|
|
@@ -621,6 +633,11 @@ declare module 'chargebee' {
|
|
|
621
633
|
| 'klarna_pay_now'
|
|
622
634
|
| 'online_banking_poland'
|
|
623
635
|
| 'payconiq_by_bancontact'
|
|
636
|
+
| 'electronic_payment_standard'
|
|
637
|
+
| 'kbc_payment_button'
|
|
638
|
+
| 'pay_by_bank'
|
|
639
|
+
| 'trustly'
|
|
640
|
+
| 'stablecoin'
|
|
624
641
|
| 'free_trial'
|
|
625
642
|
| 'pay_up_front'
|
|
626
643
|
| 'pay_as_you_go';
|
package/types/index.d.ts
CHANGED
|
@@ -250,69 +250,4 @@ declare module 'chargebee' {
|
|
|
250
250
|
virtualBankAccount: VirtualBankAccount.VirtualBankAccountResource;
|
|
251
251
|
webhookEndpoint: WebhookEndpoint.WebhookEndpointResource;
|
|
252
252
|
}
|
|
253
|
-
|
|
254
|
-
// Webhook Handler
|
|
255
|
-
export type WebhookEventName = EventTypeEnum | 'unhandled_event';
|
|
256
|
-
export type WebhookEventTypeValue = `${WebhookEventType}`;
|
|
257
|
-
/** @deprecated Use WebhookEventTypeValue instead */
|
|
258
|
-
export type WebhookContentTypeValue = WebhookEventTypeValue;
|
|
259
|
-
|
|
260
|
-
export type WebhookEventListener<
|
|
261
|
-
T extends WebhookEventType = WebhookEventType,
|
|
262
|
-
> = (event: WebhookEvent<T>) => Promise<void> | void;
|
|
263
|
-
export type WebhookErrorListener = (error: Error) => Promise<void> | void;
|
|
264
|
-
|
|
265
|
-
// Helper type to map string literal to enum member
|
|
266
|
-
type StringToWebhookEventType<S extends WebhookEventTypeValue> = {
|
|
267
|
-
[K in WebhookEventType]: `${K}` extends S ? K : never;
|
|
268
|
-
}[WebhookEventType];
|
|
269
|
-
|
|
270
|
-
export class WebhookHandler {
|
|
271
|
-
on<T extends WebhookEventType>(
|
|
272
|
-
eventName: T,
|
|
273
|
-
listener: WebhookEventListener<T>,
|
|
274
|
-
): this;
|
|
275
|
-
on<S extends WebhookEventTypeValue>(
|
|
276
|
-
eventName: S,
|
|
277
|
-
listener: WebhookEventListener<StringToWebhookEventType<S>>,
|
|
278
|
-
): this;
|
|
279
|
-
on(eventName: 'unhandled_event', listener: WebhookEventListener): this;
|
|
280
|
-
on(eventName: 'error', listener: WebhookErrorListener): this;
|
|
281
|
-
once<T extends WebhookEventType>(
|
|
282
|
-
eventName: T,
|
|
283
|
-
listener: WebhookEventListener<T>,
|
|
284
|
-
): this;
|
|
285
|
-
once<S extends WebhookEventTypeValue>(
|
|
286
|
-
eventName: S,
|
|
287
|
-
listener: WebhookEventListener<StringToWebhookEventType<S>>,
|
|
288
|
-
): this;
|
|
289
|
-
once(eventName: 'unhandled_event', listener: WebhookEventListener): this;
|
|
290
|
-
once(eventName: 'error', listener: WebhookErrorListener): this;
|
|
291
|
-
off<T extends WebhookEventType>(
|
|
292
|
-
eventName: T,
|
|
293
|
-
listener: WebhookEventListener<T>,
|
|
294
|
-
): this;
|
|
295
|
-
off<S extends WebhookEventTypeValue>(
|
|
296
|
-
eventName: S,
|
|
297
|
-
listener: WebhookEventListener<StringToWebhookEventType<S>>,
|
|
298
|
-
): this;
|
|
299
|
-
off(eventName: 'unhandled_event', listener: WebhookEventListener): this;
|
|
300
|
-
off(eventName: 'error', listener: WebhookErrorListener): this;
|
|
301
|
-
handle(
|
|
302
|
-
body: string | object,
|
|
303
|
-
headers?: Record<string, string | string[] | undefined>,
|
|
304
|
-
): void;
|
|
305
|
-
onError?: (error: any) => void;
|
|
306
|
-
requestValidator?: (
|
|
307
|
-
headers: Record<string, string | string[] | undefined>,
|
|
308
|
-
) => void;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
// Webhook Auth
|
|
312
|
-
export function basicAuthValidator(
|
|
313
|
-
validateCredentials: (username: string, password: string) => boolean,
|
|
314
|
-
): (headers: Record<string, string | string[] | undefined>) => void;
|
|
315
|
-
|
|
316
|
-
// Default webhook handler instance
|
|
317
|
-
export const webhook: WebhookHandler;
|
|
318
253
|
}
|
|
@@ -12,6 +12,10 @@ declare module 'chargebee' {
|
|
|
12
12
|
|
|
13
13
|
export namespace CouponCode {
|
|
14
14
|
export class CouponCodeResource {
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated This method is deprecated and will be removed in a future version.
|
|
17
|
+
*/
|
|
18
|
+
|
|
15
19
|
create(
|
|
16
20
|
input: CreateInputParam,
|
|
17
21
|
headers?: ChargebeeRequestHeader,
|
|
@@ -113,6 +113,10 @@ declare module 'chargebee' {
|
|
|
113
113
|
headers?: ChargebeeRequestHeader,
|
|
114
114
|
): Promise<ChargebeeResponse<ListResponse>>;
|
|
115
115
|
|
|
116
|
+
/**
|
|
117
|
+
* @deprecated This method is deprecated and will be removed in a future version.
|
|
118
|
+
*/
|
|
119
|
+
|
|
116
120
|
creditNotesForCustomer(
|
|
117
121
|
customer_id: string,
|
|
118
122
|
input?: CreditNotesForCustomerInputParam,
|
|
@@ -150,18 +150,30 @@ declare module 'chargebee' {
|
|
|
150
150
|
headers?: ChargebeeRequestHeader,
|
|
151
151
|
): Promise<ChargebeeResponse<DeleteContactResponse>>;
|
|
152
152
|
|
|
153
|
+
/**
|
|
154
|
+
* @deprecated This method is deprecated and will be removed in a future version.
|
|
155
|
+
*/
|
|
156
|
+
|
|
153
157
|
addPromotionalCredits(
|
|
154
158
|
customer_id: string,
|
|
155
159
|
input: AddPromotionalCreditsInputParam,
|
|
156
160
|
headers?: ChargebeeRequestHeader,
|
|
157
161
|
): Promise<ChargebeeResponse<AddPromotionalCreditsResponse>>;
|
|
158
162
|
|
|
163
|
+
/**
|
|
164
|
+
* @deprecated This method is deprecated and will be removed in a future version.
|
|
165
|
+
*/
|
|
166
|
+
|
|
159
167
|
deductPromotionalCredits(
|
|
160
168
|
customer_id: string,
|
|
161
169
|
input: DeductPromotionalCreditsInputParam,
|
|
162
170
|
headers?: ChargebeeRequestHeader,
|
|
163
171
|
): Promise<ChargebeeResponse<DeductPromotionalCreditsResponse>>;
|
|
164
172
|
|
|
173
|
+
/**
|
|
174
|
+
* @deprecated This method is deprecated and will be removed in a future version.
|
|
175
|
+
*/
|
|
176
|
+
|
|
165
177
|
setPromotionalCredits(
|
|
166
178
|
customer_id: string,
|
|
167
179
|
input: SetPromotionalCreditsInputParam,
|
|
@@ -738,7 +750,12 @@ declare module 'chargebee' {
|
|
|
738
750
|
| 'sepa_instant_transfer'
|
|
739
751
|
| 'klarna_pay_now'
|
|
740
752
|
| 'online_banking_poland'
|
|
741
|
-
| 'payconiq_by_bancontact'
|
|
753
|
+
| 'payconiq_by_bancontact'
|
|
754
|
+
| 'electronic_payment_standard'
|
|
755
|
+
| 'kbc_payment_button'
|
|
756
|
+
| 'pay_by_bank'
|
|
757
|
+
| 'trustly'
|
|
758
|
+
| 'stablecoin';
|
|
742
759
|
reference_id?: string;
|
|
743
760
|
/**
|
|
744
761
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -911,7 +928,12 @@ declare module 'chargebee' {
|
|
|
911
928
|
| 'sepa_instant_transfer'
|
|
912
929
|
| 'klarna_pay_now'
|
|
913
930
|
| 'online_banking_poland'
|
|
914
|
-
| 'payconiq_by_bancontact'
|
|
931
|
+
| 'payconiq_by_bancontact'
|
|
932
|
+
| 'electronic_payment_standard'
|
|
933
|
+
| 'kbc_payment_button'
|
|
934
|
+
| 'pay_by_bank'
|
|
935
|
+
| 'trustly'
|
|
936
|
+
| 'stablecoin';
|
|
915
937
|
/**
|
|
916
938
|
* @deprecated Please refer API docs to use other attributes
|
|
917
939
|
*/
|
|
@@ -340,6 +340,7 @@ declare module 'chargebee' {
|
|
|
340
340
|
use_existing_balances?: boolean;
|
|
341
341
|
ignore_scheduled_cancellation?: boolean;
|
|
342
342
|
ignore_scheduled_changes?: boolean;
|
|
343
|
+
exclude_tax_type?: 'exclusive' | 'none';
|
|
343
344
|
}
|
|
344
345
|
export interface AdvanceInvoiceEstimateInputParam {
|
|
345
346
|
terms_to_charge?: number;
|
|
@@ -1041,7 +1042,12 @@ declare module 'chargebee' {
|
|
|
1041
1042
|
| 'sepa_instant_transfer'
|
|
1042
1043
|
| 'klarna_pay_now'
|
|
1043
1044
|
| 'online_banking_poland'
|
|
1044
|
-
| 'payconiq_by_bancontact'
|
|
1045
|
+
| 'payconiq_by_bancontact'
|
|
1046
|
+
| 'electronic_payment_standard'
|
|
1047
|
+
| 'kbc_payment_button'
|
|
1048
|
+
| 'pay_by_bank'
|
|
1049
|
+
| 'trustly'
|
|
1050
|
+
| 'stablecoin';
|
|
1045
1051
|
reference_id?: string;
|
|
1046
1052
|
/**
|
|
1047
1053
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1119,7 +1125,12 @@ declare module 'chargebee' {
|
|
|
1119
1125
|
| 'sepa_instant_transfer'
|
|
1120
1126
|
| 'klarna_pay_now'
|
|
1121
1127
|
| 'online_banking_poland'
|
|
1122
|
-
| 'payconiq_by_bancontact'
|
|
1128
|
+
| 'payconiq_by_bancontact'
|
|
1129
|
+
| 'electronic_payment_standard'
|
|
1130
|
+
| 'kbc_payment_button'
|
|
1131
|
+
| 'pay_by_bank'
|
|
1132
|
+
| 'trustly'
|
|
1133
|
+
| 'stablecoin';
|
|
1123
1134
|
reference_id?: string;
|
|
1124
1135
|
/**
|
|
1125
1136
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -203,7 +203,12 @@ declare module 'chargebee' {
|
|
|
203
203
|
| 'sepa_instant_transfer'
|
|
204
204
|
| 'klarna_pay_now'
|
|
205
205
|
| 'online_banking_poland'
|
|
206
|
-
| 'payconiq_by_bancontact'
|
|
206
|
+
| 'payconiq_by_bancontact'
|
|
207
|
+
| 'electronic_payment_standard'
|
|
208
|
+
| 'kbc_payment_button'
|
|
209
|
+
| 'pay_by_bank'
|
|
210
|
+
| 'trustly'
|
|
211
|
+
| 'stablecoin';
|
|
207
212
|
reference_id?: string;
|
|
208
213
|
/**
|
|
209
214
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -275,7 +280,12 @@ declare module 'chargebee' {
|
|
|
275
280
|
| 'sepa_instant_transfer'
|
|
276
281
|
| 'klarna_pay_now'
|
|
277
282
|
| 'online_banking_poland'
|
|
278
|
-
| 'payconiq_by_bancontact'
|
|
283
|
+
| 'payconiq_by_bancontact'
|
|
284
|
+
| 'electronic_payment_standard'
|
|
285
|
+
| 'kbc_payment_button'
|
|
286
|
+
| 'pay_by_bank'
|
|
287
|
+
| 'trustly'
|
|
288
|
+
| 'stablecoin';
|
|
279
289
|
reference_id?: string;
|
|
280
290
|
/**
|
|
281
291
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -68,6 +68,10 @@ declare module 'chargebee' {
|
|
|
68
68
|
headers?: ChargebeeRequestHeader,
|
|
69
69
|
): Promise<ChargebeeResponse<CheckoutExistingForItemsResponse>>;
|
|
70
70
|
|
|
71
|
+
/**
|
|
72
|
+
* @deprecated This method is deprecated and will be removed in a future version.
|
|
73
|
+
*/
|
|
74
|
+
|
|
71
75
|
updateCard(
|
|
72
76
|
input: UpdateCardInputParam,
|
|
73
77
|
headers?: ChargebeeRequestHeader,
|
|
@@ -104,6 +104,10 @@ declare module 'chargebee' {
|
|
|
104
104
|
headers?: ChargebeeRequestHeader,
|
|
105
105
|
): Promise<ChargebeeResponse<ChargeAddonResponse>>;
|
|
106
106
|
|
|
107
|
+
/**
|
|
108
|
+
* @deprecated This method is deprecated and will be removed in a future version.
|
|
109
|
+
*/
|
|
110
|
+
|
|
107
111
|
createForChargeItem(
|
|
108
112
|
input: CreateForChargeItemInputParam,
|
|
109
113
|
headers?: ChargebeeRequestHeader,
|
|
@@ -160,12 +164,20 @@ declare module 'chargebee' {
|
|
|
160
164
|
headers?: ChargebeeRequestHeader,
|
|
161
165
|
): Promise<ChargebeeResponse<ListResponse>>;
|
|
162
166
|
|
|
167
|
+
/**
|
|
168
|
+
* @deprecated This method is deprecated and will be removed in a future version.
|
|
169
|
+
*/
|
|
170
|
+
|
|
163
171
|
invoicesForCustomer(
|
|
164
172
|
customer_id: string,
|
|
165
173
|
input?: InvoicesForCustomerInputParam,
|
|
166
174
|
headers?: ChargebeeRequestHeader,
|
|
167
175
|
): Promise<ChargebeeResponse<InvoicesForCustomerResponse>>;
|
|
168
176
|
|
|
177
|
+
/**
|
|
178
|
+
* @deprecated This method is deprecated and will be removed in a future version.
|
|
179
|
+
*/
|
|
180
|
+
|
|
169
181
|
invoicesForSubscription(
|
|
170
182
|
subscription_id: string,
|
|
171
183
|
input?: InvoicesForSubscriptionInputParam,
|
|
@@ -687,6 +699,7 @@ declare module 'chargebee' {
|
|
|
687
699
|
| 'needs_attention'
|
|
688
700
|
| 'late_failure';
|
|
689
701
|
txn_amount?: number;
|
|
702
|
+
retry_engine?: 'chargebee' | 'flexpay' | 'successplus';
|
|
690
703
|
}
|
|
691
704
|
export interface AppliedCredit {
|
|
692
705
|
cn_id: string;
|
|
@@ -1247,7 +1260,12 @@ declare module 'chargebee' {
|
|
|
1247
1260
|
| 'sepa_instant_transfer'
|
|
1248
1261
|
| 'klarna_pay_now'
|
|
1249
1262
|
| 'online_banking_poland'
|
|
1250
|
-
| 'payconiq_by_bancontact'
|
|
1263
|
+
| 'payconiq_by_bancontact'
|
|
1264
|
+
| 'electronic_payment_standard'
|
|
1265
|
+
| 'kbc_payment_button'
|
|
1266
|
+
| 'pay_by_bank'
|
|
1267
|
+
| 'trustly'
|
|
1268
|
+
| 'stablecoin';
|
|
1251
1269
|
reference_id?: string;
|
|
1252
1270
|
/**
|
|
1253
1271
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1394,7 +1412,12 @@ declare module 'chargebee' {
|
|
|
1394
1412
|
| 'sepa_instant_transfer'
|
|
1395
1413
|
| 'klarna_pay_now'
|
|
1396
1414
|
| 'online_banking_poland'
|
|
1397
|
-
| 'payconiq_by_bancontact'
|
|
1415
|
+
| 'payconiq_by_bancontact'
|
|
1416
|
+
| 'electronic_payment_standard'
|
|
1417
|
+
| 'kbc_payment_button'
|
|
1418
|
+
| 'pay_by_bank'
|
|
1419
|
+
| 'trustly'
|
|
1420
|
+
| 'stablecoin';
|
|
1398
1421
|
reference_id?: string;
|
|
1399
1422
|
/**
|
|
1400
1423
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -92,6 +92,10 @@ declare module 'chargebee' {
|
|
|
92
92
|
headers?: ChargebeeRequestHeader,
|
|
93
93
|
): Promise<ChargebeeResponse<FindApplicableItemPricesResponse>>;
|
|
94
94
|
|
|
95
|
+
/**
|
|
96
|
+
* @deprecated This method is deprecated and will be removed in a future version.
|
|
97
|
+
*/
|
|
98
|
+
|
|
95
99
|
moveItemPrice(
|
|
96
100
|
item_price_id: string,
|
|
97
101
|
input: MoveItemPriceInputParam,
|
|
@@ -281,6 +285,7 @@ declare module 'chargebee' {
|
|
|
281
285
|
}
|
|
282
286
|
export interface MoveItemPriceInputParam {
|
|
283
287
|
destination_item_id: string;
|
|
288
|
+
variant_id?: string;
|
|
284
289
|
}
|
|
285
290
|
export interface TaxDetailCreateInputParam {
|
|
286
291
|
tax_profile_id?: string;
|