@whop/sdk 0.0.2 → 0.0.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 +55 -0
- package/client.d.mts +30 -12
- package/client.d.mts.map +1 -1
- package/client.d.ts +30 -12
- package/client.d.ts.map +1 -1
- package/client.js +19 -1
- package/client.js.map +1 -1
- package/client.mjs +21 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/app-builds.d.mts +16 -13
- package/resources/app-builds.d.mts.map +1 -1
- package/resources/app-builds.d.ts +16 -13
- package/resources/app-builds.d.ts.map +1 -1
- package/resources/app-builds.js +1 -1
- package/resources/app-builds.mjs +1 -1
- package/resources/apps.d.mts +15 -10
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +15 -10
- package/resources/apps.d.ts.map +1 -1
- package/resources/checkout-configurations.d.mts +252 -140
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +252 -140
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/checkout-configurations.js +6 -20
- package/resources/checkout-configurations.js.map +1 -1
- package/resources/checkout-configurations.mjs +6 -20
- package/resources/checkout-configurations.mjs.map +1 -1
- package/resources/companies.d.mts +157 -0
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +157 -0
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js +22 -0
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs +22 -0
- package/resources/companies.mjs.map +1 -1
- package/resources/course-chapters.d.mts +185 -0
- package/resources/course-chapters.d.mts.map +1 -0
- package/resources/course-chapters.d.ts +185 -0
- package/resources/course-chapters.d.ts.map +1 -0
- package/resources/course-chapters.js +103 -0
- package/resources/course-chapters.js.map +1 -0
- package/resources/course-chapters.mjs +99 -0
- package/resources/course-chapters.mjs.map +1 -0
- package/resources/course-lesson-interactions.d.mts +2 -2
- package/resources/course-lesson-interactions.d.ts +2 -2
- package/resources/course-lesson-interactions.js +2 -2
- package/resources/course-lesson-interactions.mjs +2 -2
- package/resources/course-lessons.d.mts +563 -0
- package/resources/course-lessons.d.mts.map +1 -0
- package/resources/course-lessons.d.ts +563 -0
- package/resources/course-lessons.d.ts.map +1 -0
- package/resources/course-lessons.js +101 -0
- package/resources/course-lessons.js.map +1 -0
- package/resources/course-lessons.mjs +97 -0
- package/resources/course-lessons.mjs.map +1 -0
- package/resources/course-students.d.mts +187 -0
- package/resources/course-students.d.mts.map +1 -0
- package/resources/course-students.d.ts +187 -0
- package/resources/course-students.d.ts.map +1 -0
- package/resources/course-students.js +36 -0
- package/resources/course-students.js.map +1 -0
- package/resources/course-students.mjs +32 -0
- package/resources/course-students.mjs.map +1 -0
- package/resources/courses.d.mts +485 -0
- package/resources/courses.d.mts.map +1 -0
- package/resources/courses.d.ts +485 -0
- package/resources/courses.d.ts.map +1 -0
- package/resources/courses.js +98 -0
- package/resources/courses.js.map +1 -0
- package/resources/courses.mjs +94 -0
- package/resources/courses.mjs.map +1 -0
- package/resources/experiences.d.mts +42 -11
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +42 -11
- package/resources/experiences.d.ts.map +1 -1
- package/resources/experiences.js +22 -0
- package/resources/experiences.js.map +1 -1
- package/resources/experiences.mjs +22 -0
- package/resources/experiences.mjs.map +1 -1
- package/resources/forum-posts.d.mts +75 -10
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +75 -10
- package/resources/forum-posts.d.ts.map +1 -1
- package/resources/forum-posts.js +11 -0
- package/resources/forum-posts.js.map +1 -1
- package/resources/forum-posts.mjs +11 -0
- package/resources/forum-posts.mjs.map +1 -1
- package/resources/index.d.mts +12 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +12 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +13 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.mts +529 -146
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +529 -146
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +2 -24
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +2 -24
- package/resources/invoices.mjs.map +1 -1
- package/resources/ledger-accounts.d.mts +1 -1
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +1 -1
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/members.d.mts +4 -0
- package/resources/members.d.mts.map +1 -1
- package/resources/members.d.ts +4 -0
- package/resources/members.d.ts.map +1 -1
- package/resources/memberships.d.mts +26 -5
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +26 -5
- package/resources/memberships.d.ts.map +1 -1
- package/resources/memberships.js +1 -1
- package/resources/memberships.js.map +1 -1
- package/resources/memberships.mjs +1 -1
- package/resources/memberships.mjs.map +1 -1
- package/resources/messages.d.mts +57 -10
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +57 -10
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +6 -0
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +6 -0
- package/resources/messages.mjs.map +1 -1
- package/resources/payments.d.mts +35 -13
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +35 -13
- package/resources/payments.d.ts.map +1 -1
- package/resources/plans.d.mts +161 -17
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +161 -17
- package/resources/plans.d.ts.map +1 -1
- package/resources/plans.js.map +1 -1
- package/resources/plans.mjs.map +1 -1
- package/resources/products.d.mts +30 -33
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +30 -33
- package/resources/products.d.ts.map +1 -1
- package/resources/promo-codes.d.mts +394 -0
- package/resources/promo-codes.d.mts.map +1 -0
- package/resources/promo-codes.d.ts +394 -0
- package/resources/promo-codes.d.ts.map +1 -0
- package/resources/promo-codes.js +91 -0
- package/resources/promo-codes.js.map +1 -0
- package/resources/promo-codes.mjs +87 -0
- package/resources/promo-codes.mjs.map +1 -0
- package/resources/reviews.d.mts +277 -0
- package/resources/reviews.d.mts.map +1 -0
- package/resources/reviews.d.ts +277 -0
- package/resources/reviews.d.ts.map +1 -0
- package/resources/reviews.js +23 -0
- package/resources/reviews.js.map +1 -0
- package/resources/reviews.mjs +19 -0
- package/resources/reviews.mjs.map +1 -0
- package/resources/shared.d.mts +117 -14
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +117 -14
- package/resources/shared.d.ts.map +1 -1
- package/resources/transfers.d.mts +12 -0
- package/resources/transfers.d.mts.map +1 -1
- package/resources/transfers.d.ts +12 -0
- package/resources/transfers.d.ts.map +1 -1
- package/src/client.ts +166 -11
- package/src/resources/app-builds.ts +19 -14
- package/src/resources/apps.ts +16 -11
- package/src/resources/checkout-configurations.ts +278 -143
- package/src/resources/companies.ts +196 -0
- package/src/resources/course-chapters.ts +236 -0
- package/src/resources/course-lesson-interactions.ts +2 -2
- package/src/resources/course-lessons.ts +699 -0
- package/src/resources/course-students.ts +238 -0
- package/src/resources/courses.ts +622 -0
- package/src/resources/experiences.ts +54 -11
- package/src/resources/forum-posts.ts +95 -10
- package/src/resources/index.ts +73 -2
- package/src/resources/invoices.ts +620 -149
- package/src/resources/ledger-accounts.ts +13 -1
- package/src/resources/members.ts +5 -0
- package/src/resources/memberships.ts +31 -6
- package/src/resources/messages.ts +74 -10
- package/src/resources/payments.ts +146 -19
- package/src/resources/plans.ts +184 -17
- package/src/resources/products.ts +36 -37
- package/src/resources/promo-codes.ts +490 -0
- package/src/resources/reviews.ts +348 -0
- package/src/resources/shared.ts +128 -14
- package/src/resources/transfers.ts +10 -0
- 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
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as Shared from "./shared.js";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.js";
|
|
5
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
6
|
+
export declare class PromoCodes extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Create a new promo code for a product or plan
|
|
9
|
+
*
|
|
10
|
+
* Required permissions:
|
|
11
|
+
*
|
|
12
|
+
* - `promo_code:create`
|
|
13
|
+
* - `access_pass:basic:read`
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const promoCode = await client.promoCodes.create({
|
|
18
|
+
* amount_off: 6.9,
|
|
19
|
+
* base_currency: 'usd',
|
|
20
|
+
* code: 'code',
|
|
21
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
22
|
+
* new_users_only: true,
|
|
23
|
+
* promo_duration_months: 42,
|
|
24
|
+
* promo_type: 'percentage',
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
create(body: PromoCodeCreateParams, options?: RequestOptions): APIPromise<PromoCode>;
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves a promo code by ID
|
|
31
|
+
*
|
|
32
|
+
* Required permissions:
|
|
33
|
+
*
|
|
34
|
+
* - `promo_code:basic:read`
|
|
35
|
+
* - `access_pass:basic:read`
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const promoCode = await client.promoCodes.retrieve(
|
|
40
|
+
* 'promo_xxxxxxxxxxxx',
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<PromoCode>;
|
|
45
|
+
/**
|
|
46
|
+
* Lists promo codes for a company
|
|
47
|
+
*
|
|
48
|
+
* Required permissions:
|
|
49
|
+
*
|
|
50
|
+
* - `promo_code:basic:read`
|
|
51
|
+
* - `access_pass:basic:read`
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* // Automatically fetches more pages as needed.
|
|
56
|
+
* for await (const promoCodeListResponse of client.promoCodes.list(
|
|
57
|
+
* { company_id: 'biz_xxxxxxxxxxxxxx' },
|
|
58
|
+
* )) {
|
|
59
|
+
* // ...
|
|
60
|
+
* }
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
list(query: PromoCodeListParams, options?: RequestOptions): PagePromise<PromoCodeListResponsesCursorPage, PromoCodeListResponse>;
|
|
64
|
+
/**
|
|
65
|
+
* Archive a promo code, preventing further use
|
|
66
|
+
*
|
|
67
|
+
* Required permissions:
|
|
68
|
+
*
|
|
69
|
+
* - `promo_code:delete`
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```ts
|
|
73
|
+
* const promoCode = await client.promoCodes.delete(
|
|
74
|
+
* 'promo_xxxxxxxxxxxx',
|
|
75
|
+
* );
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
delete(id: string, options?: RequestOptions): APIPromise<PromoCodeDeleteResponse>;
|
|
79
|
+
}
|
|
80
|
+
export type PromoCodeListResponsesCursorPage = CursorPage<PromoCodeListResponse>;
|
|
81
|
+
/**
|
|
82
|
+
* An object representing a promo code for a plan.
|
|
83
|
+
*/
|
|
84
|
+
export interface PromoCode {
|
|
85
|
+
/**
|
|
86
|
+
* The ID of the promo.
|
|
87
|
+
*/
|
|
88
|
+
id: string;
|
|
89
|
+
/**
|
|
90
|
+
* The amount off (% or flat amount) for the promo.
|
|
91
|
+
*/
|
|
92
|
+
amount_off: number;
|
|
93
|
+
/**
|
|
94
|
+
* Restricts promo use to only users who have churned from the company before.
|
|
95
|
+
*/
|
|
96
|
+
churned_users_only: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* The specific code used to apply the promo at checkout.
|
|
99
|
+
*/
|
|
100
|
+
code: string | null;
|
|
101
|
+
/**
|
|
102
|
+
* The company for the promo code.
|
|
103
|
+
*/
|
|
104
|
+
company: PromoCode.Company;
|
|
105
|
+
/**
|
|
106
|
+
* The timestamp of when the promo was created.
|
|
107
|
+
*/
|
|
108
|
+
created_at: string;
|
|
109
|
+
/**
|
|
110
|
+
* The monetary currency of the promo code.
|
|
111
|
+
*/
|
|
112
|
+
currency: Shared.Currency;
|
|
113
|
+
/**
|
|
114
|
+
* The duration setting for the promo code
|
|
115
|
+
*/
|
|
116
|
+
duration: PromoDuration | null;
|
|
117
|
+
/**
|
|
118
|
+
* Restricts promo use to only be applied to already purchased memberships.
|
|
119
|
+
*/
|
|
120
|
+
existing_memberships_only: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* The date/time of when the promo expires.
|
|
123
|
+
*/
|
|
124
|
+
expires_at: string | null;
|
|
125
|
+
/**
|
|
126
|
+
* Restricts promo use to only users who have never purchased from the company
|
|
127
|
+
* before.
|
|
128
|
+
*/
|
|
129
|
+
new_users_only: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Restricts promo use to only be applied once per customer.
|
|
132
|
+
*/
|
|
133
|
+
one_per_customer: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* The access pass associated with the promo code.
|
|
136
|
+
*/
|
|
137
|
+
product: PromoCode.Product | null;
|
|
138
|
+
/**
|
|
139
|
+
* The number of months the promo is applied for.
|
|
140
|
+
*/
|
|
141
|
+
promo_duration_months: number | null;
|
|
142
|
+
/**
|
|
143
|
+
* The type (% or flat amount) of the promo.
|
|
144
|
+
*/
|
|
145
|
+
promo_type: Shared.PromoType;
|
|
146
|
+
/**
|
|
147
|
+
* Indicates if the promo code is live or disabled.
|
|
148
|
+
*/
|
|
149
|
+
status: PromoCodeStatus;
|
|
150
|
+
/**
|
|
151
|
+
* The quantity limit on the number of uses.
|
|
152
|
+
*/
|
|
153
|
+
stock: number;
|
|
154
|
+
/**
|
|
155
|
+
* Whether or not the promo code has unlimited stock.
|
|
156
|
+
*/
|
|
157
|
+
unlimited_stock: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* The amount of times the promo codes has been used.
|
|
160
|
+
*/
|
|
161
|
+
uses: number;
|
|
162
|
+
}
|
|
163
|
+
export declare namespace PromoCode {
|
|
164
|
+
/**
|
|
165
|
+
* The company for the promo code.
|
|
166
|
+
*/
|
|
167
|
+
interface Company {
|
|
168
|
+
/**
|
|
169
|
+
* The ID of the company
|
|
170
|
+
*/
|
|
171
|
+
id: string;
|
|
172
|
+
/**
|
|
173
|
+
* The written name of the company.
|
|
174
|
+
*/
|
|
175
|
+
title: string;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* The access pass associated with the promo code.
|
|
179
|
+
*/
|
|
180
|
+
interface Product {
|
|
181
|
+
/**
|
|
182
|
+
* The internal ID of the public product.
|
|
183
|
+
*/
|
|
184
|
+
id: string;
|
|
185
|
+
/**
|
|
186
|
+
* The title of the product. Use for Whop 4.0.
|
|
187
|
+
*/
|
|
188
|
+
title: string;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Statuses for promo codes
|
|
193
|
+
*/
|
|
194
|
+
export type PromoCodeStatus = 'active' | 'inactive' | 'archived';
|
|
195
|
+
/**
|
|
196
|
+
* The duration setting for the promo code
|
|
197
|
+
*/
|
|
198
|
+
export type PromoDuration = 'forever' | 'once' | 'repeating';
|
|
199
|
+
/**
|
|
200
|
+
* An object representing a promo code for a plan.
|
|
201
|
+
*/
|
|
202
|
+
export interface PromoCodeListResponse {
|
|
203
|
+
/**
|
|
204
|
+
* The ID of the promo.
|
|
205
|
+
*/
|
|
206
|
+
id: string;
|
|
207
|
+
/**
|
|
208
|
+
* The amount off (% or flat amount) for the promo.
|
|
209
|
+
*/
|
|
210
|
+
amount_off: number;
|
|
211
|
+
/**
|
|
212
|
+
* Restricts promo use to only users who have churned from the company before.
|
|
213
|
+
*/
|
|
214
|
+
churned_users_only: boolean;
|
|
215
|
+
/**
|
|
216
|
+
* The specific code used to apply the promo at checkout.
|
|
217
|
+
*/
|
|
218
|
+
code: string | null;
|
|
219
|
+
/**
|
|
220
|
+
* The timestamp of when the promo was created.
|
|
221
|
+
*/
|
|
222
|
+
created_at: string;
|
|
223
|
+
/**
|
|
224
|
+
* The monetary currency of the promo code.
|
|
225
|
+
*/
|
|
226
|
+
currency: Shared.Currency;
|
|
227
|
+
/**
|
|
228
|
+
* The duration setting for the promo code
|
|
229
|
+
*/
|
|
230
|
+
duration: PromoDuration | null;
|
|
231
|
+
/**
|
|
232
|
+
* Restricts promo use to only be applied to already purchased memberships.
|
|
233
|
+
*/
|
|
234
|
+
existing_memberships_only: boolean;
|
|
235
|
+
/**
|
|
236
|
+
* The date/time of when the promo expires.
|
|
237
|
+
*/
|
|
238
|
+
expires_at: string | null;
|
|
239
|
+
/**
|
|
240
|
+
* Restricts promo use to only users who have never purchased from the company
|
|
241
|
+
* before.
|
|
242
|
+
*/
|
|
243
|
+
new_users_only: boolean;
|
|
244
|
+
/**
|
|
245
|
+
* Restricts promo use to only be applied once per customer.
|
|
246
|
+
*/
|
|
247
|
+
one_per_customer: boolean;
|
|
248
|
+
/**
|
|
249
|
+
* The access pass associated with the promo code.
|
|
250
|
+
*/
|
|
251
|
+
product: PromoCodeListResponse.Product | null;
|
|
252
|
+
/**
|
|
253
|
+
* The number of months the promo is applied for.
|
|
254
|
+
*/
|
|
255
|
+
promo_duration_months: number | null;
|
|
256
|
+
/**
|
|
257
|
+
* The type (% or flat amount) of the promo.
|
|
258
|
+
*/
|
|
259
|
+
promo_type: Shared.PromoType;
|
|
260
|
+
/**
|
|
261
|
+
* Indicates if the promo code is live or disabled.
|
|
262
|
+
*/
|
|
263
|
+
status: PromoCodeStatus;
|
|
264
|
+
/**
|
|
265
|
+
* The quantity limit on the number of uses.
|
|
266
|
+
*/
|
|
267
|
+
stock: number;
|
|
268
|
+
/**
|
|
269
|
+
* Whether or not the promo code has unlimited stock.
|
|
270
|
+
*/
|
|
271
|
+
unlimited_stock: boolean;
|
|
272
|
+
/**
|
|
273
|
+
* The amount of times the promo codes has been used.
|
|
274
|
+
*/
|
|
275
|
+
uses: number;
|
|
276
|
+
}
|
|
277
|
+
export declare namespace PromoCodeListResponse {
|
|
278
|
+
/**
|
|
279
|
+
* The access pass associated with the promo code.
|
|
280
|
+
*/
|
|
281
|
+
interface Product {
|
|
282
|
+
/**
|
|
283
|
+
* The internal ID of the public product.
|
|
284
|
+
*/
|
|
285
|
+
id: string;
|
|
286
|
+
/**
|
|
287
|
+
* The title of the product. Use for Whop 4.0.
|
|
288
|
+
*/
|
|
289
|
+
title: string;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Represents `true` or `false` values.
|
|
294
|
+
*/
|
|
295
|
+
export type PromoCodeDeleteResponse = boolean;
|
|
296
|
+
export interface PromoCodeCreateParams {
|
|
297
|
+
/**
|
|
298
|
+
* The amount off (% or flat amount) for the promo.
|
|
299
|
+
*/
|
|
300
|
+
amount_off: number;
|
|
301
|
+
/**
|
|
302
|
+
* The monetary currency of the promo code.
|
|
303
|
+
*/
|
|
304
|
+
base_currency: Shared.Currency;
|
|
305
|
+
/**
|
|
306
|
+
* The specific code used to apply the promo at checkout.
|
|
307
|
+
*/
|
|
308
|
+
code: string;
|
|
309
|
+
/**
|
|
310
|
+
* The id of the company to create the promo code for.
|
|
311
|
+
*/
|
|
312
|
+
company_id: string;
|
|
313
|
+
/**
|
|
314
|
+
* Restricts promo use to only users who have never purchased from the company
|
|
315
|
+
* before.
|
|
316
|
+
*/
|
|
317
|
+
new_users_only: boolean;
|
|
318
|
+
/**
|
|
319
|
+
* The number of months this promo code is applied and valid for.
|
|
320
|
+
*/
|
|
321
|
+
promo_duration_months: number;
|
|
322
|
+
/**
|
|
323
|
+
* The type (% or flat amount) of the promo.
|
|
324
|
+
*/
|
|
325
|
+
promo_type: Shared.PromoType;
|
|
326
|
+
/**
|
|
327
|
+
* Restricts promo use to only users who have churned from the company before.
|
|
328
|
+
*/
|
|
329
|
+
churned_users_only?: boolean | null;
|
|
330
|
+
/**
|
|
331
|
+
* Whether this promo code is for existing memberships only (cancelations)
|
|
332
|
+
*/
|
|
333
|
+
existing_memberships_only?: boolean | null;
|
|
334
|
+
/**
|
|
335
|
+
* The date/time of when the promo expires.
|
|
336
|
+
*/
|
|
337
|
+
expires_at?: string | null;
|
|
338
|
+
/**
|
|
339
|
+
* Restricts promo use to only be applied once per customer.
|
|
340
|
+
*/
|
|
341
|
+
one_per_customer?: boolean | null;
|
|
342
|
+
/**
|
|
343
|
+
* The IDs of the plans that the promo code applies to. If product_id is provided,
|
|
344
|
+
* it will only apply to plans attached to that product
|
|
345
|
+
*/
|
|
346
|
+
plan_ids?: Array<string> | null;
|
|
347
|
+
/**
|
|
348
|
+
* The product to lock the promo code to, if any. If provided will filter out any
|
|
349
|
+
* plan ids not attached to this product
|
|
350
|
+
*/
|
|
351
|
+
product_id?: string | null;
|
|
352
|
+
/**
|
|
353
|
+
* The quantity limit on the number of uses.
|
|
354
|
+
*/
|
|
355
|
+
stock?: number | null;
|
|
356
|
+
/**
|
|
357
|
+
* Whether or not the promo code should have unlimited stock.
|
|
358
|
+
*/
|
|
359
|
+
unlimited_stock?: boolean | null;
|
|
360
|
+
}
|
|
361
|
+
export interface PromoCodeListParams extends CursorPageParams {
|
|
362
|
+
/**
|
|
363
|
+
* The ID of the company to list promo codes for
|
|
364
|
+
*/
|
|
365
|
+
company_id: string;
|
|
366
|
+
/**
|
|
367
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
368
|
+
*/
|
|
369
|
+
before?: string | null;
|
|
370
|
+
/**
|
|
371
|
+
* Returns the first _n_ elements from the list.
|
|
372
|
+
*/
|
|
373
|
+
first?: number | null;
|
|
374
|
+
/**
|
|
375
|
+
* Returns the last _n_ elements from the list.
|
|
376
|
+
*/
|
|
377
|
+
last?: number | null;
|
|
378
|
+
/**
|
|
379
|
+
* Filter promo codes by plan ID(s)
|
|
380
|
+
*/
|
|
381
|
+
plan_ids?: Array<string> | null;
|
|
382
|
+
/**
|
|
383
|
+
* Filter promo codes by product ID(s)
|
|
384
|
+
*/
|
|
385
|
+
product_ids?: Array<string> | null;
|
|
386
|
+
/**
|
|
387
|
+
* Statuses for promo codes
|
|
388
|
+
*/
|
|
389
|
+
status?: PromoCodeStatus | null;
|
|
390
|
+
}
|
|
391
|
+
export declare namespace PromoCodes {
|
|
392
|
+
export { type PromoCode as PromoCode, type PromoCodeStatus as PromoCodeStatus, type PromoDuration as PromoDuration, type PromoCodeListResponse as PromoCodeListResponse, type PromoCodeDeleteResponse as PromoCodeDeleteResponse, type PromoCodeListResponsesCursorPage as PromoCodeListResponsesCursorPage, type PromoCodeCreateParams as PromoCodeCreateParams, type PromoCodeListParams as PromoCodeListParams, };
|
|
393
|
+
}
|
|
394
|
+
//# sourceMappingURL=promo-codes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promo-codes.d.ts","sourceRoot":"","sources":["../src/resources/promo-codes.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAIpF;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAIrE;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CACF,KAAK,EAAE,mBAAmB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,gCAAgC,EAAE,qBAAqB,CAAC;IAIvE;;;;;;;;;;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OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,MAAM,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.PromoCodes = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const path_1 = require("../internal/utils/path.js");
|
|
8
|
+
class PromoCodes extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a new promo code for a product or plan
|
|
11
|
+
*
|
|
12
|
+
* Required permissions:
|
|
13
|
+
*
|
|
14
|
+
* - `promo_code:create`
|
|
15
|
+
* - `access_pass:basic:read`
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const promoCode = await client.promoCodes.create({
|
|
20
|
+
* amount_off: 6.9,
|
|
21
|
+
* base_currency: 'usd',
|
|
22
|
+
* code: 'code',
|
|
23
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
24
|
+
* new_users_only: true,
|
|
25
|
+
* promo_duration_months: 42,
|
|
26
|
+
* promo_type: 'percentage',
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
create(body, options) {
|
|
31
|
+
return this._client.post('/promo_codes', { body, ...options });
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Retrieves a promo code by ID
|
|
35
|
+
*
|
|
36
|
+
* Required permissions:
|
|
37
|
+
*
|
|
38
|
+
* - `promo_code:basic:read`
|
|
39
|
+
* - `access_pass:basic:read`
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const promoCode = await client.promoCodes.retrieve(
|
|
44
|
+
* 'promo_xxxxxxxxxxxx',
|
|
45
|
+
* );
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
retrieve(id, options) {
|
|
49
|
+
return this._client.get((0, path_1.path) `/promo_codes/${id}`, options);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Lists promo codes for a company
|
|
53
|
+
*
|
|
54
|
+
* Required permissions:
|
|
55
|
+
*
|
|
56
|
+
* - `promo_code:basic:read`
|
|
57
|
+
* - `access_pass:basic:read`
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* // Automatically fetches more pages as needed.
|
|
62
|
+
* for await (const promoCodeListResponse of client.promoCodes.list(
|
|
63
|
+
* { company_id: 'biz_xxxxxxxxxxxxxx' },
|
|
64
|
+
* )) {
|
|
65
|
+
* // ...
|
|
66
|
+
* }
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
list(query, options) {
|
|
70
|
+
return this._client.getAPIList('/promo_codes', (pagination_1.CursorPage), { query, ...options });
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Archive a promo code, preventing further use
|
|
74
|
+
*
|
|
75
|
+
* Required permissions:
|
|
76
|
+
*
|
|
77
|
+
* - `promo_code:delete`
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```ts
|
|
81
|
+
* const promoCode = await client.promoCodes.delete(
|
|
82
|
+
* 'promo_xxxxxxxxxxxx',
|
|
83
|
+
* );
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
delete(id, options) {
|
|
87
|
+
return this._client.delete((0, path_1.path) `/promo_codes/${id}`, options);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
exports.PromoCodes = PromoCodes;
|
|
91
|
+
//# sourceMappingURL=promo-codes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promo-codes.js","sourceRoot":"","sources":["../src/resources/promo-codes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CACF,KAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,CAAA,uBAAiC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3G,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF;AAvFD,gCAuFC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { CursorPage } from "../core/pagination.mjs";
|
|
4
|
+
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
export class PromoCodes extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a new promo code for a product or plan
|
|
8
|
+
*
|
|
9
|
+
* Required permissions:
|
|
10
|
+
*
|
|
11
|
+
* - `promo_code:create`
|
|
12
|
+
* - `access_pass:basic:read`
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const promoCode = await client.promoCodes.create({
|
|
17
|
+
* amount_off: 6.9,
|
|
18
|
+
* base_currency: 'usd',
|
|
19
|
+
* code: 'code',
|
|
20
|
+
* company_id: 'biz_xxxxxxxxxxxxxx',
|
|
21
|
+
* new_users_only: true,
|
|
22
|
+
* promo_duration_months: 42,
|
|
23
|
+
* promo_type: 'percentage',
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
create(body, options) {
|
|
28
|
+
return this._client.post('/promo_codes', { body, ...options });
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Retrieves a promo code by ID
|
|
32
|
+
*
|
|
33
|
+
* Required permissions:
|
|
34
|
+
*
|
|
35
|
+
* - `promo_code:basic:read`
|
|
36
|
+
* - `access_pass:basic:read`
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const promoCode = await client.promoCodes.retrieve(
|
|
41
|
+
* 'promo_xxxxxxxxxxxx',
|
|
42
|
+
* );
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
retrieve(id, options) {
|
|
46
|
+
return this._client.get(path `/promo_codes/${id}`, options);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Lists promo codes for a company
|
|
50
|
+
*
|
|
51
|
+
* Required permissions:
|
|
52
|
+
*
|
|
53
|
+
* - `promo_code:basic:read`
|
|
54
|
+
* - `access_pass:basic:read`
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* // Automatically fetches more pages as needed.
|
|
59
|
+
* for await (const promoCodeListResponse of client.promoCodes.list(
|
|
60
|
+
* { company_id: 'biz_xxxxxxxxxxxxxx' },
|
|
61
|
+
* )) {
|
|
62
|
+
* // ...
|
|
63
|
+
* }
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
list(query, options) {
|
|
67
|
+
return this._client.getAPIList('/promo_codes', (CursorPage), { query, ...options });
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Archive a promo code, preventing further use
|
|
71
|
+
*
|
|
72
|
+
* Required permissions:
|
|
73
|
+
*
|
|
74
|
+
* - `promo_code:delete`
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* const promoCode = await client.promoCodes.delete(
|
|
79
|
+
* 'promo_xxxxxxxxxxxx',
|
|
80
|
+
* );
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
delete(id, options) {
|
|
84
|
+
return this._client.delete(path `/promo_codes/${id}`, options);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=promo-codes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promo-codes.mjs","sourceRoot":"","sources":["../src/resources/promo-codes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CACF,KAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,CAAA,UAAiC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3G,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,gBAAgB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF"}
|