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 Invoice {
|
|
4
|
-
|
|
5
4
|
id:string;
|
|
6
5
|
po_number?:string;
|
|
7
6
|
customer_id:string;
|
|
@@ -103,7 +102,6 @@ declare module 'chargebee' {
|
|
|
103
102
|
invoice:Invoice;
|
|
104
103
|
}
|
|
105
104
|
export interface DeleteLineItemsInputParam {
|
|
106
|
-
|
|
107
105
|
line_items?:{id?:string}[];
|
|
108
106
|
}
|
|
109
107
|
export interface RemoveCreditNoteResponse {
|
|
@@ -111,7 +109,6 @@ declare module 'chargebee' {
|
|
|
111
109
|
credit_note:CreditNote;
|
|
112
110
|
}
|
|
113
111
|
export interface RemoveCreditNoteInputParam {
|
|
114
|
-
|
|
115
112
|
credit_note?:{id:string};
|
|
116
113
|
}
|
|
117
114
|
export interface RemovePaymentResponse {
|
|
@@ -119,21 +116,18 @@ declare module 'chargebee' {
|
|
|
119
116
|
transaction:Transaction;
|
|
120
117
|
}
|
|
121
118
|
export interface RemovePaymentInputParam {
|
|
122
|
-
|
|
123
119
|
transaction?:{id:string};
|
|
124
120
|
}
|
|
125
121
|
export interface StopDunningResponse {
|
|
126
122
|
invoice:Invoice;
|
|
127
123
|
}
|
|
128
124
|
export interface StopDunningInputParam {
|
|
129
|
-
|
|
130
125
|
comment?:string;
|
|
131
126
|
}
|
|
132
127
|
export interface ApplyPaymentsResponse {
|
|
133
128
|
invoice:Invoice;
|
|
134
129
|
}
|
|
135
130
|
export interface ApplyPaymentsInputParam {
|
|
136
|
-
|
|
137
131
|
comment?:string;
|
|
138
132
|
transactions?:{id?:string}[];
|
|
139
133
|
}
|
|
@@ -142,7 +136,6 @@ declare module 'chargebee' {
|
|
|
142
136
|
credit_note?:CreditNote;
|
|
143
137
|
}
|
|
144
138
|
export interface VoidInvoiceInputParam {
|
|
145
|
-
|
|
146
139
|
comment?:string;
|
|
147
140
|
void_reason_code?:string;
|
|
148
141
|
}
|
|
@@ -150,7 +143,6 @@ declare module 'chargebee' {
|
|
|
150
143
|
invoice:Invoice;
|
|
151
144
|
}
|
|
152
145
|
export interface AddChargeInputParam {
|
|
153
|
-
|
|
154
146
|
amount:number;
|
|
155
147
|
description:string;
|
|
156
148
|
avalara_sale_type?:AvalaraSaleType;
|
|
@@ -169,14 +161,12 @@ declare module 'chargebee' {
|
|
|
169
161
|
credit_note:CreditNote;
|
|
170
162
|
}
|
|
171
163
|
export interface WriteOffInputParam {
|
|
172
|
-
|
|
173
164
|
comment?:string;
|
|
174
165
|
}
|
|
175
166
|
export interface AddChargeItemResponse {
|
|
176
167
|
invoice:Invoice;
|
|
177
168
|
}
|
|
178
169
|
export interface AddChargeItemInputParam {
|
|
179
|
-
|
|
180
170
|
comment?:string;
|
|
181
171
|
subscription_id?:string;
|
|
182
172
|
item_price?:{date_from?:number,date_to?:number,item_price_id:string,quantity?:number,quantity_in_decimal?:string,unit_price?:number,unit_price_in_decimal?:string};
|
|
@@ -187,7 +177,7 @@ declare module 'chargebee' {
|
|
|
187
177
|
next_offset?:string;
|
|
188
178
|
}
|
|
189
179
|
export interface ListInputParam {
|
|
190
|
-
[key: string]:
|
|
180
|
+
[key : string]: any;
|
|
191
181
|
limit?:number;
|
|
192
182
|
offset?:string;
|
|
193
183
|
include_deleted?:boolean;
|
|
@@ -217,7 +207,6 @@ declare module 'chargebee' {
|
|
|
217
207
|
invoice:Invoice;
|
|
218
208
|
}
|
|
219
209
|
export interface CloseInputParam {
|
|
220
|
-
|
|
221
210
|
comment?:string;
|
|
222
211
|
invoice_note?:string;
|
|
223
212
|
remove_general_note?:boolean;
|
|
@@ -228,7 +217,6 @@ declare module 'chargebee' {
|
|
|
228
217
|
invoice:Invoice;
|
|
229
218
|
}
|
|
230
219
|
export interface ApplyCreditsInputParam {
|
|
231
|
-
|
|
232
220
|
comment?:string;
|
|
233
221
|
credit_notes?:{id?:string}[];
|
|
234
222
|
}
|
|
@@ -240,7 +228,6 @@ declare module 'chargebee' {
|
|
|
240
228
|
invoice:Invoice;
|
|
241
229
|
}
|
|
242
230
|
export interface CreateForChargeItemsAndChargesInputParam {
|
|
243
|
-
|
|
244
231
|
customer_id?:string;
|
|
245
232
|
subscription_id?:string;
|
|
246
233
|
currency_code?:string;
|
|
@@ -270,7 +257,6 @@ declare module 'chargebee' {
|
|
|
270
257
|
invoice:Invoice;
|
|
271
258
|
}
|
|
272
259
|
export interface UpdateDetailsInputParam {
|
|
273
|
-
|
|
274
260
|
vat_number?:string;
|
|
275
261
|
vat_number_prefix?:string;
|
|
276
262
|
po_number?:string;
|
|
@@ -283,7 +269,6 @@ declare module 'chargebee' {
|
|
|
283
269
|
transaction:Transaction;
|
|
284
270
|
}
|
|
285
271
|
export interface RecordPaymentInputParam {
|
|
286
|
-
|
|
287
272
|
comment?:string;
|
|
288
273
|
transaction?:{amount?:number,date?:number,error_code?:string,error_text?:string,id_at_gateway?:string,payment_method:PaymentMethod,reference_number?:string,status?:'success' | 'failure'};
|
|
289
274
|
}
|
|
@@ -291,7 +276,6 @@ declare module 'chargebee' {
|
|
|
291
276
|
invoice:Invoice;
|
|
292
277
|
}
|
|
293
278
|
export interface DeleteInputParam {
|
|
294
|
-
|
|
295
279
|
comment?:string;
|
|
296
280
|
claim_credits?:boolean;
|
|
297
281
|
}
|
|
@@ -300,7 +284,6 @@ declare module 'chargebee' {
|
|
|
300
284
|
credit_note?:CreditNote;
|
|
301
285
|
}
|
|
302
286
|
export interface ImportInvoiceInputParam {
|
|
303
|
-
|
|
304
287
|
id:string;
|
|
305
288
|
currency_code?:string;
|
|
306
289
|
customer_id?:string;
|
|
@@ -338,7 +321,6 @@ declare module 'chargebee' {
|
|
|
338
321
|
invoice:Invoice;
|
|
339
322
|
}
|
|
340
323
|
export interface RecordTaxWithheldInputParam {
|
|
341
|
-
|
|
342
324
|
tax_withheld?:{amount:number,date?:number,description?:string,reference_number?:string};
|
|
343
325
|
}
|
|
344
326
|
export interface ResendEinvoiceResponse {
|
|
@@ -349,7 +331,6 @@ declare module 'chargebee' {
|
|
|
349
331
|
invoice:Invoice;
|
|
350
332
|
}
|
|
351
333
|
export interface RemoveTaxWithheldInputParam {
|
|
352
|
-
|
|
353
334
|
tax_withheld?:{id:string};
|
|
354
335
|
}
|
|
355
336
|
export interface ListPaymentReferenceNumbersResponse {
|
|
@@ -357,7 +338,7 @@ declare module 'chargebee' {
|
|
|
357
338
|
next_offset?:string;
|
|
358
339
|
}
|
|
359
340
|
export interface ListPaymentReferenceNumbersInputParam {
|
|
360
|
-
[key: string]:
|
|
341
|
+
[key : string]: any;
|
|
361
342
|
limit?:number;
|
|
362
343
|
offset?:string;
|
|
363
344
|
id?:{in?:string,is?:string};
|
|
@@ -368,7 +349,6 @@ declare module 'chargebee' {
|
|
|
368
349
|
transaction:Transaction;
|
|
369
350
|
}
|
|
370
351
|
export interface CollectPaymentInputParam {
|
|
371
|
-
|
|
372
352
|
amount?:number;
|
|
373
353
|
authorization_transaction_id?:string;
|
|
374
354
|
payment_source_id?:string;
|
|
@@ -385,7 +365,6 @@ declare module 'chargebee' {
|
|
|
385
365
|
credit_note?:CreditNote;
|
|
386
366
|
}
|
|
387
367
|
export interface RefundInputParam {
|
|
388
|
-
|
|
389
368
|
refund_amount?:number;
|
|
390
369
|
comment?:string;
|
|
391
370
|
customer_notes?:string;
|
|
@@ -397,7 +376,6 @@ declare module 'chargebee' {
|
|
|
397
376
|
credit_note?:CreditNote;
|
|
398
377
|
}
|
|
399
378
|
export interface RecordRefundInputParam {
|
|
400
|
-
|
|
401
379
|
comment?:string;
|
|
402
380
|
customer_notes?:string;
|
|
403
381
|
transaction?:{amount?:number,date:number,payment_method:PaymentMethod,reference_number?:string};
|
|
@@ -407,7 +385,6 @@ declare module 'chargebee' {
|
|
|
407
385
|
download:Download;
|
|
408
386
|
}
|
|
409
387
|
export interface PdfInputParam {
|
|
410
|
-
|
|
411
388
|
disposition_type?:DispositionType;
|
|
412
389
|
}
|
|
413
390
|
export interface DownloadEinvoiceResponse {
|
|
@@ -40,7 +40,7 @@ declare module 'chargebee' {
|
|
|
40
40
|
next_offset?:string;
|
|
41
41
|
}
|
|
42
42
|
export interface ListInputParam {
|
|
43
|
-
[key: string]:
|
|
43
|
+
[key : string]: any;
|
|
44
44
|
limit?:number;
|
|
45
45
|
offset?:string;
|
|
46
46
|
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 ItemEntitlement {
|
|
4
|
-
|
|
5
4
|
id:string;
|
|
6
5
|
item_id?:string;
|
|
7
6
|
item_type?:'item' | 'charge' | 'addon' | 'subscription' | 'plan';
|
|
@@ -22,7 +21,7 @@ declare module 'chargebee' {
|
|
|
22
21
|
next_offset?:string;
|
|
23
22
|
}
|
|
24
23
|
export interface ItemEntitlementsForFeatureInputParam {
|
|
25
|
-
[key: string]:
|
|
24
|
+
[key : string]: any;
|
|
26
25
|
limit?:number;
|
|
27
26
|
offset?:string;
|
|
28
27
|
}
|
|
@@ -30,7 +29,6 @@ declare module 'chargebee' {
|
|
|
30
29
|
item_entitlement:ItemEntitlement;
|
|
31
30
|
}
|
|
32
31
|
export interface AddItemEntitlementsInputParam {
|
|
33
|
-
|
|
34
32
|
action:Action;
|
|
35
33
|
item_entitlements?:{item_id:string,item_type?:'item' | 'charge' | 'addon' | 'subscription' | 'plan',value?:string}[];
|
|
36
34
|
}
|
|
@@ -39,7 +37,7 @@ declare module 'chargebee' {
|
|
|
39
37
|
next_offset?:string;
|
|
40
38
|
}
|
|
41
39
|
export interface ItemEntitlementsForItemInputParam {
|
|
42
|
-
[key: string]:
|
|
40
|
+
[key : string]: any;
|
|
43
41
|
limit?:number;
|
|
44
42
|
offset?:string;
|
|
45
43
|
}
|
|
@@ -47,7 +45,6 @@ declare module 'chargebee' {
|
|
|
47
45
|
item_entitlement:ItemEntitlement;
|
|
48
46
|
}
|
|
49
47
|
export interface UpsertOrRemoveItemEntitlementsForItemInputParam {
|
|
50
|
-
|
|
51
48
|
action:Action;
|
|
52
49
|
item_entitlements?:{feature_id:string,value?:string}[];
|
|
53
50
|
}
|
|
@@ -27,7 +27,7 @@ declare module 'chargebee' {
|
|
|
27
27
|
next_offset?:string;
|
|
28
28
|
}
|
|
29
29
|
export interface ListInputParam {
|
|
30
|
-
[key: string]:
|
|
30
|
+
[key : string]: any;
|
|
31
31
|
limit?:number;
|
|
32
32
|
offset?:string;
|
|
33
33
|
id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
@@ -54,7 +54,7 @@ declare module 'chargebee' {
|
|
|
54
54
|
next_offset?:string;
|
|
55
55
|
}
|
|
56
56
|
export interface FindApplicableItemsInputParam {
|
|
57
|
-
[key: string]:
|
|
57
|
+
[key : string]: any;
|
|
58
58
|
limit?:number;
|
|
59
59
|
offset?:string;
|
|
60
60
|
sort_by?:{asc?:'updated_at' | 'name' | 'id',desc?:'updated_at' | 'name' | 'id'};
|
|
@@ -104,7 +104,7 @@ declare module 'chargebee' {
|
|
|
104
104
|
next_offset?:string;
|
|
105
105
|
}
|
|
106
106
|
export interface FindApplicableItemPricesInputParam {
|
|
107
|
-
[key: string]:
|
|
107
|
+
[key : string]: any;
|
|
108
108
|
limit?:number;
|
|
109
109
|
offset?:string;
|
|
110
110
|
item_id?:string;
|
|
@@ -115,7 +115,7 @@ declare module 'chargebee' {
|
|
|
115
115
|
next_offset?:string;
|
|
116
116
|
}
|
|
117
117
|
export interface ListInputParam {
|
|
118
|
-
[key: string]:
|
|
118
|
+
[key : string]: any;
|
|
119
119
|
limit?:number;
|
|
120
120
|
offset?:string;
|
|
121
121
|
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 NonSubscription {
|
|
4
|
-
|
|
5
4
|
invoice_id:string;
|
|
6
5
|
customer_id?:string;
|
|
7
6
|
charge_id:string;
|
|
@@ -14,7 +13,6 @@ declare module 'chargebee' {
|
|
|
14
13
|
non_subscription:NonSubscription;
|
|
15
14
|
}
|
|
16
15
|
export interface ProcessReceiptInputParam {
|
|
17
|
-
|
|
18
16
|
receipt:string;
|
|
19
17
|
product?:{currency_code:string,id:string,name?:string,price:number,price_in_decimal?:string,type:'non_consumable' | 'consumable' | 'non_renewing_subscription'};
|
|
20
18
|
customer?:{email?:string,first_name?:string,id?:string,last_name?:string};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
declare module 'chargebee' {
|
|
3
3
|
export interface Order {
|
|
4
|
-
|
|
5
4
|
id:string;
|
|
6
5
|
document_number?:string;
|
|
7
6
|
invoice_id?:string;
|
|
@@ -78,7 +77,7 @@ declare module 'chargebee' {
|
|
|
78
77
|
next_offset?:string;
|
|
79
78
|
}
|
|
80
79
|
export interface ListInputParam {
|
|
81
|
-
[key: string]:
|
|
80
|
+
[key : string]: any;
|
|
82
81
|
limit?:number;
|
|
83
82
|
offset?:string;
|
|
84
83
|
include_deleted?:boolean;
|
|
@@ -103,7 +102,6 @@ declare module 'chargebee' {
|
|
|
103
102
|
order:Order;
|
|
104
103
|
}
|
|
105
104
|
export interface CreateInputParam {
|
|
106
|
-
|
|
107
105
|
id?:string;
|
|
108
106
|
invoice_id:string;
|
|
109
107
|
status?:'new' | 'processing' | 'cancelled' | 'voided' | 'complete';
|
|
@@ -118,7 +116,6 @@ declare module 'chargebee' {
|
|
|
118
116
|
order:Order;
|
|
119
117
|
}
|
|
120
118
|
export interface ImportOrderInputParam {
|
|
121
|
-
|
|
122
119
|
id?:string;
|
|
123
120
|
document_number?:string;
|
|
124
121
|
invoice_id:string;
|
|
@@ -152,7 +149,6 @@ declare module 'chargebee' {
|
|
|
152
149
|
order:Order;
|
|
153
150
|
}
|
|
154
151
|
export interface ResendInputParam {
|
|
155
|
-
|
|
156
152
|
shipping_date?:number;
|
|
157
153
|
resend_reason?:string;
|
|
158
154
|
order_line_items?:{fulfillment_quantity?:number,id?:string}[];
|
|
@@ -161,14 +157,12 @@ declare module 'chargebee' {
|
|
|
161
157
|
order:Order;
|
|
162
158
|
}
|
|
163
159
|
export interface ReopenInputParam {
|
|
164
|
-
|
|
165
160
|
void_cancellation_credit_notes?:boolean;
|
|
166
161
|
}
|
|
167
162
|
export interface CancelResponse {
|
|
168
163
|
order:Order;
|
|
169
164
|
}
|
|
170
165
|
export interface CancelInputParam {
|
|
171
|
-
|
|
172
166
|
cancellation_reason:'delivery_date_missed' | 'subscription_cancelled' | 'product_unsatisfactory' | 'fraudulent_transaction' | 'third_party_cancellation' | 'order_resent' | 'payment_declined' | 'product_not_required' | 'invoice_voided' | 'invoice_written_off' | 'product_not_available' | 'shipping_cut_off_passed' | 'others' | 'alternative_found';
|
|
173
167
|
customer_notes?:string;
|
|
174
168
|
comment?:string;
|
|
@@ -183,7 +177,6 @@ declare module 'chargebee' {
|
|
|
183
177
|
order:Order;
|
|
184
178
|
}
|
|
185
179
|
export interface UpdateInputParam {
|
|
186
|
-
|
|
187
180
|
reference_id?:string;
|
|
188
181
|
batch_id?:string;
|
|
189
182
|
note?:string;
|
|
@@ -209,7 +202,6 @@ declare module 'chargebee' {
|
|
|
209
202
|
order:Order;
|
|
210
203
|
}
|
|
211
204
|
export interface CreateRefundableCreditNoteInputParam {
|
|
212
|
-
|
|
213
205
|
customer_notes?:string;
|
|
214
206
|
comment?:string;
|
|
215
207
|
credit_note?:{reason_code:'other' | 'product_unsatisfactory' | 'subscription_pause' | 'order_cancellation' | 'service_unsatisfactory' | 'subscription_cancellation' | 'chargeback' | 'order_change' | 'write_off' | 'waiver' | 'subscription_change' | 'fraudulent',total:number};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
declare module 'chargebee' {
|
|
3
3
|
export interface PaymentIntent {
|
|
4
|
-
|
|
5
4
|
id:string;
|
|
6
5
|
status:'consumed' | 'in_progress' | 'inited' | 'expired' | 'authorized';
|
|
7
6
|
currency_code?:string;
|
|
@@ -35,7 +34,6 @@ declare module 'chargebee' {
|
|
|
35
34
|
payment_intent:PaymentIntent;
|
|
36
35
|
}
|
|
37
36
|
export interface UpdateInputParam {
|
|
38
|
-
|
|
39
37
|
amount?:number;
|
|
40
38
|
currency_code?:string;
|
|
41
39
|
gateway_account_id?:string;
|
|
@@ -47,7 +45,6 @@ declare module 'chargebee' {
|
|
|
47
45
|
payment_intent:PaymentIntent;
|
|
48
46
|
}
|
|
49
47
|
export interface CreateInputParam {
|
|
50
|
-
|
|
51
48
|
business_entity_id?:string;
|
|
52
49
|
customer_id?:string;
|
|
53
50
|
amount:number;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
declare module 'chargebee' {
|
|
3
3
|
export interface PaymentSource {
|
|
4
|
-
|
|
5
4
|
id:string;
|
|
6
5
|
resource_version?:number;
|
|
7
6
|
updated_at?:number;
|
|
@@ -49,7 +48,6 @@ declare module 'chargebee' {
|
|
|
49
48
|
payment_source:PaymentSource;
|
|
50
49
|
}
|
|
51
50
|
export interface CreateUsingPermanentTokenInputParam {
|
|
52
|
-
|
|
53
51
|
customer_id:string;
|
|
54
52
|
type:Type;
|
|
55
53
|
gateway_account_id?:string;
|
|
@@ -68,7 +66,6 @@ declare module 'chargebee' {
|
|
|
68
66
|
payment_source:PaymentSource;
|
|
69
67
|
}
|
|
70
68
|
export interface CreateCardInputParam {
|
|
71
|
-
|
|
72
69
|
customer_id:string;
|
|
73
70
|
replace_primary_payment_source?:boolean;
|
|
74
71
|
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_account_id?:string,last_name?:string,number:string};
|
|
@@ -77,7 +74,6 @@ declare module 'chargebee' {
|
|
|
77
74
|
payment_source:PaymentSource;
|
|
78
75
|
}
|
|
79
76
|
export interface VerifyBankAccountInputParam {
|
|
80
|
-
|
|
81
77
|
amount1:number;
|
|
82
78
|
amount2:number;
|
|
83
79
|
}
|
|
@@ -86,7 +82,7 @@ declare module 'chargebee' {
|
|
|
86
82
|
next_offset?:string;
|
|
87
83
|
}
|
|
88
84
|
export interface ListInputParam {
|
|
89
|
-
[key: string]:
|
|
85
|
+
[key : string]: any;
|
|
90
86
|
limit?:number;
|
|
91
87
|
offset?:string;
|
|
92
88
|
subscription_id?:string;
|
|
@@ -101,7 +97,6 @@ declare module 'chargebee' {
|
|
|
101
97
|
third_party_payment_method:ThirdPartyPaymentMethod;
|
|
102
98
|
}
|
|
103
99
|
export interface ExportPaymentSourceInputParam {
|
|
104
|
-
|
|
105
100
|
gateway_account_id:string;
|
|
106
101
|
}
|
|
107
102
|
export interface CreateUsingPaymentIntentResponse {
|
|
@@ -109,7 +104,6 @@ declare module 'chargebee' {
|
|
|
109
104
|
payment_source:PaymentSource;
|
|
110
105
|
}
|
|
111
106
|
export interface CreateUsingPaymentIntentInputParam {
|
|
112
|
-
|
|
113
107
|
customer_id:string;
|
|
114
108
|
replace_primary_payment_source?:boolean;
|
|
115
109
|
payment_intent?:{additional_info?:object,additional_information?:object,gateway_account_id?:string,gw_token?:string,id?:string,payment_method_type?:'giropay' | 'ideal' | 'google_pay' | 'netbanking_emandates' | 'dotpay' | 'boleto' | 'direct_debit' | 'sofort' | 'upi' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'card',reference_id?:string};
|
|
@@ -123,7 +117,6 @@ declare module 'chargebee' {
|
|
|
123
117
|
payment_source:PaymentSource;
|
|
124
118
|
}
|
|
125
119
|
export interface CreateVoucherPaymentSourceInputParam {
|
|
126
|
-
|
|
127
120
|
customer_id:string;
|
|
128
121
|
voucher_payment_source?:{billing_address?:object,gateway_account_id?:string,tax_id?:string,voucher_type:VoucherType};
|
|
129
122
|
}
|
|
@@ -132,7 +125,6 @@ declare module 'chargebee' {
|
|
|
132
125
|
payment_source:PaymentSource;
|
|
133
126
|
}
|
|
134
127
|
export interface CreateUsingTempTokenInputParam {
|
|
135
|
-
|
|
136
128
|
customer_id:string;
|
|
137
129
|
gateway_account_id?:string;
|
|
138
130
|
type:Type;
|
|
@@ -146,7 +138,6 @@ declare module 'chargebee' {
|
|
|
146
138
|
payment_source:PaymentSource;
|
|
147
139
|
}
|
|
148
140
|
export interface UpdateCardInputParam {
|
|
149
|
-
|
|
150
141
|
gateway_meta_data?:object;
|
|
151
142
|
reference_transaction?:string;
|
|
152
143
|
card?:{billing_addr1?:string,billing_addr2?:string,billing_city?:string,billing_country?:string,billing_state?:string,billing_state_code?:string,billing_zip?:string,expiry_month?:number,expiry_year?:number,first_name?:string,last_name?:string};
|
|
@@ -156,7 +147,6 @@ declare module 'chargebee' {
|
|
|
156
147
|
payment_source:PaymentSource;
|
|
157
148
|
}
|
|
158
149
|
export interface SwitchGatewayAccountInputParam {
|
|
159
|
-
|
|
160
150
|
gateway_account_id:string;
|
|
161
151
|
}
|
|
162
152
|
export interface CreateUsingTokenResponse {
|
|
@@ -164,7 +154,6 @@ declare module 'chargebee' {
|
|
|
164
154
|
payment_source:PaymentSource;
|
|
165
155
|
}
|
|
166
156
|
export interface CreateUsingTokenInputParam {
|
|
167
|
-
|
|
168
157
|
customer_id:string;
|
|
169
158
|
replace_primary_payment_source?:boolean;
|
|
170
159
|
token_id:string;
|
|
@@ -179,7 +168,6 @@ declare module 'chargebee' {
|
|
|
179
168
|
payment_source:PaymentSource;
|
|
180
169
|
}
|
|
181
170
|
export interface CreateBankAccountInputParam {
|
|
182
|
-
|
|
183
171
|
customer_id:string;
|
|
184
172
|
issuing_country?:string;
|
|
185
173
|
replace_primary_payment_source?:boolean;
|
|
@@ -190,7 +178,6 @@ declare module 'chargebee' {
|
|
|
190
178
|
payment_source:PaymentSource;
|
|
191
179
|
}
|
|
192
180
|
export interface UpdateBankAccountInputParam {
|
|
193
|
-
|
|
194
181
|
bank_account?:{email?:string,first_name?:string,last_name?:string};
|
|
195
182
|
}
|
|
196
183
|
export interface Card {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
declare module 'chargebee' {
|
|
3
3
|
export interface PaymentVoucher {
|
|
4
|
-
|
|
5
4
|
id:string;
|
|
6
5
|
id_at_gateway?:string;
|
|
7
6
|
payment_voucher_type:PaymentVoucherType;
|
|
@@ -35,7 +34,7 @@ declare module 'chargebee' {
|
|
|
35
34
|
next_offset?:string;
|
|
36
35
|
}
|
|
37
36
|
export interface Payment_vouchersForCustomerInputParam {
|
|
38
|
-
[key: string]:
|
|
37
|
+
[key : string]: any;
|
|
39
38
|
limit?:number;
|
|
40
39
|
offset?:string;
|
|
41
40
|
status?:{in?:string,is?:'consumed' | 'expired' | 'failure' | 'active',is_not?:'consumed' | 'expired' | 'failure' | 'active',not_in?:string};
|
|
@@ -46,7 +45,7 @@ declare module 'chargebee' {
|
|
|
46
45
|
next_offset?:string;
|
|
47
46
|
}
|
|
48
47
|
export interface Payment_vouchersForInvoiceInputParam {
|
|
49
|
-
[key: string]:
|
|
48
|
+
[key : string]: any;
|
|
50
49
|
limit?:number;
|
|
51
50
|
offset?:string;
|
|
52
51
|
status?:{in?:string,is?:'consumed' | 'expired' | 'failure' | 'active',is_not?:'consumed' | 'expired' | 'failure' | 'active',not_in?:string};
|
|
@@ -60,7 +59,6 @@ declare module 'chargebee' {
|
|
|
60
59
|
payment_voucher:PaymentVoucher;
|
|
61
60
|
}
|
|
62
61
|
export interface CreateInputParam {
|
|
63
|
-
|
|
64
62
|
customer_id:string;
|
|
65
63
|
payment_source_id?:string;
|
|
66
64
|
voucher_payment_source?:{voucher_type:VoucherType};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
declare module 'chargebee' {
|
|
3
3
|
export interface PortalSession {
|
|
4
|
-
|
|
5
4
|
id:string;
|
|
6
5
|
token:string;
|
|
7
6
|
access_url:string;
|
|
@@ -27,7 +26,6 @@ declare module 'chargebee' {
|
|
|
27
26
|
portal_session:PortalSession;
|
|
28
27
|
}
|
|
29
28
|
export interface CreateInputParam {
|
|
30
|
-
|
|
31
29
|
redirect_url?:string;
|
|
32
30
|
forward_url?:string;
|
|
33
31
|
customer?:{id:string};
|
|
@@ -36,7 +34,6 @@ declare module 'chargebee' {
|
|
|
36
34
|
portal_session:PortalSession;
|
|
37
35
|
}
|
|
38
36
|
export interface ActivateInputParam {
|
|
39
|
-
|
|
40
37
|
token:string;
|
|
41
38
|
}
|
|
42
39
|
export interface LogoutResponse {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
declare module 'chargebee' {
|
|
3
3
|
export interface PromotionalCredit {
|
|
4
|
-
|
|
5
4
|
id:string;
|
|
6
5
|
customer_id:string;
|
|
7
6
|
type:'decrement' | 'increment';
|
|
@@ -32,7 +31,7 @@ declare module 'chargebee' {
|
|
|
32
31
|
next_offset?:string;
|
|
33
32
|
}
|
|
34
33
|
export interface ListInputParam {
|
|
35
|
-
[key: string]:
|
|
34
|
+
[key : string]: any;
|
|
36
35
|
limit?:number;
|
|
37
36
|
offset?:string;
|
|
38
37
|
id?:{is?:string,is_not?:string,starts_with?:string};
|
|
@@ -45,7 +44,6 @@ declare module 'chargebee' {
|
|
|
45
44
|
promotional_credit:PromotionalCredit;
|
|
46
45
|
}
|
|
47
46
|
export interface DeductInputParam {
|
|
48
|
-
|
|
49
47
|
customer_id:string;
|
|
50
48
|
amount?:number;
|
|
51
49
|
amount_in_decimal?:string;
|
|
@@ -59,7 +57,6 @@ declare module 'chargebee' {
|
|
|
59
57
|
promotional_credit:PromotionalCredit;
|
|
60
58
|
}
|
|
61
59
|
export interface SetInputParam {
|
|
62
|
-
|
|
63
60
|
customer_id:string;
|
|
64
61
|
amount?:number;
|
|
65
62
|
amount_in_decimal?:string;
|
|
@@ -73,7 +70,6 @@ declare module 'chargebee' {
|
|
|
73
70
|
promotional_credit:PromotionalCredit;
|
|
74
71
|
}
|
|
75
72
|
export interface AddInputParam {
|
|
76
|
-
|
|
77
73
|
customer_id:string;
|
|
78
74
|
amount?:number;
|
|
79
75
|
amount_in_decimal?:string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
declare module 'chargebee' {
|
|
3
3
|
export interface Purchase {
|
|
4
|
-
|
|
5
4
|
id?:string;
|
|
6
5
|
customer_id:string;
|
|
7
6
|
created_at?:number;
|
|
@@ -18,7 +17,6 @@ declare module 'chargebee' {
|
|
|
18
17
|
purchase:Purchase;
|
|
19
18
|
}
|
|
20
19
|
export interface CreateInputParam {
|
|
21
|
-
|
|
22
20
|
customer_id:string;
|
|
23
21
|
invoice_info?:{notes?:string,po_number?:string};
|
|
24
22
|
purchase_items?:{index:number,item_price_id:string,quantity?:number,quantity_in_decimal?:string,unit_amount?:number,unit_amount_in_decimal?:string}[];
|
|
@@ -31,7 +29,6 @@ declare module 'chargebee' {
|
|
|
31
29
|
estimate:Estimate;
|
|
32
30
|
}
|
|
33
31
|
export interface EstimateInputParam {
|
|
34
|
-
|
|
35
32
|
client_profile_id?:string;
|
|
36
33
|
customer_id?:string;
|
|
37
34
|
customer?:{customer_type?:CustomerType,entity_code?:EntityCode,exempt_number?:string,exemption_details?:any[],registered_for_gst?:boolean,taxability?:Taxability,vat_number?:string,vat_number_prefix?:string};
|