chargebee 2.28.0 → 2.30.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 (54) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.yml +81 -0
  2. package/.github/ISSUE_TEMPLATE/config.yml +6 -0
  3. package/.github/ISSUE_TEMPLATE/feature_request.yml +34 -0
  4. package/.github/PULL_REQUEST_TEMPLATE.md +8 -0
  5. package/.github/workflows/greeting.yml +47 -0
  6. package/CHANGELOG.md +59 -0
  7. package/SECURITY.md +8 -0
  8. package/lib/chargebee.js +1 -1
  9. package/lib/resources/api_endpoints.js +0 -14
  10. package/package.json +1 -1
  11. package/types/core.d.ts +4 -4
  12. package/types/resources/AttachedItem.d.ts +88 -88
  13. package/types/resources/Card.d.ts +68 -68
  14. package/types/resources/Comment.d.ts +50 -44
  15. package/types/resources/Coupon.d.ts +242 -207
  16. package/types/resources/CouponSet.d.ts +72 -68
  17. package/types/resources/CreditNote.d.ts +612 -236
  18. package/types/resources/Customer.d.ts +655 -513
  19. package/types/resources/DifferentialPrice.d.ts +99 -74
  20. package/types/resources/EntitlementOverride.d.ts +27 -12
  21. package/types/resources/Estimate.d.ts +450 -450
  22. package/types/resources/Event.d.ts +30 -12
  23. package/types/resources/Export.d.ts +200 -200
  24. package/types/resources/Feature.d.ts +66 -35
  25. package/types/resources/Gift.d.ts +54 -44
  26. package/types/resources/HostedPage.d.ts +381 -381
  27. package/types/resources/InAppSubscription.d.ts +94 -90
  28. package/types/resources/Invoice.d.ts +1242 -660
  29. package/types/resources/Item.d.ts +148 -142
  30. package/types/resources/ItemEntitlement.d.ts +36 -36
  31. package/types/resources/ItemFamily.d.ts +45 -45
  32. package/types/resources/ItemPrice.d.ts +317 -273
  33. package/types/resources/PaymentIntent.d.ts +60 -60
  34. package/types/resources/PaymentReferenceNumber.d.ts +1 -1
  35. package/types/resources/PaymentVoucher.d.ts +74 -59
  36. package/types/resources/PortalSession.d.ts +45 -20
  37. package/types/resources/PromotionalCredit.d.ts +68 -68
  38. package/types/resources/Purchase.d.ts +3 -3
  39. package/types/resources/Quote.d.ts +655 -366
  40. package/types/resources/QuoteLineGroup.d.ts +245 -0
  41. package/types/resources/QuotedCharge.d.ts +170 -0
  42. package/types/resources/QuotedSubscription.d.ts +219 -0
  43. package/types/resources/SiteMigrationDetail.d.ts +7 -7
  44. package/types/resources/Subscription.d.ts +1219 -932
  45. package/types/resources/SubscriptionEntitlement.d.ts +33 -12
  46. package/types/resources/ThirdPartyPaymentMethod.d.ts +1 -1
  47. package/types/resources/TimeMachine.d.ts +15 -15
  48. package/types/resources/Token.d.ts +0 -116
  49. package/types/resources/Transaction.d.ts +229 -112
  50. package/types/resources/UnbilledCharge.d.ts +112 -67
  51. package/types/resources/Usage.d.ts +46 -47
  52. package/types/resources/VirtualBankAccount.d.ts +66 -66
  53. package/types/resources/Media.d.ts +0 -33
  54. package/types/resources/NonSubscription.d.ts +0 -65
@@ -47,25 +47,25 @@ declare module 'chargebee' {
47
47
  export namespace CouponSet {
48
48
  export class CouponSetResource {
49
49
  /**
50
- * @description Use this API to get the list of all the coupon sets.
50
+ * @description Create a coupon set with a coupon code compatible to your product offers and promotional discounts
51
51
 
52
52
  */
53
53
 
54
- list(input?:ListInputParam):ChargebeeRequest<ListResponse>;
54
+ create(input:CreateInputParam):ChargebeeRequest<CreateResponse>;
55
55
 
56
56
  /**
57
- * @description Create a coupon set with a coupon code compatible to your product offers and promotional discounts
57
+ * @description This API add coupon codes to an existing coupon set.
58
58
 
59
59
  */
60
60
 
61
- create(input:CreateInputParam):ChargebeeRequest<CreateResponse>;
61
+ add_coupon_codes(coupon_set_id:string, input?:AddCouponCodesInputParam):ChargebeeRequest<AddCouponCodesResponse>;
62
62
 
63
63
  /**
64
- * @description Use this API to update a specific coupon set by updating its &#x60;name&#x60; and the &#x60;meta_data&#x60;.
64
+ * @description Use this API to get the list of all the coupon sets.
65
65
 
66
66
  */
67
67
 
68
- update(coupon_set_id:string, input?:UpdateInputParam):ChargebeeRequest<UpdateResponse>;
68
+ list(input?:ListInputParam):ChargebeeRequest<ListResponse>;
69
69
 
70
70
  /**
71
71
  * @description Use this API to retrieve a specific coupon set.
@@ -75,11 +75,18 @@ declare module 'chargebee' {
75
75
  retrieve(coupon_set_id:string):ChargebeeRequest<RetrieveResponse>;
76
76
 
77
77
  /**
78
- * @description This API add coupon codes to an existing coupon set.
78
+ * @description Use this API to update a specific coupon set by updating its &#x60;name&#x60; and the &#x60;meta_data&#x60;.
79
79
 
80
80
  */
81
81
 
82
- add_coupon_codes(coupon_set_id:string, input?:AddCouponCodesInputParam):ChargebeeRequest<AddCouponCodesResponse>;
82
+ update(coupon_set_id:string, input?:UpdateInputParam):ChargebeeRequest<UpdateResponse>;
83
+
84
+ /**
85
+ * @description Use this endpoint to delete a specific coupon set
86
+
87
+ */
88
+
89
+ delete(coupon_set_id:string):ChargebeeRequest<DeleteResponse>;
83
90
 
84
91
  /**
85
92
  * @description Use this API to delete all the unutilised coupon codes from a specific coupon set.
@@ -87,13 +94,53 @@ declare module 'chargebee' {
87
94
  */
88
95
 
89
96
  delete_unused_coupon_codes(coupon_set_id:string):ChargebeeRequest<DeleteUnusedCouponCodesResponse>;
97
+ }
98
+ export interface CreateResponse {
99
+ coupon_set:CouponSet;
100
+ }
101
+ export interface CreateInputParam {
90
102
 
91
103
  /**
92
- * @description Use this endpoint to delete a specific coupon set
104
+ * @description Coupon id linked to coupon set.
93
105
 
94
106
  */
95
-
96
- delete(coupon_set_id:string):ChargebeeRequest<DeleteResponse>;
107
+
108
+ coupon_id:string;
109
+
110
+ /**
111
+ * @description Name of the coupon set.
112
+
113
+ */
114
+
115
+ name:string;
116
+
117
+ /**
118
+ * @description Uniquely identifies a coupon_set.
119
+
120
+ */
121
+
122
+ id:string;
123
+
124
+ /**
125
+ * @description A collection of key-value pairs that provides extra information about the coupon set.
126
+ **Note:** There&#x27;s a character limit of 65,535.
127
+ [Learn more](advanced-features?prod_cat_ver&#x3D;2#metadata).
128
+
129
+ */
130
+
131
+ meta_data?:object;
132
+ }
133
+ export interface AddCouponCodesResponse {
134
+ coupon_set:CouponSet;
135
+ }
136
+ export interface AddCouponCodesInputParam {
137
+
138
+ /**
139
+ * @description You can pass up to 100 values per API call. You can also use the Chargebee UI to pass up to 1000 codes per operation. There is no limit on the total number of coupon codes that can be included in a coupon set.
140
+
141
+ */
142
+
143
+ code?:string[];
97
144
  }
98
145
  export interface ListResponse {
99
146
  /**
@@ -113,94 +160,65 @@ declare module 'chargebee' {
113
160
  export interface ListInputParam {
114
161
  [key : string]: any;
115
162
  /**
116
- * @description The number of resources to be returned.
163
+ * @description Use this API to get the list of all the coupon sets.
117
164
 
118
165
  */
119
166
 
120
167
  limit?:number;
121
168
 
122
169
  /**
123
- * @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.
170
+ * @description Use this API to get the list of all the coupon sets.
124
171
 
125
172
  */
126
173
 
127
174
  offset?:string;
128
175
 
129
176
  /**
130
- * @description Uniquely identifies a coupon_set
177
+ * @description Use this API to get the list of all the coupon sets.
131
178
 
132
179
  */
133
180
 
134
181
  id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
135
182
 
136
183
  /**
137
- * @description Name of the coupon set
184
+ * @description Use this API to get the list of all the coupon sets.
138
185
 
139
186
  */
140
187
 
141
188
  name?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
142
189
 
143
190
  /**
144
- * @description Coupon id linked to coupon set
191
+ * @description Use this API to get the list of all the coupon sets.
145
192
 
146
193
  */
147
194
 
148
195
  coupon_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
149
196
 
150
197
  /**
151
- * @description No of coupon codes present in coupon set
198
+ * @description Use this API to get the list of all the coupon sets.
152
199
 
153
200
  */
154
201
 
155
202
  total_count?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string};
156
203
 
157
204
  /**
158
- * @description No of redeemed codes
205
+ * @description Use this API to get the list of all the coupon sets.
159
206
 
160
207
  */
161
208
 
162
209
  redeemed_count?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string};
163
210
 
164
211
  /**
165
- * @description No of archived codes
212
+ * @description Use this API to get the list of all the coupon sets.
166
213
 
167
214
  */
168
215
 
169
216
  archived_count?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string};
170
217
  }
171
- export interface CreateResponse {
218
+ export interface RetrieveResponse {
172
219
  coupon_set:CouponSet;
173
220
  }
174
- export interface CreateInputParam {
175
-
176
- /**
177
- * @description Coupon id linked to coupon set.
178
-
179
- */
180
-
181
- coupon_id:string;
182
-
183
- /**
184
- * @description Name of the coupon set.
185
-
186
- */
187
-
188
- name:string;
189
-
190
- /**
191
- * @description Uniquely identifies a coupon_set.
192
-
193
- */
194
-
195
- id:string;
196
-
197
- /**
198
- * @description A set of key-value pairs stored as additional information for the coupon set. [Learn more](./#meta_data).
199
-
200
- */
201
-
202
- meta_data?:object;
203
- }
221
+
204
222
  export interface UpdateResponse {
205
223
  coupon_set:CouponSet;
206
224
  }
@@ -214,36 +232,22 @@ declare module 'chargebee' {
214
232
  name?:string;
215
233
 
216
234
  /**
217
- * @description A set of key-value pairs stored as additional information for the coupon set. [Learn more](./#meta_data).
235
+ * @description A collection of key-value pairs that provides extra information about the coupon set.
236
+ **Note:** There&#x27;s a character limit of 65,535.
237
+ [Learn more](advanced-features?prod_cat_ver&#x3D;2#metadata).
218
238
 
219
239
  */
220
240
 
221
241
  meta_data?:object;
222
242
  }
223
- export interface RetrieveResponse {
243
+ export interface DeleteResponse {
224
244
  coupon_set:CouponSet;
225
245
  }
226
246
 
227
- export interface AddCouponCodesResponse {
228
- coupon_set:CouponSet;
229
- }
230
- export interface AddCouponCodesInputParam {
231
-
232
- /**
233
- * @description You can pass up to 100 values per API call. You can also use the Chargebee UI to pass up to 1000 codes per operation. There is no limit on the total number of coupon codes that can be included in a coupon set.
234
-
235
- */
236
-
237
- code?:string[];
238
- }
239
247
  export interface DeleteUnusedCouponCodesResponse {
240
248
  coupon_set:CouponSet;
241
249
  }
242
250
 
243
- export interface DeleteResponse {
244
- coupon_set:CouponSet;
245
- }
246
-
247
251
 
248
252
  }
249
253
  }