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 Quote {
|
|
3
|
-
|
|
4
4
|
id:string;
|
|
5
5
|
name?:string;
|
|
6
6
|
po_number?:string;
|
|
@@ -62,7 +62,6 @@ declare module 'chargebee' {
|
|
|
62
62
|
quoted_subscription?:QuotedSubscription;
|
|
63
63
|
}
|
|
64
64
|
export interface CreateSubItemsForCustomerQuoteInputParam {
|
|
65
|
-
|
|
66
65
|
name?:string;
|
|
67
66
|
notes?:string;
|
|
68
67
|
expires_at?:number;
|
|
@@ -89,7 +88,6 @@ declare module 'chargebee' {
|
|
|
89
88
|
quoted_subscription?:QuotedSubscription;
|
|
90
89
|
}
|
|
91
90
|
export interface EditCreateSubCustomerQuoteForItemsInputParam {
|
|
92
|
-
|
|
93
91
|
notes?:string;
|
|
94
92
|
expires_at?:number;
|
|
95
93
|
billing_cycles?:number;
|
|
@@ -110,7 +108,6 @@ declare module 'chargebee' {
|
|
|
110
108
|
quoted_charge?:QuotedCharge;
|
|
111
109
|
}
|
|
112
110
|
export interface UpdateStatusInputParam {
|
|
113
|
-
|
|
114
111
|
status:'declined' | 'accepted' | 'closed';
|
|
115
112
|
comment?:string;
|
|
116
113
|
}
|
|
@@ -119,7 +116,6 @@ declare module 'chargebee' {
|
|
|
119
116
|
quoted_subscription?:QuotedSubscription;
|
|
120
117
|
}
|
|
121
118
|
export interface UpdateSubscriptionQuoteForItemsInputParam {
|
|
122
|
-
|
|
123
119
|
name?:string;
|
|
124
120
|
notes?:string;
|
|
125
121
|
expires_at?:number;
|
|
@@ -149,7 +145,7 @@ declare module 'chargebee' {
|
|
|
149
145
|
next_offset?:string;
|
|
150
146
|
}
|
|
151
147
|
export interface QuoteLineGroupsForQuoteInputParam {
|
|
152
|
-
[key: string]:
|
|
148
|
+
[key : string]: any;
|
|
153
149
|
limit?:number;
|
|
154
150
|
offset?:string;
|
|
155
151
|
}
|
|
@@ -159,7 +155,6 @@ declare module 'chargebee' {
|
|
|
159
155
|
quoted_charge?:QuotedCharge;
|
|
160
156
|
}
|
|
161
157
|
export interface ExtendExpiryDateInputParam {
|
|
162
|
-
|
|
163
158
|
valid_till:number;
|
|
164
159
|
}
|
|
165
160
|
export interface EditForChargeItemsAndChargesResponse {
|
|
@@ -167,7 +162,6 @@ declare module 'chargebee' {
|
|
|
167
162
|
quoted_charge?:QuotedCharge;
|
|
168
163
|
}
|
|
169
164
|
export interface EditForChargeItemsAndChargesInputParam {
|
|
170
|
-
|
|
171
165
|
po_number?:string;
|
|
172
166
|
notes?:string;
|
|
173
167
|
expires_at?:number;
|
|
@@ -185,7 +179,6 @@ declare module 'chargebee' {
|
|
|
185
179
|
quoted_subscription?:QuotedSubscription;
|
|
186
180
|
}
|
|
187
181
|
export interface EditUpdateSubscriptionQuoteForItemsInputParam {
|
|
188
|
-
|
|
189
182
|
notes?:string;
|
|
190
183
|
expires_at?:number;
|
|
191
184
|
mandatory_items_to_remove?:string[];
|
|
@@ -214,7 +207,7 @@ declare module 'chargebee' {
|
|
|
214
207
|
next_offset?:string;
|
|
215
208
|
}
|
|
216
209
|
export interface ListInputParam {
|
|
217
|
-
[key: string]:
|
|
210
|
+
[key : string]: any;
|
|
218
211
|
limit?:number;
|
|
219
212
|
offset?:string;
|
|
220
213
|
include_deleted?:boolean;
|
|
@@ -230,7 +223,6 @@ declare module 'chargebee' {
|
|
|
230
223
|
download:Download;
|
|
231
224
|
}
|
|
232
225
|
export interface PdfInputParam {
|
|
233
|
-
|
|
234
226
|
consolidated_view?:boolean;
|
|
235
227
|
disposition_type?:DispositionType;
|
|
236
228
|
}
|
|
@@ -245,7 +237,6 @@ declare module 'chargebee' {
|
|
|
245
237
|
unbilled_charges?:UnbilledCharge[];
|
|
246
238
|
}
|
|
247
239
|
export interface ConvertInputParam {
|
|
248
|
-
|
|
249
240
|
invoice_date?:number;
|
|
250
241
|
create_pending_invoices?:boolean;
|
|
251
242
|
first_invoice_pending?:boolean;
|
|
@@ -256,7 +247,6 @@ declare module 'chargebee' {
|
|
|
256
247
|
quoted_charge?:QuotedCharge;
|
|
257
248
|
}
|
|
258
249
|
export interface CreateForChargeItemsAndChargesInputParam {
|
|
259
|
-
|
|
260
250
|
name?:string;
|
|
261
251
|
customer_id:string;
|
|
262
252
|
po_number?:string;
|
|
@@ -277,7 +267,6 @@ declare module 'chargebee' {
|
|
|
277
267
|
quoted_charge?:QuotedCharge;
|
|
278
268
|
}
|
|
279
269
|
export interface DeleteInputParam {
|
|
280
|
-
|
|
281
270
|
comment?:string;
|
|
282
271
|
}
|
|
283
272
|
export interface LineItem {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface ResourceMigration {
|
|
3
|
-
|
|
4
4
|
from_site:string;
|
|
5
5
|
entity_type:'customer';
|
|
6
6
|
entity_id:string;
|
|
@@ -17,7 +17,6 @@ declare module 'chargebee' {
|
|
|
17
17
|
resource_migration:ResourceMigration;
|
|
18
18
|
}
|
|
19
19
|
export interface RetrieveLatestInputParam {
|
|
20
|
-
|
|
21
20
|
from_site:string;
|
|
22
21
|
entity_type:'customer';
|
|
23
22
|
entity_id:string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface SiteMigrationDetail {
|
|
3
|
-
|
|
4
4
|
entity_id:string;
|
|
5
5
|
other_site_name:string;
|
|
6
6
|
entity_id_at_other_site:string;
|
|
@@ -17,7 +17,7 @@ declare module 'chargebee' {
|
|
|
17
17
|
next_offset?:string;
|
|
18
18
|
}
|
|
19
19
|
export interface ListInputParam {
|
|
20
|
-
[key: string]:
|
|
20
|
+
[key : string]: any;
|
|
21
21
|
limit?:number;
|
|
22
22
|
offset?:string;
|
|
23
23
|
entity_id_at_other_site?:{is?:string,is_not?:string,starts_with?:string};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface Subscription {
|
|
3
4
|
[key : string] : any;
|
|
@@ -97,7 +98,6 @@ declare module 'chargebee' {
|
|
|
97
98
|
advance_invoice_schedules?:AdvanceInvoiceSchedule[];
|
|
98
99
|
}
|
|
99
100
|
export interface RemoveAdvanceInvoiceScheduleInputParam {
|
|
100
|
-
|
|
101
101
|
specific_dates_schedule?:{id?:string}[];
|
|
102
102
|
}
|
|
103
103
|
export interface UpdateForItemsResponse {
|
|
@@ -160,7 +160,6 @@ declare module 'chargebee' {
|
|
|
160
160
|
card?:Card;
|
|
161
161
|
}
|
|
162
162
|
export interface RemoveCouponsInputParam {
|
|
163
|
-
|
|
164
163
|
coupon_ids?:string[];
|
|
165
164
|
}
|
|
166
165
|
export interface ResumeResponse {
|
|
@@ -171,7 +170,6 @@ declare module 'chargebee' {
|
|
|
171
170
|
unbilled_charges?:UnbilledCharge[];
|
|
172
171
|
}
|
|
173
172
|
export interface ResumeInputParam {
|
|
174
|
-
|
|
175
173
|
resume_option?:ResumeOption;
|
|
176
174
|
resume_date?:number;
|
|
177
175
|
charges_handling?:ChargesHandling;
|
|
@@ -188,7 +186,6 @@ declare module 'chargebee' {
|
|
|
188
186
|
credit_notes?:CreditNote[];
|
|
189
187
|
}
|
|
190
188
|
export interface CancelForItemsInputParam {
|
|
191
|
-
|
|
192
189
|
end_of_term?:boolean;
|
|
193
190
|
cancel_at?:number;
|
|
194
191
|
credit_option_for_current_term_charges?:CreditOptionForCurrentTermCharges;
|
|
@@ -205,7 +202,6 @@ declare module 'chargebee' {
|
|
|
205
202
|
unbilled_charges?:UnbilledCharge[];
|
|
206
203
|
}
|
|
207
204
|
export interface RegenerateInvoiceInputParam {
|
|
208
|
-
|
|
209
205
|
date_from?:number;
|
|
210
206
|
date_to?:number;
|
|
211
207
|
prorate?:boolean;
|
|
@@ -216,7 +212,7 @@ declare module 'chargebee' {
|
|
|
216
212
|
next_offset?:string;
|
|
217
213
|
}
|
|
218
214
|
export interface ListInputParam {
|
|
219
|
-
[key: string]:
|
|
215
|
+
[key : string]: any;
|
|
220
216
|
limit?:number;
|
|
221
217
|
offset?:string;
|
|
222
218
|
include_deleted?:boolean;
|
|
@@ -293,7 +289,6 @@ declare module 'chargebee' {
|
|
|
293
289
|
card?:Card;
|
|
294
290
|
}
|
|
295
291
|
export interface RemoveScheduledCancellationInputParam {
|
|
296
|
-
|
|
297
292
|
billing_cycles?:number;
|
|
298
293
|
}
|
|
299
294
|
export interface RetrieveWithScheduledChangesResponse {
|
|
@@ -310,7 +305,6 @@ declare module 'chargebee' {
|
|
|
310
305
|
unbilled_charges?:UnbilledCharge[];
|
|
311
306
|
}
|
|
312
307
|
export interface ReactivateInputParam {
|
|
313
|
-
|
|
314
308
|
trial_end?:number;
|
|
315
309
|
billing_cycles?:number;
|
|
316
310
|
reactivate_from?:number;
|
|
@@ -331,7 +325,6 @@ declare module 'chargebee' {
|
|
|
331
325
|
advance_invoice_schedules?:AdvanceInvoiceSchedule[];
|
|
332
326
|
}
|
|
333
327
|
export interface ChargeFutureRenewalsInputParam {
|
|
334
|
-
|
|
335
328
|
terms_to_charge?:number;
|
|
336
329
|
invoice_immediately?:boolean;
|
|
337
330
|
schedule_type?:ScheduleType;
|
|
@@ -342,7 +335,6 @@ declare module 'chargebee' {
|
|
|
342
335
|
estimate:Estimate;
|
|
343
336
|
}
|
|
344
337
|
export interface AddChargeAtTermEndInputParam {
|
|
345
|
-
|
|
346
338
|
amount?:number;
|
|
347
339
|
description:string;
|
|
348
340
|
amount_in_decimal?:string;
|
|
@@ -368,7 +360,6 @@ declare module 'chargebee' {
|
|
|
368
360
|
credit_notes?:CreditNote[];
|
|
369
361
|
}
|
|
370
362
|
export interface ChangeTermEndInputParam {
|
|
371
|
-
|
|
372
363
|
term_ends_at:number;
|
|
373
364
|
prorate?:boolean;
|
|
374
365
|
invoice_immediately?:boolean;
|
|
@@ -426,7 +417,6 @@ declare module 'chargebee' {
|
|
|
426
417
|
unbilled_charges:UnbilledCharge[];
|
|
427
418
|
}
|
|
428
419
|
export interface ImportUnbilledChargesInputParam {
|
|
429
|
-
|
|
430
420
|
unbilled_charges?:{amount?:number,amount_in_decimal?:string,date_from:number,date_to:number,description?:string,discount_amount?:number,entity_id?:string,entity_type:'addon_item_price' | 'plan_item_price' | 'charge_item_price' | 'adhoc',id?:string,is_advance_charge?:boolean,quantity?:number,quantity_in_decimal?:string,unit_amount?:number,unit_amount_in_decimal?:string,use_for_proration?:boolean}[];
|
|
431
421
|
discounts?:{amount:number,description?:string,entity_id?:string,entity_type?:'item_level_coupon' | 'item_level_discount' | 'document_level_discount' | 'document_level_coupon',unbilled_charge_id?:string}[];
|
|
432
422
|
tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,quantity_used?:number,quantity_used_in_decimal?:string,starting_unit?:number,starting_unit_in_decimal?:string,unbilled_charge_id:string,unit_amount?:number,unit_amount_in_decimal?:string}[];
|
|
@@ -447,7 +437,6 @@ declare module 'chargebee' {
|
|
|
447
437
|
contract_term:ContractTerm;
|
|
448
438
|
}
|
|
449
439
|
export interface ImportContractTermInputParam {
|
|
450
|
-
|
|
451
440
|
contract_term_billing_cycle_on_renewal?:number;
|
|
452
441
|
contract_term?:{action_at_term_end?:'cancel' | 'renew_once' | 'renew' | 'evergreen',billing_cycle?:number,cancellation_cutoff_period?:number,contract_end?:number,contract_start?:number,created_at?:number,id?:string,status?:'active' | 'cancelled' | 'completed' | 'terminated',total_amount_raised?:number,total_amount_raised_before_tax?:number,total_contract_value?:number,total_contract_value_before_tax?:number};
|
|
453
442
|
}
|
|
@@ -456,7 +445,6 @@ declare module 'chargebee' {
|
|
|
456
445
|
payment_source?:PaymentSource;
|
|
457
446
|
}
|
|
458
447
|
export interface OverrideBillingProfileInputParam {
|
|
459
|
-
|
|
460
448
|
payment_source_id?:string;
|
|
461
449
|
auto_collection?:AutoCollection;
|
|
462
450
|
}
|
|
@@ -470,7 +458,6 @@ declare module 'chargebee' {
|
|
|
470
458
|
advance_invoice_schedules:AdvanceInvoiceSchedule[];
|
|
471
459
|
}
|
|
472
460
|
export interface EditAdvanceInvoiceScheduleInputParam {
|
|
473
|
-
|
|
474
461
|
terms_to_charge?:number;
|
|
475
462
|
schedule_type?:ScheduleType;
|
|
476
463
|
fixed_interval_schedule?:{days_before_renewal?:number,end_date?:number,end_schedule_on?:EndScheduleOn,number_of_occurrences?:number};
|
|
@@ -481,7 +468,7 @@ declare module 'chargebee' {
|
|
|
481
468
|
next_offset?:string;
|
|
482
469
|
}
|
|
483
470
|
export interface ListDiscountsInputParam {
|
|
484
|
-
[key: string]:
|
|
471
|
+
[key : string]: any;
|
|
485
472
|
limit?:number;
|
|
486
473
|
offset?:string;
|
|
487
474
|
}
|
|
@@ -490,7 +477,7 @@ declare module 'chargebee' {
|
|
|
490
477
|
next_offset?:string;
|
|
491
478
|
}
|
|
492
479
|
export interface ContractTermsForSubscriptionInputParam {
|
|
493
|
-
[key: string]:
|
|
480
|
+
[key : string]: any;
|
|
494
481
|
limit?:number;
|
|
495
482
|
offset?:string;
|
|
496
483
|
}
|
|
@@ -503,7 +490,6 @@ declare module 'chargebee' {
|
|
|
503
490
|
credit_notes?:CreditNote[];
|
|
504
491
|
}
|
|
505
492
|
export interface PauseInputParam {
|
|
506
|
-
|
|
507
493
|
pause_option?:PauseOption;
|
|
508
494
|
pause_date?:number;
|
|
509
495
|
unbilled_charges_handling?:UnbilledChargesHandling;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface SubscriptionEntitlement {
|
|
3
|
-
|
|
4
4
|
subscription_id:string;
|
|
5
5
|
feature_id?:string;
|
|
6
6
|
feature_name?:string;
|
|
@@ -21,7 +21,6 @@ declare module 'chargebee' {
|
|
|
21
21
|
subscription_entitlement:SubscriptionEntitlement;
|
|
22
22
|
}
|
|
23
23
|
export interface SetSubscriptionEntitlementAvailabilityInputParam {
|
|
24
|
-
|
|
25
24
|
is_enabled:boolean;
|
|
26
25
|
subscription_entitlements?:{feature_id:string}[];
|
|
27
26
|
}
|
|
@@ -30,7 +29,7 @@ declare module 'chargebee' {
|
|
|
30
29
|
next_offset?:string;
|
|
31
30
|
}
|
|
32
31
|
export interface SubscriptionEntitlementsForSubscriptionInputParam {
|
|
33
|
-
[key: string]:
|
|
32
|
+
[key : string]: any;
|
|
34
33
|
limit?:number;
|
|
35
34
|
offset?:string;
|
|
36
35
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface TaxWithheld {
|
|
3
|
-
|
|
4
4
|
id:string;
|
|
5
5
|
reference_number?:string;
|
|
6
6
|
description?:string;
|
|
@@ -9,5 +9,4 @@ declare module 'chargebee' {
|
|
|
9
9
|
resource_version?:number;
|
|
10
10
|
updated_at?:number;
|
|
11
11
|
}
|
|
12
|
-
|
|
13
12
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface TimeMachine {
|
|
3
|
-
|
|
4
4
|
name:string;
|
|
5
5
|
time_travel_status:'in_progress' | 'not_enabled' | 'failed' | 'succeeded';
|
|
6
6
|
genesis_time:number;
|
|
@@ -23,14 +23,12 @@ declare module 'chargebee' {
|
|
|
23
23
|
time_machine:TimeMachine;
|
|
24
24
|
}
|
|
25
25
|
export interface TravelForwardInputParam {
|
|
26
|
-
|
|
27
26
|
destination_time?:number;
|
|
28
27
|
}
|
|
29
28
|
export interface StartAfreshResponse {
|
|
30
29
|
time_machine:TimeMachine;
|
|
31
30
|
}
|
|
32
31
|
export interface StartAfreshInputParam {
|
|
33
|
-
|
|
34
32
|
genesis_time?:number;
|
|
35
33
|
}
|
|
36
34
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface Token {
|
|
3
|
-
|
|
4
4
|
id:string;
|
|
5
5
|
gateway:Gateway;
|
|
6
6
|
gateway_account_id:string;
|
|
@@ -24,7 +24,6 @@ declare module 'chargebee' {
|
|
|
24
24
|
token:Token;
|
|
25
25
|
}
|
|
26
26
|
export interface CreateUsingTempTokenInputParam {
|
|
27
|
-
|
|
28
27
|
gateway_account_id?:string;
|
|
29
28
|
payment_method_type:PaymentMethodType;
|
|
30
29
|
id_at_vault:string;
|
|
@@ -38,7 +37,6 @@ declare module 'chargebee' {
|
|
|
38
37
|
token:Token;
|
|
39
38
|
}
|
|
40
39
|
export interface CreateForCardInputParam {
|
|
41
|
-
|
|
42
40
|
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,card_type?:'discover' | 'bancontact' | 'other' | 'visa' | 'jcb' | 'diners_club' | 'mastercard' | 'not_applicable' | 'american_express',cvv?:string,expiry_month:number,expiry_year:number,first_name?:string,gateway_account_id?:string,last_name?:string,number:string};
|
|
43
41
|
}
|
|
44
42
|
export interface RetrieveResponse {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface Transaction {
|
|
3
|
-
|
|
4
4
|
id:string;
|
|
5
5
|
customer_id?:string;
|
|
6
6
|
subscription_id?:string;
|
|
@@ -60,7 +60,6 @@ declare module 'chargebee' {
|
|
|
60
60
|
transaction:Transaction;
|
|
61
61
|
}
|
|
62
62
|
export interface RecordRefundInputParam {
|
|
63
|
-
|
|
64
63
|
amount?:number;
|
|
65
64
|
payment_method:PaymentMethod;
|
|
66
65
|
date:number;
|
|
@@ -72,7 +71,7 @@ declare module 'chargebee' {
|
|
|
72
71
|
next_offset?:string;
|
|
73
72
|
}
|
|
74
73
|
export interface ListInputParam {
|
|
75
|
-
[key: string]:
|
|
74
|
+
[key : string]: any;
|
|
76
75
|
limit?:number;
|
|
77
76
|
offset?:string;
|
|
78
77
|
include_deleted?:boolean;
|
|
@@ -101,7 +100,6 @@ declare module 'chargebee' {
|
|
|
101
100
|
transaction:Transaction;
|
|
102
101
|
}
|
|
103
102
|
export interface CreateAuthorizationInputParam {
|
|
104
|
-
|
|
105
103
|
customer_id:string;
|
|
106
104
|
payment_source_id?:string;
|
|
107
105
|
currency_code?:string;
|
|
@@ -116,7 +114,7 @@ declare module 'chargebee' {
|
|
|
116
114
|
next_offset?:string;
|
|
117
115
|
}
|
|
118
116
|
export interface PaymentsForInvoiceInputParam {
|
|
119
|
-
[key: string]:
|
|
117
|
+
[key : string]: any;
|
|
120
118
|
limit?:number;
|
|
121
119
|
offset?:string;
|
|
122
120
|
}
|
|
@@ -124,14 +122,12 @@ declare module 'chargebee' {
|
|
|
124
122
|
transaction:Transaction;
|
|
125
123
|
}
|
|
126
124
|
export interface DeleteOfflineTransactionInputParam {
|
|
127
|
-
|
|
128
125
|
comment?:string;
|
|
129
126
|
}
|
|
130
127
|
export interface RefundResponse {
|
|
131
128
|
transaction:Transaction;
|
|
132
129
|
}
|
|
133
130
|
export interface RefundInputParam {
|
|
134
|
-
|
|
135
131
|
amount?:number;
|
|
136
132
|
comment?:string;
|
|
137
133
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface UnbilledCharge {
|
|
3
|
-
|
|
4
4
|
id?:string;
|
|
5
5
|
customer_id?:string;
|
|
6
6
|
subscription_id?:string;
|
|
@@ -41,7 +41,6 @@ declare module 'chargebee' {
|
|
|
41
41
|
estimate:Estimate;
|
|
42
42
|
}
|
|
43
43
|
export interface InvoiceNowEstimateInputParam {
|
|
44
|
-
|
|
45
44
|
subscription_id?:string;
|
|
46
45
|
customer_id?:string;
|
|
47
46
|
}
|
|
@@ -49,7 +48,6 @@ declare module 'chargebee' {
|
|
|
49
48
|
invoices:Invoice[];
|
|
50
49
|
}
|
|
51
50
|
export interface InvoiceUnbilledChargesInputParam {
|
|
52
|
-
|
|
53
51
|
subscription_id?:string;
|
|
54
52
|
customer_id?:string;
|
|
55
53
|
}
|
|
@@ -58,7 +56,7 @@ declare module 'chargebee' {
|
|
|
58
56
|
next_offset?:string;
|
|
59
57
|
}
|
|
60
58
|
export interface ListInputParam {
|
|
61
|
-
[key: string]:
|
|
59
|
+
[key : string]: any;
|
|
62
60
|
limit?:number;
|
|
63
61
|
offset?:string;
|
|
64
62
|
include_deleted?:boolean;
|
|
@@ -70,7 +68,6 @@ declare module 'chargebee' {
|
|
|
70
68
|
unbilled_charges:UnbilledCharge[];
|
|
71
69
|
}
|
|
72
70
|
export interface CreateInputParam {
|
|
73
|
-
|
|
74
71
|
subscription_id:string;
|
|
75
72
|
currency_code?:string;
|
|
76
73
|
item_prices?:{date_from?:number,date_to?:number,item_price_id?:string,quantity?:number,quantity_in_decimal?:string,unit_price?:number,unit_price_in_decimal?:string}[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface Usage {
|
|
3
|
-
|
|
4
4
|
id?:string;
|
|
5
5
|
usage_date:number;
|
|
6
6
|
subscription_id:string;
|
|
@@ -26,7 +26,6 @@ declare module 'chargebee' {
|
|
|
26
26
|
download:Download;
|
|
27
27
|
}
|
|
28
28
|
export interface PdfInputParam {
|
|
29
|
-
|
|
30
29
|
disposition_type?:DispositionType;
|
|
31
30
|
invoice?:{id:string};
|
|
32
31
|
}
|
|
@@ -34,14 +33,12 @@ declare module 'chargebee' {
|
|
|
34
33
|
usage:Usage;
|
|
35
34
|
}
|
|
36
35
|
export interface RetrieveInputParam {
|
|
37
|
-
|
|
38
36
|
id:string;
|
|
39
37
|
}
|
|
40
38
|
export interface CreateResponse {
|
|
41
39
|
usage:Usage;
|
|
42
40
|
}
|
|
43
41
|
export interface CreateInputParam {
|
|
44
|
-
|
|
45
42
|
id?:string;
|
|
46
43
|
item_price_id:string;
|
|
47
44
|
quantity:string;
|
|
@@ -52,7 +49,6 @@ declare module 'chargebee' {
|
|
|
52
49
|
usage:Usage;
|
|
53
50
|
}
|
|
54
51
|
export interface DeleteInputParam {
|
|
55
|
-
|
|
56
52
|
id:string;
|
|
57
53
|
}
|
|
58
54
|
export interface ListResponse {
|
|
@@ -60,7 +56,7 @@ declare module 'chargebee' {
|
|
|
60
56
|
next_offset?:string;
|
|
61
57
|
}
|
|
62
58
|
export interface ListInputParam {
|
|
63
|
-
[key: string]:
|
|
59
|
+
[key : string]: any;
|
|
64
60
|
limit?:number;
|
|
65
61
|
offset?:string;
|
|
66
62
|
id?:{is?:string,is_not?:string,starts_with?:string};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface VirtualBankAccount {
|
|
3
|
-
|
|
4
4
|
id:string;
|
|
5
5
|
customer_id:string;
|
|
6
6
|
email:string;
|
|
@@ -39,7 +39,7 @@ declare module 'chargebee' {
|
|
|
39
39
|
next_offset?:string;
|
|
40
40
|
}
|
|
41
41
|
export interface ListInputParam {
|
|
42
|
-
[key: string]:
|
|
42
|
+
[key : string]: any;
|
|
43
43
|
limit?:number;
|
|
44
44
|
offset?:string;
|
|
45
45
|
customer_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
@@ -51,7 +51,6 @@ declare module 'chargebee' {
|
|
|
51
51
|
customer?:Customer;
|
|
52
52
|
}
|
|
53
53
|
export interface CreateInputParam {
|
|
54
|
-
|
|
55
54
|
customer_id:string;
|
|
56
55
|
email?:string;
|
|
57
56
|
scheme?:'ach_credit' | 'sepa_credit';
|
|
@@ -65,7 +64,6 @@ declare module 'chargebee' {
|
|
|
65
64
|
customer?:Customer;
|
|
66
65
|
}
|
|
67
66
|
export interface CreateUsingPermanentTokenInputParam {
|
|
68
|
-
|
|
69
67
|
customer_id:string;
|
|
70
68
|
reference_id:string;
|
|
71
69
|
scheme?:'ach_credit' | 'sepa_credit';
|