chargebee 2.34.1 → 2.35.1

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,295 @@
1
+ ///<reference path='./../core.d.ts'/>
2
+ declare module 'chargebee' {
3
+ export interface PriceVariant {
4
+
5
+ /**
6
+ * @description The unique and immutable identifier of the price variant.
7
+
8
+ */
9
+
10
+ id:string;
11
+
12
+ /**
13
+ * @description A unique name of the price variant.
14
+
15
+ */
16
+
17
+ name:string;
18
+
19
+ /**
20
+ * @description A unique display name for the price variant.
21
+
22
+ */
23
+
24
+ external_name?:string;
25
+
26
+ /**
27
+ * @description Description of the price variant.
28
+
29
+ */
30
+
31
+ description?:string;
32
+
33
+ /**
34
+ * @description Status of a price variant. \* active - Active price variant. This price variant can be attached to [item prices](https://apidocs.chargebee.com/docs/api/item_prices?lang&#x3D;curl). \* deleted - Deleted price variant. The &#x60;id&#x60; and &#x60;name&#x60; of the deleted price variant can be reused. \* archived - Archived price variant. This price variant is no longer &#x60;active&#x60; and cannot be attached to new [item prices](https://apidocs.chargebee.com/docs/api/item_prices?lang&#x3D;curl). Existing item prices that already have this price variant attached will continue to remain as is.
35
+
36
+ */
37
+
38
+ status?:'active' | 'archived' | 'deleted';
39
+
40
+ /**
41
+ * @description Timestamp indicating when this price variant is created.
42
+
43
+ */
44
+
45
+ created_at:number;
46
+
47
+ /**
48
+ * @description The version number of this resource. For every change made to the resource, &#x60;resource_version&#x60; is updated with a new timestamp in milliseconds.
49
+
50
+ */
51
+
52
+ resource_version?:number;
53
+
54
+ /**
55
+ * @description Timestamp indicating when this price variant was last updated.
56
+
57
+ */
58
+
59
+ updated_at?:number;
60
+
61
+ /**
62
+ * @description Timestamp indicating when this price variant was archived.
63
+
64
+ */
65
+
66
+ archived_at?:number;
67
+
68
+ /**
69
+ * @description The list of price variant attribute values.
70
+
71
+ Attributes can be used to store additional information about the price variant. For example, for a price variant called &#x27;Germany&#x27;, the attributes can be &#x27;Country&#x27;:&#x27;Germany&#x27;, &#x27;City&#x27;:&#x27;Berlin&#x27; and so on.
72
+
73
+ */
74
+
75
+ attributes?:PriceVariant.Attribute[];
76
+ }
77
+ export namespace PriceVariant {
78
+ export class PriceVariantResource {
79
+ /**
80
+ * @description This endpoint allows the creation of a new price variant that can be attached to [item prices](https://apidocs.chargebee.com/docs/api/item_prices?lang&#x3D;curl).
81
+
82
+ */
83
+
84
+ create(input:CreateInputParam):ChargebeeRequest<CreateResponse>;
85
+
86
+ /**
87
+ * @description This endpoint retrieves the details of a specific price variant using its unique identifier.
88
+
89
+ */
90
+
91
+ retrieve(price_variant_id:string):ChargebeeRequest<RetrieveResponse>;
92
+
93
+ /**
94
+ * @description This endpoint modifies the details of an existing price variant.
95
+
96
+ */
97
+
98
+ update(price_variant_id:string, input:UpdateInputParam):ChargebeeRequest<UpdateResponse>;
99
+
100
+ /**
101
+ * @description Deletes the price variant. This is not allowed if price variant is attached to any [item price](https://apidocs.chargebee.com/docs/api/item_prices?lang&#x3D;curl). Once deleted, the &#x60;id&#x60; and &#x60;name&#x60; of the price variant can be reused.
102
+
103
+ */
104
+
105
+ delete(price_variant_id:string):ChargebeeRequest<DeleteResponse>;
106
+
107
+ /**
108
+ * @description This endpoint is used to retrieve a list of price variants.
109
+
110
+ */
111
+
112
+ list(input?:ListInputParam):ChargebeeRequest<ListResponse>;
113
+ }
114
+ export interface CreateResponse {
115
+ price_variant:PriceVariant;
116
+ }
117
+ export interface CreateInputParam {
118
+
119
+ /**
120
+ * @description The unique and immutable identifier of the price variant.
121
+
122
+ */
123
+
124
+ id:string;
125
+
126
+ /**
127
+ * @description A unique name of the price variant.
128
+
129
+ */
130
+
131
+ name:string;
132
+
133
+ /**
134
+ * @description A unique display name for the price variant.
135
+
136
+ */
137
+
138
+ external_name?:string;
139
+
140
+ /**
141
+ * @description Description of the price variant.
142
+
143
+ */
144
+
145
+ description?:string;
146
+
147
+ /**
148
+ * @description The list of price variant attribute values.
149
+
150
+ Attributes can be used to store additional information about the price variant. For example, for a price variant called &#x27;Germany&#x27;, the attributes can be &#x27;Country&#x27;:&#x27;Germany&#x27;, &#x27;City&#x27;:&#x27;Berlin&#x27; and so on.
151
+
152
+ */
153
+
154
+ attributes:{name:string,value:string}[];
155
+ }
156
+ export interface RetrieveResponse {
157
+ price_variant:PriceVariant;
158
+ }
159
+
160
+ export interface UpdateResponse {
161
+ price_variant:PriceVariant;
162
+ }
163
+ export interface UpdateInputParam {
164
+
165
+ /**
166
+ * @description A unique name of the price variant.
167
+
168
+ */
169
+
170
+ name?:string;
171
+
172
+ /**
173
+ * @description A unique display name for the price variant.
174
+
175
+ */
176
+
177
+ external_name?:string;
178
+
179
+ /**
180
+ * @description Description of the price variant.
181
+
182
+ */
183
+
184
+ description?:string;
185
+
186
+ /**
187
+ * @description Status of a price variant. \* active - Active price variant. This price variant can be attached to [item prices](https://apidocs.chargebee.com/docs/api/item_prices?lang&#x3D;curl). \* deleted - Deleted price variant. The &#x60;id&#x60; and &#x60;name&#x60; of the deleted price variant can be reused. \* archived - Archived price variant. This price variant is no longer &#x60;active&#x60; and cannot be attached to new [item prices](https://apidocs.chargebee.com/docs/api/item_prices?lang&#x3D;curl). Existing item prices that already have this price variant attached will continue to remain as is.
188
+
189
+ */
190
+
191
+ status?:'active' | 'archived';
192
+
193
+ /**
194
+ * @description The list of price variant attribute values.
195
+
196
+ Attributes can be used to store additional information about the price variant. For example, for a price variant called &#x27;Germany&#x27;, the attributes can be &#x27;Country&#x27;:&#x27;Germany&#x27;, &#x27;City&#x27;:&#x27;Berlin&#x27; and so on.
197
+
198
+ */
199
+
200
+ attributes:{name:string,value:string}[];
201
+ }
202
+ export interface DeleteResponse {
203
+ price_variant:PriceVariant;
204
+ }
205
+
206
+ export interface ListResponse {
207
+ /**
208
+ * @description This endpoint is used to retrieve a list of price variants.
209
+
210
+ */
211
+
212
+ list:{price_variant:PriceVariant}[];
213
+
214
+ /**
215
+ * @description This endpoint is used to retrieve a list of price variants.
216
+
217
+ */
218
+
219
+ next_offset?:string;
220
+ }
221
+ export interface ListInputParam {
222
+ [key : string]: any;
223
+ /**
224
+ * @description This endpoint is used to retrieve a list of price variants.
225
+
226
+ */
227
+
228
+ limit?:number;
229
+
230
+ /**
231
+ * @description This endpoint is used to retrieve a list of price variants.
232
+
233
+ */
234
+
235
+ offset?:string;
236
+
237
+ /**
238
+ * @description This endpoint is used to retrieve a list of price variants.
239
+
240
+ */
241
+
242
+ id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
243
+
244
+ /**
245
+ * @description This endpoint is used to retrieve a list of price variants.
246
+
247
+ */
248
+
249
+ name?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
250
+
251
+ /**
252
+ * @description This endpoint is used to retrieve a list of price variants.
253
+
254
+ */
255
+
256
+ status?:{in?:string,is?:'active' | 'archived',is_not?:'active' | 'archived',not_in?:string};
257
+
258
+ /**
259
+ * @description This endpoint is used to retrieve a list of price variants.
260
+
261
+ */
262
+
263
+ updated_at?:{after?:string,before?:string,between?:string,on?:string};
264
+
265
+ /**
266
+ * @description This endpoint is used to retrieve a list of price variants.
267
+
268
+ */
269
+
270
+ created_at?:{after?:string,before?:string,between?:string,on?:string};
271
+
272
+ /**
273
+ * @description This endpoint is used to retrieve a list of price variants.
274
+
275
+ */
276
+
277
+ sort_by?:{asc?:'name' | 'id' | 'status' | 'created_at' | 'updated_at',desc?:'name' | 'id' | 'status' | 'created_at' | 'updated_at'};
278
+ }
279
+ export interface Attribute {
280
+ /**
281
+ * @description Attribute name
282
+
283
+ */
284
+
285
+ name:string;
286
+
287
+ /**
288
+ * @description Attribute value
289
+
290
+ */
291
+
292
+ value:string;
293
+ }
294
+ }
295
+ }