@stigg/typescript 0.1.0-alpha.2 → 0.1.0-alpha.4
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 +17 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/v1/coupons.d.mts +28 -78
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +28 -78
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +3 -3
- package/resources/v1/coupons.mjs +3 -3
- package/resources/v1/customers/customers.d.mts +132 -48
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +132 -48
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +21 -15
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +21 -15
- 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 +3 -3
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs +1 -1
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +5 -2
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +5 -2
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +2 -2
- package/resources/v1/customers/payment-method.mjs +2 -2
- package/resources/v1/customers/promotional-entitlements.d.mts +350 -0
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -0
- package/resources/v1/customers/promotional-entitlements.d.ts +350 -0
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -0
- package/resources/v1/customers/promotional-entitlements.js +23 -0
- package/resources/v1/customers/promotional-entitlements.js.map +1 -0
- package/resources/v1/customers/promotional-entitlements.mjs +19 -0
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -0
- package/resources/v1/events.d.mts +62 -0
- package/resources/v1/events.d.mts.map +1 -0
- package/resources/v1/events.d.ts +62 -0
- package/resources/v1/events.d.ts.map +1 -0
- package/resources/v1/events.js +15 -0
- package/resources/v1/events.js.map +1 -0
- package/resources/v1/events.mjs +11 -0
- package/resources/v1/events.mjs.map +1 -0
- package/resources/v1/index.d.mts +6 -4
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +6 -4
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +5 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +3 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +11 -19
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +11 -19
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +2 -2
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +2 -2
- package/resources/v1/subscriptions/future-update.mjs.map +1 -1
- package/resources/v1/subscriptions/index.d.mts +2 -2
- package/resources/v1/subscriptions/index.d.mts.map +1 -1
- package/resources/v1/subscriptions/index.d.ts +2 -2
- package/resources/v1/subscriptions/index.d.ts.map +1 -1
- package/resources/v1/subscriptions/index.js.map +1 -1
- package/resources/v1/subscriptions/index.mjs +1 -1
- package/resources/v1/subscriptions/index.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +1354 -446
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +1354 -446
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +29 -11
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +30 -12
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/usage.d.mts +229 -0
- package/resources/v1/usage.d.mts.map +1 -0
- package/resources/v1/usage.d.ts +229 -0
- package/resources/v1/usage.d.ts.map +1 -0
- package/resources/v1/usage.js +23 -0
- package/resources/v1/usage.js.map +1 -0
- package/resources/v1/usage.mjs +19 -0
- package/resources/v1/usage.mjs.map +1 -0
- package/resources/v1/v1.d.mts +14 -149
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +14 -149
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +8 -12
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +8 -12
- package/resources/v1/v1.mjs.map +1 -1
- package/src/client.ts +2 -14
- package/src/resources/index.ts +1 -7
- package/src/resources/v1/coupons.ts +28 -211
- package/src/resources/v1/customers/customers.ts +167 -62
- package/src/resources/v1/customers/index.ts +10 -2
- package/src/resources/v1/customers/payment-method.ts +5 -2
- package/src/resources/v1/customers/promotional-entitlements.ts +466 -0
- package/src/resources/v1/events.ts +73 -0
- package/src/resources/v1/index.ts +19 -15
- package/src/resources/v1/subscriptions/future-update.ts +11 -27
- package/src/resources/v1/subscriptions/index.ts +8 -11
- package/src/resources/v1/subscriptions/subscriptions.ts +2987 -689
- package/src/resources/v1/usage.ts +283 -0
- package/src/resources/v1/v1.ts +50 -197
- 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
- package/resources/v1/customers/usage.d.mts +0 -98
- package/resources/v1/customers/usage.d.mts.map +0 -1
- package/resources/v1/customers/usage.d.ts +0 -98
- package/resources/v1/customers/usage.d.ts.map +0 -1
- package/resources/v1/customers/usage.js +0 -20
- package/resources/v1/customers/usage.js.map +0 -1
- package/resources/v1/customers/usage.mjs +0 -16
- package/resources/v1/customers/usage.mjs.map +0 -1
- package/src/resources/v1/customers/usage.ts +0 -132
|
@@ -4,23 +4,32 @@ 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
|
-
* Create
|
|
7
|
+
* Create coupon
|
|
8
8
|
*/
|
|
9
|
-
create(body: CouponCreateParams, options?: RequestOptions): APIPromise<
|
|
9
|
+
create(body: CouponCreateParams, options?: RequestOptions): APIPromise<Coupon>;
|
|
10
10
|
/**
|
|
11
|
-
* Get a single
|
|
11
|
+
* Get a single coupon by ID
|
|
12
12
|
*/
|
|
13
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<
|
|
13
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<Coupon>;
|
|
14
14
|
/**
|
|
15
|
-
* Get a list of
|
|
15
|
+
* Get a list of coupons
|
|
16
16
|
*/
|
|
17
17
|
list(query?: CouponListParams | null | undefined, options?: RequestOptions): PagePromise<CouponListResponsesMyCursorIDPage, CouponListResponse>;
|
|
18
18
|
}
|
|
19
19
|
export type CouponListResponsesMyCursorIDPage = MyCursorIDPage<CouponListResponse>;
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Response object
|
|
22
|
+
*/
|
|
23
|
+
export interface Coupon {
|
|
24
|
+
/**
|
|
25
|
+
* Discount instrument with percentage or fixed amount
|
|
26
|
+
*/
|
|
27
|
+
data: Coupon.Data;
|
|
22
28
|
}
|
|
23
|
-
export declare namespace
|
|
29
|
+
export declare namespace Coupon {
|
|
30
|
+
/**
|
|
31
|
+
* Discount instrument with percentage or fixed amount
|
|
32
|
+
*/
|
|
24
33
|
interface Data {
|
|
25
34
|
/**
|
|
26
35
|
* The unique identifier for the entity
|
|
@@ -76,77 +85,9 @@ export declare namespace CouponCreateResponse {
|
|
|
76
85
|
updatedAt: string;
|
|
77
86
|
}
|
|
78
87
|
namespace Data {
|
|
79
|
-
interface AmountsOff {
|
|
80
|
-
/**
|
|
81
|
-
* The price amount
|
|
82
|
-
*/
|
|
83
|
-
amount: number;
|
|
84
|
-
/**
|
|
85
|
-
* The price currency
|
|
86
|
-
*/
|
|
87
|
-
currency: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
export interface CouponRetrieveResponse {
|
|
92
|
-
data: CouponRetrieveResponse.Data;
|
|
93
|
-
}
|
|
94
|
-
export declare namespace CouponRetrieveResponse {
|
|
95
|
-
interface Data {
|
|
96
|
-
/**
|
|
97
|
-
* The unique identifier for the entity
|
|
98
|
-
*/
|
|
99
|
-
id: string;
|
|
100
|
-
/**
|
|
101
|
-
* Fixed amount discounts in different currencies
|
|
102
|
-
*/
|
|
103
|
-
amountsOff: Array<Data.AmountsOff> | null;
|
|
104
|
-
/**
|
|
105
|
-
* The unique identifier for the entity in the billing provider
|
|
106
|
-
*/
|
|
107
|
-
billingId: string | null;
|
|
108
|
-
/**
|
|
109
|
-
* The URL to the entity in the billing provider
|
|
110
|
-
*/
|
|
111
|
-
billingLinkUrl: string | null;
|
|
112
|
-
/**
|
|
113
|
-
* Timestamp of when the record was created
|
|
114
|
-
*/
|
|
115
|
-
createdAt: string;
|
|
116
|
-
/**
|
|
117
|
-
* Description of the coupon
|
|
118
|
-
*/
|
|
119
|
-
description: string | null;
|
|
120
88
|
/**
|
|
121
|
-
*
|
|
122
|
-
*/
|
|
123
|
-
durationInMonths: number | null;
|
|
124
|
-
/**
|
|
125
|
-
* Name of the coupon
|
|
89
|
+
* Monetary amount with currency
|
|
126
90
|
*/
|
|
127
|
-
name: string;
|
|
128
|
-
/**
|
|
129
|
-
* Percentage discount off the original price
|
|
130
|
-
*/
|
|
131
|
-
percentOff: number | null;
|
|
132
|
-
/**
|
|
133
|
-
* The source of the coupon
|
|
134
|
-
*/
|
|
135
|
-
source: 'STIGG' | 'STIGG_ADHOC' | 'STRIPE' | null;
|
|
136
|
-
/**
|
|
137
|
-
* Current status of the coupon
|
|
138
|
-
*/
|
|
139
|
-
status: 'ACTIVE' | 'ARCHIVED';
|
|
140
|
-
/**
|
|
141
|
-
* Type of the coupon (percentage or fixed amount)
|
|
142
|
-
*/
|
|
143
|
-
type: 'FIXED' | 'PERCENTAGE';
|
|
144
|
-
/**
|
|
145
|
-
* Timestamp of when the record was last updated
|
|
146
|
-
*/
|
|
147
|
-
updatedAt: string;
|
|
148
|
-
}
|
|
149
|
-
namespace Data {
|
|
150
91
|
interface AmountsOff {
|
|
151
92
|
/**
|
|
152
93
|
* The price amount
|
|
@@ -159,6 +100,9 @@ export declare namespace CouponRetrieveResponse {
|
|
|
159
100
|
}
|
|
160
101
|
}
|
|
161
102
|
}
|
|
103
|
+
/**
|
|
104
|
+
* Discount instrument with percentage or fixed amount
|
|
105
|
+
*/
|
|
162
106
|
export interface CouponListResponse {
|
|
163
107
|
/**
|
|
164
108
|
* The unique identifier for the entity
|
|
@@ -214,6 +158,9 @@ export interface CouponListResponse {
|
|
|
214
158
|
updatedAt: string;
|
|
215
159
|
}
|
|
216
160
|
export declare namespace CouponListResponse {
|
|
161
|
+
/**
|
|
162
|
+
* Monetary amount with currency
|
|
163
|
+
*/
|
|
217
164
|
interface AmountsOff {
|
|
218
165
|
/**
|
|
219
166
|
* The price amount
|
|
@@ -256,6 +203,9 @@ export interface CouponCreateParams {
|
|
|
256
203
|
additionalMetaData?: unknown;
|
|
257
204
|
}
|
|
258
205
|
export declare namespace CouponCreateParams {
|
|
206
|
+
/**
|
|
207
|
+
* Monetary amount with currency
|
|
208
|
+
*/
|
|
259
209
|
interface AmountsOff {
|
|
260
210
|
/**
|
|
261
211
|
* The price amount
|
|
@@ -270,6 +220,6 @@ export declare namespace CouponCreateParams {
|
|
|
270
220
|
export interface CouponListParams extends MyCursorIDPageParams {
|
|
271
221
|
}
|
|
272
222
|
export declare namespace Coupons {
|
|
273
|
-
export { type
|
|
223
|
+
export { type Coupon as Coupon, type CouponListResponse as CouponListResponse, type CouponListResponsesMyCursorIDPage as CouponListResponsesMyCursorIDPage, type CouponCreateParams as CouponCreateParams, type CouponListParams as CouponListParams, };
|
|
274
224
|
}
|
|
275
225
|
//# 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;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,
|
|
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;;OAEG;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;CAMtE;AAED,MAAM,MAAM,iCAAiC,GAAG,cAAc,CAAC,kBAAkB,CAAC,CAAC;AAEnF;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC;CACnB;AAED,yBAAiB,MAA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AK,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,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAC;KACX;CACF;AAED,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;CAAG;AAEjE,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
package/resources/v1/coupons.js
CHANGED
|
@@ -7,19 +7,19 @@ 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
|
-
* Create
|
|
10
|
+
* Create coupon
|
|
11
11
|
*/
|
|
12
12
|
create(body, options) {
|
|
13
13
|
return this._client.post('/api/v1/coupons', { body, ...options });
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* Get a single
|
|
16
|
+
* Get a single coupon by ID
|
|
17
17
|
*/
|
|
18
18
|
retrieve(id, options) {
|
|
19
19
|
return this._client.get((0, path_1.path) `/api/v1/coupons/${id}`, options);
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
* Get a list of
|
|
22
|
+
* Get a list of coupons
|
|
23
23
|
*/
|
|
24
24
|
list(query = {}, options) {
|
|
25
25
|
return this._client.getAPIList('/api/v1/coupons', (pagination_1.MyCursorIDPage), {
|
package/resources/v1/coupons.mjs
CHANGED
|
@@ -4,19 +4,19 @@ 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
|
-
* Create
|
|
7
|
+
* Create coupon
|
|
8
8
|
*/
|
|
9
9
|
create(body, options) {
|
|
10
10
|
return this._client.post('/api/v1/coupons', { body, ...options });
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
* Get a single
|
|
13
|
+
* Get a single coupon by ID
|
|
14
14
|
*/
|
|
15
15
|
retrieve(id, options) {
|
|
16
16
|
return this._client.get(path `/api/v1/coupons/${id}`, options);
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
* Get a list of
|
|
19
|
+
* Get a list of coupons
|
|
20
20
|
*/
|
|
21
21
|
list(query = {}, options) {
|
|
22
22
|
return this._client.getAPIList('/api/v1/coupons', (MyCursorIDPage), {
|
|
@@ -1,44 +1,57 @@
|
|
|
1
1
|
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
|
-
import * as
|
|
5
|
-
import {
|
|
4
|
+
import * as PromotionalEntitlementsAPI from "./promotional-entitlements.mjs";
|
|
5
|
+
import { PromotionalEntitlementGrantParams, PromotionalEntitlementGrantResponse, 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";
|
|
9
9
|
export declare class Customers extends APIResource {
|
|
10
10
|
paymentMethod: PaymentMethodAPI.PaymentMethod;
|
|
11
|
-
|
|
11
|
+
promotionalEntitlements: PromotionalEntitlementsAPI.PromotionalEntitlements;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
create(body: CustomerCreateParams, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
16
|
-
/**
|
|
17
|
-
* Get a single Customer by id
|
|
13
|
+
* Get a single customer by ID
|
|
18
14
|
*/
|
|
19
15
|
retrieve(id: string, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
20
16
|
/**
|
|
21
|
-
* Update
|
|
17
|
+
* Update a customer
|
|
22
18
|
*/
|
|
23
19
|
update(id: string, body: CustomerUpdateParams, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
24
20
|
/**
|
|
25
|
-
* Get a list of
|
|
21
|
+
* Get a list of customers
|
|
26
22
|
*/
|
|
27
23
|
list(query?: CustomerListParams | null | undefined, options?: RequestOptions): PagePromise<CustomerListResponsesMyCursorIDPage, CustomerListResponse>;
|
|
28
24
|
/**
|
|
29
|
-
*
|
|
25
|
+
* Archive customer
|
|
30
26
|
*/
|
|
31
27
|
archive(id: string, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
32
28
|
/**
|
|
33
|
-
*
|
|
29
|
+
* Bulk import customers
|
|
30
|
+
*/
|
|
31
|
+
import(body: CustomerImportParams, options?: RequestOptions): APIPromise<CustomerImportResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Provision customer
|
|
34
|
+
*/
|
|
35
|
+
provision(body: CustomerProvisionParams, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Unarchive customer
|
|
34
38
|
*/
|
|
35
39
|
unarchive(id: string, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
36
40
|
}
|
|
37
41
|
export type CustomerListResponsesMyCursorIDPage = MyCursorIDPage<CustomerListResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Response object
|
|
44
|
+
*/
|
|
38
45
|
export interface CustomerResponse {
|
|
46
|
+
/**
|
|
47
|
+
* A customer can be either an organization or an individual
|
|
48
|
+
*/
|
|
39
49
|
data: CustomerResponse.Data;
|
|
40
50
|
}
|
|
41
51
|
export declare namespace CustomerResponse {
|
|
52
|
+
/**
|
|
53
|
+
* A customer can be either an organization or an individual
|
|
54
|
+
*/
|
|
42
55
|
interface Data {
|
|
43
56
|
/**
|
|
44
57
|
* Customer slug
|
|
@@ -109,6 +122,9 @@ export declare namespace CustomerResponse {
|
|
|
109
122
|
*/
|
|
110
123
|
type: 'CARD' | 'BANK' | 'CASH_APP';
|
|
111
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* External billing or CRM integration link
|
|
127
|
+
*/
|
|
112
128
|
interface Integration {
|
|
113
129
|
/**
|
|
114
130
|
* Integration details
|
|
@@ -125,6 +141,9 @@ export declare namespace CustomerResponse {
|
|
|
125
141
|
}
|
|
126
142
|
}
|
|
127
143
|
}
|
|
144
|
+
/**
|
|
145
|
+
* A customer can be either an organization or an individual
|
|
146
|
+
*/
|
|
128
147
|
export interface CustomerListResponse {
|
|
129
148
|
/**
|
|
130
149
|
* Customer slug
|
|
@@ -195,6 +214,9 @@ export declare namespace CustomerListResponse {
|
|
|
195
214
|
*/
|
|
196
215
|
type: 'CARD' | 'BANK' | 'CASH_APP';
|
|
197
216
|
}
|
|
217
|
+
/**
|
|
218
|
+
* External billing or CRM integration link
|
|
219
|
+
*/
|
|
198
220
|
interface Integration {
|
|
199
221
|
/**
|
|
200
222
|
* Integration details
|
|
@@ -210,19 +232,31 @@ export declare namespace CustomerListResponse {
|
|
|
210
232
|
vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE';
|
|
211
233
|
}
|
|
212
234
|
}
|
|
213
|
-
|
|
235
|
+
/**
|
|
236
|
+
* Response object
|
|
237
|
+
*/
|
|
238
|
+
export interface CustomerImportResponse {
|
|
214
239
|
/**
|
|
215
|
-
*
|
|
240
|
+
* List of newly created customer IDs from the import operation.
|
|
216
241
|
*/
|
|
217
|
-
|
|
242
|
+
data: CustomerImportResponse.Data;
|
|
243
|
+
}
|
|
244
|
+
export declare namespace CustomerImportResponse {
|
|
218
245
|
/**
|
|
219
|
-
*
|
|
246
|
+
* List of newly created customer IDs from the import operation.
|
|
220
247
|
*/
|
|
221
|
-
|
|
248
|
+
interface Data {
|
|
249
|
+
/**
|
|
250
|
+
* Customer IDs created during import
|
|
251
|
+
*/
|
|
252
|
+
newCustomers: Array<string>;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
export interface CustomerUpdateParams {
|
|
222
256
|
/**
|
|
223
|
-
*
|
|
257
|
+
* Customer level coupon
|
|
224
258
|
*/
|
|
225
|
-
|
|
259
|
+
couponId?: string | null;
|
|
226
260
|
/**
|
|
227
261
|
* The email of the customer
|
|
228
262
|
*/
|
|
@@ -230,7 +264,7 @@ export interface CustomerCreateParams {
|
|
|
230
264
|
/**
|
|
231
265
|
* List of integrations
|
|
232
266
|
*/
|
|
233
|
-
integrations?: Array<
|
|
267
|
+
integrations?: Array<CustomerUpdateParams.Integration>;
|
|
234
268
|
/**
|
|
235
269
|
* Additional metadata
|
|
236
270
|
*/
|
|
@@ -242,52 +276,76 @@ export interface CustomerCreateParams {
|
|
|
242
276
|
*/
|
|
243
277
|
name?: string | null;
|
|
244
278
|
}
|
|
245
|
-
export declare namespace
|
|
279
|
+
export declare namespace CustomerUpdateParams {
|
|
246
280
|
/**
|
|
247
|
-
*
|
|
281
|
+
* External billing or CRM integration link
|
|
248
282
|
*/
|
|
249
|
-
interface
|
|
283
|
+
interface Integration {
|
|
250
284
|
/**
|
|
251
|
-
*
|
|
285
|
+
* Integration details
|
|
252
286
|
*/
|
|
253
|
-
|
|
287
|
+
id: string;
|
|
254
288
|
/**
|
|
255
|
-
*
|
|
289
|
+
* Synced entity id
|
|
256
290
|
*/
|
|
257
|
-
|
|
291
|
+
syncedEntityId: string | null;
|
|
258
292
|
/**
|
|
259
|
-
* The
|
|
293
|
+
* The vendor identifier of integration
|
|
260
294
|
*/
|
|
261
|
-
|
|
295
|
+
vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE';
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
export interface CustomerListParams extends MyCursorIDPageParams {
|
|
299
|
+
}
|
|
300
|
+
export interface CustomerImportParams {
|
|
301
|
+
/**
|
|
302
|
+
* List of customer objects to import
|
|
303
|
+
*/
|
|
304
|
+
customers: Array<CustomerImportParams.Customer>;
|
|
305
|
+
}
|
|
306
|
+
export declare namespace CustomerImportParams {
|
|
307
|
+
interface Customer {
|
|
262
308
|
/**
|
|
263
|
-
*
|
|
309
|
+
* Customer slug
|
|
264
310
|
*/
|
|
265
|
-
|
|
311
|
+
id: string;
|
|
266
312
|
/**
|
|
267
|
-
* The
|
|
313
|
+
* The email of the customer
|
|
268
314
|
*/
|
|
269
|
-
|
|
270
|
-
}
|
|
271
|
-
interface Integration {
|
|
315
|
+
email: string | null;
|
|
272
316
|
/**
|
|
273
|
-
*
|
|
317
|
+
* The name of the customer
|
|
274
318
|
*/
|
|
275
|
-
|
|
319
|
+
name: string | null;
|
|
276
320
|
/**
|
|
277
|
-
*
|
|
321
|
+
* Additional metadata
|
|
278
322
|
*/
|
|
279
|
-
|
|
323
|
+
metadata?: {
|
|
324
|
+
[key: string]: string;
|
|
325
|
+
};
|
|
280
326
|
/**
|
|
281
|
-
*
|
|
327
|
+
* Billing provider payment method id
|
|
282
328
|
*/
|
|
283
|
-
|
|
329
|
+
paymentMethodId?: string;
|
|
330
|
+
/**
|
|
331
|
+
* Timestamp of when the record was last updated
|
|
332
|
+
*/
|
|
333
|
+
updatedAt?: string;
|
|
284
334
|
}
|
|
285
335
|
}
|
|
286
|
-
export interface
|
|
336
|
+
export interface CustomerProvisionParams {
|
|
337
|
+
/**
|
|
338
|
+
* Customer slug
|
|
339
|
+
*/
|
|
340
|
+
id: string;
|
|
287
341
|
/**
|
|
288
342
|
* Customer level coupon
|
|
289
343
|
*/
|
|
290
344
|
couponId?: string | null;
|
|
345
|
+
/**
|
|
346
|
+
* The default payment method details
|
|
347
|
+
*/
|
|
348
|
+
defaultPaymentMethod?: CustomerProvisionParams.DefaultPaymentMethod | null;
|
|
291
349
|
/**
|
|
292
350
|
* The email of the customer
|
|
293
351
|
*/
|
|
@@ -295,7 +353,7 @@ export interface CustomerUpdateParams {
|
|
|
295
353
|
/**
|
|
296
354
|
* List of integrations
|
|
297
355
|
*/
|
|
298
|
-
integrations?: Array<
|
|
356
|
+
integrations?: Array<CustomerProvisionParams.Integration>;
|
|
299
357
|
/**
|
|
300
358
|
* Additional metadata
|
|
301
359
|
*/
|
|
@@ -307,7 +365,35 @@ export interface CustomerUpdateParams {
|
|
|
307
365
|
*/
|
|
308
366
|
name?: string | null;
|
|
309
367
|
}
|
|
310
|
-
export declare namespace
|
|
368
|
+
export declare namespace CustomerProvisionParams {
|
|
369
|
+
/**
|
|
370
|
+
* The default payment method details
|
|
371
|
+
*/
|
|
372
|
+
interface DefaultPaymentMethod {
|
|
373
|
+
/**
|
|
374
|
+
* The default payment method id
|
|
375
|
+
*/
|
|
376
|
+
billingId: string | null;
|
|
377
|
+
/**
|
|
378
|
+
* The expiration month of the default payment method
|
|
379
|
+
*/
|
|
380
|
+
cardExpiryMonth: number | null;
|
|
381
|
+
/**
|
|
382
|
+
* The expiration year of the default payment method
|
|
383
|
+
*/
|
|
384
|
+
cardExpiryYear: number | null;
|
|
385
|
+
/**
|
|
386
|
+
* The last 4 digits of the default payment method
|
|
387
|
+
*/
|
|
388
|
+
cardLast4Digits: string | null;
|
|
389
|
+
/**
|
|
390
|
+
* The default payment method type
|
|
391
|
+
*/
|
|
392
|
+
type: 'CARD' | 'BANK' | 'CASH_APP';
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* External billing or CRM integration link
|
|
396
|
+
*/
|
|
311
397
|
interface Integration {
|
|
312
398
|
/**
|
|
313
399
|
* Integration details
|
|
@@ -323,11 +409,9 @@ export declare namespace CustomerUpdateParams {
|
|
|
323
409
|
vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE';
|
|
324
410
|
}
|
|
325
411
|
}
|
|
326
|
-
export interface CustomerListParams extends MyCursorIDPageParams {
|
|
327
|
-
}
|
|
328
412
|
export declare namespace Customers {
|
|
329
|
-
export { type CustomerResponse as CustomerResponse, type CustomerListResponse as CustomerListResponse, type
|
|
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, };
|
|
330
414
|
export { PaymentMethod as PaymentMethod, type PaymentMethodAttachParams as PaymentMethodAttachParams };
|
|
331
|
-
export {
|
|
415
|
+
export { PromotionalEntitlements as PromotionalEntitlements, type PromotionalEntitlementGrantResponse as PromotionalEntitlementGrantResponse, type PromotionalEntitlementRevokeResponse as PromotionalEntitlementRevokeResponse, type PromotionalEntitlementGrantParams as PromotionalEntitlementGrantParams, type PromotionalEntitlementRevokeParams as PromotionalEntitlementRevokeParams, };
|
|
332
416
|
}
|
|
333
417
|
//# 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,
|
|
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,iCAAiC,EACjC,mCAAmC,EACnC,kCAA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