chargebee 2.25.1 → 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 +4 -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 +0 -3
- package/types/resources/AdvanceInvoiceSchedule.d.ts +0 -1
- package/types/resources/AttachedItem.d.ts +1 -6
- package/types/resources/Card.d.ts +0 -4
- package/types/resources/Comment.d.ts +1 -3
- package/types/resources/Contact.d.ts +0 -2
- package/types/resources/ContractTerm.d.ts +0 -2
- package/types/resources/Coupon.d.ts +1 -5
- package/types/resources/CouponCode.d.ts +0 -1
- package/types/resources/CouponSet.d.ts +1 -5
- package/types/resources/CreditNote.d.ts +1 -10
- package/types/resources/CreditNoteEstimate.d.ts +0 -1
- package/types/resources/Customer.d.ts +2 -17
- package/types/resources/DifferentialPrice.d.ts +1 -6
- package/types/resources/Discount.d.ts +0 -2
- package/types/resources/Download.d.ts +0 -2
- package/types/resources/EntitlementOverride.d.ts +1 -3
- package/types/resources/Estimate.d.ts +0 -13
- package/types/resources/Event.d.ts +1 -2
- package/types/resources/Export.d.ts +0 -15
- package/types/resources/Feature.d.ts +1 -2
- package/types/resources/Gift.d.ts +1 -4
- package/types/resources/Hierarchy.d.ts +0 -2
- package/types/resources/HostedPage.d.ts +1 -16
- package/types/resources/ImpactedItem.d.ts +0 -1
- package/types/resources/ImpactedSubscription.d.ts +0 -1
- package/types/resources/InAppSubscription.d.ts +0 -5
- package/types/resources/Invoice.d.ts +2 -25
- package/types/resources/InvoiceEstimate.d.ts +0 -1
- package/types/resources/Item.d.ts +1 -1
- package/types/resources/ItemEntitlement.d.ts +2 -5
- package/types/resources/ItemFamily.d.ts +1 -1
- package/types/resources/ItemPrice.d.ts +3 -3
- package/types/resources/Media.d.ts +0 -2
- package/types/resources/NonSubscription.d.ts +0 -2
- package/types/resources/Order.d.ts +1 -9
- package/types/resources/PaymentIntent.d.ts +0 -3
- package/types/resources/PaymentReferenceNumber.d.ts +0 -2
- package/types/resources/PaymentSource.d.ts +1 -14
- package/types/resources/PaymentVoucher.d.ts +2 -4
- package/types/resources/PortalSession.d.ts +0 -3
- package/types/resources/PromotionalCredit.d.ts +1 -5
- package/types/resources/Purchase.d.ts +0 -3
- package/types/resources/Quote.d.ts +2 -14
- package/types/resources/QuoteLineGroup.d.ts +0 -1
- package/types/resources/QuotedCharge.d.ts +0 -1
- package/types/resources/QuotedSubscription.d.ts +0 -1
- package/types/resources/ResourceMigration.d.ts +0 -2
- package/types/resources/SiteMigrationDetail.d.ts +1 -2
- package/types/resources/Subscription.d.ts +3 -18
- package/types/resources/SubscriptionEntitlement.d.ts +1 -3
- package/types/resources/SubscriptionEstimate.d.ts +0 -1
- package/types/resources/TaxWithheld.d.ts +0 -2
- package/types/resources/ThirdPartyPaymentMethod.d.ts +0 -2
- package/types/resources/TimeMachine.d.ts +0 -3
- package/types/resources/Token.d.ts +0 -3
- package/types/resources/Transaction.d.ts +2 -7
- package/types/resources/UnbilledCharge.d.ts +1 -5
- package/types/resources/Usage.d.ts +1 -6
- package/types/resources/VirtualBankAccount.d.ts +1 -4
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
declare module 'chargebee' {
|
|
3
3
|
export interface Estimate {
|
|
4
|
-
|
|
5
4
|
created_at:number;
|
|
6
5
|
subscription_estimate?:SubscriptionEstimate;
|
|
7
6
|
subscription_estimates?:SubscriptionEstimate[];
|
|
@@ -31,7 +30,6 @@ declare module 'chargebee' {
|
|
|
31
30
|
estimate:Estimate;
|
|
32
31
|
}
|
|
33
32
|
export interface RenewalEstimateInputParam {
|
|
34
|
-
|
|
35
33
|
include_delayed_charges?:boolean;
|
|
36
34
|
use_existing_balances?:boolean;
|
|
37
35
|
ignore_scheduled_cancellation?:boolean;
|
|
@@ -41,7 +39,6 @@ declare module 'chargebee' {
|
|
|
41
39
|
estimate:Estimate;
|
|
42
40
|
}
|
|
43
41
|
export interface CreateSubItemEstimateInputParam {
|
|
44
|
-
|
|
45
42
|
billing_cycles?:number;
|
|
46
43
|
mandatory_items_to_remove?:string[];
|
|
47
44
|
terms_to_charge?:number;
|
|
@@ -63,7 +60,6 @@ declare module 'chargebee' {
|
|
|
63
60
|
estimate:Estimate;
|
|
64
61
|
}
|
|
65
62
|
export interface CancelSubscriptionForItemsInputParam {
|
|
66
|
-
|
|
67
63
|
end_of_term?:boolean;
|
|
68
64
|
cancel_at?:number;
|
|
69
65
|
credit_option_for_current_term_charges?:CreditOptionForCurrentTermCharges;
|
|
@@ -79,7 +75,6 @@ declare module 'chargebee' {
|
|
|
79
75
|
estimate:Estimate;
|
|
80
76
|
}
|
|
81
77
|
export interface ResumeSubscriptionInputParam {
|
|
82
|
-
|
|
83
78
|
resume_option?:ResumeOption;
|
|
84
79
|
charges_handling?:ChargesHandling;
|
|
85
80
|
subscription?:{resume_date?:number};
|
|
@@ -88,7 +83,6 @@ declare module 'chargebee' {
|
|
|
88
83
|
estimate:Estimate;
|
|
89
84
|
}
|
|
90
85
|
export interface CreateInvoiceForItemsInputParam {
|
|
91
|
-
|
|
92
86
|
currency_code?:string;
|
|
93
87
|
invoice_note?:string;
|
|
94
88
|
remove_general_note?:boolean;
|
|
@@ -109,7 +103,6 @@ declare module 'chargebee' {
|
|
|
109
103
|
estimate:Estimate;
|
|
110
104
|
}
|
|
111
105
|
export interface GiftSubscriptionForItemsInputParam {
|
|
112
|
-
|
|
113
106
|
coupon_ids?:string[];
|
|
114
107
|
gift?:{auto_claim?:boolean,claim_expiry_date?:number,no_expiry?:boolean,scheduled_at?:number};
|
|
115
108
|
gifter?:{customer_id:string,note?:string,payment_src_id?:string,signature:string};
|
|
@@ -122,7 +115,6 @@ declare module 'chargebee' {
|
|
|
122
115
|
estimate:Estimate;
|
|
123
116
|
}
|
|
124
117
|
export interface UpdateSubscriptionForItemsInputParam {
|
|
125
|
-
|
|
126
118
|
mandatory_items_to_remove?:string[];
|
|
127
119
|
replace_items_list?:boolean;
|
|
128
120
|
invoice_date?:number;
|
|
@@ -155,7 +147,6 @@ declare module 'chargebee' {
|
|
|
155
147
|
estimate:Estimate;
|
|
156
148
|
}
|
|
157
149
|
export interface RegenerateInvoiceEstimateInputParam {
|
|
158
|
-
|
|
159
150
|
date_from?:number;
|
|
160
151
|
date_to?:number;
|
|
161
152
|
prorate?:boolean;
|
|
@@ -165,7 +156,6 @@ declare module 'chargebee' {
|
|
|
165
156
|
estimate:Estimate;
|
|
166
157
|
}
|
|
167
158
|
export interface CreateSubItemForCustomerEstimateInputParam {
|
|
168
|
-
|
|
169
159
|
use_existing_balances?:boolean;
|
|
170
160
|
invoice_immediately?:boolean;
|
|
171
161
|
billing_cycles?:number;
|
|
@@ -185,7 +175,6 @@ declare module 'chargebee' {
|
|
|
185
175
|
estimate:Estimate;
|
|
186
176
|
}
|
|
187
177
|
export interface ChangeTermEndInputParam {
|
|
188
|
-
|
|
189
178
|
term_ends_at:number;
|
|
190
179
|
prorate?:boolean;
|
|
191
180
|
invoice_immediately?:boolean;
|
|
@@ -194,7 +183,6 @@ declare module 'chargebee' {
|
|
|
194
183
|
estimate:Estimate;
|
|
195
184
|
}
|
|
196
185
|
export interface PauseSubscriptionInputParam {
|
|
197
|
-
|
|
198
186
|
pause_option?:PauseOption;
|
|
199
187
|
unbilled_charges_handling?:UnbilledChargesHandling;
|
|
200
188
|
subscription?:{pause_date?:number,resume_date?:number,skip_billing_cycles?:number};
|
|
@@ -203,7 +191,6 @@ declare module 'chargebee' {
|
|
|
203
191
|
estimate:Estimate;
|
|
204
192
|
}
|
|
205
193
|
export interface AdvanceInvoiceEstimateInputParam {
|
|
206
|
-
|
|
207
194
|
terms_to_charge?:number;
|
|
208
195
|
invoice_immediately?:boolean;
|
|
209
196
|
schedule_type?:ScheduleType;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
declare module 'chargebee' {
|
|
3
3
|
export interface Event {
|
|
4
|
-
|
|
5
4
|
id:string;
|
|
6
5
|
occurred_at:number;
|
|
7
6
|
source:Source;
|
|
@@ -21,7 +20,7 @@ declare module 'chargebee' {
|
|
|
21
20
|
next_offset?:string;
|
|
22
21
|
}
|
|
23
22
|
export interface ListInputParam {
|
|
24
|
-
[key: string]:
|
|
23
|
+
[key : string]: any;
|
|
25
24
|
limit?:number;
|
|
26
25
|
offset?:string;
|
|
27
26
|
id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
declare module 'chargebee' {
|
|
3
3
|
export interface Export {
|
|
4
|
-
|
|
5
4
|
id:string;
|
|
6
5
|
operation_type:string;
|
|
7
6
|
mime_type:'zip' | 'pdf';
|
|
@@ -31,7 +30,6 @@ declare module 'chargebee' {
|
|
|
31
30
|
export:Export;
|
|
32
31
|
}
|
|
33
32
|
export interface CustomersInputParam {
|
|
34
|
-
|
|
35
33
|
export_type?:ExportType;
|
|
36
34
|
business_entity_id?:{is?:string,is_not?:string,starts_with?:string};
|
|
37
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}};
|
|
@@ -41,7 +39,6 @@ declare module 'chargebee' {
|
|
|
41
39
|
export:Export;
|
|
42
40
|
}
|
|
43
41
|
export interface AttachedItemsInputParam {
|
|
44
|
-
|
|
45
42
|
item_type?:{in?:string,is?:'charge' | 'addon' | 'plan',is_not?:'charge' | 'addon' | 'plan',not_in?:string};
|
|
46
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}};
|
|
47
44
|
}
|
|
@@ -49,14 +46,12 @@ declare module 'chargebee' {
|
|
|
49
46
|
export:Export;
|
|
50
47
|
}
|
|
51
48
|
export interface TransactionsInputParam {
|
|
52
|
-
|
|
53
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}};
|
|
54
50
|
}
|
|
55
51
|
export interface DifferentialPricesResponse {
|
|
56
52
|
export:Export;
|
|
57
53
|
}
|
|
58
54
|
export interface DifferentialPricesInputParam {
|
|
59
|
-
|
|
60
55
|
item_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
61
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}};
|
|
62
57
|
}
|
|
@@ -64,14 +59,12 @@ declare module 'chargebee' {
|
|
|
64
59
|
export:Export;
|
|
65
60
|
}
|
|
66
61
|
export interface ItemFamiliesInputParam {
|
|
67
|
-
|
|
68
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}};
|
|
69
63
|
}
|
|
70
64
|
export interface InvoicesResponse {
|
|
71
65
|
export:Export;
|
|
72
66
|
}
|
|
73
67
|
export interface InvoicesInputParam {
|
|
74
|
-
|
|
75
68
|
payment_owner?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
76
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}};
|
|
77
70
|
}
|
|
@@ -83,14 +76,12 @@ declare module 'chargebee' {
|
|
|
83
76
|
export:Export;
|
|
84
77
|
}
|
|
85
78
|
export interface ItemsInputParam {
|
|
86
|
-
|
|
87
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}};
|
|
88
80
|
}
|
|
89
81
|
export interface DeferredRevenueResponse {
|
|
90
82
|
export:Export;
|
|
91
83
|
}
|
|
92
84
|
export interface DeferredRevenueInputParam {
|
|
93
|
-
|
|
94
85
|
report_by:ReportBy;
|
|
95
86
|
currency_code?:string;
|
|
96
87
|
report_from_month:number;
|
|
@@ -112,7 +103,6 @@ declare module 'chargebee' {
|
|
|
112
103
|
export:Export;
|
|
113
104
|
}
|
|
114
105
|
export interface RevenueRecognitionInputParam {
|
|
115
|
-
|
|
116
106
|
report_by:ReportBy;
|
|
117
107
|
currency_code?:string;
|
|
118
108
|
report_from_month:number;
|
|
@@ -134,14 +124,12 @@ declare module 'chargebee' {
|
|
|
134
124
|
export:Export;
|
|
135
125
|
}
|
|
136
126
|
export interface CreditNotesInputParam {
|
|
137
|
-
|
|
138
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}};
|
|
139
128
|
}
|
|
140
129
|
export interface CouponsResponse {
|
|
141
130
|
export:Export;
|
|
142
131
|
}
|
|
143
132
|
export interface CouponsInputParam {
|
|
144
|
-
|
|
145
133
|
currency_code?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
146
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}};
|
|
147
135
|
}
|
|
@@ -149,7 +137,6 @@ declare module 'chargebee' {
|
|
|
149
137
|
export:Export;
|
|
150
138
|
}
|
|
151
139
|
export interface OrdersInputParam {
|
|
152
|
-
|
|
153
140
|
total?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string};
|
|
154
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}};
|
|
155
142
|
}
|
|
@@ -157,7 +144,6 @@ declare module 'chargebee' {
|
|
|
157
144
|
export:Export;
|
|
158
145
|
}
|
|
159
146
|
export interface ItemPricesInputParam {
|
|
160
|
-
|
|
161
147
|
item_family_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
162
148
|
item_type?:{in?:string,is?:'charge' | 'addon' | 'plan',is_not?:'charge' | 'addon' | 'plan',not_in?:string};
|
|
163
149
|
currency_code?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
@@ -167,7 +153,6 @@ declare module 'chargebee' {
|
|
|
167
153
|
export:Export;
|
|
168
154
|
}
|
|
169
155
|
export interface SubscriptionsInputParam {
|
|
170
|
-
|
|
171
156
|
export_type?:ExportType;
|
|
172
157
|
item_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
173
158
|
item_price_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
declare module 'chargebee' {
|
|
3
3
|
export interface Feature {
|
|
4
|
-
|
|
5
4
|
id:string;
|
|
6
5
|
name:string;
|
|
7
6
|
description?:string;
|
|
@@ -29,7 +28,7 @@ declare module 'chargebee' {
|
|
|
29
28
|
next_offset?:string;
|
|
30
29
|
}
|
|
31
30
|
export interface ListInputParam {
|
|
32
|
-
[key: string]:
|
|
31
|
+
[key : string]: any;
|
|
33
32
|
limit?:number;
|
|
34
33
|
offset?:string;
|
|
35
34
|
name?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
declare module 'chargebee' {
|
|
3
3
|
export interface Gift {
|
|
4
|
-
|
|
5
4
|
id:string;
|
|
6
5
|
status:'expired' | 'scheduled' | 'unclaimed' | 'claimed' | 'cancelled';
|
|
7
6
|
scheduled_at?:number;
|
|
@@ -29,7 +28,6 @@ declare module 'chargebee' {
|
|
|
29
28
|
invoice?:Invoice;
|
|
30
29
|
}
|
|
31
30
|
export interface CreateForItemsInputParam {
|
|
32
|
-
|
|
33
31
|
scheduled_at?:number;
|
|
34
32
|
auto_claim?:boolean;
|
|
35
33
|
no_expiry?:boolean;
|
|
@@ -51,7 +49,6 @@ declare module 'chargebee' {
|
|
|
51
49
|
subscription:Subscription;
|
|
52
50
|
}
|
|
53
51
|
export interface UpdateGiftInputParam {
|
|
54
|
-
|
|
55
52
|
scheduled_at:number;
|
|
56
53
|
comment?:string;
|
|
57
54
|
}
|
|
@@ -60,7 +57,7 @@ declare module 'chargebee' {
|
|
|
60
57
|
next_offset?:string;
|
|
61
58
|
}
|
|
62
59
|
export interface ListInputParam {
|
|
63
|
-
[key: string]:
|
|
60
|
+
[key : string]: any;
|
|
64
61
|
limit?:number;
|
|
65
62
|
offset?:string;
|
|
66
63
|
status?:{in?:string,is?:'expired' | 'scheduled' | 'unclaimed' | 'claimed' | 'cancelled',is_not?:'expired' | 'scheduled' | 'unclaimed' | 'claimed' | 'cancelled',not_in?:string};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
declare module 'chargebee' {
|
|
3
3
|
export interface HostedPage {
|
|
4
|
-
|
|
5
4
|
id?:string;
|
|
6
5
|
type?:'update_payment_method' | 'checkout_one_time' | 'manage_payment_sources' | 'checkout_new' | 'view_voucher' | 'collect_now' | 'checkout_existing' | 'extend_subscription' | 'pre_cancel';
|
|
7
6
|
url?:string;
|
|
@@ -39,7 +38,6 @@ declare module 'chargebee' {
|
|
|
39
38
|
hosted_page:HostedPage;
|
|
40
39
|
}
|
|
41
40
|
export interface CheckoutOneTimeForItemsInputParam {
|
|
42
|
-
|
|
43
41
|
business_entity_id?:string;
|
|
44
42
|
layout?:Layout;
|
|
45
43
|
invoice_note?:string;
|
|
@@ -63,7 +61,6 @@ declare module 'chargebee' {
|
|
|
63
61
|
hosted_page:HostedPage;
|
|
64
62
|
}
|
|
65
63
|
export interface UpdatePaymentMethodInputParam {
|
|
66
|
-
|
|
67
64
|
redirect_url?:string;
|
|
68
65
|
cancel_url?:string;
|
|
69
66
|
pass_thru_content?:string;
|
|
@@ -75,7 +72,6 @@ declare module 'chargebee' {
|
|
|
75
72
|
hosted_page:HostedPage;
|
|
76
73
|
}
|
|
77
74
|
export interface ExtendSubscriptionInputParam {
|
|
78
|
-
|
|
79
75
|
expiry?:number;
|
|
80
76
|
billing_cycle?:number;
|
|
81
77
|
subscription?:{id:string};
|
|
@@ -84,7 +80,6 @@ declare module 'chargebee' {
|
|
|
84
80
|
success:boolean;
|
|
85
81
|
}
|
|
86
82
|
export interface EventsInputParam {
|
|
87
|
-
|
|
88
83
|
event_name:EventName;
|
|
89
84
|
occurred_at?:number;
|
|
90
85
|
event_data:object;
|
|
@@ -93,7 +88,6 @@ declare module 'chargebee' {
|
|
|
93
88
|
hosted_page:HostedPage;
|
|
94
89
|
}
|
|
95
90
|
export interface CheckoutGiftForItemsInputParam {
|
|
96
|
-
|
|
97
91
|
business_entity_id?:string;
|
|
98
92
|
redirect_url?:string;
|
|
99
93
|
coupon_ids?:string[];
|
|
@@ -105,7 +99,7 @@ declare module 'chargebee' {
|
|
|
105
99
|
next_offset?:string;
|
|
106
100
|
}
|
|
107
101
|
export interface ListInputParam {
|
|
108
|
-
[key: string]:
|
|
102
|
+
[key : string]: any;
|
|
109
103
|
limit?:number;
|
|
110
104
|
offset?:string;
|
|
111
105
|
id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
@@ -117,7 +111,6 @@ declare module 'chargebee' {
|
|
|
117
111
|
hosted_page:HostedPage;
|
|
118
112
|
}
|
|
119
113
|
export interface ViewVoucherInputParam {
|
|
120
|
-
|
|
121
114
|
payment_voucher?:{id:string};
|
|
122
115
|
customer?:{locale?:string};
|
|
123
116
|
}
|
|
@@ -125,7 +118,6 @@ declare module 'chargebee' {
|
|
|
125
118
|
hosted_page:HostedPage;
|
|
126
119
|
}
|
|
127
120
|
export interface CollectNowInputParam {
|
|
128
|
-
|
|
129
121
|
redirect_url?:string;
|
|
130
122
|
currency_code?:string;
|
|
131
123
|
customer?:{id:string};
|
|
@@ -135,7 +127,6 @@ declare module 'chargebee' {
|
|
|
135
127
|
hosted_page:HostedPage;
|
|
136
128
|
}
|
|
137
129
|
export interface AcceptQuoteInputParam {
|
|
138
|
-
|
|
139
130
|
redirect_url?:string;
|
|
140
131
|
quote?:{id:string};
|
|
141
132
|
}
|
|
@@ -143,7 +134,6 @@ declare module 'chargebee' {
|
|
|
143
134
|
hosted_page:HostedPage;
|
|
144
135
|
}
|
|
145
136
|
export interface CheckoutNewForItemsInputParam {
|
|
146
|
-
|
|
147
137
|
layout?:Layout;
|
|
148
138
|
business_entity_id?:string;
|
|
149
139
|
billing_cycles?:number;
|
|
@@ -170,7 +160,6 @@ declare module 'chargebee' {
|
|
|
170
160
|
hosted_page:HostedPage;
|
|
171
161
|
}
|
|
172
162
|
export interface ClaimGiftInputParam {
|
|
173
|
-
|
|
174
163
|
redirect_url?:string;
|
|
175
164
|
gift?:{id:string};
|
|
176
165
|
customer?:{locale?:string};
|
|
@@ -179,7 +168,6 @@ declare module 'chargebee' {
|
|
|
179
168
|
hosted_page:HostedPage;
|
|
180
169
|
}
|
|
181
170
|
export interface CheckoutExistingForItemsInputParam {
|
|
182
|
-
|
|
183
171
|
layout?:Layout;
|
|
184
172
|
mandatory_items_to_remove?:string[];
|
|
185
173
|
replace_items_list?:boolean;
|
|
@@ -208,7 +196,6 @@ declare module 'chargebee' {
|
|
|
208
196
|
hosted_page:HostedPage;
|
|
209
197
|
}
|
|
210
198
|
export interface PreCancelInputParam {
|
|
211
|
-
|
|
212
199
|
pass_thru_content?:string;
|
|
213
200
|
cancel_url?:string;
|
|
214
201
|
redirect_url?:string;
|
|
@@ -222,7 +209,6 @@ declare module 'chargebee' {
|
|
|
222
209
|
hosted_page:HostedPage;
|
|
223
210
|
}
|
|
224
211
|
export interface RetrieveAgreementPdfInputParam {
|
|
225
|
-
|
|
226
212
|
payment_source_id:string;
|
|
227
213
|
}
|
|
228
214
|
export interface RetrieveResponse {
|
|
@@ -233,7 +219,6 @@ declare module 'chargebee' {
|
|
|
233
219
|
hosted_page:HostedPage;
|
|
234
220
|
}
|
|
235
221
|
export interface ManagePaymentSourcesInputParam {
|
|
236
|
-
|
|
237
222
|
redirect_url?:string;
|
|
238
223
|
customer?:{id:string};
|
|
239
224
|
card?:{gateway_account_id?:string};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
declare module 'chargebee' {
|
|
3
3
|
export interface InAppSubscription {
|
|
4
|
-
|
|
5
4
|
subscription_id:string;
|
|
6
5
|
customer_id?:string;
|
|
7
6
|
plan_id?:string;
|
|
@@ -19,14 +18,12 @@ declare module 'chargebee' {
|
|
|
19
18
|
in_app_subscriptions:InAppSubscription[];
|
|
20
19
|
}
|
|
21
20
|
export interface RetrieveStoreSubsInputParam {
|
|
22
|
-
|
|
23
21
|
receipt:string;
|
|
24
22
|
}
|
|
25
23
|
export interface ImportReceiptResponse {
|
|
26
24
|
in_app_subscriptions:InAppSubscription[];
|
|
27
25
|
}
|
|
28
26
|
export interface ImportReceiptInputParam {
|
|
29
|
-
|
|
30
27
|
receipt:string;
|
|
31
28
|
product?:{currency_code:string};
|
|
32
29
|
customer?:{email?:string,id?:string};
|
|
@@ -35,7 +32,6 @@ declare module 'chargebee' {
|
|
|
35
32
|
in_app_subscription:InAppSubscription;
|
|
36
33
|
}
|
|
37
34
|
export interface ImportSubscriptionInputParam {
|
|
38
|
-
|
|
39
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};
|
|
40
36
|
customer?:{email?:string,id?:string};
|
|
41
37
|
}
|
|
@@ -43,7 +39,6 @@ declare module 'chargebee' {
|
|
|
43
39
|
in_app_subscription:InAppSubscription;
|
|
44
40
|
}
|
|
45
41
|
export interface ProcessReceiptInputParam {
|
|
46
|
-
|
|
47
42
|
receipt:string;
|
|
48
43
|
product?:{currency_code:string,id:string,name?:string,period?:string,period_unit?:string,price:number,price_in_decimal?:string};
|
|
49
44
|
customer?:{email?:string,first_name?:string,id?:string,last_name?:string};
|