chargebee 2.34.0 → 2.35.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 +64 -0
- package/lib/chargebee.js +1 -1
- package/lib/resources/api_endpoints.js +98 -0
- package/package.json +1 -1
- package/types/core.d.ts +1 -1
- package/types/index.d.ts +7 -0
- package/types/resources/Customer.d.ts +36 -4
- package/types/resources/Estimate.d.ts +26 -0
- package/types/resources/Export.d.ts +9 -0
- package/types/resources/Installment.d.ts +2 -0
- package/types/resources/InstallmentConfig.d.ts +7 -0
- package/types/resources/InstallmentDetail.d.ts +34 -0
- package/types/resources/ItemPrice.d.ts +38 -1
- package/types/resources/PaymentSource.d.ts +5 -0
- package/types/resources/PriceVariant.d.ts +295 -0
- package/types/resources/Ramp.d.ts +744 -0
- package/types/resources/Session.d.ts +41 -0
- package/types/resources/UnbilledCharge.d.ts +2 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
declare module 'chargebee' {
|
|
3
|
+
export interface Session {
|
|
4
|
+
|
|
5
|
+
id:string;
|
|
6
|
+
|
|
7
|
+
content?:string;
|
|
8
|
+
|
|
9
|
+
created_at:number;
|
|
10
|
+
|
|
11
|
+
expires_at:number;
|
|
12
|
+
}
|
|
13
|
+
export namespace Session {
|
|
14
|
+
export class SessionResource {
|
|
15
|
+
create(input?:CreateInputParam):ChargebeeRequest<CreateResponse>;
|
|
16
|
+
|
|
17
|
+
retrieve(session_id:string, input?:RetrieveInputParam):ChargebeeRequest<RetrieveResponse>;
|
|
18
|
+
}
|
|
19
|
+
export interface CreateResponse {
|
|
20
|
+
session:Session;
|
|
21
|
+
}
|
|
22
|
+
export interface CreateInputParam {
|
|
23
|
+
|
|
24
|
+
customer?:{id?:string};
|
|
25
|
+
|
|
26
|
+
subscription?:{id?:string};
|
|
27
|
+
}
|
|
28
|
+
export interface RetrieveResponse {
|
|
29
|
+
session:Session;
|
|
30
|
+
|
|
31
|
+
customer?:Customer;
|
|
32
|
+
|
|
33
|
+
subscription?:Subscription;
|
|
34
|
+
}
|
|
35
|
+
export interface RetrieveInputParam {
|
|
36
|
+
|
|
37
|
+
id?:string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
}
|