chargebee 2.53.0 → 2.54.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/.github/workflows/release.yml +34 -0
- package/CHANGELOG.md +62 -0
- package/lib/chargebee.js +2 -2
- package/lib/resources/api_endpoints.js +73 -0
- package/package.json +1 -1
- package/types/core.d.ts +4 -2
- package/types/index.d.ts +7 -0
- package/types/resources/Addon.d.ts +2 -2
- package/types/resources/BusinessEntity.d.ts +1 -1
- package/types/resources/Comment.d.ts +2 -2
- package/types/resources/Coupon.d.ts +3 -3
- package/types/resources/CreditNote.d.ts +4 -6
- package/types/resources/CreditNoteEstimate.d.ts +40 -40
- package/types/resources/Currency.d.ts +23 -6
- package/types/resources/Customer.d.ts +5 -3
- package/types/resources/Estimate.d.ts +2 -2
- package/types/resources/Event.d.ts +2 -2
- package/types/resources/Feature.d.ts +2 -2
- package/types/resources/GatewayErrorDetail.d.ts +2 -0
- package/types/resources/Gift.d.ts +1 -1
- package/types/resources/HostedPage.d.ts +13 -13
- package/types/resources/Invoice.d.ts +6 -8
- package/types/resources/InvoiceEstimate.d.ts +52 -52
- package/types/resources/Item.d.ts +3 -3
- package/types/resources/ItemFamily.d.ts +2 -2
- package/types/resources/ItemPrice.d.ts +4 -4
- package/types/resources/OfferEvent.d.ts +22 -0
- package/types/resources/OfferFulfillment.d.ts +68 -0
- package/types/resources/OmnichannelOneTimeOrder.d.ts +2 -22
- package/types/resources/OmnichannelSubscription.d.ts +9 -20
- package/types/resources/OmnichannelSubscriptionItem.d.ts +2 -0
- package/types/resources/OmnichannelSubscriptionItemOffer.d.ts +38 -0
- package/types/resources/OmnichannelTransaction.d.ts +14 -0
- package/types/resources/Order.d.ts +1 -3
- package/types/resources/PaymentSource.d.ts +1 -1
- package/types/resources/PaymentVoucher.d.ts +2 -2
- package/types/resources/PersonalizedOffer.d.ts +64 -0
- package/types/resources/Plan.d.ts +2 -2
- package/types/resources/PriceVariant.d.ts +1 -1
- package/types/resources/PricingPageSession.d.ts +3 -3
- package/types/resources/Quote.d.ts +40 -42
- package/types/resources/QuoteLineGroup.d.ts +24 -24
- package/types/resources/Ramp.d.ts +33 -8
- package/types/resources/Subscription.d.ts +14 -14
- package/types/resources/SubscriptionEstimate.d.ts +0 -2
- package/types/resources/Transaction.d.ts +3 -1
- package/types/resources/Usage.d.ts +1 -1
- package/types/resources/UsageFile.d.ts +4 -0
- package/types/resources/WebhookEndpoint.d.ts +3 -3
|
@@ -197,7 +197,7 @@ declare module 'chargebee' {
|
|
|
197
197
|
card?:Card;
|
|
198
198
|
}
|
|
199
199
|
export interface CreateInputParam {
|
|
200
|
-
|
|
200
|
+
[key : string] : any;
|
|
201
201
|
card?:{additional_information?:object,billing_addr1?:string,billing_addr2?:string,billing_city?:string,billing_country?:string,billing_state?:string,billing_state_code?:string,billing_zip?:string,cvv?:string,expiry_month?:number,expiry_year?:number,first_name?:string,gateway?:Gateway,gateway_account_id?:string,ip_address?:string,last_name?:string,number?:string,preferred_scheme?:'cartes_bancaires' | 'mastercard' | 'visa',tmp_token?:string};
|
|
202
202
|
|
|
203
203
|
bank_account?:{account_holder_type?:AccountHolderType,account_number?:string,account_type?:AccountType,bank_code?:string,bank_name?:string,billing_address?:object,company?:string,echeck_type?:EcheckType,email?:string,first_name?:string,gateway_account_id?:string,iban?:string,issuing_country?:string,last_name?:string,phone?:string,routing_number?:string,swedish_identity_number?:string};
|
|
@@ -417,7 +417,7 @@ The ID of the business entity created for the site. For Product Catalog 1.0, all
|
|
|
417
417
|
|
|
418
418
|
business_entity_id?:{is?:string};
|
|
419
419
|
|
|
420
|
-
sort_by?:
|
|
420
|
+
sort_by?:{asc?:'created_at' | 'updated_at',desc?:'created_at' | 'updated_at'};
|
|
421
421
|
}
|
|
422
422
|
export interface RetrieveResponse {
|
|
423
423
|
customer:Customer;
|
|
@@ -431,7 +431,7 @@ The ID of the business entity created for the site. For Product Catalog 1.0, all
|
|
|
431
431
|
card?:Card;
|
|
432
432
|
}
|
|
433
433
|
export interface UpdateInputParam {
|
|
434
|
-
|
|
434
|
+
[key : string] : any;
|
|
435
435
|
tax_providers_fields?:{field_id?:string,field_value?:string,provider_name?:string}[];
|
|
436
436
|
|
|
437
437
|
first_name?:string;
|
|
@@ -856,6 +856,8 @@ The ID of the business entity created for the site. For Product Catalog 1.0, all
|
|
|
856
856
|
currency_code:string;
|
|
857
857
|
|
|
858
858
|
balance_currency_code:string;
|
|
859
|
+
|
|
860
|
+
business_entity_id?:string;
|
|
859
861
|
}
|
|
860
862
|
export interface EntityIdentifier {
|
|
861
863
|
id:string;
|
|
@@ -107,7 +107,7 @@ declare module 'chargebee' {
|
|
|
107
107
|
}
|
|
108
108
|
export interface CreateSubItemEstimateInputParam {
|
|
109
109
|
|
|
110
|
-
subscription?:{contract_term_billing_cycle_on_renewal?:number,coupon?:string,free_period?:number,free_period_unit?:FreePeriodUnit,id?:string,setup_fee?:number,start_date?:number,trial_end?:number,trial_end_action?:TrialEndAction};
|
|
110
|
+
subscription?:{contract_term_billing_cycle_on_renewal?:number,coupon?:string,free_period?:number,free_period_unit?:FreePeriodUnit,id?:string,offline_payment_method?:OfflinePaymentMethod,setup_fee?:number,start_date?:number,trial_end?:number,trial_end_action?:TrialEndAction};
|
|
111
111
|
|
|
112
112
|
billing_address?:{city?:string,country?:string,line1?:string,line2?:string,line3?:string,state_code?:string,validation_status?:ValidationStatus,zip?:string};
|
|
113
113
|
|
|
@@ -177,7 +177,7 @@ declare module 'chargebee' {
|
|
|
177
177
|
}
|
|
178
178
|
export interface CreateSubItemForCustomerEstimateInputParam {
|
|
179
179
|
|
|
180
|
-
subscription?:{contract_term_billing_cycle_on_renewal?:number,free_period?:number,free_period_unit?:FreePeriodUnit,id?:string,setup_fee?:number,start_date?:number,trial_end?:number,trial_end_action?:TrialEndAction};
|
|
180
|
+
subscription?:{contract_term_billing_cycle_on_renewal?:number,free_period?:number,free_period_unit?:FreePeriodUnit,id?:string,offline_payment_method?:OfflinePaymentMethod,setup_fee?:number,start_date?:number,trial_end?:number,trial_end_action?:TrialEndAction};
|
|
181
181
|
|
|
182
182
|
shipping_address?:{city?:string,country?:string,line1?:string,line2?:string,line3?:string,state_code?:string,validation_status?:ValidationStatus,zip?:string};
|
|
183
183
|
|
|
@@ -76,7 +76,7 @@ declare module 'chargebee' {
|
|
|
76
76
|
|
|
77
77
|
*/
|
|
78
78
|
|
|
79
|
-
event_type?:{in?:string,is?:'coupon_created' | 'coupon_updated' | 'coupon_deleted' | 'coupon_set_created' | 'coupon_set_updated' | 'coupon_set_deleted' | 'coupon_codes_added' | 'coupon_codes_deleted' | 'coupon_codes_updated' | 'customer_created' | 'customer_changed' | 'customer_deleted' | 'customer_moved_out' | 'customer_moved_in' | 'promotional_credits_added' | 'promotional_credits_deducted' | 'subscription_created' | 'subscription_created_with_backdating' | 'subscription_started' | 'subscription_trial_end_reminder' | 'subscription_activated' | 'subscription_activated_with_backdating' | 'subscription_changed' | 'subscription_trial_extended' | 'mrr_updated' | 'subscription_changed_with_backdating' | 'subscription_cancellation_scheduled' | 'subscription_cancellation_reminder' | 'subscription_cancelled' | 'subscription_canceled_with_backdating' | 'subscription_reactivated' | 'subscription_reactivated_with_backdating' | 'subscription_renewed' | 'subscription_items_renewed' | 'subscription_scheduled_cancellation_removed' | 'subscription_changes_scheduled' | 'subscription_scheduled_changes_removed' | 'subscription_shipping_address_updated' | 'subscription_deleted' | 'subscription_paused' | 'subscription_pause_scheduled' | 'subscription_scheduled_pause_removed' | 'subscription_resumed' | 'subscription_resumption_scheduled' | 'subscription_scheduled_resumption_removed' | 'subscription_advance_invoice_schedule_added' | 'subscription_advance_invoice_schedule_updated' | 'subscription_advance_invoice_schedule_removed' | 'pending_invoice_created' | 'pending_invoice_updated' | 'invoice_generated' | 'invoice_generated_with_backdating' | 'invoice_updated' | 'invoice_deleted' | 'credit_note_created' | 'credit_note_created_with_backdating' | 'credit_note_updated' | 'credit_note_deleted' | 'payment_schedules_created' | 'payment_schedules_updated' | 'payment_schedule_scheme_created' | 'payment_schedule_scheme_deleted' | 'subscription_renewal_reminder' | 'add_usages_reminder' | 'transaction_created' | 'transaction_updated' | 'transaction_deleted' | 'payment_succeeded' | 'payment_failed' | 'payment_refunded' | 'payment_initiated' | 'refund_initiated' | 'authorization_succeeded' | 'authorization_voided' | 'card_added' | 'card_updated' | 'card_expiry_reminder' | 'card_expired' | 'card_deleted' | 'payment_source_added' | 'payment_source_updated' | 'payment_source_deleted' | 'payment_source_expiring' | 'payment_source_expired' | 'payment_source_locally_deleted' | 'virtual_bank_account_added' | 'virtual_bank_account_updated' | 'virtual_bank_account_deleted' | 'token_created' | 'token_consumed' | 'token_expired' | 'unbilled_charges_created' | 'unbilled_charges_voided' | 'unbilled_charges_deleted' | 'unbilled_charges_invoiced' | 'order_created' | 'order_updated' | 'order_cancelled' | 'order_delivered' | 'order_returned' | 'order_ready_to_process' | 'order_ready_to_ship' | 'order_deleted' | 'order_resent' | 'quote_created' | 'quote_updated' | 'quote_deleted' | 'tax_withheld_recorded' | 'tax_withheld_deleted' | 'tax_withheld_refunded' | 'gift_scheduled' | 'gift_unclaimed' | 'gift_claimed' | 'gift_expired' | 'gift_cancelled' | 'gift_updated' | 'hierarchy_created' | 'hierarchy_deleted' | 'payment_intent_created' | 'payment_intent_updated' | 'contract_term_created' | 'contract_term_renewed' | 'contract_term_terminated' | 'contract_term_completed' | 'contract_term_cancelled' | 'item_family_created' | 'item_family_updated' | 'item_family_deleted' | 'item_created' | 'item_updated' | 'item_deleted' | 'item_price_created' | 'item_price_updated' | 'item_price_deleted' | 'attached_item_created' | 'attached_item_updated' | 'attached_item_deleted' | 'differential_price_created' | 'differential_price_updated' | 'differential_price_deleted' | 'feature_created' | 'feature_updated' | 'feature_deleted' | 'feature_activated' | 'feature_reactivated' | 'feature_archived' | 'item_entitlements_updated' | 'entitlement_overrides_updated' | 'entitlement_overrides_removed' | 'item_entitlements_removed' | 'entitlement_overrides_auto_removed' | 'subscription_entitlements_created' | 'subscription_entitlements_updated' | 'business_entity_created' | 'business_entity_updated' | 'business_entity_deleted' | 'customer_business_entity_changed' | 'subscription_business_entity_changed' | 'purchase_created' | 'voucher_created' | 'voucher_expired' | 'voucher_create_failed' | 'item_price_entitlements_updated' | 'item_price_entitlements_removed' | 'subscription_ramp_created' | 'subscription_ramp_deleted' | 'subscription_ramp_applied' | 'subscription_ramp_drafted' | 'subscription_ramp_updated' | 'price_variant_created' | 'price_variant_updated' | 'price_variant_deleted' | 'customer_entitlements_updated' | 'subscription_moved_in' | 'subscription_moved_out' | 'subscription_movement_failed' | 'omnichannel_subscription_created' | 'omnichannel_subscription_item_renewed' | 'omnichannel_subscription_item_downgraded' | 'omnichannel_subscription_item_expired' | 'omnichannel_subscription_item_cancellation_scheduled' | 'omnichannel_subscription_item_scheduled_cancellation_removed' | 'omnichannel_subscription_item_resubscribed' | 'omnichannel_subscription_item_upgraded' | 'omnichannel_subscription_item_cancelled' | 'omnichannel_subscription_imported' | 'omnichannel_subscription_item_grace_period_started' | 'omnichannel_subscription_item_grace_period_expired' | 'omnichannel_subscription_item_dunning_started' | 'omnichannel_subscription_item_dunning_expired' | 'rule_created' | 'rule_updated' | 'rule_deleted' | 'record_purchase_failed' | 'omnichannel_subscription_item_change_scheduled' | 'omnichannel_subscription_item_scheduled_change_removed' | 'omnichannel_subscription_item_reactivated' | 'sales_order_created' | 'sales_order_updated' | 'omnichannel_subscription_item_changed' | 'omnichannel_subscription_item_paused' | 'omnichannel_subscription_item_resumed' | 'omnichannel_one_time_order_created' | 'omnichannel_one_time_order_item_cancelled' | 'usage_file_ingested' | 'omnichannel_subscription_item_pause_scheduled',is_not?:'coupon_created' | 'coupon_updated' | 'coupon_deleted' | 'coupon_set_created' | 'coupon_set_updated' | 'coupon_set_deleted' | 'coupon_codes_added' | 'coupon_codes_deleted' | 'coupon_codes_updated' | 'customer_created' | 'customer_changed' | 'customer_deleted' | 'customer_moved_out' | 'customer_moved_in' | 'promotional_credits_added' | 'promotional_credits_deducted' | 'subscription_created' | 'subscription_created_with_backdating' | 'subscription_started' | 'subscription_trial_end_reminder' | 'subscription_activated' | 'subscription_activated_with_backdating' | 'subscription_changed' | 'subscription_trial_extended' | 'mrr_updated' | 'subscription_changed_with_backdating' | 'subscription_cancellation_scheduled' | 'subscription_cancellation_reminder' | 'subscription_cancelled' | 'subscription_canceled_with_backdating' | 'subscription_reactivated' | 'subscription_reactivated_with_backdating' | 'subscription_renewed' | 'subscription_items_renewed' | 'subscription_scheduled_cancellation_removed' | 'subscription_changes_scheduled' | 'subscription_scheduled_changes_removed' | 'subscription_shipping_address_updated' | 'subscription_deleted' | 'subscription_paused' | 'subscription_pause_scheduled' | 'subscription_scheduled_pause_removed' | 'subscription_resumed' | 'subscription_resumption_scheduled' | 'subscription_scheduled_resumption_removed' | 'subscription_advance_invoice_schedule_added' | 'subscription_advance_invoice_schedule_updated' | 'subscription_advance_invoice_schedule_removed' | 'pending_invoice_created' | 'pending_invoice_updated' | 'invoice_generated' | 'invoice_generated_with_backdating' | 'invoice_updated' | 'invoice_deleted' | 'credit_note_created' | 'credit_note_created_with_backdating' | 'credit_note_updated' | 'credit_note_deleted' | 'payment_schedules_created' | 'payment_schedules_updated' | 'payment_schedule_scheme_created' | 'payment_schedule_scheme_deleted' | 'subscription_renewal_reminder' | 'add_usages_reminder' | 'transaction_created' | 'transaction_updated' | 'transaction_deleted' | 'payment_succeeded' | 'payment_failed' | 'payment_refunded' | 'payment_initiated' | 'refund_initiated' | 'authorization_succeeded' | 'authorization_voided' | 'card_added' | 'card_updated' | 'card_expiry_reminder' | 'card_expired' | 'card_deleted' | 'payment_source_added' | 'payment_source_updated' | 'payment_source_deleted' | 'payment_source_expiring' | 'payment_source_expired' | 'payment_source_locally_deleted' | 'virtual_bank_account_added' | 'virtual_bank_account_updated' | 'virtual_bank_account_deleted' | 'token_created' | 'token_consumed' | 'token_expired' | 'unbilled_charges_created' | 'unbilled_charges_voided' | 'unbilled_charges_deleted' | 'unbilled_charges_invoiced' | 'order_created' | 'order_updated' | 'order_cancelled' | 'order_delivered' | 'order_returned' | 'order_ready_to_process' | 'order_ready_to_ship' | 'order_deleted' | 'order_resent' | 'quote_created' | 'quote_updated' | 'quote_deleted' | 'tax_withheld_recorded' | 'tax_withheld_deleted' | 'tax_withheld_refunded' | 'gift_scheduled' | 'gift_unclaimed' | 'gift_claimed' | 'gift_expired' | 'gift_cancelled' | 'gift_updated' | 'hierarchy_created' | 'hierarchy_deleted' | 'payment_intent_created' | 'payment_intent_updated' | 'contract_term_created' | 'contract_term_renewed' | 'contract_term_terminated' | 'contract_term_completed' | 'contract_term_cancelled' | 'item_family_created' | 'item_family_updated' | 'item_family_deleted' | 'item_created' | 'item_updated' | 'item_deleted' | 'item_price_created' | 'item_price_updated' | 'item_price_deleted' | 'attached_item_created' | 'attached_item_updated' | 'attached_item_deleted' | 'differential_price_created' | 'differential_price_updated' | 'differential_price_deleted' | 'feature_created' | 'feature_updated' | 'feature_deleted' | 'feature_activated' | 'feature_reactivated' | 'feature_archived' | 'item_entitlements_updated' | 'entitlement_overrides_updated' | 'entitlement_overrides_removed' | 'item_entitlements_removed' | 'entitlement_overrides_auto_removed' | 'subscription_entitlements_created' | 'subscription_entitlements_updated' | 'business_entity_created' | 'business_entity_updated' | 'business_entity_deleted' | 'customer_business_entity_changed' | 'subscription_business_entity_changed' | 'purchase_created' | 'voucher_created' | 'voucher_expired' | 'voucher_create_failed' | 'item_price_entitlements_updated' | 'item_price_entitlements_removed' | 'subscription_ramp_created' | 'subscription_ramp_deleted' | 'subscription_ramp_applied' | 'subscription_ramp_drafted' | 'subscription_ramp_updated' | 'price_variant_created' | 'price_variant_updated' | 'price_variant_deleted' | 'customer_entitlements_updated' | 'subscription_moved_in' | 'subscription_moved_out' | 'subscription_movement_failed' | 'omnichannel_subscription_created' | 'omnichannel_subscription_item_renewed' | 'omnichannel_subscription_item_downgraded' | 'omnichannel_subscription_item_expired' | 'omnichannel_subscription_item_cancellation_scheduled' | 'omnichannel_subscription_item_scheduled_cancellation_removed' | 'omnichannel_subscription_item_resubscribed' | 'omnichannel_subscription_item_upgraded' | 'omnichannel_subscription_item_cancelled' | 'omnichannel_subscription_imported' | 'omnichannel_subscription_item_grace_period_started' | 'omnichannel_subscription_item_grace_period_expired' | 'omnichannel_subscription_item_dunning_started' | 'omnichannel_subscription_item_dunning_expired' | 'rule_created' | 'rule_updated' | 'rule_deleted' | 'record_purchase_failed' | 'omnichannel_subscription_item_change_scheduled' | 'omnichannel_subscription_item_scheduled_change_removed' | 'omnichannel_subscription_item_reactivated' | 'sales_order_created' | 'sales_order_updated' | 'omnichannel_subscription_item_changed' | 'omnichannel_subscription_item_paused' | 'omnichannel_subscription_item_resumed' | 'omnichannel_one_time_order_created' | 'omnichannel_one_time_order_item_cancelled' | 'usage_file_ingested' | 'omnichannel_subscription_item_pause_scheduled',not_in?:string};
|
|
79
|
+
event_type?:{in?:string,is?:'coupon_created' | 'coupon_updated' | 'coupon_deleted' | 'coupon_set_created' | 'coupon_set_updated' | 'coupon_set_deleted' | 'coupon_codes_added' | 'coupon_codes_deleted' | 'coupon_codes_updated' | 'customer_created' | 'customer_changed' | 'customer_deleted' | 'customer_moved_out' | 'customer_moved_in' | 'promotional_credits_added' | 'promotional_credits_deducted' | 'subscription_created' | 'subscription_created_with_backdating' | 'subscription_started' | 'subscription_trial_end_reminder' | 'subscription_activated' | 'subscription_activated_with_backdating' | 'subscription_changed' | 'subscription_trial_extended' | 'mrr_updated' | 'subscription_changed_with_backdating' | 'subscription_cancellation_scheduled' | 'subscription_cancellation_reminder' | 'subscription_cancelled' | 'subscription_canceled_with_backdating' | 'subscription_reactivated' | 'subscription_reactivated_with_backdating' | 'subscription_renewed' | 'subscription_items_renewed' | 'subscription_scheduled_cancellation_removed' | 'subscription_changes_scheduled' | 'subscription_scheduled_changes_removed' | 'subscription_shipping_address_updated' | 'subscription_deleted' | 'subscription_paused' | 'subscription_pause_scheduled' | 'subscription_scheduled_pause_removed' | 'subscription_resumed' | 'subscription_resumption_scheduled' | 'subscription_scheduled_resumption_removed' | 'subscription_advance_invoice_schedule_added' | 'subscription_advance_invoice_schedule_updated' | 'subscription_advance_invoice_schedule_removed' | 'pending_invoice_created' | 'pending_invoice_updated' | 'invoice_generated' | 'invoice_generated_with_backdating' | 'invoice_updated' | 'invoice_deleted' | 'credit_note_created' | 'credit_note_created_with_backdating' | 'credit_note_updated' | 'credit_note_deleted' | 'payment_schedules_created' | 'payment_schedules_updated' | 'payment_schedule_scheme_created' | 'payment_schedule_scheme_deleted' | 'subscription_renewal_reminder' | 'add_usages_reminder' | 'transaction_created' | 'transaction_updated' | 'transaction_deleted' | 'payment_succeeded' | 'payment_failed' | 'dunning_updated' | 'payment_refunded' | 'payment_initiated' | 'refund_initiated' | 'authorization_succeeded' | 'authorization_voided' | 'card_added' | 'card_updated' | 'card_expiry_reminder' | 'card_expired' | 'card_deleted' | 'payment_source_added' | 'payment_source_updated' | 'payment_source_deleted' | 'payment_source_expiring' | 'payment_source_expired' | 'payment_source_locally_deleted' | 'virtual_bank_account_added' | 'virtual_bank_account_updated' | 'virtual_bank_account_deleted' | 'token_created' | 'token_consumed' | 'token_expired' | 'unbilled_charges_created' | 'unbilled_charges_voided' | 'unbilled_charges_deleted' | 'unbilled_charges_invoiced' | 'order_created' | 'order_updated' | 'order_cancelled' | 'order_delivered' | 'order_returned' | 'order_ready_to_process' | 'order_ready_to_ship' | 'order_deleted' | 'order_resent' | 'quote_created' | 'quote_updated' | 'quote_deleted' | 'tax_withheld_recorded' | 'tax_withheld_deleted' | 'tax_withheld_refunded' | 'gift_scheduled' | 'gift_unclaimed' | 'gift_claimed' | 'gift_expired' | 'gift_cancelled' | 'gift_updated' | 'hierarchy_created' | 'hierarchy_deleted' | 'payment_intent_created' | 'payment_intent_updated' | 'contract_term_created' | 'contract_term_renewed' | 'contract_term_terminated' | 'contract_term_completed' | 'contract_term_cancelled' | 'item_family_created' | 'item_family_updated' | 'item_family_deleted' | 'item_created' | 'item_updated' | 'item_deleted' | 'item_price_created' | 'item_price_updated' | 'item_price_deleted' | 'attached_item_created' | 'attached_item_updated' | 'attached_item_deleted' | 'differential_price_created' | 'differential_price_updated' | 'differential_price_deleted' | 'feature_created' | 'feature_updated' | 'feature_deleted' | 'feature_activated' | 'feature_reactivated' | 'feature_archived' | 'item_entitlements_updated' | 'entitlement_overrides_updated' | 'entitlement_overrides_removed' | 'item_entitlements_removed' | 'entitlement_overrides_auto_removed' | 'subscription_entitlements_created' | 'subscription_entitlements_updated' | 'business_entity_created' | 'business_entity_updated' | 'business_entity_deleted' | 'customer_business_entity_changed' | 'subscription_business_entity_changed' | 'purchase_created' | 'voucher_created' | 'voucher_expired' | 'voucher_create_failed' | 'item_price_entitlements_updated' | 'item_price_entitlements_removed' | 'subscription_ramp_created' | 'subscription_ramp_deleted' | 'subscription_ramp_applied' | 'subscription_ramp_drafted' | 'subscription_ramp_updated' | 'price_variant_created' | 'price_variant_updated' | 'price_variant_deleted' | 'customer_entitlements_updated' | 'subscription_moved_in' | 'subscription_moved_out' | 'subscription_movement_failed' | 'omnichannel_subscription_created' | 'omnichannel_subscription_item_renewed' | 'omnichannel_subscription_item_downgraded' | 'omnichannel_subscription_item_expired' | 'omnichannel_subscription_item_cancellation_scheduled' | 'omnichannel_subscription_item_scheduled_cancellation_removed' | 'omnichannel_subscription_item_resubscribed' | 'omnichannel_subscription_item_upgraded' | 'omnichannel_subscription_item_cancelled' | 'omnichannel_subscription_imported' | 'omnichannel_subscription_item_grace_period_started' | 'omnichannel_subscription_item_grace_period_expired' | 'omnichannel_subscription_item_dunning_started' | 'omnichannel_subscription_item_dunning_expired' | 'rule_created' | 'rule_updated' | 'rule_deleted' | 'record_purchase_failed' | 'omnichannel_subscription_item_change_scheduled' | 'omnichannel_subscription_item_scheduled_change_removed' | 'omnichannel_subscription_item_reactivated' | 'sales_order_created' | 'sales_order_updated' | 'omnichannel_subscription_item_changed' | 'omnichannel_subscription_item_paused' | 'omnichannel_subscription_item_resumed' | 'omnichannel_one_time_order_created' | 'omnichannel_one_time_order_item_cancelled' | 'usage_file_ingested' | 'omnichannel_subscription_item_pause_scheduled' | 'omnichannel_subscription_moved_in',is_not?:'coupon_created' | 'coupon_updated' | 'coupon_deleted' | 'coupon_set_created' | 'coupon_set_updated' | 'coupon_set_deleted' | 'coupon_codes_added' | 'coupon_codes_deleted' | 'coupon_codes_updated' | 'customer_created' | 'customer_changed' | 'customer_deleted' | 'customer_moved_out' | 'customer_moved_in' | 'promotional_credits_added' | 'promotional_credits_deducted' | 'subscription_created' | 'subscription_created_with_backdating' | 'subscription_started' | 'subscription_trial_end_reminder' | 'subscription_activated' | 'subscription_activated_with_backdating' | 'subscription_changed' | 'subscription_trial_extended' | 'mrr_updated' | 'subscription_changed_with_backdating' | 'subscription_cancellation_scheduled' | 'subscription_cancellation_reminder' | 'subscription_cancelled' | 'subscription_canceled_with_backdating' | 'subscription_reactivated' | 'subscription_reactivated_with_backdating' | 'subscription_renewed' | 'subscription_items_renewed' | 'subscription_scheduled_cancellation_removed' | 'subscription_changes_scheduled' | 'subscription_scheduled_changes_removed' | 'subscription_shipping_address_updated' | 'subscription_deleted' | 'subscription_paused' | 'subscription_pause_scheduled' | 'subscription_scheduled_pause_removed' | 'subscription_resumed' | 'subscription_resumption_scheduled' | 'subscription_scheduled_resumption_removed' | 'subscription_advance_invoice_schedule_added' | 'subscription_advance_invoice_schedule_updated' | 'subscription_advance_invoice_schedule_removed' | 'pending_invoice_created' | 'pending_invoice_updated' | 'invoice_generated' | 'invoice_generated_with_backdating' | 'invoice_updated' | 'invoice_deleted' | 'credit_note_created' | 'credit_note_created_with_backdating' | 'credit_note_updated' | 'credit_note_deleted' | 'payment_schedules_created' | 'payment_schedules_updated' | 'payment_schedule_scheme_created' | 'payment_schedule_scheme_deleted' | 'subscription_renewal_reminder' | 'add_usages_reminder' | 'transaction_created' | 'transaction_updated' | 'transaction_deleted' | 'payment_succeeded' | 'payment_failed' | 'dunning_updated' | 'payment_refunded' | 'payment_initiated' | 'refund_initiated' | 'authorization_succeeded' | 'authorization_voided' | 'card_added' | 'card_updated' | 'card_expiry_reminder' | 'card_expired' | 'card_deleted' | 'payment_source_added' | 'payment_source_updated' | 'payment_source_deleted' | 'payment_source_expiring' | 'payment_source_expired' | 'payment_source_locally_deleted' | 'virtual_bank_account_added' | 'virtual_bank_account_updated' | 'virtual_bank_account_deleted' | 'token_created' | 'token_consumed' | 'token_expired' | 'unbilled_charges_created' | 'unbilled_charges_voided' | 'unbilled_charges_deleted' | 'unbilled_charges_invoiced' | 'order_created' | 'order_updated' | 'order_cancelled' | 'order_delivered' | 'order_returned' | 'order_ready_to_process' | 'order_ready_to_ship' | 'order_deleted' | 'order_resent' | 'quote_created' | 'quote_updated' | 'quote_deleted' | 'tax_withheld_recorded' | 'tax_withheld_deleted' | 'tax_withheld_refunded' | 'gift_scheduled' | 'gift_unclaimed' | 'gift_claimed' | 'gift_expired' | 'gift_cancelled' | 'gift_updated' | 'hierarchy_created' | 'hierarchy_deleted' | 'payment_intent_created' | 'payment_intent_updated' | 'contract_term_created' | 'contract_term_renewed' | 'contract_term_terminated' | 'contract_term_completed' | 'contract_term_cancelled' | 'item_family_created' | 'item_family_updated' | 'item_family_deleted' | 'item_created' | 'item_updated' | 'item_deleted' | 'item_price_created' | 'item_price_updated' | 'item_price_deleted' | 'attached_item_created' | 'attached_item_updated' | 'attached_item_deleted' | 'differential_price_created' | 'differential_price_updated' | 'differential_price_deleted' | 'feature_created' | 'feature_updated' | 'feature_deleted' | 'feature_activated' | 'feature_reactivated' | 'feature_archived' | 'item_entitlements_updated' | 'entitlement_overrides_updated' | 'entitlement_overrides_removed' | 'item_entitlements_removed' | 'entitlement_overrides_auto_removed' | 'subscription_entitlements_created' | 'subscription_entitlements_updated' | 'business_entity_created' | 'business_entity_updated' | 'business_entity_deleted' | 'customer_business_entity_changed' | 'subscription_business_entity_changed' | 'purchase_created' | 'voucher_created' | 'voucher_expired' | 'voucher_create_failed' | 'item_price_entitlements_updated' | 'item_price_entitlements_removed' | 'subscription_ramp_created' | 'subscription_ramp_deleted' | 'subscription_ramp_applied' | 'subscription_ramp_drafted' | 'subscription_ramp_updated' | 'price_variant_created' | 'price_variant_updated' | 'price_variant_deleted' | 'customer_entitlements_updated' | 'subscription_moved_in' | 'subscription_moved_out' | 'subscription_movement_failed' | 'omnichannel_subscription_created' | 'omnichannel_subscription_item_renewed' | 'omnichannel_subscription_item_downgraded' | 'omnichannel_subscription_item_expired' | 'omnichannel_subscription_item_cancellation_scheduled' | 'omnichannel_subscription_item_scheduled_cancellation_removed' | 'omnichannel_subscription_item_resubscribed' | 'omnichannel_subscription_item_upgraded' | 'omnichannel_subscription_item_cancelled' | 'omnichannel_subscription_imported' | 'omnichannel_subscription_item_grace_period_started' | 'omnichannel_subscription_item_grace_period_expired' | 'omnichannel_subscription_item_dunning_started' | 'omnichannel_subscription_item_dunning_expired' | 'rule_created' | 'rule_updated' | 'rule_deleted' | 'record_purchase_failed' | 'omnichannel_subscription_item_change_scheduled' | 'omnichannel_subscription_item_scheduled_change_removed' | 'omnichannel_subscription_item_reactivated' | 'sales_order_created' | 'sales_order_updated' | 'omnichannel_subscription_item_changed' | 'omnichannel_subscription_item_paused' | 'omnichannel_subscription_item_resumed' | 'omnichannel_one_time_order_created' | 'omnichannel_one_time_order_item_cancelled' | 'usage_file_ingested' | 'omnichannel_subscription_item_pause_scheduled' | 'omnichannel_subscription_moved_in',not_in?:string};
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
82
|
* @description Source of the event
|
|
@@ -92,7 +92,7 @@ declare module 'chargebee' {
|
|
|
92
92
|
|
|
93
93
|
occurred_at?:{after?:string,before?:string,between?:string,on?:string};
|
|
94
94
|
|
|
95
|
-
sort_by?:
|
|
95
|
+
sort_by?:{asc?:'occurred_at',desc?:'occurred_at'};
|
|
96
96
|
}
|
|
97
97
|
export interface RetrieveResponse {
|
|
98
98
|
event:Event;
|
|
@@ -97,7 +97,7 @@ declare module 'chargebee' {
|
|
|
97
97
|
feature:Feature;
|
|
98
98
|
}
|
|
99
99
|
export interface CreateInputParam {
|
|
100
|
-
|
|
100
|
+
[key : string] : any;
|
|
101
101
|
levels?:{is_unlimited?:boolean,level?:number,name?:string,value?:string}[];
|
|
102
102
|
|
|
103
103
|
id?:string;
|
|
@@ -114,7 +114,7 @@ declare module 'chargebee' {
|
|
|
114
114
|
feature:Feature;
|
|
115
115
|
}
|
|
116
116
|
export interface UpdateInputParam {
|
|
117
|
-
|
|
117
|
+
[key : string] : any;
|
|
118
118
|
levels?:{is_unlimited?:boolean,level?:number,name?:string,value?:string}[];
|
|
119
119
|
|
|
120
120
|
name?:string;
|
|
@@ -60,7 +60,7 @@ declare module 'chargebee' {
|
|
|
60
60
|
|
|
61
61
|
shipping_address?:{city?:string,company?:string,country?:string,email?:string,first_name?:string,last_name?:string,line1?:string,line2?:string,line3?:string,phone?:string,state?:string,state_code?:string,validation_status?:ValidationStatus,zip?:string};
|
|
62
62
|
|
|
63
|
-
subscription:
|
|
63
|
+
subscription:{plan_id:string,plan_quantity?:number,plan_quantity_in_decimal?:string};
|
|
64
64
|
|
|
65
65
|
addons?:{id?:string,quantity?:number,quantity_in_decimal?:string}[];
|
|
66
66
|
|
|
@@ -6,7 +6,7 @@ declare module 'chargebee' {
|
|
|
6
6
|
|
|
7
7
|
id?:string;
|
|
8
8
|
|
|
9
|
-
type?:'checkout_new' | 'checkout_existing' | 'update_payment_method' | 'manage_payment_sources' | 'collect_now' | 'extend_subscription' | 'checkout_one_time' | 'pre_cancel' | 'view_voucher' | 'checkout_gift' | 'claim_gift';
|
|
9
|
+
type?:'checkout_new' | 'checkout_existing' | 'update_payment_method' | 'manage_payment_sources' | 'collect_now' | 'extend_subscription' | 'checkout_one_time' | 'pre_cancel' | 'view_voucher' | 'accept_quote' | 'checkout_gift' | 'claim_gift';
|
|
10
10
|
|
|
11
11
|
url?:string;
|
|
12
12
|
|
|
@@ -82,9 +82,9 @@ declare module 'chargebee' {
|
|
|
82
82
|
}
|
|
83
83
|
export interface CheckoutNewInputParam {
|
|
84
84
|
|
|
85
|
-
subscription:
|
|
85
|
+
subscription:{affiliate_token?:string,auto_collection?:AutoCollection,contract_term_billing_cycle_on_renewal?:number,coupon?:string,id?:string,invoice_notes?:string,offline_payment_method?:OfflinePaymentMethod,plan_id:string,plan_quantity?:number,plan_quantity_in_decimal?:string,plan_unit_price?:number,plan_unit_price_in_decimal?:string,setup_fee?:number,start_date?:number,trial_end?:number};
|
|
86
86
|
|
|
87
|
-
customer?:
|
|
87
|
+
customer?:{company?:string,consolidated_invoicing?:boolean,email?:string,first_name?:string,id?:string,last_name?:string,locale?:string,phone?:string,taxability?:Taxability,vat_number?:string,vat_number_prefix?:string};
|
|
88
88
|
|
|
89
89
|
card?:{gateway?:Gateway,gateway_account_id?:string};
|
|
90
90
|
|
|
@@ -125,7 +125,7 @@ declare module 'chargebee' {
|
|
|
125
125
|
}
|
|
126
126
|
export interface CheckoutOneTimeInputParam {
|
|
127
127
|
|
|
128
|
-
customer?:
|
|
128
|
+
customer?:{company?:string,consolidated_invoicing?:boolean,email?:string,first_name?:string,id?:string,last_name?:string,locale?:string,phone?:string,taxability?:Taxability,vat_number?:string,vat_number_prefix?:string};
|
|
129
129
|
|
|
130
130
|
invoice?:{po_number?:string};
|
|
131
131
|
|
|
@@ -162,7 +162,7 @@ declare module 'chargebee' {
|
|
|
162
162
|
}
|
|
163
163
|
export interface CheckoutOneTimeForItemsInputParam {
|
|
164
164
|
|
|
165
|
-
customer?:
|
|
165
|
+
customer?:{company?:string,consolidated_invoicing?:boolean,einvoicing_method?:EinvoicingMethod,email?:string,entity_identifier_scheme?:string,entity_identifier_standard?:string,first_name?:string,id?:string,is_einvoice_enabled?:boolean,last_name?:string,locale?:string,phone?:string,taxability?:Taxability,vat_number?:string,vat_number_prefix?:string};
|
|
166
166
|
|
|
167
167
|
invoice?:{po_number?:string};
|
|
168
168
|
|
|
@@ -205,9 +205,9 @@ declare module 'chargebee' {
|
|
|
205
205
|
}
|
|
206
206
|
export interface CheckoutNewForItemsInputParam {
|
|
207
207
|
|
|
208
|
-
subscription?:
|
|
208
|
+
subscription?:{auto_collection?:AutoCollection,contract_term_billing_cycle_on_renewal?:number,coupon?:string,id?:string,invoice_notes?:string,offline_payment_method?:OfflinePaymentMethod,po_number?:string,setup_fee?:number,start_date?:number,trial_end?:number};
|
|
209
209
|
|
|
210
|
-
customer?:
|
|
210
|
+
customer?:{company?:string,einvoicing_method?:EinvoicingMethod,email?:string,entity_identifier_scheme?:string,entity_identifier_standard?:string,first_name?:string,id?:string,is_einvoice_enabled?:boolean,last_name?:string,locale?:string,phone?:string,taxability?:Taxability,vat_number?:string,vat_number_prefix?:string};
|
|
211
211
|
|
|
212
212
|
card?:{gateway?:Gateway,gateway_account_id?:string};
|
|
213
213
|
|
|
@@ -252,9 +252,9 @@ declare module 'chargebee' {
|
|
|
252
252
|
}
|
|
253
253
|
export interface CheckoutExistingInputParam {
|
|
254
254
|
|
|
255
|
-
subscription:
|
|
255
|
+
subscription:{auto_collection?:AutoCollection,contract_term_billing_cycle_on_renewal?:number,coupon?:string,id:string,invoice_notes?:string,offline_payment_method?:OfflinePaymentMethod,plan_id?:string,plan_quantity?:number,plan_quantity_in_decimal?:string,plan_unit_price?:number,plan_unit_price_in_decimal?:string,setup_fee?:number,start_date?:number,trial_end?:number};
|
|
256
256
|
|
|
257
|
-
customer?:
|
|
257
|
+
customer?:{vat_number?:string,vat_number_prefix?:string};
|
|
258
258
|
|
|
259
259
|
card?:{gateway?:Gateway,gateway_account_id?:string};
|
|
260
260
|
|
|
@@ -303,9 +303,9 @@ declare module 'chargebee' {
|
|
|
303
303
|
}
|
|
304
304
|
export interface CheckoutExistingForItemsInputParam {
|
|
305
305
|
|
|
306
|
-
subscription:
|
|
306
|
+
subscription:{auto_collection?:AutoCollection,contract_term_billing_cycle_on_renewal?:number,coupon?:string,id:string,invoice_notes?:string,offline_payment_method?:OfflinePaymentMethod,setup_fee?:number,start_date?:number,trial_end?:number};
|
|
307
307
|
|
|
308
|
-
customer?:
|
|
308
|
+
customer?:{entity_identifier_scheme?:string,entity_identifier_standard?:string,is_einvoice_enabled?:boolean,vat_number?:string,vat_number_prefix?:string};
|
|
309
309
|
|
|
310
310
|
card?:{gateway?:Gateway,gateway_account_id?:string};
|
|
311
311
|
|
|
@@ -446,7 +446,7 @@ declare module 'chargebee' {
|
|
|
446
446
|
|
|
447
447
|
gifter?:{customer_id?:string};
|
|
448
448
|
|
|
449
|
-
subscription:
|
|
449
|
+
subscription:{coupon?:string,plan_id:string,plan_quantity?:number,plan_quantity_in_decimal?:string};
|
|
450
450
|
|
|
451
451
|
addons?:{id?:string,quantity?:number,quantity_in_decimal?:string}[];
|
|
452
452
|
|
|
@@ -528,7 +528,7 @@ declare module 'chargebee' {
|
|
|
528
528
|
|
|
529
529
|
*/
|
|
530
530
|
|
|
531
|
-
type?:{in?:string,is?:'checkout_new' | 'checkout_existing' | 'update_payment_method' | 'manage_payment_sources' | 'collect_now' | 'extend_subscription' | 'checkout_one_time' | 'pre_cancel' | 'view_voucher',is_not?:'checkout_new' | 'checkout_existing' | 'update_payment_method' | 'manage_payment_sources' | 'collect_now' | 'extend_subscription' | 'checkout_one_time' | 'pre_cancel' | 'view_voucher',not_in?:string};
|
|
531
|
+
type?:{in?:string,is?:'checkout_new' | 'checkout_existing' | 'update_payment_method' | 'manage_payment_sources' | 'collect_now' | 'extend_subscription' | 'checkout_one_time' | 'pre_cancel' | 'view_voucher' | 'accept_quote',is_not?:'checkout_new' | 'checkout_existing' | 'update_payment_method' | 'manage_payment_sources' | 'collect_now' | 'extend_subscription' | 'checkout_one_time' | 'pre_cancel' | 'view_voucher' | 'accept_quote',not_in?:string};
|
|
532
532
|
|
|
533
533
|
/**
|
|
534
534
|
* @description Indicating the current state of the hosted page resource.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
///<reference path='./../index.d.ts'/>
|
|
3
3
|
declare module 'chargebee' {
|
|
4
4
|
export interface Invoice {
|
|
5
|
-
|
|
5
|
+
[key : string] : any;
|
|
6
6
|
|
|
7
7
|
id:string;
|
|
8
8
|
|
|
@@ -284,7 +284,7 @@ declare module 'chargebee' {
|
|
|
284
284
|
invoice:Invoice;
|
|
285
285
|
}
|
|
286
286
|
export interface CreateForChargeItemsAndChargesInputParam {
|
|
287
|
-
|
|
287
|
+
[key : string] : any;
|
|
288
288
|
shipping_address?:{city?:string,company?:string,country?:string,email?:string,first_name?:string,last_name?:string,line1?:string,line2?:string,line3?:string,phone?:string,state?:string,state_code?:string,validation_status?:ValidationStatus,zip?:string};
|
|
289
289
|
|
|
290
290
|
statement_descriptor?:{descriptor?:string};
|
|
@@ -469,7 +469,7 @@ declare module 'chargebee' {
|
|
|
469
469
|
credit_note?:CreditNote;
|
|
470
470
|
}
|
|
471
471
|
export interface ImportInvoiceInputParam {
|
|
472
|
-
|
|
472
|
+
[key : string] : any;
|
|
473
473
|
credit_note?:{id?:string};
|
|
474
474
|
|
|
475
475
|
billing_address?:{city?:string,company?:string,country?:string,email?:string,first_name?:string,last_name?:string,line1?:string,line2?:string,line3?:string,phone?:string,state?:string,state_code?:string,validation_status?:ValidationStatus,zip?:string};
|
|
@@ -736,7 +736,7 @@ NOTE: Not to be used if *consolidated invoicing* is enabled.
|
|
|
736
736
|
|
|
737
737
|
void_reason_code?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
738
738
|
|
|
739
|
-
sort_by?:
|
|
739
|
+
sort_by?:{asc?:'date' | 'updated_at',desc?:'date' | 'updated_at'};
|
|
740
740
|
}
|
|
741
741
|
export interface InvoicesForCustomerResponse {
|
|
742
742
|
list:{invoice:Invoice}[];
|
|
@@ -899,7 +899,7 @@ NOTE: Not to be used if *consolidated invoicing* is enabled.
|
|
|
899
899
|
invoice:Invoice;
|
|
900
900
|
}
|
|
901
901
|
export interface CloseInputParam {
|
|
902
|
-
|
|
902
|
+
[key : string] : any;
|
|
903
903
|
notes_to_remove?:{entity_id?:string,entity_type?:EntityType}[];
|
|
904
904
|
|
|
905
905
|
comment?:string;
|
|
@@ -1035,7 +1035,7 @@ NOTE: Not to be used if *consolidated invoicing* is enabled.
|
|
|
1035
1035
|
invoice:Invoice;
|
|
1036
1036
|
}
|
|
1037
1037
|
export interface UpdateDetailsInputParam {
|
|
1038
|
-
|
|
1038
|
+
[key : string] : any;
|
|
1039
1039
|
billing_address?:{city?:string,company?:string,country?:string,email?:string,first_name?:string,last_name?:string,line1?:string,line2?:string,line3?:string,phone?:string,state?:string,state_code?:string,validation_status?:ValidationStatus,zip?:string};
|
|
1040
1040
|
|
|
1041
1041
|
shipping_address?:{city?:string,company?:string,country?:string,email?:string,first_name?:string,last_name?:string,line1?:string,line2?:string,line3?:string,phone?:string,state?:string,state_code?:string,validation_status?:ValidationStatus,zip?:string};
|
|
@@ -1371,8 +1371,6 @@ NOTE: Not to be used if *consolidated invoicing* is enabled.
|
|
|
1371
1371
|
zip?:string;
|
|
1372
1372
|
|
|
1373
1373
|
validation_status?:ValidationStatus;
|
|
1374
|
-
|
|
1375
|
-
index:number;
|
|
1376
1374
|
}
|
|
1377
1375
|
export interface BillingAddress {
|
|
1378
1376
|
first_name?:string;
|
|
@@ -22,24 +22,24 @@ declare module 'chargebee' {
|
|
|
22
22
|
|
|
23
23
|
line_items?:InvoiceEstimate.LineItem[];
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
line_item_tiers?:InvoiceEstimate.LineItemTier[];
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
line_item_discounts?:InvoiceEstimate.LineItemDiscount[];
|
|
28
28
|
|
|
29
29
|
line_item_taxes?:InvoiceEstimate.LineItemTax[];
|
|
30
30
|
|
|
31
|
-
line_item_tiers?:InvoiceEstimate.LineItemTier[];
|
|
32
|
-
|
|
33
31
|
line_item_credits?:InvoiceEstimate.LineItemCredit[];
|
|
34
32
|
|
|
35
|
-
|
|
33
|
+
line_item_addresses?:InvoiceEstimate.LineItemAddress[];
|
|
34
|
+
|
|
35
|
+
discounts?:InvoiceEstimate.Discount[];
|
|
36
|
+
|
|
37
|
+
taxes?:InvoiceEstimate.Tax[];
|
|
36
38
|
|
|
37
39
|
round_off_amount?:number;
|
|
38
40
|
|
|
39
41
|
customer_id?:string;
|
|
40
42
|
|
|
41
|
-
line_item_addresses?:InvoiceEstimate.LineItemAddress[];
|
|
42
|
-
|
|
43
43
|
}
|
|
44
44
|
export namespace InvoiceEstimate {
|
|
45
45
|
|
|
@@ -95,25 +95,39 @@ declare module 'chargebee' {
|
|
|
95
95
|
|
|
96
96
|
customer_id?:string;
|
|
97
97
|
}
|
|
98
|
-
export interface
|
|
99
|
-
|
|
98
|
+
export interface LineItemTier {
|
|
99
|
+
line_item_id?:string;
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
starting_unit:number;
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
ending_unit?:number;
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
quantity_used:number;
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
unit_amount:number;
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
starting_unit_in_decimal?:string;
|
|
110
|
+
|
|
111
|
+
ending_unit_in_decimal?:string;
|
|
112
|
+
|
|
113
|
+
quantity_used_in_decimal?:string;
|
|
114
|
+
|
|
115
|
+
unit_amount_in_decimal?:string;
|
|
116
|
+
|
|
117
|
+
pricing_type?:'per_unit' | 'flat_fee' | 'package';
|
|
118
|
+
|
|
119
|
+
package_size?:number;
|
|
110
120
|
}
|
|
111
|
-
export interface
|
|
112
|
-
|
|
121
|
+
export interface LineItemDiscount {
|
|
122
|
+
line_item_id:string;
|
|
113
123
|
|
|
114
|
-
|
|
124
|
+
discount_type:'item_level_coupon' | 'document_level_coupon' | 'promotional_credits' | 'prorated_credits' | 'item_level_discount' | 'document_level_discount';
|
|
115
125
|
|
|
116
|
-
|
|
126
|
+
coupon_id?:string;
|
|
127
|
+
|
|
128
|
+
entity_id?:string;
|
|
129
|
+
|
|
130
|
+
discount_amount:number;
|
|
117
131
|
}
|
|
118
132
|
export interface LineItemTax {
|
|
119
133
|
line_item_id?:string;
|
|
@@ -146,29 +160,6 @@ declare module 'chargebee' {
|
|
|
146
160
|
|
|
147
161
|
local_currency_code?:string;
|
|
148
162
|
}
|
|
149
|
-
export interface LineItemTier {
|
|
150
|
-
line_item_id?:string;
|
|
151
|
-
|
|
152
|
-
starting_unit:number;
|
|
153
|
-
|
|
154
|
-
ending_unit?:number;
|
|
155
|
-
|
|
156
|
-
quantity_used:number;
|
|
157
|
-
|
|
158
|
-
unit_amount:number;
|
|
159
|
-
|
|
160
|
-
starting_unit_in_decimal?:string;
|
|
161
|
-
|
|
162
|
-
ending_unit_in_decimal?:string;
|
|
163
|
-
|
|
164
|
-
quantity_used_in_decimal?:string;
|
|
165
|
-
|
|
166
|
-
unit_amount_in_decimal?:string;
|
|
167
|
-
|
|
168
|
-
pricing_type?:'per_unit' | 'flat_fee' | 'package';
|
|
169
|
-
|
|
170
|
-
package_size?:number;
|
|
171
|
-
}
|
|
172
163
|
export interface LineItemCredit {
|
|
173
164
|
cn_id:string;
|
|
174
165
|
|
|
@@ -176,17 +167,6 @@ declare module 'chargebee' {
|
|
|
176
167
|
|
|
177
168
|
line_item_id?:string;
|
|
178
169
|
}
|
|
179
|
-
export interface LineItemDiscount {
|
|
180
|
-
line_item_id:string;
|
|
181
|
-
|
|
182
|
-
discount_type:'item_level_coupon' | 'document_level_coupon' | 'promotional_credits' | 'prorated_credits' | 'item_level_discount' | 'document_level_discount';
|
|
183
|
-
|
|
184
|
-
coupon_id?:string;
|
|
185
|
-
|
|
186
|
-
entity_id?:string;
|
|
187
|
-
|
|
188
|
-
discount_amount:number;
|
|
189
|
-
}
|
|
190
170
|
export interface LineItemAddress {
|
|
191
171
|
line_item_id?:string;
|
|
192
172
|
|
|
@@ -218,5 +198,25 @@ declare module 'chargebee' {
|
|
|
218
198
|
|
|
219
199
|
validation_status?:'not_validated' | 'valid' | 'partially_valid' | 'invalid';
|
|
220
200
|
}
|
|
201
|
+
export interface Discount {
|
|
202
|
+
amount:number;
|
|
203
|
+
|
|
204
|
+
description?:string;
|
|
205
|
+
|
|
206
|
+
entity_type:'item_level_coupon' | 'document_level_coupon' | 'promotional_credits' | 'prorated_credits' | 'item_level_discount' | 'document_level_discount';
|
|
207
|
+
|
|
208
|
+
discount_type?:'fixed_amount' | 'percentage';
|
|
209
|
+
|
|
210
|
+
entity_id?:string;
|
|
211
|
+
|
|
212
|
+
coupon_set_code?:string;
|
|
213
|
+
}
|
|
214
|
+
export interface Tax {
|
|
215
|
+
name:string;
|
|
216
|
+
|
|
217
|
+
amount:number;
|
|
218
|
+
|
|
219
|
+
description?:string;
|
|
220
|
+
}
|
|
221
221
|
}
|
|
222
222
|
}
|
|
@@ -79,7 +79,7 @@ declare module 'chargebee' {
|
|
|
79
79
|
item:Item;
|
|
80
80
|
}
|
|
81
81
|
export interface CreateInputParam {
|
|
82
|
-
|
|
82
|
+
[key : string] : any;
|
|
83
83
|
bundle_configuration?:{type?:'fixed'};
|
|
84
84
|
|
|
85
85
|
bundle_items_to_add?:{item_id?:string,item_type?:ItemType,price_allocation?:number,quantity?:number}[];
|
|
@@ -134,7 +134,7 @@ declare module 'chargebee' {
|
|
|
134
134
|
item:Item;
|
|
135
135
|
}
|
|
136
136
|
export interface UpdateInputParam {
|
|
137
|
-
|
|
137
|
+
[key : string] : any;
|
|
138
138
|
bundle_configuration?:{type?:'fixed'};
|
|
139
139
|
|
|
140
140
|
bundle_items_to_add?:{item_id?:string,item_type?:ItemType,price_allocation?:number,quantity?:number}[];
|
|
@@ -310,7 +310,7 @@ The ID of the business entity created for the site. For Product Catalog 1.0, all
|
|
|
310
310
|
|
|
311
311
|
include_site_level_resources?:{is?:'true' | 'false'};
|
|
312
312
|
|
|
313
|
-
sort_by?:
|
|
313
|
+
sort_by?:{asc?:'name' | 'id' | 'updated_at',desc?:'name' | 'id' | 'updated_at'};
|
|
314
314
|
}
|
|
315
315
|
export interface DeleteResponse {
|
|
316
316
|
item:Item;
|
|
@@ -39,7 +39,7 @@ declare module 'chargebee' {
|
|
|
39
39
|
item_family:ItemFamily;
|
|
40
40
|
}
|
|
41
41
|
export interface CreateInputParam {
|
|
42
|
-
|
|
42
|
+
[key : string] : any;
|
|
43
43
|
id:string;
|
|
44
44
|
|
|
45
45
|
name:string;
|
|
@@ -111,7 +111,7 @@ The ID of the business entity created for the site. For Product Catalog 1.0, all
|
|
|
111
111
|
item_family:ItemFamily;
|
|
112
112
|
}
|
|
113
113
|
export interface UpdateInputParam {
|
|
114
|
-
|
|
114
|
+
[key : string] : any;
|
|
115
115
|
name?:string;
|
|
116
116
|
|
|
117
117
|
description?:string;
|
|
@@ -111,7 +111,7 @@ declare module 'chargebee' {
|
|
|
111
111
|
item_price:ItemPrice;
|
|
112
112
|
}
|
|
113
113
|
export interface CreateInputParam {
|
|
114
|
-
|
|
114
|
+
[key : string] : any;
|
|
115
115
|
tax_detail?:{avalara_sale_type?:AvalaraSaleType,avalara_service_type?:number,avalara_tax_code?:string,avalara_transaction_type?:number,hsn_code?:string,tax_profile_id?:string,taxjar_product_code?:string};
|
|
116
116
|
|
|
117
117
|
accounting_detail?:{accounting_category1?:string,accounting_category2?:string,accounting_category3?:string,accounting_category4?:string,accounting_code?:string,sku?:string};
|
|
@@ -384,7 +384,7 @@ The ID of the business entity created for the site. For Product Catalog 1.0, all
|
|
|
384
384
|
|
|
385
385
|
channel?:{in?:string,is?:'web' | 'app_store' | 'play_store',is_not?:'web' | 'app_store' | 'play_store',not_in?:string};
|
|
386
386
|
|
|
387
|
-
sort_by?:
|
|
387
|
+
sort_by?:{asc?:'name' | 'id' | 'updated_at',desc?:'name' | 'id' | 'updated_at'};
|
|
388
388
|
}
|
|
389
389
|
export interface DeleteResponse {
|
|
390
390
|
item_price:ItemPrice;
|
|
@@ -411,7 +411,7 @@ The ID of the business entity created for the site. For Product Catalog 1.0, all
|
|
|
411
411
|
|
|
412
412
|
offset?:string;
|
|
413
413
|
|
|
414
|
-
sort_by?:
|
|
414
|
+
sort_by?:{asc?:'name' | 'id' | 'updated_at',desc?:'name' | 'id' | 'updated_at'};
|
|
415
415
|
}
|
|
416
416
|
export interface FindApplicableItemPricesResponse {
|
|
417
417
|
list:{item_price:ItemPrice}[];
|
|
@@ -436,7 +436,7 @@ The ID of the business entity created for the site. For Product Catalog 1.0, all
|
|
|
436
436
|
|
|
437
437
|
item_id?:string;
|
|
438
438
|
|
|
439
|
-
sort_by?:
|
|
439
|
+
sort_by?:{asc?:'name' | 'id' | 'updated_at',desc?:'name' | 'id' | 'updated_at'};
|
|
440
440
|
}
|
|
441
441
|
export interface Tier {
|
|
442
442
|
starting_unit:number;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
declare module 'chargebee' {
|
|
4
|
+
export interface OfferEvent {
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
export namespace OfferEvent {
|
|
9
|
+
export class OfferEventResource {
|
|
10
|
+
offer_events(input:OfferEventsInputParam):ChargebeeRequest<OfferEventsResponse>;
|
|
11
|
+
}
|
|
12
|
+
export interface OfferEventsResponse {
|
|
13
|
+
}
|
|
14
|
+
export interface OfferEventsInputParam {
|
|
15
|
+
|
|
16
|
+
personalized_offer_id:string;
|
|
17
|
+
|
|
18
|
+
type:'viewed' | 'dismissed';
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
}
|