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
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
### v2.25.2 (2023-07-24)
|
|
2
|
+
* * *
|
|
3
|
+
* Fix typescript typings [generator issue](https://github.com/chargebee/chargebee-node/issues/31)
|
|
4
|
+
|
|
5
|
+
### v2.25.1 (2023-07-19)
|
|
6
|
+
* * *
|
|
7
|
+
* Fix typescript typings reference issue
|
|
8
|
+
|
|
1
9
|
### v2.25.0 (2023-07-19)
|
|
2
10
|
* * *
|
|
3
11
|
* Add typescript typings
|
package/lib/chargebee.js
CHANGED
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -1,39 +1,57 @@
|
|
|
1
1
|
///<reference path='./resources/Address.d.ts' />
|
|
2
|
+
///<reference path='./resources/AdvanceInvoiceSchedule.d.ts' />
|
|
2
3
|
///<reference path='./resources/AttachedItem.d.ts' />
|
|
3
4
|
///<reference path='./resources/Card.d.ts' />
|
|
4
5
|
///<reference path='./resources/Comment.d.ts' />
|
|
6
|
+
///<reference path='./resources/Contact.d.ts' />
|
|
7
|
+
///<reference path='./resources/ContractTerm.d.ts' />
|
|
5
8
|
///<reference path='./resources/Coupon.d.ts' />
|
|
6
9
|
///<reference path='./resources/CouponCode.d.ts' />
|
|
7
10
|
///<reference path='./resources/CouponSet.d.ts' />
|
|
8
11
|
///<reference path='./resources/CreditNote.d.ts' />
|
|
12
|
+
///<reference path='./resources/CreditNoteEstimate.d.ts' />
|
|
9
13
|
///<reference path='./resources/Customer.d.ts' />
|
|
10
14
|
///<reference path='./resources/DifferentialPrice.d.ts' />
|
|
15
|
+
///<reference path='./resources/Discount.d.ts' />
|
|
16
|
+
///<reference path='./resources/Download.d.ts' />
|
|
11
17
|
///<reference path='./resources/EntitlementOverride.d.ts' />
|
|
12
18
|
///<reference path='./resources/Estimate.d.ts' />
|
|
13
19
|
///<reference path='./resources/Event.d.ts' />
|
|
14
20
|
///<reference path='./resources/Export.d.ts' />
|
|
15
21
|
///<reference path='./resources/Feature.d.ts' />
|
|
16
22
|
///<reference path='./resources/Gift.d.ts' />
|
|
23
|
+
///<reference path='./resources/Hierarchy.d.ts' />
|
|
17
24
|
///<reference path='./resources/HostedPage.d.ts' />
|
|
25
|
+
///<reference path='./resources/ImpactedItem.d.ts' />
|
|
26
|
+
///<reference path='./resources/ImpactedSubscription.d.ts' />
|
|
18
27
|
///<reference path='./resources/InAppSubscription.d.ts' />
|
|
19
28
|
///<reference path='./resources/Invoice.d.ts' />
|
|
29
|
+
///<reference path='./resources/InvoiceEstimate.d.ts' />
|
|
20
30
|
///<reference path='./resources/Item.d.ts' />
|
|
21
31
|
///<reference path='./resources/ItemEntitlement.d.ts' />
|
|
22
32
|
///<reference path='./resources/ItemFamily.d.ts' />
|
|
23
33
|
///<reference path='./resources/ItemPrice.d.ts' />
|
|
34
|
+
///<reference path='./resources/Media.d.ts' />
|
|
24
35
|
///<reference path='./resources/NonSubscription.d.ts' />
|
|
25
36
|
///<reference path='./resources/Order.d.ts' />
|
|
26
37
|
///<reference path='./resources/PaymentIntent.d.ts' />
|
|
38
|
+
///<reference path='./resources/PaymentReferenceNumber.d.ts' />
|
|
27
39
|
///<reference path='./resources/PaymentSource.d.ts' />
|
|
28
40
|
///<reference path='./resources/PaymentVoucher.d.ts' />
|
|
29
41
|
///<reference path='./resources/PortalSession.d.ts' />
|
|
30
42
|
///<reference path='./resources/PromotionalCredit.d.ts' />
|
|
31
43
|
///<reference path='./resources/Purchase.d.ts' />
|
|
32
44
|
///<reference path='./resources/Quote.d.ts' />
|
|
45
|
+
///<reference path='./resources/QuoteLineGroup.d.ts' />
|
|
46
|
+
///<reference path='./resources/QuotedCharge.d.ts' />
|
|
47
|
+
///<reference path='./resources/QuotedSubscription.d.ts' />
|
|
33
48
|
///<reference path='./resources/ResourceMigration.d.ts' />
|
|
34
49
|
///<reference path='./resources/SiteMigrationDetail.d.ts' />
|
|
35
50
|
///<reference path='./resources/Subscription.d.ts' />
|
|
36
51
|
///<reference path='./resources/SubscriptionEntitlement.d.ts' />
|
|
52
|
+
///<reference path='./resources/SubscriptionEstimate.d.ts' />
|
|
53
|
+
///<reference path='./resources/TaxWithheld.d.ts' />
|
|
54
|
+
///<reference path='./resources/ThirdPartyPaymentMethod.d.ts' />
|
|
37
55
|
///<reference path='./resources/TimeMachine.d.ts' />
|
|
38
56
|
///<reference path='./resources/Token.d.ts' />
|
|
39
57
|
///<reference path='./resources/Transaction.d.ts' />
|
|
@@ -42,7 +60,7 @@
|
|
|
42
60
|
///<reference path='./resources/VirtualBankAccount.d.ts' />
|
|
43
61
|
|
|
44
62
|
declare module 'chargebee' {
|
|
45
|
-
class
|
|
63
|
+
export default class {
|
|
46
64
|
static configure({ site, api_key }: { site: string; api_key: string });
|
|
47
65
|
static address: Address.AddressResource;
|
|
48
66
|
static attached_item: AttachedItem.AttachedItemResource;
|
|
@@ -88,5 +106,4 @@ declare module 'chargebee' {
|
|
|
88
106
|
static virtual_bank_account: VirtualBankAccount.VirtualBankAccountResource;
|
|
89
107
|
|
|
90
108
|
}
|
|
91
|
-
export default Chargebee;
|
|
92
109
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface Address {
|
|
3
|
-
|
|
4
4
|
label:string;
|
|
5
5
|
first_name?:string;
|
|
6
6
|
last_name?:string;
|
|
@@ -27,7 +27,6 @@ declare module 'chargebee' {
|
|
|
27
27
|
address:Address;
|
|
28
28
|
}
|
|
29
29
|
export interface RetrieveInputParam {
|
|
30
|
-
|
|
31
30
|
subscription_id:string;
|
|
32
31
|
label:string;
|
|
33
32
|
}
|
|
@@ -35,7 +34,6 @@ declare module 'chargebee' {
|
|
|
35
34
|
address:Address;
|
|
36
35
|
}
|
|
37
36
|
export interface UpdateInputParam {
|
|
38
|
-
|
|
39
37
|
subscription_id:string;
|
|
40
38
|
label:string;
|
|
41
39
|
first_name?:string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface AttachedItem {
|
|
3
|
-
|
|
4
4
|
id:string;
|
|
5
5
|
parent_item_id:string;
|
|
6
6
|
item_id:string;
|
|
@@ -28,14 +28,12 @@ declare module 'chargebee' {
|
|
|
28
28
|
attached_item:AttachedItem;
|
|
29
29
|
}
|
|
30
30
|
export interface RetrieveInputParam {
|
|
31
|
-
|
|
32
31
|
parent_item_id:string;
|
|
33
32
|
}
|
|
34
33
|
export interface UpdateResponse {
|
|
35
34
|
attached_item:AttachedItem;
|
|
36
35
|
}
|
|
37
36
|
export interface UpdateInputParam {
|
|
38
|
-
|
|
39
37
|
parent_item_id:string;
|
|
40
38
|
type?:'optional' | 'mandatory' | 'recommended';
|
|
41
39
|
billing_cycles?:number;
|
|
@@ -49,7 +47,7 @@ declare module 'chargebee' {
|
|
|
49
47
|
next_offset?:string;
|
|
50
48
|
}
|
|
51
49
|
export interface ListInputParam {
|
|
52
|
-
[key: string]:
|
|
50
|
+
[key : string]: any;
|
|
53
51
|
limit?:number;
|
|
54
52
|
offset?:string;
|
|
55
53
|
id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
@@ -63,7 +61,6 @@ declare module 'chargebee' {
|
|
|
63
61
|
attached_item:AttachedItem;
|
|
64
62
|
}
|
|
65
63
|
export interface CreateInputParam {
|
|
66
|
-
|
|
67
64
|
item_id:string;
|
|
68
65
|
type?:'optional' | 'mandatory' | 'recommended';
|
|
69
66
|
billing_cycles?:number;
|
|
@@ -76,7 +73,6 @@ declare module 'chargebee' {
|
|
|
76
73
|
attached_item:AttachedItem;
|
|
77
74
|
}
|
|
78
75
|
export interface DeleteInputParam {
|
|
79
|
-
|
|
80
76
|
parent_item_id:string;
|
|
81
77
|
}
|
|
82
78
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface Card {
|
|
3
|
-
|
|
4
4
|
payment_source_id:string;
|
|
5
5
|
status:'valid' | 'expiring' | 'expired';
|
|
6
6
|
gateway:Gateway;
|
|
@@ -42,7 +42,6 @@ declare module 'chargebee' {
|
|
|
42
42
|
third_party_payment_method:ThirdPartyPaymentMethod;
|
|
43
43
|
}
|
|
44
44
|
export interface CopyCardForCustomerInputParam {
|
|
45
|
-
|
|
46
45
|
gateway_account_id:string;
|
|
47
46
|
}
|
|
48
47
|
export interface RetrieveResponse {
|
|
@@ -54,7 +53,6 @@ declare module 'chargebee' {
|
|
|
54
53
|
card:Card;
|
|
55
54
|
}
|
|
56
55
|
export interface SwitchGatewayForCustomerInputParam {
|
|
57
|
-
|
|
58
56
|
gateway_account_id:string;
|
|
59
57
|
}
|
|
60
58
|
export interface DeleteCardForCustomerResponse {
|
|
@@ -66,7 +64,6 @@ declare module 'chargebee' {
|
|
|
66
64
|
card:Card;
|
|
67
65
|
}
|
|
68
66
|
export interface UpdateCardForCustomerInputParam {
|
|
69
|
-
|
|
70
67
|
gateway_account_id?:string;
|
|
71
68
|
tmp_token?:string;
|
|
72
69
|
first_name?:string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface Comment {
|
|
3
|
-
|
|
4
4
|
id:string;
|
|
5
5
|
entity_type:EntityType;
|
|
6
6
|
added_by?:string;
|
|
@@ -29,7 +29,7 @@ declare module 'chargebee' {
|
|
|
29
29
|
next_offset?:string;
|
|
30
30
|
}
|
|
31
31
|
export interface ListInputParam {
|
|
32
|
-
[key: string]:
|
|
32
|
+
[key : string]: any;
|
|
33
33
|
limit?:number;
|
|
34
34
|
offset?:string;
|
|
35
35
|
entity_type?:'item' | 'product' | 'coupon' | 'addon' | 'item_price' | 'business_entity' | 'subscription' | 'item_family' | 'credit_note' | 'quote' | 'variant' | 'invoice' | 'plan' | 'transaction' | 'customer' | 'order';
|
|
@@ -41,7 +41,6 @@ declare module 'chargebee' {
|
|
|
41
41
|
comment:Comment;
|
|
42
42
|
}
|
|
43
43
|
export interface CreateInputParam {
|
|
44
|
-
|
|
45
44
|
entity_type:EntityType;
|
|
46
45
|
entity_id:string;
|
|
47
46
|
notes:string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface Contact {
|
|
3
|
-
|
|
4
4
|
id:string;
|
|
5
5
|
first_name?:string;
|
|
6
6
|
last_name?:string;
|
|
@@ -11,5 +11,4 @@ declare module 'chargebee' {
|
|
|
11
11
|
send_account_email:boolean;
|
|
12
12
|
send_billing_email:boolean;
|
|
13
13
|
}
|
|
14
|
-
|
|
15
14
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface ContractTerm {
|
|
3
|
-
|
|
4
4
|
id:string;
|
|
5
5
|
status:'active' | 'cancelled' | 'completed' | 'terminated';
|
|
6
6
|
contract_start:number;
|
|
@@ -14,5 +14,4 @@ declare module 'chargebee' {
|
|
|
14
14
|
subscription_id:string;
|
|
15
15
|
remaining_billing_cycles?:number;
|
|
16
16
|
}
|
|
17
|
-
|
|
18
17
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface Coupon {
|
|
3
|
-
|
|
4
4
|
id:string;
|
|
5
5
|
name:string;
|
|
6
6
|
invoice_name?:string;
|
|
@@ -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};
|
|
@@ -60,7 +60,6 @@ declare module 'chargebee' {
|
|
|
60
60
|
coupon:Coupon;
|
|
61
61
|
}
|
|
62
62
|
export interface UpdateForItemsInputParam {
|
|
63
|
-
|
|
64
63
|
name?:string;
|
|
65
64
|
invoice_name?:string;
|
|
66
65
|
discount_type?:'fixed_amount' | 'percentage';
|
|
@@ -93,7 +92,6 @@ declare module 'chargebee' {
|
|
|
93
92
|
coupon:Coupon;
|
|
94
93
|
}
|
|
95
94
|
export interface CopyInputParam {
|
|
96
|
-
|
|
97
95
|
from_site:string;
|
|
98
96
|
id_at_from_site:string;
|
|
99
97
|
id?:string;
|
|
@@ -107,7 +105,6 @@ declare module 'chargebee' {
|
|
|
107
105
|
coupon:Coupon;
|
|
108
106
|
}
|
|
109
107
|
export interface CreateForItemsInputParam {
|
|
110
|
-
|
|
111
108
|
id:string;
|
|
112
109
|
name:string;
|
|
113
110
|
invoice_name?:string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface CouponSet {
|
|
3
|
-
|
|
4
4
|
id:string;
|
|
5
5
|
coupon_id:string;
|
|
6
6
|
name:string;
|
|
@@ -23,7 +23,7 @@ declare module 'chargebee' {
|
|
|
23
23
|
next_offset?:string;
|
|
24
24
|
}
|
|
25
25
|
export interface ListInputParam {
|
|
26
|
-
[key: string]:
|
|
26
|
+
[key : string]: any;
|
|
27
27
|
limit?:number;
|
|
28
28
|
offset?:string;
|
|
29
29
|
id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
@@ -37,7 +37,6 @@ declare module 'chargebee' {
|
|
|
37
37
|
coupon_set:CouponSet;
|
|
38
38
|
}
|
|
39
39
|
export interface CreateInputParam {
|
|
40
|
-
|
|
41
40
|
coupon_id:string;
|
|
42
41
|
name:string;
|
|
43
42
|
id:string;
|
|
@@ -47,7 +46,6 @@ declare module 'chargebee' {
|
|
|
47
46
|
coupon_set:CouponSet;
|
|
48
47
|
}
|
|
49
48
|
export interface UpdateInputParam {
|
|
50
|
-
|
|
51
49
|
name?:string;
|
|
52
50
|
meta_data?:object;
|
|
53
51
|
}
|
|
@@ -59,7 +57,6 @@ declare module 'chargebee' {
|
|
|
59
57
|
coupon_set:CouponSet;
|
|
60
58
|
}
|
|
61
59
|
export interface AddCouponCodesInputParam {
|
|
62
|
-
|
|
63
60
|
code?:string[];
|
|
64
61
|
}
|
|
65
62
|
export interface DeleteUnusedCouponCodesResponse {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface CreditNote {
|
|
3
|
-
|
|
4
4
|
id:string;
|
|
5
5
|
customer_id:string;
|
|
6
6
|
subscription_id?:string;
|
|
@@ -67,7 +67,6 @@ declare module 'chargebee' {
|
|
|
67
67
|
credit_note:CreditNote;
|
|
68
68
|
}
|
|
69
69
|
export interface VoidCreditNoteInputParam {
|
|
70
|
-
|
|
71
70
|
comment?:string;
|
|
72
71
|
}
|
|
73
72
|
export interface RefundResponse {
|
|
@@ -75,7 +74,6 @@ declare module 'chargebee' {
|
|
|
75
74
|
transaction:Transaction;
|
|
76
75
|
}
|
|
77
76
|
export interface RefundInputParam {
|
|
78
|
-
|
|
79
77
|
refund_amount?:number;
|
|
80
78
|
customer_notes?:string;
|
|
81
79
|
refund_reason_code?:string;
|
|
@@ -85,7 +83,7 @@ declare module 'chargebee' {
|
|
|
85
83
|
next_offset?:string;
|
|
86
84
|
}
|
|
87
85
|
export interface ListInputParam {
|
|
88
|
-
[key: string]:
|
|
86
|
+
[key : string]: any;
|
|
89
87
|
limit?:number;
|
|
90
88
|
offset?:string;
|
|
91
89
|
include_deleted?:boolean;
|
|
@@ -114,7 +112,6 @@ declare module 'chargebee' {
|
|
|
114
112
|
invoice:Invoice;
|
|
115
113
|
}
|
|
116
114
|
export interface CreateInputParam {
|
|
117
|
-
|
|
118
115
|
reference_invoice_id:string;
|
|
119
116
|
total?:number;
|
|
120
117
|
type:'adjustment' | 'refundable';
|
|
@@ -130,7 +127,6 @@ declare module 'chargebee' {
|
|
|
130
127
|
transaction?:Transaction;
|
|
131
128
|
}
|
|
132
129
|
export interface RecordRefundInputParam {
|
|
133
|
-
|
|
134
130
|
refund_reason_code?:string;
|
|
135
131
|
comment?:string;
|
|
136
132
|
transaction?:{amount?:number,date:number,payment_method:PaymentMethod,reference_number?:string};
|
|
@@ -139,7 +135,6 @@ declare module 'chargebee' {
|
|
|
139
135
|
credit_note:CreditNote;
|
|
140
136
|
}
|
|
141
137
|
export interface ImportCreditNoteInputParam {
|
|
142
|
-
|
|
143
138
|
id:string;
|
|
144
139
|
customer_id?:string;
|
|
145
140
|
subscription_id?:string;
|
|
@@ -167,7 +162,6 @@ declare module 'chargebee' {
|
|
|
167
162
|
credit_note:CreditNote;
|
|
168
163
|
}
|
|
169
164
|
export interface DeleteInputParam {
|
|
170
|
-
|
|
171
165
|
comment?:string;
|
|
172
166
|
}
|
|
173
167
|
export interface DownloadEinvoiceResponse {
|
|
@@ -178,7 +172,6 @@ declare module 'chargebee' {
|
|
|
178
172
|
download:Download;
|
|
179
173
|
}
|
|
180
174
|
export interface PdfInputParam {
|
|
181
|
-
|
|
182
175
|
disposition_type?:DispositionType;
|
|
183
176
|
}
|
|
184
177
|
export interface ResendEinvoiceResponse {
|
|
@@ -189,7 +182,6 @@ declare module 'chargebee' {
|
|
|
189
182
|
credit_note:CreditNote;
|
|
190
183
|
}
|
|
191
184
|
export interface RemoveTaxWithheldRefundInputParam {
|
|
192
|
-
|
|
193
185
|
tax_withheld?:{id:string};
|
|
194
186
|
}
|
|
195
187
|
export interface RetrieveResponse {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface Customer {
|
|
3
4
|
[key : string] : any;
|
|
@@ -94,14 +95,12 @@ declare module 'chargebee' {
|
|
|
94
95
|
card?:Card;
|
|
95
96
|
}
|
|
96
97
|
export interface DeleteInputParam {
|
|
97
|
-
|
|
98
98
|
delete_payment_method?:boolean;
|
|
99
99
|
}
|
|
100
100
|
export interface RelationshipsResponse {
|
|
101
101
|
customer:Customer;
|
|
102
102
|
}
|
|
103
103
|
export interface RelationshipsInputParam {
|
|
104
|
-
|
|
105
104
|
parent_id?:string;
|
|
106
105
|
payment_owner_id?:string;
|
|
107
106
|
invoice_owner_id?:string;
|
|
@@ -118,7 +117,6 @@ declare module 'chargebee' {
|
|
|
118
117
|
card?:Card;
|
|
119
118
|
}
|
|
120
119
|
export interface DeleteContactInputParam {
|
|
121
|
-
|
|
122
120
|
contact?:{id:string};
|
|
123
121
|
}
|
|
124
122
|
export interface AssignPaymentRoleResponse {
|
|
@@ -126,7 +124,6 @@ declare module 'chargebee' {
|
|
|
126
124
|
payment_source:PaymentSource;
|
|
127
125
|
}
|
|
128
126
|
export interface AssignPaymentRoleInputParam {
|
|
129
|
-
|
|
130
127
|
payment_source_id:string;
|
|
131
128
|
role:Role;
|
|
132
129
|
}
|
|
@@ -134,7 +131,6 @@ declare module 'chargebee' {
|
|
|
134
131
|
resource_migration:ResourceMigration;
|
|
135
132
|
}
|
|
136
133
|
export interface MoveInputParam {
|
|
137
|
-
|
|
138
134
|
id_at_from_site:string;
|
|
139
135
|
from_site:string;
|
|
140
136
|
}
|
|
@@ -142,7 +138,6 @@ declare module 'chargebee' {
|
|
|
142
138
|
hierarchies:Hierarchy[];
|
|
143
139
|
}
|
|
144
140
|
export interface HierarchyInputParam {
|
|
145
|
-
|
|
146
141
|
hierarchy_operation_type:'complete_hierarchy' | 'subordinates' | 'path_to_root';
|
|
147
142
|
}
|
|
148
143
|
export interface UpdatePaymentMethodResponse {
|
|
@@ -150,7 +145,6 @@ declare module 'chargebee' {
|
|
|
150
145
|
card?:Card;
|
|
151
146
|
}
|
|
152
147
|
export interface UpdatePaymentMethodInputParam {
|
|
153
|
-
|
|
154
148
|
payment_method?:{additional_information?:object,gateway_account_id?:string,issuing_country?:string,reference_id?:string,tmp_token?:string,type:Type};
|
|
155
149
|
}
|
|
156
150
|
export interface RetrieveResponse {
|
|
@@ -192,7 +186,6 @@ declare module 'chargebee' {
|
|
|
192
186
|
customer:Customer;
|
|
193
187
|
}
|
|
194
188
|
export interface ChangeBillingDateInputParam {
|
|
195
|
-
|
|
196
189
|
billing_date?:number;
|
|
197
190
|
billing_month?:number;
|
|
198
191
|
billing_date_mode?:BillingDateMode;
|
|
@@ -204,7 +197,7 @@ declare module 'chargebee' {
|
|
|
204
197
|
next_offset?:string;
|
|
205
198
|
}
|
|
206
199
|
export interface ListInputParam {
|
|
207
|
-
[key: string]:
|
|
200
|
+
[key : string]: any;
|
|
208
201
|
limit?:number;
|
|
209
202
|
offset?:string;
|
|
210
203
|
include_deleted?:boolean;
|
|
@@ -276,7 +269,6 @@ declare module 'chargebee' {
|
|
|
276
269
|
card?:Card;
|
|
277
270
|
}
|
|
278
271
|
export interface AddContactInputParam {
|
|
279
|
-
|
|
280
272
|
contact?:{email:string,enabled?:boolean,first_name?:string,id?:string,label?:string,last_name?:string,phone?:string,send_account_email?:boolean,send_billing_email?:boolean};
|
|
281
273
|
}
|
|
282
274
|
export interface ContactsForCustomerResponse {
|
|
@@ -284,7 +276,7 @@ declare module 'chargebee' {
|
|
|
284
276
|
next_offset?:string;
|
|
285
277
|
}
|
|
286
278
|
export interface ContactsForCustomerInputParam {
|
|
287
|
-
[key: string]:
|
|
279
|
+
[key : string]: any;
|
|
288
280
|
limit?:number;
|
|
289
281
|
offset?:string;
|
|
290
282
|
}
|
|
@@ -296,7 +288,6 @@ declare module 'chargebee' {
|
|
|
296
288
|
customer:Customer;
|
|
297
289
|
}
|
|
298
290
|
export interface MergeInputParam {
|
|
299
|
-
|
|
300
291
|
from_customer_id:string;
|
|
301
292
|
to_customer_id:string;
|
|
302
293
|
}
|
|
@@ -305,7 +296,6 @@ declare module 'chargebee' {
|
|
|
305
296
|
transaction:Transaction;
|
|
306
297
|
}
|
|
307
298
|
export interface CollectPaymentInputParam {
|
|
308
|
-
|
|
309
299
|
amount?:number;
|
|
310
300
|
payment_source_id?:string;
|
|
311
301
|
token_id?:string;
|
|
@@ -322,7 +312,6 @@ declare module 'chargebee' {
|
|
|
322
312
|
transaction:Transaction;
|
|
323
313
|
}
|
|
324
314
|
export interface RecordExcessPaymentInputParam {
|
|
325
|
-
|
|
326
315
|
comment?:string;
|
|
327
316
|
transaction?:{amount:number,currency_code?:string,date:number,payment_method:PaymentMethod,reference_number?:string};
|
|
328
317
|
}
|
|
@@ -331,14 +320,12 @@ declare module 'chargebee' {
|
|
|
331
320
|
card?:Card;
|
|
332
321
|
}
|
|
333
322
|
export interface UpdateContactInputParam {
|
|
334
|
-
|
|
335
323
|
contact?:{email?:string,enabled?:boolean,first_name?:string,id:string,label?:string,last_name?:string,phone?:string,send_account_email?:boolean,send_billing_email?:boolean};
|
|
336
324
|
}
|
|
337
325
|
export interface UpdateHierarchySettingsResponse {
|
|
338
326
|
customer:Customer;
|
|
339
327
|
}
|
|
340
328
|
export interface UpdateHierarchySettingsInputParam {
|
|
341
|
-
|
|
342
329
|
use_default_hierarchy_settings?:boolean;
|
|
343
330
|
parent_account_access?:{portal_download_child_invoices?:'no' | 'yes' | 'view_only',portal_edit_child_subscriptions?:'no' | 'yes' | 'view_only',send_invoice_emails?:boolean,send_payment_emails?:boolean,send_subscription_emails?:boolean};
|
|
344
331
|
child_account_access?:{portal_download_invoices?:'no' | 'yes' | 'view_only',portal_edit_subscriptions?:'yes' | 'view_only',send_invoice_emails?:boolean,send_payment_emails?:boolean,send_subscription_emails?:boolean};
|
|
@@ -348,7 +335,6 @@ declare module 'chargebee' {
|
|
|
348
335
|
card?:Card;
|
|
349
336
|
}
|
|
350
337
|
export interface UpdateBillingInfoInputParam {
|
|
351
|
-
|
|
352
338
|
vat_number?:string;
|
|
353
339
|
vat_number_prefix?:string;
|
|
354
340
|
entity_identifier_scheme?:string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface DifferentialPrice {
|
|
3
|
-
|
|
4
4
|
id:string;
|
|
5
5
|
item_price_id:string;
|
|
6
6
|
parent_item_id:string;
|
|
@@ -27,14 +27,12 @@ declare module 'chargebee' {
|
|
|
27
27
|
differential_price:DifferentialPrice;
|
|
28
28
|
}
|
|
29
29
|
export interface DeleteInputParam {
|
|
30
|
-
|
|
31
30
|
item_price_id:string;
|
|
32
31
|
}
|
|
33
32
|
export interface CreateResponse {
|
|
34
33
|
differential_price:DifferentialPrice;
|
|
35
34
|
}
|
|
36
35
|
export interface CreateInputParam {
|
|
37
|
-
|
|
38
36
|
parent_item_id:string;
|
|
39
37
|
price?:number;
|
|
40
38
|
price_in_decimal?:string;
|
|
@@ -46,7 +44,7 @@ declare module 'chargebee' {
|
|
|
46
44
|
next_offset?:string;
|
|
47
45
|
}
|
|
48
46
|
export interface ListInputParam {
|
|
49
|
-
[key: string]:
|
|
47
|
+
[key : string]: any;
|
|
50
48
|
limit?:number;
|
|
51
49
|
offset?:string;
|
|
52
50
|
item_price_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
@@ -58,14 +56,12 @@ declare module 'chargebee' {
|
|
|
58
56
|
differential_price:DifferentialPrice;
|
|
59
57
|
}
|
|
60
58
|
export interface RetrieveInputParam {
|
|
61
|
-
|
|
62
59
|
item_price_id:string;
|
|
63
60
|
}
|
|
64
61
|
export interface UpdateResponse {
|
|
65
62
|
differential_price:DifferentialPrice;
|
|
66
63
|
}
|
|
67
64
|
export interface UpdateInputParam {
|
|
68
|
-
|
|
69
65
|
item_price_id:string;
|
|
70
66
|
price?:number;
|
|
71
67
|
price_in_decimal?:string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface Discount {
|
|
3
|
-
|
|
4
4
|
id:string;
|
|
5
5
|
invoice_name?:string;
|
|
6
6
|
type:'fixed_amount' | 'percentage';
|
|
@@ -19,5 +19,4 @@ declare module 'chargebee' {
|
|
|
19
19
|
coupon_id:string;
|
|
20
20
|
index:number;
|
|
21
21
|
}
|
|
22
|
-
|
|
23
22
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
1
2
|
declare module 'chargebee' {
|
|
2
3
|
export interface EntitlementOverride {
|
|
3
|
-
|
|
4
4
|
id:string;
|
|
5
5
|
entity_id?:string;
|
|
6
6
|
entity_type?:string;
|
|
@@ -20,7 +20,7 @@ declare module 'chargebee' {
|
|
|
20
20
|
next_offset?:string;
|
|
21
21
|
}
|
|
22
22
|
export interface ListEntitlementOverrideForSubscriptionInputParam {
|
|
23
|
-
[key: string]:
|
|
23
|
+
[key : string]: any;
|
|
24
24
|
limit?:number;
|
|
25
25
|
offset?:string;
|
|
26
26
|
}
|
|
@@ -28,7 +28,6 @@ declare module 'chargebee' {
|
|
|
28
28
|
entitlement_override:EntitlementOverride;
|
|
29
29
|
}
|
|
30
30
|
export interface AddEntitlementOverrideForSubscriptionInputParam {
|
|
31
|
-
|
|
32
31
|
action?:Action;
|
|
33
32
|
entitlement_overrides?:{expires_at?:number,feature_id:string,value?:string}[];
|
|
34
33
|
}
|