chargebee 2.51.0 → 2.53.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.
Files changed (89) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/lib/chargebee.js +1 -1
  3. package/lib/resources/api_endpoints.js +103 -5
  4. package/package.json +1 -1
  5. package/types/core.d.ts +6 -6
  6. package/types/index.d.ts +10 -0
  7. package/types/resources/Addon.d.ts +3 -3
  8. package/types/resources/Address.d.ts +2 -194
  9. package/types/resources/AdvanceInvoiceSchedule.d.ts +5 -67
  10. package/types/resources/AttachedItem.d.ts +1 -1
  11. package/types/resources/Attribute.d.ts +4 -1
  12. package/types/resources/BillingConfiguration.d.ts +21 -0
  13. package/types/resources/Brand.d.ts +12 -0
  14. package/types/resources/BusinessEntity.d.ts +10 -8
  15. package/types/resources/BusinessEntityTransfer.d.ts +10 -7
  16. package/types/resources/Card.d.ts +11 -311
  17. package/types/resources/Comment.d.ts +10 -125
  18. package/types/resources/Contact.d.ts +2 -44
  19. package/types/resources/ContractTerm.d.ts +4 -72
  20. package/types/resources/Coupon.d.ts +4 -41
  21. package/types/resources/CouponCode.d.ts +67 -35
  22. package/types/resources/CouponSet.d.ts +12 -121
  23. package/types/resources/CreditNote.d.ts +89 -95
  24. package/types/resources/Currency.d.ts +8 -5
  25. package/types/resources/Customer.d.ts +96 -95
  26. package/types/resources/CustomerEntitlement.d.ts +3 -1
  27. package/types/resources/DifferentialPrice.d.ts +1 -1
  28. package/types/resources/Discount.d.ts +5 -90
  29. package/types/resources/Download.d.ts +2 -14
  30. package/types/resources/Entitlement.d.ts +15 -103
  31. package/types/resources/EntitlementOverride.d.ts +4 -89
  32. package/types/resources/Estimate.d.ts +6 -14
  33. package/types/resources/Event.d.ts +24 -109
  34. package/types/resources/Export.d.ts +116 -432
  35. package/types/resources/Feature.d.ts +19 -321
  36. package/types/resources/GatewayErrorDetail.d.ts +6 -48
  37. package/types/resources/Gift.d.ts +34 -294
  38. package/types/resources/Hierarchy.d.ts +4 -24
  39. package/types/resources/HostedPage.d.ts +4 -4
  40. package/types/resources/ImpactedCustomer.d.ts +23 -0
  41. package/types/resources/ImpactedItem.d.ts +4 -36
  42. package/types/resources/ImpactedItemPrice.d.ts +5 -2
  43. package/types/resources/ImpactedSubscription.d.ts +3 -30
  44. package/types/resources/InAppSubscription.d.ts +13 -355
  45. package/types/resources/Invoice.d.ts +112 -126
  46. package/types/resources/InvoiceEstimate.d.ts +1 -1
  47. package/types/resources/Item.d.ts +4 -11
  48. package/types/resources/ItemEntitlement.d.ts +15 -155
  49. package/types/resources/ItemFamily.d.ts +3 -3
  50. package/types/resources/ItemPrice.d.ts +7 -7
  51. package/types/resources/NonSubscription.d.ts +9 -6
  52. package/types/resources/OmnichannelOneTimeOrder.d.ts +90 -0
  53. package/types/resources/OmnichannelOneTimeOrderItem.d.ts +24 -0
  54. package/types/resources/OmnichannelSubscription.d.ts +2 -2
  55. package/types/resources/OmnichannelSubscriptionItem.d.ts +1 -1
  56. package/types/resources/OmnichannelSubscriptionItemScheduledChange.d.ts +1 -1
  57. package/types/resources/Order.d.ts +3 -3
  58. package/types/resources/PaymentIntent.d.ts +9 -255
  59. package/types/resources/PaymentReferenceNumber.d.ts +3 -20
  60. package/types/resources/PaymentSource.d.ts +4 -4
  61. package/types/resources/PaymentVoucher.d.ts +22 -205
  62. package/types/resources/Plan.d.ts +3 -3
  63. package/types/resources/PortalSession.d.ts +4 -146
  64. package/types/resources/PriceVariant.d.ts +2 -2
  65. package/types/resources/PricingPageSession.d.ts +2 -2
  66. package/types/resources/PromotionalCredit.d.ts +12 -215
  67. package/types/resources/Purchase.d.ts +5 -3
  68. package/types/resources/Quote.d.ts +32 -14
  69. package/types/resources/QuotedCharge.d.ts +7 -0
  70. package/types/resources/QuotedRamp.d.ts +11 -16
  71. package/types/resources/Ramp.d.ts +7 -7
  72. package/types/resources/RecordedPurchase.d.ts +8 -1
  73. package/types/resources/ResourceMigration.d.ts +2 -54
  74. package/types/resources/SiteMigrationDetail.d.ts +13 -55
  75. package/types/resources/Subscription.d.ts +33 -29
  76. package/types/resources/SubscriptionEntitlement.d.ts +6 -106
  77. package/types/resources/SubscriptionEntitlementsCreatedDetail.d.ts +12 -0
  78. package/types/resources/SubscriptionEntitlementsUpdatedDetail.d.ts +12 -0
  79. package/types/resources/SubscriptionEstimate.d.ts +14 -11
  80. package/types/resources/TaxWithheld.d.ts +14 -26
  81. package/types/resources/ThirdPartyPaymentMethod.d.ts +2 -19
  82. package/types/resources/TimeMachine.d.ts +3 -64
  83. package/types/resources/Token.d.ts +3 -60
  84. package/types/resources/Transaction.d.ts +8 -8
  85. package/types/resources/UnbilledCharge.d.ts +1 -1
  86. package/types/resources/Usage.d.ts +21 -165
  87. package/types/resources/UsageFile.d.ts +5 -5
  88. package/types/resources/VirtualBankAccount.d.ts +1 -1
  89. package/types/resources/WebhookEndpoint.d.ts +117 -0
@@ -1,239 +1,99 @@
1
1
  ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
2
3
  declare module 'chargebee' {
3
4
  export interface ItemEntitlement {
4
5
 
5
- /**
6
- * @description A unique identifier for the &#x60;item_entitlement&#x60;. This is auto-generated.
7
6
 
8
- */
9
-
10
7
  id:string;
11
-
12
- /**
13
- * @description The &#x60;id&#x60; of the &#x60;item&#x60; to which this entitlement belongs.
14
8
 
15
- */
16
-
17
9
  item_id?:string;
18
-
19
- /**
20
- * @description The &#x60;type&#x60; of the &#x60;item&#x60; to which this entitlement belongs. \* charge - Charge \* item - Item \* subscription - Subscription \* addon - Addon \* plan - Plan
21
10
 
22
- */
23
-
24
- item_type?:'item' | 'charge' | 'addon' | 'subscription' | 'plan';
25
-
26
- /**
27
- * @description The &#x60;id&#x60; of the feature towards which this entitlement has been granted.
11
+ item_type?:'plan' | 'addon' | 'charge' | 'subscription' | 'item';
28
12
 
29
- */
30
-
31
13
  feature_id?:string;
32
-
33
- /**
34
- * @description The &#x60;name&#x60; of the &#x60;feature&#x60; towards which this entitlement has been granted.
35
14
 
36
- */
37
-
38
15
  feature_name?:string;
39
-
40
- /**
41
- * @description The level of entitlement that the item has towards the feature. The possible values depend on the value of &#x60;feature.type&#x60;:
42
16
 
43
- * When &#x60;feature.type&#x60; is &#x60;quantity&#x60; and:
44
- * If &#x60;feature.levels[is_unlimited]&#x60; is not &#x60;true&#x60; for any one of &#x60;feature.levels[]&#x60;, then the value can be any one of &#x60;feature.levels[value][]&#x60;.
45
- * If &#x60;feature.levels[is_unlimited]&#x60; is &#x60;true&#x60; for one of the &#x60;feature.levels[]&#x60;, then the value can also be:
46
- * any one of &#x60;feature.levels[value][]&#x60;
47
- * or it can be &#x60;unlimited&#x60; (case-insensitive), indicating unlimited entitlement.
48
- * When &#x60;type&#x60; is &#x60;range&#x60; and:
49
- * If &#x60;feature.levels[is_unlimited]&#x60; is not &#x60;true&#x60; for any one of &#x60;feature.levels[]&#x60;, then the value can be any whole number between &#x60;levels[value][0]&#x60; and &#x60;levels[value][1]&#x60; (inclusive).
50
- * If &#x60;feature.levels[is_unlimited]&#x60; is &#x60;true&#x60; for one of the &#x60;feature.levels[]&#x60;, then the value can be:
51
- * any whole number equal to or greater than &#x60;levels[value][0]&#x60;
52
- * or it can be &#x60;unlimited&#x60; (case-insensitive), indicating unlimited entitlement.
53
- * When &#x60;type&#x60; is &#x60;custom&#x60;, then the value can be any one of &#x60;feature.levels[value][]&#x60;.
54
- * When &#x60;type&#x60; is &#x60;switch&#x60;, then the value is set as &#x60;available&#x60; or &#x60;true&#x60;.
55
-
56
- */
57
-
58
17
  value?:string;
59
-
60
- /**
61
- * @description The display name for the entitlement level. The default values are auto-generated based on &#x60;feature.type&#x60; as follows:
62
18
 
63
- * When &#x60;feature.type&#x60; is &#x60;quantity&#x60; or &#x60;range&#x60;, then &#x60;name&#x60; is the space-separated concatenation of &#x60;value&#x60; and the pluralized version of &#x60;feature.unit&#x60;. For example, if &#x60;value&#x60; is &#x60;20&#x60; and &#x60;feature.unit&#x60; is &#x60;user&#x60;, then &#x60;name&#x60; becomes &#x60;20 users&#x60;.
64
- * When &#x60;feature.type&#x60; is &#x60;custom&#x60;, then &#x60;name&#x60; is the same as &#x60;value&#x60;.a
65
-
66
- */
67
-
68
19
  name?:string;
20
+
69
21
  }
70
22
  export namespace ItemEntitlement {
71
23
  export class ItemEntitlementResource {
72
- /**
73
- * @description **Deprecated**
74
-
75
- This endpoint remains operational, but we recommend transitioning to its successor: [List entitlements](entitlements?prod_cat_ver&#x3D;2#list_all_entitlements).
76
- Retrieves a list of all the &#x60;item_entitlements&#x60; for the &#x60;item&#x60; specified.
77
-
78
- */
79
-
80
24
  item_entitlements_for_item(item_id:string, input?:ItemEntitlementsForItemInputParam):ChargebeeRequest<ItemEntitlementsForItemResponse>;
81
25
 
82
- /**
83
- * @description **Deprecated**
84
-
85
- This endpoint remains operational, but we recommend transitioning to its successor: [List entitlements](entitlements?prod_cat_ver&#x3D;2#list_all_entitlements).
86
- Retrieves a list of all the &#x60;item_entitlement&#x60;s for the &#x60;feature&#x60; specified.
87
-
88
- */
89
-
90
26
  item_entitlements_for_feature(feature_id:string, input?:ItemEntitlementsForFeatureInputParam):ChargebeeRequest<ItemEntitlementsForFeatureResponse>;
91
27
 
92
- /**
93
- * @description **Deprecated**
94
-
95
- This endpoint remains operational, but we recommend transitioning to its successor: [Manage entitlements](entitlements?prod_cat_ver&#x3D;2#upsert_or_remove_entitlements_for_a_feature).
96
-
97
- Upserts or removes a set of &#x60;item_entitlement&#x60;s for an &#x60;feature&#x60; depending on the &#x60;action&#x60; specified. The API returns the upserted or deleted &#x60;item_entitlements&#x60; after successfully completing the operation. The operation returns an error when the first &#x60;item_entitlement&#x60; fails to be processed. Either all the &#x60;item_entitlement&#x60;s provided in the request are processed or none.
98
-
99
- */
100
-
101
28
  add_item_entitlements(feature_id:string, input:AddItemEntitlementsInputParam):ChargebeeRequest<AddItemEntitlementsResponse>;
102
29
 
103
- /**
104
- * @description **Deprecated**
105
-
106
- This endpoint remains operational, but we recommend transitioning to its successor: [Manage entitlements](entitlements?prod_cat_ver&#x3D;2#upsert_or_remove_entitlements_for_a_feature).
107
-
108
- Upserts or removes a set of &#x60;item_entitlements&#x60; for an [item](items?prod_cat_ver&#x3D;2) depending on the &#x60;action&#x60; specified. The API returns the upserted or deleted &#x60;item_entitlements&#x60; after successfully completing the operation. The operation returns an error when the first &#x60;item_entitlement&#x60; fails to be processed. Either all the &#x60;item_entitlement&#x60;s provided in the request are processed or none.
109
-
110
- */
111
-
112
30
  upsert_or_remove_item_entitlements_for_item(item_id:string, input:UpsertOrRemoveItemEntitlementsForItemInputParam):ChargebeeRequest<UpsertOrRemoveItemEntitlementsForItemResponse>;
113
31
  }
114
32
  export interface ItemEntitlementsForItemResponse {
115
- /**
116
- * @description **Deprecated**
117
-
118
- This endpoint remains operational, but we recommend transitioning to its successor: [List entitlements](entitlements?prod_cat_ver&#x3D;2#list_all_entitlements).
119
- Retrieves a list of all the &#x60;item_entitlements&#x60; for the &#x60;item&#x60; specified.
120
-
121
- */
122
-
123
33
  list:{item_entitlement:ItemEntitlement}[];
124
34
 
125
- /**
126
- * @description **Deprecated**
127
-
128
- This endpoint remains operational, but we recommend transitioning to its successor: [List entitlements](entitlements?prod_cat_ver&#x3D;2#list_all_entitlements).
129
- Retrieves a list of all the &#x60;item_entitlements&#x60; for the &#x60;item&#x60; specified.
130
-
131
- */
132
-
133
35
  next_offset?:string;
134
36
  }
135
37
  export interface ItemEntitlementsForItemInputParam {
136
38
  [key : string]: any;
137
39
  /**
138
- * @description **Deprecated**
139
-
140
- This endpoint remains operational, but we recommend transitioning to its successor: [List entitlements](entitlements?prod_cat_ver&#x3D;2#list_all_entitlements).
141
- Retrieves a list of all the &#x60;item_entitlements&#x60; for the &#x60;item&#x60; specified.
40
+ * @description The number of resources to be returned.
142
41
 
143
42
  */
144
43
 
145
44
  limit?:number;
146
45
 
147
46
  /**
148
- * @description **Deprecated**
149
-
150
- This endpoint remains operational, but we recommend transitioning to its successor: [List entitlements](entitlements?prod_cat_ver&#x3D;2#list_all_entitlements).
151
- Retrieves a list of all the &#x60;item_entitlements&#x60; for the &#x60;item&#x60; specified.
47
+ * @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set &#x27;offset&#x27; to the value of &#x27;next_offset&#x27; obtained in the previous iteration of the API call.
152
48
 
153
49
  */
154
50
 
155
51
  offset?:string;
52
+
53
+ include_drafts?:boolean;
54
+
55
+ embed?:string;
156
56
  }
157
57
  export interface ItemEntitlementsForFeatureResponse {
158
- /**
159
- * @description **Deprecated**
160
-
161
- This endpoint remains operational, but we recommend transitioning to its successor: [List entitlements](entitlements?prod_cat_ver&#x3D;2#list_all_entitlements).
162
- Retrieves a list of all the &#x60;item_entitlement&#x60;s for the &#x60;feature&#x60; specified.
163
-
164
- */
165
-
166
58
  list:{item_entitlement:ItemEntitlement}[];
167
59
 
168
- /**
169
- * @description **Deprecated**
170
-
171
- This endpoint remains operational, but we recommend transitioning to its successor: [List entitlements](entitlements?prod_cat_ver&#x3D;2#list_all_entitlements).
172
- Retrieves a list of all the &#x60;item_entitlement&#x60;s for the &#x60;feature&#x60; specified.
173
-
174
- */
175
-
176
60
  next_offset?:string;
177
61
  }
178
62
  export interface ItemEntitlementsForFeatureInputParam {
179
63
  [key : string]: any;
180
64
  /**
181
- * @description **Deprecated**
182
-
183
- This endpoint remains operational, but we recommend transitioning to its successor: [List entitlements](entitlements?prod_cat_ver&#x3D;2#list_all_entitlements).
184
- Retrieves a list of all the &#x60;item_entitlement&#x60;s for the &#x60;feature&#x60; specified.
65
+ * @description The number of resources to be returned.
185
66
 
186
67
  */
187
68
 
188
69
  limit?:number;
189
70
 
190
71
  /**
191
- * @description **Deprecated**
192
-
193
- This endpoint remains operational, but we recommend transitioning to its successor: [List entitlements](entitlements?prod_cat_ver&#x3D;2#list_all_entitlements).
194
- Retrieves a list of all the &#x60;item_entitlement&#x60;s for the &#x60;feature&#x60; specified.
72
+ * @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set &#x27;offset&#x27; to the value of &#x27;next_offset&#x27; obtained in the previous iteration of the API call.
195
73
 
196
74
  */
197
75
 
198
76
  offset?:string;
77
+
78
+ include_drafts?:boolean;
199
79
  }
200
80
  export interface AddItemEntitlementsResponse {
201
81
  item_entitlement:ItemEntitlement;
202
82
  }
203
83
  export interface AddItemEntitlementsInputParam {
204
84
 
205
- /**
206
- * @description The specific action to be performed for each &#x60;item_entitlement&#x60; specified. \* remove - Deletes the &#x60;item_entitlement&#x60; for the &#x60;feature_id&#x60; and &#x60;item_id&#x60; combination, if it exists. \* upsert - If the &#x60;item_entitlement&#x60; already exists for the &#x60;feature_id&#x60; and &#x60;item_id&#x60; combination, the &#x60;value&#x60; of the &#x60;item_entitlement&#x60; is updated. If it doesn&#x27;t exist, a new &#x60;item_entitelment&#x60; is created.
207
-
208
- */
85
+ item_entitlements:{item_id:string,item_type?:'plan' | 'addon' | 'charge' | 'subscription' | 'item',value?:string}[];
209
86
 
210
87
  action:Action;
211
-
212
- /**
213
- * @description Parameters for item_entitlements
214
-
215
- */
216
-
217
- item_entitlements?:{item_id:string,item_type?:'item' | 'charge' | 'addon' | 'subscription' | 'plan',value?:string}[];
218
88
  }
219
89
  export interface UpsertOrRemoveItemEntitlementsForItemResponse {
220
90
  item_entitlement:ItemEntitlement;
221
91
  }
222
92
  export interface UpsertOrRemoveItemEntitlementsForItemInputParam {
223
93
 
224
- /**
225
- * @description The specific action to be performed for each &#x60;item_entitlement&#x60; specified. \* remove - Deletes the &#x60;item_entitlement&#x60; for the &#x60;feature_id&#x60; and &#x60;item_id&#x60; combination, if it exists. \* upsert - If the &#x60;item_entitlement&#x60; already exists for the &#x60;feature_id&#x60; and &#x60;item_id&#x60; combination, the &#x60;value&#x60; of the &#x60;item_entitlement&#x60; is updated. If it doesn&#x27;t exist, a new &#x60;item_entitelment&#x60; is created.
226
-
227
- */
94
+ item_entitlements:{feature_id:string,value?:string}[];
228
95
 
229
96
  action:Action;
230
-
231
- /**
232
- * @description Parameters for item_entitlements
233
-
234
- */
235
-
236
- item_entitlements?:{feature_id:string,value?:string}[];
237
97
  }
238
98
 
239
99
  }
@@ -39,7 +39,7 @@ declare module 'chargebee' {
39
39
  item_family:ItemFamily;
40
40
  }
41
41
  export interface CreateInputParam {
42
- [key : string] : any;
42
+
43
43
  id:string;
44
44
 
45
45
  name:string;
@@ -67,7 +67,7 @@ declare module 'chargebee' {
67
67
  limit?:number;
68
68
 
69
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.
70
+ * @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set &#x27;offset&#x27; to the value of &#x27;next_offset&#x27; obtained in the previous iteration of the API call.
71
71
 
72
72
  */
73
73
 
@@ -111,7 +111,7 @@ The ID of the business entity created for the site. For Product Catalog 1.0, all
111
111
  item_family:ItemFamily;
112
112
  }
113
113
  export interface UpdateInputParam {
114
- [key : string] : any;
114
+
115
115
  name?:string;
116
116
 
117
117
  description?:string;
@@ -111,7 +111,7 @@ declare module 'chargebee' {
111
111
  item_price:ItemPrice;
112
112
  }
113
113
  export interface CreateInputParam {
114
- [key : string] : any;
114
+
115
115
  tax_detail?:{avalara_sale_type?:AvalaraSaleType,avalara_service_type?:number,avalara_tax_code?:string,avalara_transaction_type?:number,hsn_code?:string,tax_profile_id?:string,taxjar_product_code?:string};
116
116
 
117
117
  accounting_detail?:{accounting_category1?:string,accounting_category2?:string,accounting_category3?:string,accounting_category4?:string,accounting_code?:string,sku?:string};
@@ -260,7 +260,7 @@ declare module 'chargebee' {
260
260
  limit?:number;
261
261
 
262
262
  /**
263
- * @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.
263
+ * @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set &#x27;offset&#x27; to the value of &#x27;next_offset&#x27; obtained in the previous iteration of the API call.
264
264
 
265
265
  */
266
266
 
@@ -384,7 +384,7 @@ The ID of the business entity created for the site. For Product Catalog 1.0, all
384
384
 
385
385
  channel?:{in?:string,is?:'web' | 'app_store' | 'play_store',is_not?:'web' | 'app_store' | 'play_store',not_in?:string};
386
386
 
387
- sort_by?:{asc?:'name' | 'id' | 'updated_at',desc?:'name' | 'id' | 'updated_at'};
387
+ sort_by?:object;
388
388
  }
389
389
  export interface DeleteResponse {
390
390
  item_price:ItemPrice;
@@ -405,13 +405,13 @@ The ID of the business entity created for the site. For Product Catalog 1.0, all
405
405
  limit?:number;
406
406
 
407
407
  /**
408
- * @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.
408
+ * @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set &#x27;offset&#x27; to the value of &#x27;next_offset&#x27; obtained in the previous iteration of the API call.
409
409
 
410
410
  */
411
411
 
412
412
  offset?:string;
413
413
 
414
- sort_by?:{asc?:'name' | 'id' | 'updated_at',desc?:'name' | 'id' | 'updated_at'};
414
+ sort_by?:object;
415
415
  }
416
416
  export interface FindApplicableItemPricesResponse {
417
417
  list:{item_price:ItemPrice}[];
@@ -428,7 +428,7 @@ The ID of the business entity created for the site. For Product Catalog 1.0, all
428
428
  limit?:number;
429
429
 
430
430
  /**
431
- * @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.
431
+ * @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set &#x27;offset&#x27; to the value of &#x27;next_offset&#x27; obtained in the previous iteration of the API call.
432
432
 
433
433
  */
434
434
 
@@ -436,7 +436,7 @@ The ID of the business entity created for the site. For Product Catalog 1.0, all
436
436
 
437
437
  item_id?:string;
438
438
 
439
- sort_by?:{asc?:'name' | 'id' | 'updated_at',desc?:'name' | 'id' | 'updated_at'};
439
+ sort_by?:object;
440
440
  }
441
441
  export interface Tier {
442
442
  starting_unit:number;
@@ -1,14 +1,17 @@
1
1
  ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
2
3
  declare module 'chargebee' {
3
4
  export interface NonSubscription {
4
5
 
6
+
5
7
  app_id:string;
6
-
8
+
7
9
  invoice_id:string;
8
-
10
+
9
11
  customer_id?:string;
10
-
12
+
11
13
  charge_id:string;
14
+
12
15
  }
13
16
  export namespace NonSubscription {
14
17
  export class NonSubscriptionResource {
@@ -19,11 +22,11 @@ declare module 'chargebee' {
19
22
  }
20
23
  export interface ProcessReceiptInputParam {
21
24
 
22
- receipt:string;
23
-
24
- product:{currency_code:string,id:string,name?:string,price:number,price_in_decimal?:string,type:'non_consumable' | 'consumable' | 'non_renewing_subscription'};
25
+ product:{currency_code:string,id:string,name?:string,price:number,price_in_decimal?:string,type:'consumable' | 'non_consumable' | 'non_renewing_subscription'};
25
26
 
26
27
  customer?:{email?:string,first_name?:string,id?:string,last_name?:string};
28
+
29
+ receipt:string;
27
30
  }
28
31
 
29
32
  }
@@ -0,0 +1,90 @@
1
+ ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+ declare module 'chargebee' {
4
+ export interface OmnichannelOneTimeOrder {
5
+
6
+
7
+ id:string;
8
+
9
+ app_id:string;
10
+
11
+ customer_id?:string;
12
+
13
+ id_at_source:string;
14
+
15
+ origin?:string;
16
+
17
+ source:'apple_app_store' | 'google_play_store';
18
+
19
+ created_at:number;
20
+
21
+ resource_version?:number;
22
+
23
+ omnichannel_one_time_order_items:OmnichannelOneTimeOrderItem[];
24
+
25
+ purchase_transaction?:OmnichannelOneTimeOrder.OmnichannelTransaction;
26
+
27
+ }
28
+ export namespace OmnichannelOneTimeOrder {
29
+ export class OmnichannelOneTimeOrderResource {
30
+ retrieve(omnichannel_one_time_order_id:string):ChargebeeRequest<RetrieveResponse>;
31
+
32
+ list(input?:ListInputParam):ChargebeeRequest<ListResponse>;
33
+ }
34
+ export interface RetrieveResponse {
35
+ omnichannel_one_time_order:OmnichannelOneTimeOrder;
36
+ }
37
+
38
+ export interface ListResponse {
39
+ list:{omnichannel_one_time_order:OmnichannelOneTimeOrder}[];
40
+
41
+ next_offset?:string;
42
+ }
43
+ export interface ListInputParam {
44
+ [key : string]: any;
45
+ /**
46
+ * @description The number of resources to be returned.
47
+
48
+ */
49
+
50
+ limit?:number;
51
+
52
+ /**
53
+ * @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set &#x27;offset&#x27; to the value of &#x27;next_offset&#x27; obtained in the previous iteration of the API call.
54
+
55
+ */
56
+
57
+ offset?:string;
58
+
59
+ source?:{in?:string,is?:'apple_app_store' | 'google_play_store',is_not?:'apple_app_store' | 'google_play_store',not_in?:string};
60
+
61
+ /**
62
+ * @description Chargebee Customer External Identifier
63
+
64
+ */
65
+
66
+ customer_id?:{is?:string,is_not?:string,starts_with?:string};
67
+ }
68
+ export interface OmnichannelTransaction {
69
+ id:string;
70
+
71
+ id_at_source:string;
72
+
73
+ app_id:string;
74
+
75
+ price_currency?:string;
76
+
77
+ price_units?:number;
78
+
79
+ price_nanos?:number;
80
+
81
+ type:'purchase' | 'renewal';
82
+
83
+ transacted_at?:number;
84
+
85
+ created_at:number;
86
+
87
+ resource_version?:number;
88
+ }
89
+ }
90
+ }
@@ -0,0 +1,24 @@
1
+ ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+ declare module 'chargebee' {
4
+ export interface OmnichannelOneTimeOrderItem {
5
+
6
+
7
+ id:string;
8
+
9
+ item_id_at_source:string;
10
+
11
+ item_type_at_source?:string;
12
+
13
+ quantity?:number;
14
+
15
+ cancelled_at?:number;
16
+
17
+ cancellation_reason?:'customer_cancelled' | 'customer_did_not_consent_to_price_increase' | 'refunded_due_to_app_issue' | 'refunded_for_other_reason' | 'merchant_revoked';
18
+
19
+ created_at:number;
20
+
21
+ resource_version?:number;
22
+
23
+ }
24
+ }
@@ -50,7 +50,7 @@ declare module 'chargebee' {
50
50
  limit?:number;
51
51
 
52
52
  /**
53
- * @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.
53
+ * @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set &#x27;offset&#x27; to the value of &#x27;next_offset&#x27; obtained in the previous iteration of the API call.
54
54
 
55
55
  */
56
56
 
@@ -80,7 +80,7 @@ declare module 'chargebee' {
80
80
  limit?:number;
81
81
 
82
82
  /**
83
- * @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.
83
+ * @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set &#x27;offset&#x27; to the value of &#x27;next_offset&#x27; obtained in the previous iteration of the API call.
84
84
 
85
85
  */
86
86
 
@@ -58,7 +58,7 @@ declare module 'chargebee' {
58
58
  limit?:number;
59
59
 
60
60
  /**
61
- * @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.
61
+ * @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set &#x27;offset&#x27; to the value of &#x27;next_offset&#x27; obtained in the previous iteration of the API call.
62
62
 
63
63
  */
64
64
 
@@ -10,7 +10,7 @@ declare module 'chargebee' {
10
10
 
11
11
  scheduled_at:number;
12
12
 
13
- change_type:'downgrade';
13
+ change_type:'downgrade' | 'pause';
14
14
 
15
15
  created_at:number;
16
16
 
@@ -316,7 +316,7 @@ declare module 'chargebee' {
316
316
  limit?:number;
317
317
 
318
318
  /**
319
- * @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.
319
+ * @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set &#x27;offset&#x27; to the value of &#x27;next_offset&#x27; obtained in the previous iteration of the API call.
320
320
 
321
321
  */
322
322
 
@@ -429,7 +429,7 @@ declare module 'chargebee' {
429
429
 
430
430
  original_order_id?:{is?:string,is_not?:string,starts_with?:string};
431
431
 
432
- sort_by?:{asc?:'created_at' | 'updated_at',desc?:'created_at' | 'updated_at'};
432
+ sort_by?:object;
433
433
  }
434
434
  export interface OrdersForInvoiceResponse {
435
435
  list:{order:Order}[];
@@ -446,7 +446,7 @@ declare module 'chargebee' {
446
446
  limit?:number;
447
447
 
448
448
  /**
449
- * @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.
449
+ * @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set &#x27;offset&#x27; to the value of &#x27;next_offset&#x27; obtained in the previous iteration of the API call.
450
450
 
451
451
  */
452
452