chargebee 2.26.0 → 2.27.0
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 +24 -0
- package/lib/chargebee.js +1 -1
- package/lib/resources/api_endpoints.js +8 -1
- package/package.json +1 -1
- package/types/core.d.ts +1 -0
- package/types/resources/Address.d.ts +235 -5
- package/types/resources/AdvanceInvoiceSchedule.d.ts +78 -2
- package/types/resources/AttachedItem.d.ts +285 -13
- package/types/resources/Card.d.ts +375 -13
- package/types/resources/Comment.d.ts +160 -11
- package/types/resources/Contact.d.ts +54 -0
- package/types/resources/ContractTerm.d.ts +83 -0
- package/types/resources/Coupon.d.ts +628 -20
- package/types/resources/CouponCode.d.ts +46 -5
- package/types/resources/CouponSet.d.ts +194 -17
- package/types/resources/CreditNote.d.ts +1100 -44
- package/types/resources/CreditNoteEstimate.d.ts +75 -6
- package/types/resources/Customer.d.ts +1819 -73
- package/types/resources/DifferentialPrice.d.ts +246 -15
- package/types/resources/Discount.d.ts +107 -0
- package/types/resources/Download.d.ts +18 -0
- package/types/resources/EntitlementOverride.d.ts +101 -7
- package/types/resources/Estimate.d.ts +1021 -27
- package/types/resources/Event.d.ts +138 -8
- package/types/resources/Export.d.ts +622 -32
- package/types/resources/Feature.d.ts +287 -22
- package/types/resources/Gift.d.ts +296 -24
- package/types/resources/Hierarchy.d.ts +30 -0
- package/types/resources/HostedPage.d.ts +1046 -37
- package/types/resources/ImpactedItem.d.ts +41 -1
- package/types/resources/ImpactedSubscription.d.ts +36 -1
- package/types/resources/InAppSubscription.d.ts +369 -9
- package/types/resources/Invoice.d.ts +1942 -92
- package/types/resources/InvoiceEstimate.d.ts +75 -6
- package/types/resources/Item.d.ts +522 -16
- package/types/resources/ItemEntitlement.d.ts +162 -13
- package/types/resources/ItemFamily.d.ts +153 -15
- package/types/resources/ItemPrice.d.ts +951 -26
- package/types/resources/Media.d.ts +24 -0
- package/types/resources/NonSubscription.d.ts +46 -3
- package/types/resources/Order.d.ts +1172 -32
- package/types/resources/PaymentIntent.d.ts +293 -8
- package/types/resources/PaymentReferenceNumber.d.ts +24 -0
- package/types/resources/PaymentSource.d.ts +984 -55
- package/types/resources/PaymentVoucher.d.ts +252 -14
- package/types/resources/PortalSession.d.ts +154 -10
- package/types/resources/PromotionalCredit.d.ts +300 -16
- package/types/resources/Purchase.d.ts +206 -5
- package/types/resources/Quote.d.ts +1430 -62
- package/types/resources/QuoteLineGroup.d.ts +134 -5
- package/types/resources/QuotedCharge.d.ts +63 -5
- package/types/resources/QuotedSubscription.d.ts +192 -5
- package/types/resources/ResourceMigration.d.ts +68 -3
- package/types/resources/SiteMigrationDetail.d.ts +98 -5
- package/types/resources/Subscription.d.ts +2564 -137
- package/types/resources/SubscriptionEntitlement.d.ts +116 -8
- package/types/resources/SubscriptionEstimate.d.ts +36 -2
- package/types/resources/TaxWithheld.d.ts +32 -0
- package/types/resources/ThirdPartyPaymentMethod.d.ts +24 -0
- package/types/resources/TimeMachine.d.ts +82 -7
- package/types/resources/Token.d.ts +164 -7
- package/types/resources/Transaction.d.ts +567 -25
- package/types/resources/UnbilledCharge.d.ts +309 -14
- package/types/resources/Usage.d.ts +237 -13
- package/types/resources/VirtualBankAccount.d.ts +220 -17
|
@@ -1,29 +1,122 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
declare module 'chargebee' {
|
|
3
3
|
export interface SiteMigrationDetail {
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @description Id of the entity in this site.
|
|
7
|
+
|
|
8
|
+
*/
|
|
9
|
+
|
|
4
10
|
entity_id:string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @description Site name to which the record is moved in/out.
|
|
14
|
+
|
|
15
|
+
*/
|
|
16
|
+
|
|
5
17
|
other_site_name:string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @description Entity Id of the record in the other site.
|
|
21
|
+
|
|
22
|
+
*/
|
|
23
|
+
|
|
6
24
|
entity_id_at_other_site:string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @description Date in which the record is copied
|
|
28
|
+
|
|
29
|
+
*/
|
|
30
|
+
|
|
7
31
|
migrated_at:number;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @description Entity Type of the record \* order - Entity that represents an order \* customer - Entity that represents a customer \* invoice - Invoice description \* subscription - Entity that represents a subscription of a customer \* transaction - Entity that represents a transaction. \* credit_note - Credit note description
|
|
35
|
+
|
|
36
|
+
*/
|
|
37
|
+
|
|
8
38
|
entity_type:'credit_note' | 'subscription' | 'invoice' | 'transaction' | 'customer' | 'order';
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @description Status of the migration \* moving_out - Moving out from one cb site to another \* moved_in - Moved in from another cb site \* moved_out - Moved out from one cb site to another
|
|
42
|
+
|
|
43
|
+
*/
|
|
44
|
+
|
|
9
45
|
status:'moving_out' | 'moved_in' | 'moved_out';
|
|
10
46
|
}
|
|
11
47
|
export namespace SiteMigrationDetail {
|
|
12
|
-
export class SiteMigrationDetailResource {
|
|
48
|
+
export class SiteMigrationDetailResource {
|
|
49
|
+
/**
|
|
50
|
+
* @description This endpoint lists the site migration details.
|
|
51
|
+
|
|
52
|
+
*/
|
|
53
|
+
|
|
13
54
|
list(input?:ListInputParam):ChargebeeRequest<ListResponse>;
|
|
14
55
|
}
|
|
15
|
-
export interface ListResponse {
|
|
16
|
-
|
|
17
|
-
|
|
56
|
+
export interface ListResponse {
|
|
57
|
+
/**
|
|
58
|
+
* @description This endpoint lists the site migration details.
|
|
59
|
+
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
list:{site_migration_detail:SiteMigrationDetail}[];
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @description This endpoint lists the site migration details.
|
|
66
|
+
|
|
67
|
+
*/
|
|
68
|
+
|
|
69
|
+
next_offset?:string;
|
|
18
70
|
}
|
|
19
71
|
export interface ListInputParam {
|
|
20
|
-
[key : string]: any;
|
|
72
|
+
[key : string]: any;
|
|
73
|
+
/**
|
|
74
|
+
* @description The number of resources to be returned.
|
|
75
|
+
|
|
76
|
+
*/
|
|
77
|
+
|
|
21
78
|
limit?:number;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set \`offset\` to the value of \`next_offset\` obtained in the previous iteration of the API call.
|
|
82
|
+
|
|
83
|
+
*/
|
|
84
|
+
|
|
22
85
|
offset?:string;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @description Entity Id of the record in the other site.
|
|
89
|
+
|
|
90
|
+
*/
|
|
91
|
+
|
|
23
92
|
entity_id_at_other_site?:{is?:string,is_not?:string,starts_with?:string};
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @description Site name to which the record is moved in/out.
|
|
96
|
+
|
|
97
|
+
*/
|
|
98
|
+
|
|
24
99
|
other_site_name?:{is?:string,is_not?:string,starts_with?:string};
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @description Id of the entity in this site.
|
|
103
|
+
|
|
104
|
+
*/
|
|
105
|
+
|
|
25
106
|
entity_id?:{is?:string,is_not?:string,starts_with?:string};
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @description Entity Type of the record
|
|
110
|
+
|
|
111
|
+
*/
|
|
112
|
+
|
|
26
113
|
entity_type?:{in?:string,is?:'credit_note' | 'subscription' | 'invoice' | 'transaction' | 'customer' | 'order',is_not?:'credit_note' | 'subscription' | 'invoice' | 'transaction' | 'customer' | 'order',not_in?:string};
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @description Status of the migration
|
|
117
|
+
|
|
118
|
+
*/
|
|
119
|
+
|
|
27
120
|
status?:{in?:string,is?:'moving_out' | 'moved_in' | 'moved_out',is_not?:'moving_out' | 'moved_in' | 'moved_out',not_in?:string};
|
|
28
121
|
}
|
|
29
122
|
|