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.
- package/.github/ISSUE_TEMPLATE/bug_report.yml +81 -0
- package/.github/ISSUE_TEMPLATE/config.yml +6 -0
- package/.github/ISSUE_TEMPLATE/feature_request.yml +34 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +8 -0
- package/.github/workflows/greeting.yml +47 -0
- package/CHANGELOG.md +59 -0
- package/SECURITY.md +8 -0
- package/lib/chargebee.js +1 -1
- package/lib/resources/api_endpoints.js +0 -14
- package/package.json +1 -1
- package/types/core.d.ts +4 -4
- package/types/resources/AttachedItem.d.ts +88 -88
- package/types/resources/Card.d.ts +68 -68
- package/types/resources/Comment.d.ts +50 -44
- package/types/resources/Coupon.d.ts +242 -207
- package/types/resources/CouponSet.d.ts +72 -68
- package/types/resources/CreditNote.d.ts +612 -236
- package/types/resources/Customer.d.ts +655 -513
- package/types/resources/DifferentialPrice.d.ts +99 -74
- package/types/resources/EntitlementOverride.d.ts +27 -12
- package/types/resources/Estimate.d.ts +450 -450
- package/types/resources/Event.d.ts +30 -12
- package/types/resources/Export.d.ts +200 -200
- package/types/resources/Feature.d.ts +66 -35
- package/types/resources/Gift.d.ts +54 -44
- package/types/resources/HostedPage.d.ts +381 -381
- package/types/resources/InAppSubscription.d.ts +94 -90
- package/types/resources/Invoice.d.ts +1242 -660
- package/types/resources/Item.d.ts +148 -142
- package/types/resources/ItemEntitlement.d.ts +36 -36
- package/types/resources/ItemFamily.d.ts +45 -45
- package/types/resources/ItemPrice.d.ts +317 -273
- package/types/resources/PaymentIntent.d.ts +60 -60
- package/types/resources/PaymentReferenceNumber.d.ts +1 -1
- package/types/resources/PaymentVoucher.d.ts +74 -59
- package/types/resources/PortalSession.d.ts +45 -20
- package/types/resources/PromotionalCredit.d.ts +68 -68
- package/types/resources/Purchase.d.ts +3 -3
- package/types/resources/Quote.d.ts +655 -366
- package/types/resources/QuoteLineGroup.d.ts +245 -0
- package/types/resources/QuotedCharge.d.ts +170 -0
- package/types/resources/QuotedSubscription.d.ts +219 -0
- package/types/resources/SiteMigrationDetail.d.ts +7 -7
- package/types/resources/Subscription.d.ts +1219 -932
- package/types/resources/SubscriptionEntitlement.d.ts +33 -12
- package/types/resources/ThirdPartyPaymentMethod.d.ts +1 -1
- package/types/resources/TimeMachine.d.ts +15 -15
- package/types/resources/Token.d.ts +0 -116
- package/types/resources/Transaction.d.ts +229 -112
- package/types/resources/UnbilledCharge.d.ts +112 -67
- package/types/resources/Usage.d.ts +46 -47
- package/types/resources/VirtualBankAccount.d.ts +66 -66
- package/types/resources/Media.d.ts +0 -33
- 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
|
|
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
|
-
|
|
54
|
+
create(input:CreateInputParam):ChargebeeRequest<CreateResponse>;
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
|
-
* @description
|
|
57
|
+
* @description This API add coupon codes to an existing coupon set.
|
|
58
58
|
|
|
59
59
|
*/
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
add_coupon_codes(coupon_set_id:string, input?:AddCouponCodesInputParam):ChargebeeRequest<AddCouponCodesResponse>;
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
|
-
* @description Use this API to
|
|
64
|
+
* @description Use this API to get the list of all the coupon sets.
|
|
65
65
|
|
|
66
66
|
*/
|
|
67
67
|
|
|
68
|
-
|
|
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
|
|
78
|
+
* @description Use this API to update a specific coupon set by updating its `name` and the `meta_data`.
|
|
79
79
|
|
|
80
80
|
*/
|
|
81
81
|
|
|
82
|
-
|
|
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
|
|
104
|
+
* @description Coupon id linked to coupon set.
|
|
93
105
|
|
|
94
106
|
*/
|
|
95
|
-
|
|
96
|
-
|
|
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's a character limit of 65,535.
|
|
127
|
+
[Learn more](advanced-features?prod_cat_ver=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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
218
|
+
export interface RetrieveResponse {
|
|
172
219
|
coupon_set:CouponSet;
|
|
173
220
|
}
|
|
174
|
-
|
|
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
|
|
235
|
+
* @description A collection of key-value pairs that provides extra information about the coupon set.
|
|
236
|
+
**Note:** There's a character limit of 65,535.
|
|
237
|
+
[Learn more](advanced-features?prod_cat_ver=2#metadata).
|
|
218
238
|
|
|
219
239
|
*/
|
|
220
240
|
|
|
221
241
|
meta_data?:object;
|
|
222
242
|
}
|
|
223
|
-
export interface
|
|
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
|
}
|