chargebee 2.25.0 → 2.25.2
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 +8 -0
- package/lib/chargebee.js +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +19 -2
- package/types/resources/Address.d.ts +1 -3
- package/types/resources/AdvanceInvoiceSchedule.d.ts +1 -1
- package/types/resources/AttachedItem.d.ts +2 -6
- package/types/resources/Card.d.ts +1 -4
- package/types/resources/Comment.d.ts +2 -3
- package/types/resources/Contact.d.ts +1 -2
- package/types/resources/ContractTerm.d.ts +1 -2
- package/types/resources/Coupon.d.ts +2 -5
- package/types/resources/CouponCode.d.ts +1 -1
- package/types/resources/CouponSet.d.ts +2 -5
- package/types/resources/CreditNote.d.ts +2 -10
- package/types/resources/CreditNoteEstimate.d.ts +1 -1
- package/types/resources/Customer.d.ts +3 -17
- package/types/resources/DifferentialPrice.d.ts +2 -6
- package/types/resources/Discount.d.ts +1 -2
- package/types/resources/Download.d.ts +1 -2
- package/types/resources/EntitlementOverride.d.ts +2 -3
- package/types/resources/Estimate.d.ts +1 -13
- package/types/resources/Event.d.ts +2 -2
- package/types/resources/Export.d.ts +1 -15
- package/types/resources/Feature.d.ts +2 -2
- package/types/resources/Gift.d.ts +2 -4
- package/types/resources/Hierarchy.d.ts +1 -2
- package/types/resources/HostedPage.d.ts +2 -16
- package/types/resources/ImpactedItem.d.ts +1 -1
- package/types/resources/ImpactedSubscription.d.ts +1 -1
- package/types/resources/InAppSubscription.d.ts +1 -5
- package/types/resources/Invoice.d.ts +3 -25
- package/types/resources/InvoiceEstimate.d.ts +1 -1
- package/types/resources/Item.d.ts +2 -1
- package/types/resources/ItemEntitlement.d.ts +3 -5
- package/types/resources/ItemFamily.d.ts +2 -1
- package/types/resources/ItemPrice.d.ts +4 -3
- package/types/resources/Media.d.ts +1 -2
- package/types/resources/NonSubscription.d.ts +1 -2
- package/types/resources/Order.d.ts +2 -9
- package/types/resources/PaymentIntent.d.ts +1 -3
- package/types/resources/PaymentReferenceNumber.d.ts +1 -2
- package/types/resources/PaymentSource.d.ts +2 -14
- package/types/resources/PaymentVoucher.d.ts +3 -4
- package/types/resources/PortalSession.d.ts +1 -3
- package/types/resources/PromotionalCredit.d.ts +2 -5
- package/types/resources/Purchase.d.ts +1 -3
- package/types/resources/Quote.d.ts +3 -14
- package/types/resources/QuoteLineGroup.d.ts +1 -1
- package/types/resources/QuotedCharge.d.ts +1 -1
- package/types/resources/QuotedSubscription.d.ts +1 -1
- package/types/resources/ResourceMigration.d.ts +1 -2
- package/types/resources/SiteMigrationDetail.d.ts +2 -2
- package/types/resources/Subscription.d.ts +4 -18
- package/types/resources/SubscriptionEntitlement.d.ts +2 -3
- package/types/resources/SubscriptionEstimate.d.ts +1 -1
- package/types/resources/TaxWithheld.d.ts +1 -2
- package/types/resources/ThirdPartyPaymentMethod.d.ts +1 -2
- package/types/resources/TimeMachine.d.ts +1 -3
- package/types/resources/Token.d.ts +1 -3
- package/types/resources/Transaction.d.ts +3 -7
- package/types/resources/UnbilledCharge.d.ts +2 -5
- package/types/resources/Usage.d.ts +2 -6
- package/types/resources/VirtualBankAccount.d.ts +2 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface Estimate {
|
|
3
|
-
|
|
4
4
|
created_at:number;
|
|
5
5
|
subscription_estimate?:SubscriptionEstimate;
|
|
6
6
|
subscription_estimates?:SubscriptionEstimate[];
|
|
@@ -30,7 +30,6 @@ declare module 'chargebee' {
|
|
|
30
30
|
estimate:Estimate;
|
|
31
31
|
}
|
|
32
32
|
export interface RenewalEstimateInputParam {
|
|
33
|
-
|
|
34
33
|
include_delayed_charges?:boolean;
|
|
35
34
|
use_existing_balances?:boolean;
|
|
36
35
|
ignore_scheduled_cancellation?:boolean;
|
|
@@ -40,7 +39,6 @@ declare module 'chargebee' {
|
|
|
40
39
|
estimate:Estimate;
|
|
41
40
|
}
|
|
42
41
|
export interface CreateSubItemEstimateInputParam {
|
|
43
|
-
|
|
44
42
|
billing_cycles?:number;
|
|
45
43
|
mandatory_items_to_remove?:string[];
|
|
46
44
|
terms_to_charge?:number;
|
|
@@ -62,7 +60,6 @@ declare module 'chargebee' {
|
|
|
62
60
|
estimate:Estimate;
|
|
63
61
|
}
|
|
64
62
|
export interface CancelSubscriptionForItemsInputParam {
|
|
65
|
-
|
|
66
63
|
end_of_term?:boolean;
|
|
67
64
|
cancel_at?:number;
|
|
68
65
|
credit_option_for_current_term_charges?:CreditOptionForCurrentTermCharges;
|
|
@@ -78,7 +75,6 @@ declare module 'chargebee' {
|
|
|
78
75
|
estimate:Estimate;
|
|
79
76
|
}
|
|
80
77
|
export interface ResumeSubscriptionInputParam {
|
|
81
|
-
|
|
82
78
|
resume_option?:ResumeOption;
|
|
83
79
|
charges_handling?:ChargesHandling;
|
|
84
80
|
subscription?:{resume_date?:number};
|
|
@@ -87,7 +83,6 @@ declare module 'chargebee' {
|
|
|
87
83
|
estimate:Estimate;
|
|
88
84
|
}
|
|
89
85
|
export interface CreateInvoiceForItemsInputParam {
|
|
90
|
-
|
|
91
86
|
currency_code?:string;
|
|
92
87
|
invoice_note?:string;
|
|
93
88
|
remove_general_note?:boolean;
|
|
@@ -108,7 +103,6 @@ declare module 'chargebee' {
|
|
|
108
103
|
estimate:Estimate;
|
|
109
104
|
}
|
|
110
105
|
export interface GiftSubscriptionForItemsInputParam {
|
|
111
|
-
|
|
112
106
|
coupon_ids?:string[];
|
|
113
107
|
gift?:{auto_claim?:boolean,claim_expiry_date?:number,no_expiry?:boolean,scheduled_at?:number};
|
|
114
108
|
gifter?:{customer_id:string,note?:string,payment_src_id?:string,signature:string};
|
|
@@ -121,7 +115,6 @@ declare module 'chargebee' {
|
|
|
121
115
|
estimate:Estimate;
|
|
122
116
|
}
|
|
123
117
|
export interface UpdateSubscriptionForItemsInputParam {
|
|
124
|
-
|
|
125
118
|
mandatory_items_to_remove?:string[];
|
|
126
119
|
replace_items_list?:boolean;
|
|
127
120
|
invoice_date?:number;
|
|
@@ -154,7 +147,6 @@ declare module 'chargebee' {
|
|
|
154
147
|
estimate:Estimate;
|
|
155
148
|
}
|
|
156
149
|
export interface RegenerateInvoiceEstimateInputParam {
|
|
157
|
-
|
|
158
150
|
date_from?:number;
|
|
159
151
|
date_to?:number;
|
|
160
152
|
prorate?:boolean;
|
|
@@ -164,7 +156,6 @@ declare module 'chargebee' {
|
|
|
164
156
|
estimate:Estimate;
|
|
165
157
|
}
|
|
166
158
|
export interface CreateSubItemForCustomerEstimateInputParam {
|
|
167
|
-
|
|
168
159
|
use_existing_balances?:boolean;
|
|
169
160
|
invoice_immediately?:boolean;
|
|
170
161
|
billing_cycles?:number;
|
|
@@ -184,7 +175,6 @@ declare module 'chargebee' {
|
|
|
184
175
|
estimate:Estimate;
|
|
185
176
|
}
|
|
186
177
|
export interface ChangeTermEndInputParam {
|
|
187
|
-
|
|
188
178
|
term_ends_at:number;
|
|
189
179
|
prorate?:boolean;
|
|
190
180
|
invoice_immediately?:boolean;
|
|
@@ -193,7 +183,6 @@ declare module 'chargebee' {
|
|
|
193
183
|
estimate:Estimate;
|
|
194
184
|
}
|
|
195
185
|
export interface PauseSubscriptionInputParam {
|
|
196
|
-
|
|
197
186
|
pause_option?:PauseOption;
|
|
198
187
|
unbilled_charges_handling?:UnbilledChargesHandling;
|
|
199
188
|
subscription?:{pause_date?:number,resume_date?:number,skip_billing_cycles?:number};
|
|
@@ -202,7 +191,6 @@ declare module 'chargebee' {
|
|
|
202
191
|
estimate:Estimate;
|
|
203
192
|
}
|
|
204
193
|
export interface AdvanceInvoiceEstimateInputParam {
|
|
205
|
-
|
|
206
194
|
terms_to_charge?:number;
|
|
207
195
|
invoice_immediately?:boolean;
|
|
208
196
|
schedule_type?:ScheduleType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface Event {
|
|
3
|
-
|
|
4
4
|
id:string;
|
|
5
5
|
occurred_at:number;
|
|
6
6
|
source:Source;
|
|
@@ -20,7 +20,7 @@ declare module 'chargebee' {
|
|
|
20
20
|
next_offset?:string;
|
|
21
21
|
}
|
|
22
22
|
export interface ListInputParam {
|
|
23
|
-
[key: string]:
|
|
23
|
+
[key : string]: any;
|
|
24
24
|
limit?:number;
|
|
25
25
|
offset?:string;
|
|
26
26
|
id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface Export {
|
|
3
|
-
|
|
4
4
|
id:string;
|
|
5
5
|
operation_type:string;
|
|
6
6
|
mime_type:'zip' | 'pdf';
|
|
@@ -30,7 +30,6 @@ declare module 'chargebee' {
|
|
|
30
30
|
export:Export;
|
|
31
31
|
}
|
|
32
32
|
export interface CustomersInputParam {
|
|
33
|
-
|
|
34
33
|
export_type?:ExportType;
|
|
35
34
|
business_entity_id?:{is?:string,is_not?:string,starts_with?:string};
|
|
36
35
|
customer?:{auto_close_invoices?:{is?:'true' | 'false'},auto_collection?:{in?:string,is?:'off' | 'on',is_not?:'off' | 'on',not_in?:string},channel?:{in?:string,is?:'app_store' | 'web' | 'play_store',is_not?:'app_store' | 'web' | 'play_store',not_in?:string},company?:{is?:string,is_not?:string,is_present?:'true' | 'false',starts_with?:string},created_at?:{after?:string,before?:string,between?:string,on?:string},email?:{is?:string,is_not?:string,is_present?:'true' | 'false',starts_with?:string},first_name?:{is?:string,is_not?:string,is_present?:'true' | 'false',starts_with?:string},id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},last_name?:{is?:string,is_not?:string,is_present?:'true' | 'false',starts_with?:string},offline_payment_method?:{in?:string,is?:'bank_transfer' | 'no_preference' | 'ach_credit' | 'boleto' | 'check' | 'sepa_credit' | 'cash',is_not?:'bank_transfer' | 'no_preference' | 'ach_credit' | 'boleto' | 'check' | 'sepa_credit' | 'cash',not_in?:string},phone?:{is?:string,is_not?:string,is_present?:'true' | 'false',starts_with?:string},taxability?:{in?:string,is?:'taxable' | 'exempt',is_not?:'taxable' | 'exempt',not_in?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
@@ -40,7 +39,6 @@ declare module 'chargebee' {
|
|
|
40
39
|
export:Export;
|
|
41
40
|
}
|
|
42
41
|
export interface AttachedItemsInputParam {
|
|
43
|
-
|
|
44
42
|
item_type?:{in?:string,is?:'charge' | 'addon' | 'plan',is_not?:'charge' | 'addon' | 'plan',not_in?:string};
|
|
45
43
|
attached_item?:{charge_on_event?:{in?:string,is?:'subscription_creation' | 'subscription_activation' | 'subscription_trial_start' | 'contract_termination' | 'plan_activation' | 'on_demand',is_not?:'subscription_creation' | 'subscription_activation' | 'subscription_trial_start' | 'contract_termination' | 'plan_activation' | 'on_demand',not_in?:string},id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},item_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},parent_item_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},type?:{in?:string,is?:'optional' | 'mandatory' | 'recommended',is_not?:'optional' | 'mandatory' | 'recommended',not_in?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
46
44
|
}
|
|
@@ -48,14 +46,12 @@ declare module 'chargebee' {
|
|
|
48
46
|
export:Export;
|
|
49
47
|
}
|
|
50
48
|
export interface TransactionsInputParam {
|
|
51
|
-
|
|
52
49
|
transaction?:{amount?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},amount_capturable?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},customer_id?:{in?:string,is?:string,is_not?:string,is_present?:'true' | 'false',not_in?:string,starts_with?:string},date?:{after?:string,before?:string,between?:string,on?:string},gateway?:{in?:string,is?:'bluepay' | 'beanstream' | 'elavon' | 'orbital' | 'hdfc' | 'nmi' | 'moneris' | 'metrics_global' | 'pin' | 'stripe' | 'quickbooks' | 'razorpay' | 'eway_rapid' | 'balanced_payments' | 'ecentric' | 'wepay' | 'chargebee_payments' | 'bank_of_america' | 'braintree' | 'first_data_global' | 'paypal_express_checkout' | 'ingenico_direct' | 'moneris_us' | 'exact' | 'migs' | 'checkout_com' | 'not_applicable' | 'paypal_pro' | 'ogone' | 'eway' | 'gocardless' | 'global_payments' | 'paymill' | 'adyen' | 'paypal' | 'chargebee' | 'authorize_net' | 'tco' | 'bluesnap' | 'windcave' | 'paypal_payflow_pro' | 'amazon_payments' | 'mollie' | 'cybersource' | 'wirecard' | 'sage_pay' | 'vantiv' | 'worldpay',is_not?:'bluepay' | 'beanstream' | 'elavon' | 'orbital' | 'hdfc' | 'nmi' | 'moneris' | 'metrics_global' | 'pin' | 'stripe' | 'quickbooks' | 'razorpay' | 'eway_rapid' | 'balanced_payments' | 'ecentric' | 'wepay' | 'chargebee_payments' | 'bank_of_america' | 'braintree' | 'first_data_global' | 'paypal_express_checkout' | 'ingenico_direct' | 'moneris_us' | 'exact' | 'migs' | 'checkout_com' | 'not_applicable' | 'paypal_pro' | 'ogone' | 'eway' | 'gocardless' | 'global_payments' | 'paymill' | 'adyen' | 'paypal' | 'chargebee' | 'authorize_net' | 'tco' | 'bluesnap' | 'windcave' | 'paypal_payflow_pro' | 'amazon_payments' | 'mollie' | 'cybersource' | 'wirecard' | 'sage_pay' | 'vantiv' | 'worldpay',not_in?:string},gateway_account_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},id_at_gateway?:{is?:string,is_not?:string,starts_with?:string},payment_method?:{in?:string,is?:'other' | 'netbanking_emandates' | 'ach_credit' | 'dotpay' | 'boleto' | 'direct_debit' | 'chargeback' | 'wechat_pay' | 'cash' | 'giropay' | 'bank_transfer' | 'alipay' | 'ideal' | 'google_pay' | 'custom' | 'unionpay' | 'check' | 'sofort' | 'amazon_payments' | 'upi' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'sepa_credit' | 'card',is_not?:'other' | 'netbanking_emandates' | 'ach_credit' | 'dotpay' | 'boleto' | 'direct_debit' | 'chargeback' | 'wechat_pay' | 'cash' | 'giropay' | 'bank_transfer' | 'alipay' | 'ideal' | 'google_pay' | 'custom' | 'unionpay' | 'check' | 'sofort' | 'amazon_payments' | 'upi' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'sepa_credit' | 'card',not_in?:string},payment_source_id?:{in?:string,is?:string,is_not?:string,is_present?:'true' | 'false',not_in?:string,starts_with?:string},reference_number?:{is?:string,is_not?:string,is_present?:'true' | 'false',starts_with?:string},status?:{in?:string,is?:'in_progress' | 'success' | 'failure' | 'voided' | 'timeout' | 'needs_attention',is_not?:'in_progress' | 'success' | 'failure' | 'voided' | 'timeout' | 'needs_attention',not_in?:string},subscription_id?:{in?:string,is?:string,is_not?:string,is_present?:'true' | 'false',not_in?:string,starts_with?:string},type?:{in?:string,is?:'authorization' | 'payment_reversal' | 'payment' | 'refund',is_not?:'authorization' | 'payment_reversal' | 'payment' | 'refund',not_in?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
53
50
|
}
|
|
54
51
|
export interface DifferentialPricesResponse {
|
|
55
52
|
export:Export;
|
|
56
53
|
}
|
|
57
54
|
export interface DifferentialPricesInputParam {
|
|
58
|
-
|
|
59
55
|
item_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
60
56
|
differential_price?:{id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},item_price_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},parent_item_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string}};
|
|
61
57
|
}
|
|
@@ -63,14 +59,12 @@ declare module 'chargebee' {
|
|
|
63
59
|
export:Export;
|
|
64
60
|
}
|
|
65
61
|
export interface ItemFamiliesInputParam {
|
|
66
|
-
|
|
67
62
|
item_family?:{id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},name?:{is?:string,is_not?:string,starts_with?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
68
63
|
}
|
|
69
64
|
export interface InvoicesResponse {
|
|
70
65
|
export:Export;
|
|
71
66
|
}
|
|
72
67
|
export interface InvoicesInputParam {
|
|
73
|
-
|
|
74
68
|
payment_owner?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
75
69
|
invoice?:{amount_adjusted?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},amount_due?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},amount_paid?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},channel?:{in?:string,is?:'app_store' | 'web' | 'play_store',is_not?:'app_store' | 'web' | 'play_store',not_in?:string},credits_applied?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},customer_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},date?:{after?:string,before?:string,between?:string,on?:string},dunning_status?:{in?:string,is?:'in_progress' | 'stopped' | 'success' | 'exhausted',is_not?:'in_progress' | 'stopped' | 'success' | 'exhausted',is_present?:'true' | 'false',not_in?:string},id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},paid_at?:{after?:string,before?:string,between?:string,on?:string},price_type?:{in?:string,is?:'tax_exclusive' | 'tax_inclusive',is_not?:'tax_exclusive' | 'tax_inclusive',not_in?:string},recurring?:{is?:'true' | 'false'},status?:{in?:string,is?:'pending' | 'paid' | 'voided' | 'not_paid' | 'posted' | 'payment_due',is_not?:'pending' | 'paid' | 'voided' | 'not_paid' | 'posted' | 'payment_due',not_in?:string},subscription_id?:{in?:string,is?:string,is_not?:string,is_present?:'true' | 'false',not_in?:string,starts_with?:string},total?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
76
70
|
}
|
|
@@ -82,14 +76,12 @@ declare module 'chargebee' {
|
|
|
82
76
|
export:Export;
|
|
83
77
|
}
|
|
84
78
|
export interface ItemsInputParam {
|
|
85
|
-
|
|
86
79
|
item?:{channel?:{in?:string,is?:'app_store' | 'web' | 'play_store',is_not?:'app_store' | 'web' | 'play_store',not_in?:string},enabled_for_checkout?:{is?:'true' | 'false'},enabled_in_portal?:{is?:'true' | 'false'},id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},is_giftable?:{is?:'true' | 'false'},item_applicability?:{in?:string,is?:'all' | 'restricted',is_not?:'all' | 'restricted',not_in?:string},item_family_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},metered?:{is?:'true' | 'false'},name?:{is?:string,is_not?:string,starts_with?:string},status?:{in?:string,is?:'archived' | 'deleted' | 'active',is_not?:'archived' | 'deleted' | 'active',not_in?:string},type?:{in?:string,is?:'charge' | 'addon' | 'plan',is_not?:'charge' | 'addon' | 'plan',not_in?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string},usage_calculation?:{in?:string,is?:'max_usage' | 'sum_of_usages' | 'last_usage',is_not?:'max_usage' | 'sum_of_usages' | 'last_usage',not_in?:string}};
|
|
87
80
|
}
|
|
88
81
|
export interface DeferredRevenueResponse {
|
|
89
82
|
export:Export;
|
|
90
83
|
}
|
|
91
84
|
export interface DeferredRevenueInputParam {
|
|
92
|
-
|
|
93
85
|
report_by:ReportBy;
|
|
94
86
|
currency_code?:string;
|
|
95
87
|
report_from_month:number;
|
|
@@ -111,7 +103,6 @@ declare module 'chargebee' {
|
|
|
111
103
|
export:Export;
|
|
112
104
|
}
|
|
113
105
|
export interface RevenueRecognitionInputParam {
|
|
114
|
-
|
|
115
106
|
report_by:ReportBy;
|
|
116
107
|
currency_code?:string;
|
|
117
108
|
report_from_month:number;
|
|
@@ -133,14 +124,12 @@ declare module 'chargebee' {
|
|
|
133
124
|
export:Export;
|
|
134
125
|
}
|
|
135
126
|
export interface CreditNotesInputParam {
|
|
136
|
-
|
|
137
127
|
credit_note?:{amount_allocated?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},amount_available?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},amount_refunded?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},channel?:{in?:string,is?:'app_store' | 'web' | 'play_store',is_not?:'app_store' | 'web' | 'play_store',not_in?:string},create_reason_code?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},customer_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},date?:{after?:string,before?:string,between?:string,on?:string},id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},price_type?:{in?:string,is?:'tax_exclusive' | 'tax_inclusive',is_not?:'tax_exclusive' | 'tax_inclusive',not_in?:string},reason_code?:{in?:string,is?:'other' | 'product_unsatisfactory' | 'subscription_pause' | 'order_cancellation' | 'service_unsatisfactory' | 'subscription_cancellation' | 'chargeback' | 'order_change' | 'write_off' | 'waiver' | 'subscription_change' | 'fraudulent',is_not?:'other' | 'product_unsatisfactory' | 'subscription_pause' | 'order_cancellation' | 'service_unsatisfactory' | 'subscription_cancellation' | 'chargeback' | 'order_change' | 'write_off' | 'waiver' | 'subscription_change' | 'fraudulent',not_in?:string},reference_invoice_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},status?:{in?:string,is?:'refund_due' | 'adjusted' | 'refunded' | 'voided',is_not?:'refund_due' | 'adjusted' | 'refunded' | 'voided',not_in?:string},subscription_id?:{in?:string,is?:string,is_not?:string,is_present?:'true' | 'false',not_in?:string,starts_with?:string},total?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},type?:{in?:string,is?:'adjustment' | 'refundable',is_not?:'adjustment' | 'refundable',not_in?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string},voided_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
138
128
|
}
|
|
139
129
|
export interface CouponsResponse {
|
|
140
130
|
export:Export;
|
|
141
131
|
}
|
|
142
132
|
export interface CouponsInputParam {
|
|
143
|
-
|
|
144
133
|
currency_code?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
145
134
|
coupon?:{apply_on?:{in?:string,is?:'invoice_amount' | 'each_specified_item',is_not?:'invoice_amount' | 'each_specified_item',not_in?:string},created_at?:{after?:string,before?:string,between?:string,on?:string},discount_type?:{in?:string,is?:'fixed_amount' | 'percentage',is_not?:'fixed_amount' | 'percentage',not_in?:string},duration_type?:{in?:string,is?:'limited_period' | 'one_time' | 'forever',is_not?:'limited_period' | 'one_time' | 'forever',not_in?:string},id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},name?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},status?:{in?:string,is?:'archived' | 'expired' | 'deleted' | 'active',is_not?:'archived' | 'expired' | 'deleted' | 'active',not_in?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
146
135
|
}
|
|
@@ -148,7 +137,6 @@ declare module 'chargebee' {
|
|
|
148
137
|
export:Export;
|
|
149
138
|
}
|
|
150
139
|
export interface OrdersInputParam {
|
|
151
|
-
|
|
152
140
|
total?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string};
|
|
153
141
|
order?:{amount_paid?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},cancelled_at?:{after?:string,before?:string,between?:string,on?:string},customer_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},delivered_at?:{after?:string,before?:string,between?:string,on?:string},id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},is_resent?:{is?:'true' | 'false'},order_date?:{after?:string,before?:string,between?:string,on?:string},original_order_id?:{is?:string,is_not?:string,starts_with?:string},price_type?:{in?:string,is?:'tax_exclusive' | 'tax_inclusive',is_not?:'tax_exclusive' | 'tax_inclusive',not_in?:string},refundable_credits?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},refundable_credits_issued?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},resent_status?:{in?:string,is?:'fully_resent' | 'partially_resent',is_not?:'fully_resent' | 'partially_resent',not_in?:string},shipped_at?:{after?:string,before?:string,between?:string,on?:string},shipping_date?:{after?:string,before?:string,between?:string,on?:string},status?:{in?:string,is?:'new' | 'partially_delivered' | 'queued' | 'delivered' | 'on_hold' | 'shipped' | 'processing' | 'cancelled' | 'voided' | 'complete' | 'awaiting_shipment' | 'returned',is_not?:'new' | 'partially_delivered' | 'queued' | 'delivered' | 'on_hold' | 'shipped' | 'processing' | 'cancelled' | 'voided' | 'complete' | 'awaiting_shipment' | 'returned',not_in?:string},subscription_id?:{in?:string,is?:string,is_not?:string,is_present?:'true' | 'false',not_in?:string,starts_with?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
154
142
|
}
|
|
@@ -156,7 +144,6 @@ declare module 'chargebee' {
|
|
|
156
144
|
export:Export;
|
|
157
145
|
}
|
|
158
146
|
export interface ItemPricesInputParam {
|
|
159
|
-
|
|
160
147
|
item_family_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
161
148
|
item_type?:{in?:string,is?:'charge' | 'addon' | 'plan',is_not?:'charge' | 'addon' | 'plan',not_in?:string};
|
|
162
149
|
currency_code?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
@@ -166,7 +153,6 @@ declare module 'chargebee' {
|
|
|
166
153
|
export:Export;
|
|
167
154
|
}
|
|
168
155
|
export interface SubscriptionsInputParam {
|
|
169
|
-
|
|
170
156
|
export_type?:ExportType;
|
|
171
157
|
item_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
172
158
|
item_price_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface Feature {
|
|
3
|
-
|
|
4
4
|
id:string;
|
|
5
5
|
name:string;
|
|
6
6
|
description?:string;
|
|
@@ -28,7 +28,7 @@ declare module 'chargebee' {
|
|
|
28
28
|
next_offset?:string;
|
|
29
29
|
}
|
|
30
30
|
export interface ListInputParam {
|
|
31
|
-
[key: string]:
|
|
31
|
+
[key : string]: any;
|
|
32
32
|
limit?:number;
|
|
33
33
|
offset?:string;
|
|
34
34
|
name?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface Gift {
|
|
3
|
-
|
|
4
4
|
id:string;
|
|
5
5
|
status:'expired' | 'scheduled' | 'unclaimed' | 'claimed' | 'cancelled';
|
|
6
6
|
scheduled_at?:number;
|
|
@@ -28,7 +28,6 @@ declare module 'chargebee' {
|
|
|
28
28
|
invoice?:Invoice;
|
|
29
29
|
}
|
|
30
30
|
export interface CreateForItemsInputParam {
|
|
31
|
-
|
|
32
31
|
scheduled_at?:number;
|
|
33
32
|
auto_claim?:boolean;
|
|
34
33
|
no_expiry?:boolean;
|
|
@@ -50,7 +49,6 @@ declare module 'chargebee' {
|
|
|
50
49
|
subscription:Subscription;
|
|
51
50
|
}
|
|
52
51
|
export interface UpdateGiftInputParam {
|
|
53
|
-
|
|
54
52
|
scheduled_at:number;
|
|
55
53
|
comment?:string;
|
|
56
54
|
}
|
|
@@ -59,7 +57,7 @@ declare module 'chargebee' {
|
|
|
59
57
|
next_offset?:string;
|
|
60
58
|
}
|
|
61
59
|
export interface ListInputParam {
|
|
62
|
-
[key: string]:
|
|
60
|
+
[key : string]: any;
|
|
63
61
|
limit?:number;
|
|
64
62
|
offset?:string;
|
|
65
63
|
status?:{in?:string,is?:'expired' | 'scheduled' | 'unclaimed' | 'claimed' | 'cancelled',is_not?:'expired' | 'scheduled' | 'unclaimed' | 'claimed' | 'cancelled',not_in?:string};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface HostedPage {
|
|
3
|
-
|
|
4
4
|
id?:string;
|
|
5
5
|
type?:'update_payment_method' | 'checkout_one_time' | 'manage_payment_sources' | 'checkout_new' | 'view_voucher' | 'collect_now' | 'checkout_existing' | 'extend_subscription' | 'pre_cancel';
|
|
6
6
|
url?:string;
|
|
@@ -38,7 +38,6 @@ declare module 'chargebee' {
|
|
|
38
38
|
hosted_page:HostedPage;
|
|
39
39
|
}
|
|
40
40
|
export interface CheckoutOneTimeForItemsInputParam {
|
|
41
|
-
|
|
42
41
|
business_entity_id?:string;
|
|
43
42
|
layout?:Layout;
|
|
44
43
|
invoice_note?:string;
|
|
@@ -62,7 +61,6 @@ declare module 'chargebee' {
|
|
|
62
61
|
hosted_page:HostedPage;
|
|
63
62
|
}
|
|
64
63
|
export interface UpdatePaymentMethodInputParam {
|
|
65
|
-
|
|
66
64
|
redirect_url?:string;
|
|
67
65
|
cancel_url?:string;
|
|
68
66
|
pass_thru_content?:string;
|
|
@@ -74,7 +72,6 @@ declare module 'chargebee' {
|
|
|
74
72
|
hosted_page:HostedPage;
|
|
75
73
|
}
|
|
76
74
|
export interface ExtendSubscriptionInputParam {
|
|
77
|
-
|
|
78
75
|
expiry?:number;
|
|
79
76
|
billing_cycle?:number;
|
|
80
77
|
subscription?:{id:string};
|
|
@@ -83,7 +80,6 @@ declare module 'chargebee' {
|
|
|
83
80
|
success:boolean;
|
|
84
81
|
}
|
|
85
82
|
export interface EventsInputParam {
|
|
86
|
-
|
|
87
83
|
event_name:EventName;
|
|
88
84
|
occurred_at?:number;
|
|
89
85
|
event_data:object;
|
|
@@ -92,7 +88,6 @@ declare module 'chargebee' {
|
|
|
92
88
|
hosted_page:HostedPage;
|
|
93
89
|
}
|
|
94
90
|
export interface CheckoutGiftForItemsInputParam {
|
|
95
|
-
|
|
96
91
|
business_entity_id?:string;
|
|
97
92
|
redirect_url?:string;
|
|
98
93
|
coupon_ids?:string[];
|
|
@@ -104,7 +99,7 @@ declare module 'chargebee' {
|
|
|
104
99
|
next_offset?:string;
|
|
105
100
|
}
|
|
106
101
|
export interface ListInputParam {
|
|
107
|
-
[key: string]:
|
|
102
|
+
[key : string]: any;
|
|
108
103
|
limit?:number;
|
|
109
104
|
offset?:string;
|
|
110
105
|
id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
@@ -116,7 +111,6 @@ declare module 'chargebee' {
|
|
|
116
111
|
hosted_page:HostedPage;
|
|
117
112
|
}
|
|
118
113
|
export interface ViewVoucherInputParam {
|
|
119
|
-
|
|
120
114
|
payment_voucher?:{id:string};
|
|
121
115
|
customer?:{locale?:string};
|
|
122
116
|
}
|
|
@@ -124,7 +118,6 @@ declare module 'chargebee' {
|
|
|
124
118
|
hosted_page:HostedPage;
|
|
125
119
|
}
|
|
126
120
|
export interface CollectNowInputParam {
|
|
127
|
-
|
|
128
121
|
redirect_url?:string;
|
|
129
122
|
currency_code?:string;
|
|
130
123
|
customer?:{id:string};
|
|
@@ -134,7 +127,6 @@ declare module 'chargebee' {
|
|
|
134
127
|
hosted_page:HostedPage;
|
|
135
128
|
}
|
|
136
129
|
export interface AcceptQuoteInputParam {
|
|
137
|
-
|
|
138
130
|
redirect_url?:string;
|
|
139
131
|
quote?:{id:string};
|
|
140
132
|
}
|
|
@@ -142,7 +134,6 @@ declare module 'chargebee' {
|
|
|
142
134
|
hosted_page:HostedPage;
|
|
143
135
|
}
|
|
144
136
|
export interface CheckoutNewForItemsInputParam {
|
|
145
|
-
|
|
146
137
|
layout?:Layout;
|
|
147
138
|
business_entity_id?:string;
|
|
148
139
|
billing_cycles?:number;
|
|
@@ -169,7 +160,6 @@ declare module 'chargebee' {
|
|
|
169
160
|
hosted_page:HostedPage;
|
|
170
161
|
}
|
|
171
162
|
export interface ClaimGiftInputParam {
|
|
172
|
-
|
|
173
163
|
redirect_url?:string;
|
|
174
164
|
gift?:{id:string};
|
|
175
165
|
customer?:{locale?:string};
|
|
@@ -178,7 +168,6 @@ declare module 'chargebee' {
|
|
|
178
168
|
hosted_page:HostedPage;
|
|
179
169
|
}
|
|
180
170
|
export interface CheckoutExistingForItemsInputParam {
|
|
181
|
-
|
|
182
171
|
layout?:Layout;
|
|
183
172
|
mandatory_items_to_remove?:string[];
|
|
184
173
|
replace_items_list?:boolean;
|
|
@@ -207,7 +196,6 @@ declare module 'chargebee' {
|
|
|
207
196
|
hosted_page:HostedPage;
|
|
208
197
|
}
|
|
209
198
|
export interface PreCancelInputParam {
|
|
210
|
-
|
|
211
199
|
pass_thru_content?:string;
|
|
212
200
|
cancel_url?:string;
|
|
213
201
|
redirect_url?:string;
|
|
@@ -221,7 +209,6 @@ declare module 'chargebee' {
|
|
|
221
209
|
hosted_page:HostedPage;
|
|
222
210
|
}
|
|
223
211
|
export interface RetrieveAgreementPdfInputParam {
|
|
224
|
-
|
|
225
212
|
payment_source_id:string;
|
|
226
213
|
}
|
|
227
214
|
export interface RetrieveResponse {
|
|
@@ -232,7 +219,6 @@ declare module 'chargebee' {
|
|
|
232
219
|
hosted_page:HostedPage;
|
|
233
220
|
}
|
|
234
221
|
export interface ManagePaymentSourcesInputParam {
|
|
235
|
-
|
|
236
222
|
redirect_url?:string;
|
|
237
223
|
customer?:{id:string};
|
|
238
224
|
card?:{gateway_account_id?:string};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface InAppSubscription {
|
|
3
|
-
|
|
4
4
|
subscription_id:string;
|
|
5
5
|
customer_id?:string;
|
|
6
6
|
plan_id?:string;
|
|
@@ -18,14 +18,12 @@ declare module 'chargebee' {
|
|
|
18
18
|
in_app_subscriptions:InAppSubscription[];
|
|
19
19
|
}
|
|
20
20
|
export interface RetrieveStoreSubsInputParam {
|
|
21
|
-
|
|
22
21
|
receipt:string;
|
|
23
22
|
}
|
|
24
23
|
export interface ImportReceiptResponse {
|
|
25
24
|
in_app_subscriptions:InAppSubscription[];
|
|
26
25
|
}
|
|
27
26
|
export interface ImportReceiptInputParam {
|
|
28
|
-
|
|
29
27
|
receipt:string;
|
|
30
28
|
product?:{currency_code:string};
|
|
31
29
|
customer?:{email?:string,id?:string};
|
|
@@ -34,7 +32,6 @@ declare module 'chargebee' {
|
|
|
34
32
|
in_app_subscription:InAppSubscription;
|
|
35
33
|
}
|
|
36
34
|
export interface ImportSubscriptionInputParam {
|
|
37
|
-
|
|
38
35
|
subscription?:{currency_code:string,id:string,is_trial?:boolean,product_id:string,started_at:number,term_end:number,term_start:number,transaction_id:string};
|
|
39
36
|
customer?:{email?:string,id?:string};
|
|
40
37
|
}
|
|
@@ -42,7 +39,6 @@ declare module 'chargebee' {
|
|
|
42
39
|
in_app_subscription:InAppSubscription;
|
|
43
40
|
}
|
|
44
41
|
export interface ProcessReceiptInputParam {
|
|
45
|
-
|
|
46
42
|
receipt:string;
|
|
47
43
|
product?:{currency_code:string,id:string,name?:string,period?:string,period_unit?:string,price:number,price_in_decimal?:string};
|
|
48
44
|
customer?:{email?:string,first_name?:string,id?:string,last_name?:string};
|