chargebee 2.42.0 → 2.44.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.
@@ -0,0 +1,96 @@
1
+ ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+ declare module 'chargebee' {
4
+ export interface OmnichannelSubscription {
5
+
6
+
7
+ id:string;
8
+
9
+ id_at_source:string;
10
+
11
+ app_id:string;
12
+
13
+ source:'apple_app_store';
14
+
15
+ customer_id?:string;
16
+
17
+ created_at:number;
18
+
19
+ omnichannel_subscription_items:OmnichannelSubscription.OmnichannelSubscriptionItem[];
20
+
21
+ }
22
+ export namespace OmnichannelSubscription {
23
+ export class OmnichannelSubscriptionResource {
24
+ retrieve(omnichannel_subscription_id:string):ChargebeeRequest<RetrieveResponse>;
25
+
26
+ list(input?:ListInputParam):ChargebeeRequest<ListResponse>;
27
+
28
+ omnichannel_transactions_for_omnichannel_subscription(omnichannel_subscription_id:string, input?:Omnichannel_transactionsForOmnichannelSubscriptionInputParam):ChargebeeRequest<OmnichannelTransactionsForOmnichannelSubscriptionResponse>;
29
+ }
30
+ export interface RetrieveResponse {
31
+ omnichannel_subscription:OmnichannelSubscription;
32
+ }
33
+
34
+ export interface ListResponse {
35
+ list:{omnichannel_subscription:OmnichannelSubscription}[];
36
+
37
+ next_offset?:string;
38
+ }
39
+ export interface ListInputParam {
40
+ [key : string]: any;
41
+ /**
42
+ * @description The number of resources to be returned.
43
+
44
+ */
45
+
46
+ limit?:number;
47
+
48
+ /**
49
+ * @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set \&#x60;offset\&#x60; to the value of \&#x60;next_offset\&#x60; obtained in the previous iteration of the API call.
50
+
51
+ */
52
+
53
+ offset?:string;
54
+ }
55
+ export interface OmnichannelTransactionsForOmnichannelSubscriptionResponse {
56
+ list:{omnichannel_transaction:OmnichannelTransaction}[];
57
+
58
+ next_offset?:string;
59
+ }
60
+ export interface Omnichannel_transactionsForOmnichannelSubscriptionInputParam {
61
+ [key : string]: any;
62
+ /**
63
+ * @description The number of resources to be returned.
64
+
65
+ */
66
+
67
+ limit?:number;
68
+
69
+ /**
70
+ * @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set \&#x60;offset\&#x60; to the value of \&#x60;next_offset\&#x60; obtained in the previous iteration of the API call.
71
+
72
+ */
73
+
74
+ offset?:string;
75
+ }
76
+ export interface OmnichannelSubscriptionItem {
77
+ id:string;
78
+
79
+ id_at_source:string;
80
+
81
+ status:'active' | 'expired' | 'cancelled';
82
+
83
+ current_term_start?:number;
84
+
85
+ current_term_end?:number;
86
+
87
+ expired_at?:number;
88
+
89
+ expiration_reason?:'billing_error' | 'product_not_available' | 'other';
90
+
91
+ cancelled_at?:number;
92
+
93
+ cancellation_reason?:'customer_cancelled' | 'customer_did_not_consent_to_price_increase';
94
+ }
95
+ }
96
+ }
@@ -0,0 +1,26 @@
1
+ ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+ declare module 'chargebee' {
4
+ export interface OmnichannelTransaction {
5
+
6
+
7
+ id:string;
8
+
9
+ id_at_source:string;
10
+
11
+ app_id:string;
12
+
13
+ price_currency:string;
14
+
15
+ price_units:number;
16
+
17
+ price_nanos:number;
18
+
19
+ type:'purchase' | 'renewal';
20
+
21
+ transacted_at:number;
22
+
23
+ created_at:number;
24
+
25
+ }
26
+ }
@@ -0,0 +1,35 @@
1
+ ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+ declare module 'chargebee' {
4
+ export interface PaymentScheduleEstimate {
5
+
6
+
7
+ id:string;
8
+
9
+ scheme_id:string;
10
+
11
+ entity_type:'invoice';
12
+
13
+ entity_id?:string;
14
+
15
+ amount:number;
16
+
17
+ currency_code?:string;
18
+
19
+ schedule_entries?:PaymentScheduleEstimate.ScheduleEntry[];
20
+
21
+ }
22
+ export namespace PaymentScheduleEstimate {
23
+
24
+
25
+ export interface ScheduleEntry {
26
+ id:string;
27
+
28
+ date:number;
29
+
30
+ amount:number;
31
+
32
+ status:'posted' | 'payment_due' | 'paid';
33
+ }
34
+ }
35
+ }
@@ -6,6 +6,8 @@ declare module 'chargebee' {
6
6
 
7
7
  id:string;
8
8
 
9
+ name?:string;
10
+
9
11
  description?:string;
10
12
 
11
13
  number_of_schedules:number;
@@ -36,13 +38,15 @@ declare module 'chargebee' {
36
38
  }
37
39
  export interface CreateInputParam {
38
40
 
41
+ flexible_schedules?:{amount_percentage?:number,period?:number}[];
42
+
39
43
  number_of_schedules:number;
40
44
 
41
45
  period_unit:'day' | 'week' | 'month';
42
46
 
43
47
  period?:number;
44
48
 
45
- description?:string;
49
+ name:string;
46
50
  }
47
51
  export interface RetrieveResponse {
48
52
  payment_schedule_scheme:PaymentScheduleScheme;