@stigg/typescript 0.1.0-alpha.4 → 0.1.0-alpha.8
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/CHANGELOG.md +86 -0
- package/README.md +9 -0
- package/client.d.mts +4 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -6
- package/client.d.ts.map +1 -1
- package/client.js +23 -21
- package/client.js.map +1 -1
- package/client.mjs +23 -21
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/v1/coupons.d.mts +74 -8
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +74 -8
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +16 -3
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +16 -3
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +74 -10
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +74 -10
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +18 -7
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +18 -7
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/index.d.mts +2 -2
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts +2 -2
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +4 -2
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +4 -2
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +4 -2
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +4 -2
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +159 -11
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +159 -11
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +15 -6
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +15 -6
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
- package/resources/v1/events/addons/addons.d.mts +605 -0
- package/resources/v1/events/addons/addons.d.mts.map +1 -0
- package/resources/v1/events/addons/addons.d.ts +605 -0
- package/resources/v1/events/addons/addons.d.ts.map +1 -0
- package/resources/v1/events/addons/addons.js +60 -0
- package/resources/v1/events/addons/addons.js.map +1 -0
- package/resources/v1/events/addons/addons.mjs +55 -0
- package/resources/v1/events/addons/addons.mjs.map +1 -0
- package/resources/v1/events/addons/draft.d.mts +121 -0
- package/resources/v1/events/addons/draft.d.mts.map +1 -0
- package/resources/v1/events/addons/draft.d.ts +121 -0
- package/resources/v1/events/addons/draft.d.ts.map +1 -0
- package/resources/v1/events/addons/draft.js +22 -0
- package/resources/v1/events/addons/draft.js.map +1 -0
- package/resources/v1/events/addons/draft.mjs +18 -0
- package/resources/v1/events/addons/draft.mjs.map +1 -0
- package/resources/v1/events/addons/index.d.mts +3 -0
- package/resources/v1/events/addons/index.d.mts.map +1 -0
- package/resources/v1/events/addons/index.d.ts +3 -0
- package/resources/v1/events/addons/index.d.ts.map +1 -0
- package/resources/v1/events/addons/index.js +9 -0
- package/resources/v1/events/addons/index.js.map +1 -0
- package/resources/v1/events/addons/index.mjs +4 -0
- package/resources/v1/events/addons/index.mjs.map +1 -0
- package/resources/v1/events/addons.d.mts +2 -0
- package/resources/v1/events/addons.d.mts.map +1 -0
- package/resources/v1/events/addons.d.ts +2 -0
- package/resources/v1/events/addons.d.ts.map +1 -0
- package/resources/v1/events/addons.js +6 -0
- package/resources/v1/events/addons.js.map +1 -0
- package/resources/v1/events/addons.mjs +3 -0
- package/resources/v1/events/addons.mjs.map +1 -0
- package/resources/v1/events/events.d.mts +75 -0
- package/resources/v1/events/events.d.mts.map +1 -0
- package/resources/v1/events/events.d.ts +75 -0
- package/resources/v1/events/events.d.ts.map +1 -0
- package/resources/v1/events/events.js +32 -0
- package/resources/v1/events/events.js.map +1 -0
- package/resources/v1/events/events.mjs +27 -0
- package/resources/v1/events/events.mjs.map +1 -0
- package/resources/v1/events/features.d.mts +856 -0
- package/resources/v1/events/features.d.mts.map +1 -0
- package/resources/v1/events/features.d.ts +856 -0
- package/resources/v1/events/features.d.ts.map +1 -0
- package/resources/v1/events/features.js +51 -0
- package/resources/v1/events/features.js.map +1 -0
- package/resources/v1/events/features.mjs +47 -0
- package/resources/v1/events/features.mjs.map +1 -0
- package/resources/v1/events/index.d.mts +5 -0
- package/resources/v1/events/index.d.mts.map +1 -0
- package/resources/v1/events/index.d.ts +5 -0
- package/resources/v1/events/index.d.ts.map +1 -0
- package/resources/v1/events/index.js +13 -0
- package/resources/v1/events/index.js.map +1 -0
- package/resources/v1/events/index.mjs +6 -0
- package/resources/v1/events/index.mjs.map +1 -0
- package/resources/v1/events/plans.d.mts +348 -0
- package/resources/v1/events/plans.d.mts.map +1 -0
- package/resources/v1/events/plans.d.ts +348 -0
- package/resources/v1/events/plans.d.ts.map +1 -0
- package/resources/v1/events/plans.js +30 -0
- package/resources/v1/events/plans.js.map +1 -0
- package/resources/v1/events/plans.mjs +26 -0
- package/resources/v1/events/plans.mjs.map +1 -0
- package/resources/v1/events.d.mts +1 -61
- package/resources/v1/events.d.mts.map +1 -1
- package/resources/v1/events.d.ts +1 -61
- package/resources/v1/events.d.ts.map +1 -1
- package/resources/v1/events.js +2 -11
- package/resources/v1/events.js.map +1 -1
- package/resources/v1/events.mjs +1 -9
- package/resources/v1/events.mjs.map +1 -1
- package/resources/v1/index.d.mts +4 -3
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +4 -3
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +7 -5
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +2 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/products.d.mts +672 -0
- package/resources/v1/products.d.mts.map +1 -0
- package/resources/v1/products.d.ts +672 -0
- package/resources/v1/products.d.ts.map +1 -0
- package/resources/v1/products.js +52 -0
- package/resources/v1/products.js.map +1 -0
- package/resources/v1/products.mjs +48 -0
- package/resources/v1/products.mjs.map +1 -0
- package/resources/v1/subscriptions/future-update.d.mts +3 -2
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +3 -2
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +3 -2
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +3 -2
- package/resources/v1/subscriptions/future-update.mjs.map +1 -1
- package/resources/v1/subscriptions/index.d.mts +2 -0
- package/resources/v1/subscriptions/index.d.mts.map +1 -1
- package/resources/v1/subscriptions/index.d.ts +2 -0
- package/resources/v1/subscriptions/index.d.ts.map +1 -1
- package/resources/v1/subscriptions/index.js +5 -1
- package/resources/v1/subscriptions/index.js.map +1 -1
- package/resources/v1/subscriptions/index.mjs +2 -0
- package/resources/v1/subscriptions/index.mjs.map +1 -1
- package/resources/v1/subscriptions/invoice.d.mts +34 -0
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -0
- package/resources/v1/subscriptions/invoice.d.ts +34 -0
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -0
- package/resources/v1/subscriptions/invoice.js +17 -0
- package/resources/v1/subscriptions/invoice.js.map +1 -0
- package/resources/v1/subscriptions/invoice.mjs +13 -0
- package/resources/v1/subscriptions/invoice.mjs.map +1 -0
- package/resources/v1/subscriptions/subscriptions.d.mts +166 -34
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +166 -34
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +28 -10
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +28 -10
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +98 -0
- package/resources/v1/subscriptions/usage.d.mts.map +1 -0
- package/resources/v1/subscriptions/usage.d.ts +98 -0
- package/resources/v1/subscriptions/usage.d.ts.map +1 -0
- package/resources/v1/subscriptions/usage.js +24 -0
- package/resources/v1/subscriptions/usage.js.map +1 -0
- package/resources/v1/subscriptions/usage.mjs +20 -0
- package/resources/v1/subscriptions/usage.mjs.map +1 -0
- package/resources/v1/usage.d.mts +3 -2
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +3 -2
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +3 -2
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +3 -2
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +10 -6
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +10 -6
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +6 -2
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +6 -2
- package/resources/v1/v1.mjs.map +1 -1
- package/src/client.ts +31 -26
- package/src/internal/parse.ts +6 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/resources/v1/coupons.ts +89 -9
- package/src/resources/v1/customers/customers.ts +107 -12
- package/src/resources/v1/customers/index.ts +8 -2
- package/src/resources/v1/customers/payment-method.ts +4 -2
- package/src/resources/v1/customers/promotional-entitlements.ts +221 -18
- package/src/resources/v1/events/addons/addons.ts +761 -0
- package/src/resources/v1/events/addons/draft.ts +151 -0
- package/src/resources/v1/events/addons/index.ts +17 -0
- package/src/resources/v1/events/addons.ts +3 -0
- package/src/resources/v1/events/events.ts +160 -0
- package/src/resources/v1/events/features.ts +1066 -0
- package/src/resources/v1/events/index.ts +39 -0
- package/src/resources/v1/events/plans.ts +429 -0
- package/src/resources/v1/events.ts +1 -71
- package/src/resources/v1/index.ts +19 -1
- package/src/resources/v1/products.ts +829 -0
- package/src/resources/v1/subscriptions/future-update.ts +3 -2
- package/src/resources/v1/subscriptions/index.ts +7 -0
- package/src/resources/v1/subscriptions/invoice.ts +42 -0
- package/src/resources/v1/subscriptions/subscriptions.ts +235 -36
- package/src/resources/v1/subscriptions/usage.ts +126 -0
- package/src/resources/v1/usage.ts +3 -2
- package/src/resources/v1/v1.ts +42 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -4,17 +4,26 @@ import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../co
|
|
|
4
4
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
5
|
export declare class Coupons extends APIResource {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Creates a new discount coupon with percentage or fixed amount off, applicable to
|
|
8
|
+
* customer subscriptions.
|
|
8
9
|
*/
|
|
9
10
|
create(body: CouponCreateParams, options?: RequestOptions): APIPromise<Coupon>;
|
|
10
11
|
/**
|
|
11
|
-
*
|
|
12
|
+
* Retrieves a coupon by its unique identifier.
|
|
12
13
|
*/
|
|
13
14
|
retrieve(id: string, options?: RequestOptions): APIPromise<Coupon>;
|
|
14
15
|
/**
|
|
15
|
-
*
|
|
16
|
+
* Retrieves a paginated list of coupons in the environment.
|
|
16
17
|
*/
|
|
17
18
|
list(query?: CouponListParams | null | undefined, options?: RequestOptions): PagePromise<CouponListResponsesMyCursorIDPage, CouponListResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Archives a coupon, preventing it from being applied to new subscriptions.
|
|
21
|
+
*/
|
|
22
|
+
archiveCoupon(id: string, options?: RequestOptions): APIPromise<Coupon>;
|
|
23
|
+
/**
|
|
24
|
+
* Updates an existing coupon's properties such as name, description, and metadata.
|
|
25
|
+
*/
|
|
26
|
+
updateCoupon(id: string, body: CouponUpdateCouponParams, options?: RequestOptions): APIPromise<Coupon>;
|
|
18
27
|
}
|
|
19
28
|
export type CouponListResponsesMyCursorIDPage = MyCursorIDPage<CouponListResponse>;
|
|
20
29
|
/**
|
|
@@ -189,6 +198,12 @@ export interface CouponCreateParams {
|
|
|
189
198
|
* Duration of the coupon validity in months
|
|
190
199
|
*/
|
|
191
200
|
durationInMonths: number | null;
|
|
201
|
+
/**
|
|
202
|
+
* Metadata associated with the entity
|
|
203
|
+
*/
|
|
204
|
+
metadata: {
|
|
205
|
+
[key: string]: string;
|
|
206
|
+
} | null;
|
|
192
207
|
/**
|
|
193
208
|
* Name of the coupon
|
|
194
209
|
*/
|
|
@@ -197,10 +212,6 @@ export interface CouponCreateParams {
|
|
|
197
212
|
* Percentage discount off the original price
|
|
198
213
|
*/
|
|
199
214
|
percentOff: number | null;
|
|
200
|
-
/**
|
|
201
|
-
* Metadata associated with the entity
|
|
202
|
-
*/
|
|
203
|
-
additionalMetaData?: unknown;
|
|
204
215
|
}
|
|
205
216
|
export declare namespace CouponCreateParams {
|
|
206
217
|
/**
|
|
@@ -218,8 +229,63 @@ export declare namespace CouponCreateParams {
|
|
|
218
229
|
}
|
|
219
230
|
}
|
|
220
231
|
export interface CouponListParams extends MyCursorIDPageParams {
|
|
232
|
+
/**
|
|
233
|
+
* Filter by entity ID
|
|
234
|
+
*/
|
|
235
|
+
id?: string;
|
|
236
|
+
/**
|
|
237
|
+
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
238
|
+
*/
|
|
239
|
+
createdAt?: CouponListParams.CreatedAt;
|
|
240
|
+
/**
|
|
241
|
+
* Filter by coupon status. Supports comma-separated values for multiple statuses
|
|
242
|
+
*/
|
|
243
|
+
status?: string;
|
|
244
|
+
/**
|
|
245
|
+
* Filter by coupon type (FIXED or PERCENTAGE)
|
|
246
|
+
*/
|
|
247
|
+
type?: 'FIXED' | 'PERCENTAGE';
|
|
248
|
+
}
|
|
249
|
+
export declare namespace CouponListParams {
|
|
250
|
+
/**
|
|
251
|
+
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
252
|
+
*/
|
|
253
|
+
interface CreatedAt {
|
|
254
|
+
/**
|
|
255
|
+
* Greater than the specified createdAt value
|
|
256
|
+
*/
|
|
257
|
+
gt?: string;
|
|
258
|
+
/**
|
|
259
|
+
* Greater than or equal to the specified createdAt value
|
|
260
|
+
*/
|
|
261
|
+
gte?: string;
|
|
262
|
+
/**
|
|
263
|
+
* Less than the specified createdAt value
|
|
264
|
+
*/
|
|
265
|
+
lt?: string;
|
|
266
|
+
/**
|
|
267
|
+
* Less than or equal to the specified createdAt value
|
|
268
|
+
*/
|
|
269
|
+
lte?: string;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
export interface CouponUpdateCouponParams {
|
|
273
|
+
/**
|
|
274
|
+
* Description of the coupon
|
|
275
|
+
*/
|
|
276
|
+
description?: string | null;
|
|
277
|
+
/**
|
|
278
|
+
* Metadata associated with the entity
|
|
279
|
+
*/
|
|
280
|
+
metadata?: {
|
|
281
|
+
[key: string]: string;
|
|
282
|
+
} | null;
|
|
283
|
+
/**
|
|
284
|
+
* Name of the coupon
|
|
285
|
+
*/
|
|
286
|
+
name?: string;
|
|
221
287
|
}
|
|
222
288
|
export declare namespace Coupons {
|
|
223
|
-
export { type Coupon as Coupon, type CouponListResponse as CouponListResponse, type CouponListResponsesMyCursorIDPage as CouponListResponsesMyCursorIDPage, type CouponCreateParams as CouponCreateParams, type CouponListParams as CouponListParams, };
|
|
289
|
+
export { type Coupon as Coupon, type CouponListResponse as CouponListResponse, type CouponListResponsesMyCursorIDPage as CouponListResponsesMyCursorIDPage, type CouponCreateParams as CouponCreateParams, type CouponListParams as CouponListParams, type CouponUpdateCouponParams as CouponUpdateCouponParams, };
|
|
224
290
|
}
|
|
225
291
|
//# sourceMappingURL=coupons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coupons.d.ts","sourceRoot":"","sources":["../../src/resources/v1/coupons.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"coupons.d.ts","sourceRoot":"","sources":["../../src/resources/v1/coupons.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAI9E;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAIlE;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iCAAiC,EAAE,kBAAkB,CAAC;IAOrE;;OAEG;IACH,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAIvE;;OAEG;IACH,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAA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AAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAC;SACX;KACF;CACF;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;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C,IAAI,iCAAiC,EAC3E,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
package/resources/v1/coupons.js
CHANGED
|
@@ -7,19 +7,20 @@ const pagination_1 = require("../../core/pagination.js");
|
|
|
7
7
|
const path_1 = require("../../internal/utils/path.js");
|
|
8
8
|
class Coupons extends resource_1.APIResource {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Creates a new discount coupon with percentage or fixed amount off, applicable to
|
|
11
|
+
* customer subscriptions.
|
|
11
12
|
*/
|
|
12
13
|
create(body, options) {
|
|
13
14
|
return this._client.post('/api/v1/coupons', { body, ...options });
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
|
-
*
|
|
17
|
+
* Retrieves a coupon by its unique identifier.
|
|
17
18
|
*/
|
|
18
19
|
retrieve(id, options) {
|
|
19
20
|
return this._client.get((0, path_1.path) `/api/v1/coupons/${id}`, options);
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
22
|
-
*
|
|
23
|
+
* Retrieves a paginated list of coupons in the environment.
|
|
23
24
|
*/
|
|
24
25
|
list(query = {}, options) {
|
|
25
26
|
return this._client.getAPIList('/api/v1/coupons', (pagination_1.MyCursorIDPage), {
|
|
@@ -27,6 +28,18 @@ class Coupons extends resource_1.APIResource {
|
|
|
27
28
|
...options,
|
|
28
29
|
});
|
|
29
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Archives a coupon, preventing it from being applied to new subscriptions.
|
|
33
|
+
*/
|
|
34
|
+
archiveCoupon(id, options) {
|
|
35
|
+
return this._client.post((0, path_1.path) `/api/v1/coupons/${id}/archive`, options);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Updates an existing coupon's properties such as name, description, and metadata.
|
|
39
|
+
*/
|
|
40
|
+
updateCoupon(id, body, options) {
|
|
41
|
+
return this._client.patch((0, path_1.path) `/api/v1/coupons/${id}`, { body, ...options });
|
|
42
|
+
}
|
|
30
43
|
}
|
|
31
44
|
exports.Coupons = Coupons;
|
|
32
45
|
//# sourceMappingURL=coupons.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coupons.js","sourceRoot":"","sources":["../../src/resources/v1/coupons.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA+F;AAE/F,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC
|
|
1
|
+
{"version":3,"file":"coupons.js","sourceRoot":"","sources":["../../src/resources/v1/coupons.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA+F;AAE/F,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;OAGG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAA,2BAAkC,CAAA,EAAE;YACpF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,aAAa,CAAC,EAAU,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,mBAAmB,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;OAEG;IACH,YAAY,CAAC,EAAU,EAAE,IAA8B,EAAE,OAAwB;QAC/E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,mBAAmB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF;AA1CD,0BA0CC"}
|
package/resources/v1/coupons.mjs
CHANGED
|
@@ -4,19 +4,20 @@ import { MyCursorIDPage } from "../../core/pagination.mjs";
|
|
|
4
4
|
import { path } from "../../internal/utils/path.mjs";
|
|
5
5
|
export class Coupons extends APIResource {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Creates a new discount coupon with percentage or fixed amount off, applicable to
|
|
8
|
+
* customer subscriptions.
|
|
8
9
|
*/
|
|
9
10
|
create(body, options) {
|
|
10
11
|
return this._client.post('/api/v1/coupons', { body, ...options });
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
|
-
*
|
|
14
|
+
* Retrieves a coupon by its unique identifier.
|
|
14
15
|
*/
|
|
15
16
|
retrieve(id, options) {
|
|
16
17
|
return this._client.get(path `/api/v1/coupons/${id}`, options);
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
|
-
*
|
|
20
|
+
* Retrieves a paginated list of coupons in the environment.
|
|
20
21
|
*/
|
|
21
22
|
list(query = {}, options) {
|
|
22
23
|
return this._client.getAPIList('/api/v1/coupons', (MyCursorIDPage), {
|
|
@@ -24,5 +25,17 @@ export class Coupons extends APIResource {
|
|
|
24
25
|
...options,
|
|
25
26
|
});
|
|
26
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Archives a coupon, preventing it from being applied to new subscriptions.
|
|
30
|
+
*/
|
|
31
|
+
archiveCoupon(id, options) {
|
|
32
|
+
return this._client.post(path `/api/v1/coupons/${id}/archive`, options);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Updates an existing coupon's properties such as name, description, and metadata.
|
|
36
|
+
*/
|
|
37
|
+
updateCoupon(id, body, options) {
|
|
38
|
+
return this._client.patch(path `/api/v1/coupons/${id}`, { body, ...options });
|
|
39
|
+
}
|
|
27
40
|
}
|
|
28
41
|
//# sourceMappingURL=coupons.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coupons.mjs","sourceRoot":"","sources":["../../src/resources/v1/coupons.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,cAAc,EAA0C;OAE1D,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"coupons.mjs","sourceRoot":"","sources":["../../src/resources/v1/coupons.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,cAAc,EAA0C;OAE1D,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAA,cAAkC,CAAA,EAAE;YACpF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,aAAa,CAAC,EAAU,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,mBAAmB,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;OAEG;IACH,YAAY,CAAC,EAAU,EAAE,IAA8B,EAAE,OAAwB;QAC/E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,mBAAmB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF"}
|
|
@@ -2,7 +2,7 @@ import { APIResource } from "../../../core/resource.mjs";
|
|
|
2
2
|
import * as PaymentMethodAPI from "./payment-method.mjs";
|
|
3
3
|
import { PaymentMethod, PaymentMethodAttachParams } from "./payment-method.mjs";
|
|
4
4
|
import * as PromotionalEntitlementsAPI from "./promotional-entitlements.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { PromotionalEntitlementCreateParams, PromotionalEntitlementCreateResponse, PromotionalEntitlementListParams, PromotionalEntitlementListResponse, PromotionalEntitlementListResponsesMyCursorIDPage, PromotionalEntitlementRevokeParams, PromotionalEntitlementRevokeResponse, PromotionalEntitlements } from "./promotional-entitlements.mjs";
|
|
6
6
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
7
7
|
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../../core/pagination.mjs";
|
|
8
8
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
@@ -10,35 +10,45 @@ export declare class Customers extends APIResource {
|
|
|
10
10
|
paymentMethod: PaymentMethodAPI.PaymentMethod;
|
|
11
11
|
promotionalEntitlements: PromotionalEntitlementsAPI.PromotionalEntitlements;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Retrieves a customer by their unique identifier, including billing information
|
|
14
|
+
* and subscription status.
|
|
14
15
|
*/
|
|
15
16
|
retrieve(id: string, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
16
17
|
/**
|
|
17
|
-
*
|
|
18
|
+
* Updates an existing customer's properties such as name, email, and billing
|
|
19
|
+
* information.
|
|
18
20
|
*/
|
|
19
21
|
update(id: string, body: CustomerUpdateParams, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
20
22
|
/**
|
|
21
|
-
*
|
|
23
|
+
* Retrieves a paginated list of customers in the environment.
|
|
22
24
|
*/
|
|
23
25
|
list(query?: CustomerListParams | null | undefined, options?: RequestOptions): PagePromise<CustomerListResponsesMyCursorIDPage, CustomerListResponse>;
|
|
24
26
|
/**
|
|
25
|
-
*
|
|
27
|
+
* Archives a customer, preventing new subscriptions. Optionally cancels existing
|
|
28
|
+
* subscriptions.
|
|
26
29
|
*/
|
|
27
30
|
archive(id: string, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
28
31
|
/**
|
|
29
|
-
*
|
|
32
|
+
* Imports multiple customers in bulk. Used for migrating customer data from
|
|
33
|
+
* external systems.
|
|
30
34
|
*/
|
|
31
35
|
import(body: CustomerImportParams, options?: RequestOptions): APIPromise<CustomerImportResponse>;
|
|
32
36
|
/**
|
|
33
|
-
*
|
|
37
|
+
* Get a list of customerresources
|
|
38
|
+
*/
|
|
39
|
+
listResources(id: string, query?: CustomerListResourcesParams | null | undefined, options?: RequestOptions): PagePromise<CustomerListResourcesResponsesMyCursorIDPage, CustomerListResourcesResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Creates a new customer and optionally provisions an initial subscription in a
|
|
42
|
+
* single operation.
|
|
34
43
|
*/
|
|
35
44
|
provision(body: CustomerProvisionParams, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
36
45
|
/**
|
|
37
|
-
*
|
|
46
|
+
* Restores an archived customer, allowing them to create new subscriptions again.
|
|
38
47
|
*/
|
|
39
48
|
unarchive(id: string, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
40
49
|
}
|
|
41
50
|
export type CustomerListResponsesMyCursorIDPage = MyCursorIDPage<CustomerListResponse>;
|
|
51
|
+
export type CustomerListResourcesResponsesMyCursorIDPage = MyCursorIDPage<CustomerListResourcesResponse>;
|
|
42
52
|
/**
|
|
43
53
|
* Response object
|
|
44
54
|
*/
|
|
@@ -252,6 +262,23 @@ export declare namespace CustomerImportResponse {
|
|
|
252
262
|
newCustomers: Array<string>;
|
|
253
263
|
}
|
|
254
264
|
}
|
|
265
|
+
/**
|
|
266
|
+
* Resource object that belongs to a customer
|
|
267
|
+
*/
|
|
268
|
+
export interface CustomerListResourcesResponse {
|
|
269
|
+
/**
|
|
270
|
+
* Resource slug
|
|
271
|
+
*/
|
|
272
|
+
id: string;
|
|
273
|
+
/**
|
|
274
|
+
* Timestamp of when the record was created
|
|
275
|
+
*/
|
|
276
|
+
createdAt: string;
|
|
277
|
+
/**
|
|
278
|
+
* Timestamp of when the record was last updated
|
|
279
|
+
*/
|
|
280
|
+
updatedAt: string;
|
|
281
|
+
}
|
|
255
282
|
export interface CustomerUpdateParams {
|
|
256
283
|
/**
|
|
257
284
|
* Customer level coupon
|
|
@@ -296,6 +323,41 @@ export declare namespace CustomerUpdateParams {
|
|
|
296
323
|
}
|
|
297
324
|
}
|
|
298
325
|
export interface CustomerListParams extends MyCursorIDPageParams {
|
|
326
|
+
/**
|
|
327
|
+
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
328
|
+
*/
|
|
329
|
+
createdAt?: CustomerListParams.CreatedAt;
|
|
330
|
+
/**
|
|
331
|
+
* Filter by exact customer email address
|
|
332
|
+
*/
|
|
333
|
+
email?: string;
|
|
334
|
+
/**
|
|
335
|
+
* Filter by exact customer name
|
|
336
|
+
*/
|
|
337
|
+
name?: string;
|
|
338
|
+
}
|
|
339
|
+
export declare namespace CustomerListParams {
|
|
340
|
+
/**
|
|
341
|
+
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
342
|
+
*/
|
|
343
|
+
interface CreatedAt {
|
|
344
|
+
/**
|
|
345
|
+
* Greater than the specified createdAt value
|
|
346
|
+
*/
|
|
347
|
+
gt?: string;
|
|
348
|
+
/**
|
|
349
|
+
* Greater than or equal to the specified createdAt value
|
|
350
|
+
*/
|
|
351
|
+
gte?: string;
|
|
352
|
+
/**
|
|
353
|
+
* Less than the specified createdAt value
|
|
354
|
+
*/
|
|
355
|
+
lt?: string;
|
|
356
|
+
/**
|
|
357
|
+
* Less than or equal to the specified createdAt value
|
|
358
|
+
*/
|
|
359
|
+
lte?: string;
|
|
360
|
+
}
|
|
299
361
|
}
|
|
300
362
|
export interface CustomerImportParams {
|
|
301
363
|
/**
|
|
@@ -333,6 +395,8 @@ export declare namespace CustomerImportParams {
|
|
|
333
395
|
updatedAt?: string;
|
|
334
396
|
}
|
|
335
397
|
}
|
|
398
|
+
export interface CustomerListResourcesParams extends MyCursorIDPageParams {
|
|
399
|
+
}
|
|
336
400
|
export interface CustomerProvisionParams {
|
|
337
401
|
/**
|
|
338
402
|
* Customer slug
|
|
@@ -410,8 +474,8 @@ export declare namespace CustomerProvisionParams {
|
|
|
410
474
|
}
|
|
411
475
|
}
|
|
412
476
|
export declare namespace Customers {
|
|
413
|
-
export { type CustomerResponse as CustomerResponse, type CustomerListResponse as CustomerListResponse, type CustomerImportResponse as CustomerImportResponse, type CustomerListResponsesMyCursorIDPage as CustomerListResponsesMyCursorIDPage, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerImportParams as CustomerImportParams, type CustomerProvisionParams as CustomerProvisionParams, };
|
|
477
|
+
export { type CustomerResponse as CustomerResponse, type CustomerListResponse as CustomerListResponse, type CustomerImportResponse as CustomerImportResponse, type CustomerListResourcesResponse as CustomerListResourcesResponse, type CustomerListResponsesMyCursorIDPage as CustomerListResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage as CustomerListResourcesResponsesMyCursorIDPage, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerImportParams as CustomerImportParams, type CustomerListResourcesParams as CustomerListResourcesParams, type CustomerProvisionParams as CustomerProvisionParams, };
|
|
414
478
|
export { PaymentMethod as PaymentMethod, type PaymentMethodAttachParams as PaymentMethodAttachParams };
|
|
415
|
-
export { PromotionalEntitlements as PromotionalEntitlements, type
|
|
479
|
+
export { PromotionalEntitlements as PromotionalEntitlements, type PromotionalEntitlementCreateResponse as PromotionalEntitlementCreateResponse, type PromotionalEntitlementListResponse as PromotionalEntitlementListResponse, type PromotionalEntitlementRevokeResponse as PromotionalEntitlementRevokeResponse, type PromotionalEntitlementListResponsesMyCursorIDPage as PromotionalEntitlementListResponsesMyCursorIDPage, type PromotionalEntitlementCreateParams as PromotionalEntitlementCreateParams, type PromotionalEntitlementListParams as PromotionalEntitlementListParams, type PromotionalEntitlementRevokeParams as PromotionalEntitlementRevokeParams, };
|
|
416
480
|
}
|
|
417
481
|
//# sourceMappingURL=customers.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/customers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,aAAa,EAAE,yBAAyB,EAAE;OAC5C,KAAK,0BAA0B;OAC/B,EACL,
|
|
1
|
+
{"version":3,"file":"customers.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/customers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,aAAa,EAAE,yBAAyB,EAAE;OAC5C,KAAK,0BAA0B;OAC/B,EACL,kCAAkC,EAClC,oCAAoC,EACpC,gCAAgC,EAChC,kCAAkC,EAClC,iDAAiD,EACjD,kCAAkC,EAClC,oCAAoC,EACpC,uBAAuB,EACxB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;IACjG,uBAAuB,EAAE,0BAA0B,CAAC,uBAAuB,CACJ;IAEvE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B,IAAI,6BAA6B,EACnE,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,4CAA4C,IAAI,4CAA4C,EACjG,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EAAE,aAAa,IAAI,aAAa,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;IAEvG,OAAO,EACL,uBAAuB,IAAI,uBAAuB,EAClD,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,iDAAiD,IAAI,iDAAiD,EAC3G,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,kCAAkC,IAAI,kCAAkC,GAC9E,CAAC;CACH"}
|
|
@@ -2,7 +2,7 @@ import { APIResource } from "../../../core/resource.js";
|
|
|
2
2
|
import * as PaymentMethodAPI from "./payment-method.js";
|
|
3
3
|
import { PaymentMethod, PaymentMethodAttachParams } from "./payment-method.js";
|
|
4
4
|
import * as PromotionalEntitlementsAPI from "./promotional-entitlements.js";
|
|
5
|
-
import {
|
|
5
|
+
import { PromotionalEntitlementCreateParams, PromotionalEntitlementCreateResponse, PromotionalEntitlementListParams, PromotionalEntitlementListResponse, PromotionalEntitlementListResponsesMyCursorIDPage, PromotionalEntitlementRevokeParams, PromotionalEntitlementRevokeResponse, PromotionalEntitlements } from "./promotional-entitlements.js";
|
|
6
6
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
7
7
|
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../../core/pagination.js";
|
|
8
8
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
@@ -10,35 +10,45 @@ export declare class Customers extends APIResource {
|
|
|
10
10
|
paymentMethod: PaymentMethodAPI.PaymentMethod;
|
|
11
11
|
promotionalEntitlements: PromotionalEntitlementsAPI.PromotionalEntitlements;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Retrieves a customer by their unique identifier, including billing information
|
|
14
|
+
* and subscription status.
|
|
14
15
|
*/
|
|
15
16
|
retrieve(id: string, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
16
17
|
/**
|
|
17
|
-
*
|
|
18
|
+
* Updates an existing customer's properties such as name, email, and billing
|
|
19
|
+
* information.
|
|
18
20
|
*/
|
|
19
21
|
update(id: string, body: CustomerUpdateParams, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
20
22
|
/**
|
|
21
|
-
*
|
|
23
|
+
* Retrieves a paginated list of customers in the environment.
|
|
22
24
|
*/
|
|
23
25
|
list(query?: CustomerListParams | null | undefined, options?: RequestOptions): PagePromise<CustomerListResponsesMyCursorIDPage, CustomerListResponse>;
|
|
24
26
|
/**
|
|
25
|
-
*
|
|
27
|
+
* Archives a customer, preventing new subscriptions. Optionally cancels existing
|
|
28
|
+
* subscriptions.
|
|
26
29
|
*/
|
|
27
30
|
archive(id: string, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
28
31
|
/**
|
|
29
|
-
*
|
|
32
|
+
* Imports multiple customers in bulk. Used for migrating customer data from
|
|
33
|
+
* external systems.
|
|
30
34
|
*/
|
|
31
35
|
import(body: CustomerImportParams, options?: RequestOptions): APIPromise<CustomerImportResponse>;
|
|
32
36
|
/**
|
|
33
|
-
*
|
|
37
|
+
* Get a list of customerresources
|
|
38
|
+
*/
|
|
39
|
+
listResources(id: string, query?: CustomerListResourcesParams | null | undefined, options?: RequestOptions): PagePromise<CustomerListResourcesResponsesMyCursorIDPage, CustomerListResourcesResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Creates a new customer and optionally provisions an initial subscription in a
|
|
42
|
+
* single operation.
|
|
34
43
|
*/
|
|
35
44
|
provision(body: CustomerProvisionParams, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
36
45
|
/**
|
|
37
|
-
*
|
|
46
|
+
* Restores an archived customer, allowing them to create new subscriptions again.
|
|
38
47
|
*/
|
|
39
48
|
unarchive(id: string, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
40
49
|
}
|
|
41
50
|
export type CustomerListResponsesMyCursorIDPage = MyCursorIDPage<CustomerListResponse>;
|
|
51
|
+
export type CustomerListResourcesResponsesMyCursorIDPage = MyCursorIDPage<CustomerListResourcesResponse>;
|
|
42
52
|
/**
|
|
43
53
|
* Response object
|
|
44
54
|
*/
|
|
@@ -252,6 +262,23 @@ export declare namespace CustomerImportResponse {
|
|
|
252
262
|
newCustomers: Array<string>;
|
|
253
263
|
}
|
|
254
264
|
}
|
|
265
|
+
/**
|
|
266
|
+
* Resource object that belongs to a customer
|
|
267
|
+
*/
|
|
268
|
+
export interface CustomerListResourcesResponse {
|
|
269
|
+
/**
|
|
270
|
+
* Resource slug
|
|
271
|
+
*/
|
|
272
|
+
id: string;
|
|
273
|
+
/**
|
|
274
|
+
* Timestamp of when the record was created
|
|
275
|
+
*/
|
|
276
|
+
createdAt: string;
|
|
277
|
+
/**
|
|
278
|
+
* Timestamp of when the record was last updated
|
|
279
|
+
*/
|
|
280
|
+
updatedAt: string;
|
|
281
|
+
}
|
|
255
282
|
export interface CustomerUpdateParams {
|
|
256
283
|
/**
|
|
257
284
|
* Customer level coupon
|
|
@@ -296,6 +323,41 @@ export declare namespace CustomerUpdateParams {
|
|
|
296
323
|
}
|
|
297
324
|
}
|
|
298
325
|
export interface CustomerListParams extends MyCursorIDPageParams {
|
|
326
|
+
/**
|
|
327
|
+
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
328
|
+
*/
|
|
329
|
+
createdAt?: CustomerListParams.CreatedAt;
|
|
330
|
+
/**
|
|
331
|
+
* Filter by exact customer email address
|
|
332
|
+
*/
|
|
333
|
+
email?: string;
|
|
334
|
+
/**
|
|
335
|
+
* Filter by exact customer name
|
|
336
|
+
*/
|
|
337
|
+
name?: string;
|
|
338
|
+
}
|
|
339
|
+
export declare namespace CustomerListParams {
|
|
340
|
+
/**
|
|
341
|
+
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
342
|
+
*/
|
|
343
|
+
interface CreatedAt {
|
|
344
|
+
/**
|
|
345
|
+
* Greater than the specified createdAt value
|
|
346
|
+
*/
|
|
347
|
+
gt?: string;
|
|
348
|
+
/**
|
|
349
|
+
* Greater than or equal to the specified createdAt value
|
|
350
|
+
*/
|
|
351
|
+
gte?: string;
|
|
352
|
+
/**
|
|
353
|
+
* Less than the specified createdAt value
|
|
354
|
+
*/
|
|
355
|
+
lt?: string;
|
|
356
|
+
/**
|
|
357
|
+
* Less than or equal to the specified createdAt value
|
|
358
|
+
*/
|
|
359
|
+
lte?: string;
|
|
360
|
+
}
|
|
299
361
|
}
|
|
300
362
|
export interface CustomerImportParams {
|
|
301
363
|
/**
|
|
@@ -333,6 +395,8 @@ export declare namespace CustomerImportParams {
|
|
|
333
395
|
updatedAt?: string;
|
|
334
396
|
}
|
|
335
397
|
}
|
|
398
|
+
export interface CustomerListResourcesParams extends MyCursorIDPageParams {
|
|
399
|
+
}
|
|
336
400
|
export interface CustomerProvisionParams {
|
|
337
401
|
/**
|
|
338
402
|
* Customer slug
|
|
@@ -410,8 +474,8 @@ export declare namespace CustomerProvisionParams {
|
|
|
410
474
|
}
|
|
411
475
|
}
|
|
412
476
|
export declare namespace Customers {
|
|
413
|
-
export { type CustomerResponse as CustomerResponse, type CustomerListResponse as CustomerListResponse, type CustomerImportResponse as CustomerImportResponse, type CustomerListResponsesMyCursorIDPage as CustomerListResponsesMyCursorIDPage, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerImportParams as CustomerImportParams, type CustomerProvisionParams as CustomerProvisionParams, };
|
|
477
|
+
export { type CustomerResponse as CustomerResponse, type CustomerListResponse as CustomerListResponse, type CustomerImportResponse as CustomerImportResponse, type CustomerListResourcesResponse as CustomerListResourcesResponse, type CustomerListResponsesMyCursorIDPage as CustomerListResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage as CustomerListResourcesResponsesMyCursorIDPage, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerImportParams as CustomerImportParams, type CustomerListResourcesParams as CustomerListResourcesParams, type CustomerProvisionParams as CustomerProvisionParams, };
|
|
414
478
|
export { PaymentMethod as PaymentMethod, type PaymentMethodAttachParams as PaymentMethodAttachParams };
|
|
415
|
-
export { PromotionalEntitlements as PromotionalEntitlements, type
|
|
479
|
+
export { PromotionalEntitlements as PromotionalEntitlements, type PromotionalEntitlementCreateResponse as PromotionalEntitlementCreateResponse, type PromotionalEntitlementListResponse as PromotionalEntitlementListResponse, type PromotionalEntitlementRevokeResponse as PromotionalEntitlementRevokeResponse, type PromotionalEntitlementListResponsesMyCursorIDPage as PromotionalEntitlementListResponsesMyCursorIDPage, type PromotionalEntitlementCreateParams as PromotionalEntitlementCreateParams, type PromotionalEntitlementListParams as PromotionalEntitlementListParams, type PromotionalEntitlementRevokeParams as PromotionalEntitlementRevokeParams, };
|
|
416
480
|
}
|
|
417
481
|
//# sourceMappingURL=customers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/customers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,aAAa,EAAE,yBAAyB,EAAE;OAC5C,KAAK,0BAA0B;OAC/B,EACL,
|
|
1
|
+
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/customers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,aAAa,EAAE,yBAAyB,EAAE;OAC5C,KAAK,0BAA0B;OAC/B,EAC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