@whop/sdk 0.0.28 → 0.0.30
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 +49 -0
- package/client.d.mts +7 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -6
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/checkout-configurations.d.mts +0 -13
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +0 -13
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/checkout-configurations.js.map +1 -1
- package/resources/checkout-configurations.mjs.map +1 -1
- package/resources/companies.d.mts +6 -33
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +6 -33
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs.map +1 -1
- package/resources/dispute-alerts.d.mts +325 -0
- package/resources/dispute-alerts.d.mts.map +1 -0
- package/resources/dispute-alerts.d.ts +325 -0
- package/resources/dispute-alerts.d.ts.map +1 -0
- package/resources/dispute-alerts.js +42 -0
- package/resources/dispute-alerts.js.map +1 -0
- package/resources/dispute-alerts.mjs +38 -0
- package/resources/dispute-alerts.mjs.map +1 -0
- package/resources/experiences.d.mts +0 -4
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +0 -4
- package/resources/experiences.d.ts.map +1 -1
- package/resources/experiences.js +0 -4
- package/resources/experiences.js.map +1 -1
- package/resources/experiences.mjs +0 -4
- package/resources/experiences.mjs.map +1 -1
- package/resources/index.d.mts +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/messages.d.mts +4 -0
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +4 -0
- package/resources/messages.d.ts.map +1 -1
- package/resources/payments.d.mts +1 -14
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +1 -14
- package/resources/payments.d.ts.map +1 -1
- package/resources/payments.js.map +1 -1
- package/resources/payments.mjs.map +1 -1
- package/resources/products.d.mts +1 -29
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +1 -29
- package/resources/products.d.ts.map +1 -1
- package/resources/refunds.d.mts +1 -1
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +1 -1
- package/resources/refunds.d.ts.map +1 -1
- package/resources/shared.d.mts +1 -33
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +1 -33
- package/resources/shared.d.ts.map +1 -1
- package/resources/support-channels.d.mts +4 -0
- package/resources/support-channels.d.mts.map +1 -1
- package/resources/support-channels.d.ts +4 -0
- package/resources/support-channels.d.ts.map +1 -1
- package/resources/webhooks.d.mts +224 -3
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +224 -3
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/src/client.ts +21 -4
- package/src/resources/checkout-configurations.ts +0 -16
- package/src/resources/companies.ts +6 -40
- package/src/resources/dispute-alerts.ts +404 -0
- package/src/resources/experiences.ts +0 -4
- package/src/resources/index.ts +9 -1
- package/src/resources/messages.ts +5 -0
- package/src/resources/payments.ts +1 -16
- package/src/resources/products.ts +0 -170
- package/src/resources/refunds.ts +2 -1
- package/src/resources/shared.ts +2 -1991
- package/src/resources/support-channels.ts +5 -0
- package/src/resources/webhooks.ts +268 -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,404 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as DisputesAPI from './disputes';
|
|
5
|
+
import * as PaymentsAPI from './payments';
|
|
6
|
+
import * as Shared from './shared';
|
|
7
|
+
import { APIPromise } from '../core/api-promise';
|
|
8
|
+
import { CursorPage, type CursorPageParams, PagePromise } from '../core/pagination';
|
|
9
|
+
import { RequestOptions } from '../internal/request-options';
|
|
10
|
+
import { path } from '../internal/utils/path';
|
|
11
|
+
|
|
12
|
+
export class DisputeAlerts extends APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves the details of an existing dispute alert.
|
|
15
|
+
*
|
|
16
|
+
* Required permissions:
|
|
17
|
+
*
|
|
18
|
+
* - `payment:dispute_alert:read`
|
|
19
|
+
* - `payment:basic:read`
|
|
20
|
+
* - `member:email:read`
|
|
21
|
+
* - `member:basic:read`
|
|
22
|
+
* - `member:phone:read`
|
|
23
|
+
* - `payment:dispute:read`
|
|
24
|
+
*/
|
|
25
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<DisputeAlertRetrieveResponse> {
|
|
26
|
+
return this._client.get(path`/dispute_alerts/${id}`, options);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Returns a paginated list of dispute alerts for a company, with optional
|
|
31
|
+
* filtering by creation date.
|
|
32
|
+
*
|
|
33
|
+
* Required permissions:
|
|
34
|
+
*
|
|
35
|
+
* - `payment:dispute_alert:read`
|
|
36
|
+
* - `payment:basic:read`
|
|
37
|
+
* - `payment:dispute:read`
|
|
38
|
+
*/
|
|
39
|
+
list(
|
|
40
|
+
query: DisputeAlertListParams,
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): PagePromise<DisputeAlertListResponsesCursorPage, DisputeAlertListResponse> {
|
|
43
|
+
return this._client.getAPIList('/dispute_alerts', CursorPage<DisputeAlertListResponse>, {
|
|
44
|
+
query,
|
|
45
|
+
...options,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type DisputeAlertListResponsesCursorPage = CursorPage<DisputeAlertListResponse>;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The type of dispute alert.
|
|
54
|
+
*/
|
|
55
|
+
export type DisputeAlertType = 'dispute' | 'dispute_rdr' | 'fraud';
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* A dispute alert represents an early warning notification from a payment
|
|
59
|
+
* processor about a potential dispute or chargeback.
|
|
60
|
+
*/
|
|
61
|
+
export interface DisputeAlertRetrieveResponse {
|
|
62
|
+
/**
|
|
63
|
+
* The unique identifier of the dispute alert.
|
|
64
|
+
*/
|
|
65
|
+
id: string;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* The type of the dispute alert.
|
|
69
|
+
*/
|
|
70
|
+
alert_type: DisputeAlertType;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The alerted amount in the specified currency.
|
|
74
|
+
*/
|
|
75
|
+
amount: number;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Whether this alert incurs a charge.
|
|
79
|
+
*/
|
|
80
|
+
charge_for_alert: boolean;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* The time the dispute alert was created.
|
|
84
|
+
*/
|
|
85
|
+
created_at: string;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* The three-letter ISO currency code for the alerted amount.
|
|
89
|
+
*/
|
|
90
|
+
currency: Shared.Currency;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The dispute associated with the dispute alert.
|
|
94
|
+
*/
|
|
95
|
+
dispute: DisputeAlertRetrieveResponse.Dispute | null;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The payment associated with the dispute alert.
|
|
99
|
+
*/
|
|
100
|
+
payment: DisputeAlertRetrieveResponse.Payment | null;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* The date of the original transaction.
|
|
104
|
+
*/
|
|
105
|
+
transaction_date: string | null;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export namespace DisputeAlertRetrieveResponse {
|
|
109
|
+
/**
|
|
110
|
+
* The dispute associated with the dispute alert.
|
|
111
|
+
*/
|
|
112
|
+
export interface Dispute {
|
|
113
|
+
/**
|
|
114
|
+
* The unique identifier for the dispute.
|
|
115
|
+
*/
|
|
116
|
+
id: string;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* The disputed amount in the specified currency, formatted as a decimal.
|
|
120
|
+
*/
|
|
121
|
+
amount: number;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The datetime the dispute was created.
|
|
125
|
+
*/
|
|
126
|
+
created_at: string | null;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* The three-letter ISO currency code for the disputed amount.
|
|
130
|
+
*/
|
|
131
|
+
currency: Shared.Currency;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* A human-readable reason for the dispute.
|
|
135
|
+
*/
|
|
136
|
+
reason: string | null;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* The current status of the dispute lifecycle, such as needs_response,
|
|
140
|
+
* under_review, won, or lost.
|
|
141
|
+
*/
|
|
142
|
+
status: DisputesAPI.DisputeStatuses;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* The payment associated with the dispute alert.
|
|
147
|
+
*/
|
|
148
|
+
export interface Payment {
|
|
149
|
+
/**
|
|
150
|
+
* The unique identifier for the payment.
|
|
151
|
+
*/
|
|
152
|
+
id: string;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* The reason why a specific payment was billed
|
|
156
|
+
*/
|
|
157
|
+
billing_reason: PaymentsAPI.BillingReasons | null;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Possible card brands that a payment token can have
|
|
161
|
+
*/
|
|
162
|
+
card_brand: PaymentsAPI.CardBrands | null;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* The last four digits of the card used to make this payment. Null if the payment
|
|
166
|
+
* was not made with a card.
|
|
167
|
+
*/
|
|
168
|
+
card_last4: string | null;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* The datetime the payment was created.
|
|
172
|
+
*/
|
|
173
|
+
created_at: string;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* The available currencies on the platform
|
|
177
|
+
*/
|
|
178
|
+
currency: Shared.Currency | null;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* When an alert came in that this transaction will be disputed
|
|
182
|
+
*/
|
|
183
|
+
dispute_alerted_at: string | null;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The member attached to this payment.
|
|
187
|
+
*/
|
|
188
|
+
member: Payment.Member | null;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* The membership attached to this payment.
|
|
192
|
+
*/
|
|
193
|
+
membership: Payment.Membership | null;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* The time at which this payment was successfully collected. Null if the payment
|
|
197
|
+
* has not yet succeeded. As a Unix timestamp.
|
|
198
|
+
*/
|
|
199
|
+
paid_at: string | null;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* The different types of payment methods that can be used.
|
|
203
|
+
*/
|
|
204
|
+
payment_method_type: PaymentsAPI.PaymentMethodTypes | null;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* The subtotal to show to the creator (excluding buyer fees).
|
|
208
|
+
*/
|
|
209
|
+
subtotal: number | null;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* The total to show to the creator (excluding buyer fees).
|
|
213
|
+
*/
|
|
214
|
+
total: number | null;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* The total in USD to show to the creator (excluding buyer fees).
|
|
218
|
+
*/
|
|
219
|
+
usd_total: number | null;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* The user that made this payment.
|
|
223
|
+
*/
|
|
224
|
+
user: Payment.User | null;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export namespace Payment {
|
|
228
|
+
/**
|
|
229
|
+
* The member attached to this payment.
|
|
230
|
+
*/
|
|
231
|
+
export interface Member {
|
|
232
|
+
/**
|
|
233
|
+
* The unique identifier for the company member.
|
|
234
|
+
*/
|
|
235
|
+
id: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* The phone number for the member, if available.
|
|
239
|
+
*/
|
|
240
|
+
phone: string | null;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* The membership attached to this payment.
|
|
245
|
+
*/
|
|
246
|
+
export interface Membership {
|
|
247
|
+
/**
|
|
248
|
+
* The unique identifier for the membership.
|
|
249
|
+
*/
|
|
250
|
+
id: string;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* The state of the membership.
|
|
254
|
+
*/
|
|
255
|
+
status: Shared.MembershipStatus;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* The user that made this payment.
|
|
260
|
+
*/
|
|
261
|
+
export interface User {
|
|
262
|
+
/**
|
|
263
|
+
* The unique identifier for the user.
|
|
264
|
+
*/
|
|
265
|
+
id: string;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* The user's email address. Requires the member:email:read permission to access.
|
|
269
|
+
* Null if not authorized.
|
|
270
|
+
*/
|
|
271
|
+
email: string | null;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* The user's display name shown on their public profile.
|
|
275
|
+
*/
|
|
276
|
+
name: string | null;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* The user's unique username shown on their public profile.
|
|
280
|
+
*/
|
|
281
|
+
username: string;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* A dispute alert represents an early warning notification from a payment
|
|
288
|
+
* processor about a potential dispute or chargeback.
|
|
289
|
+
*/
|
|
290
|
+
export interface DisputeAlertListResponse {
|
|
291
|
+
/**
|
|
292
|
+
* The unique identifier of the dispute alert.
|
|
293
|
+
*/
|
|
294
|
+
id: string;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* The type of the dispute alert.
|
|
298
|
+
*/
|
|
299
|
+
alert_type: DisputeAlertType;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* The alerted amount in the specified currency.
|
|
303
|
+
*/
|
|
304
|
+
amount: number;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Whether this alert incurs a charge.
|
|
308
|
+
*/
|
|
309
|
+
charge_for_alert: boolean;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* The time the dispute alert was created.
|
|
313
|
+
*/
|
|
314
|
+
created_at: string;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* The three-letter ISO currency code for the alerted amount.
|
|
318
|
+
*/
|
|
319
|
+
currency: Shared.Currency;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* The dispute associated with the dispute alert.
|
|
323
|
+
*/
|
|
324
|
+
dispute: DisputeAlertListResponse.Dispute | null;
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* The payment associated with the dispute alert.
|
|
328
|
+
*/
|
|
329
|
+
payment: DisputeAlertListResponse.Payment | null;
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* The date of the original transaction.
|
|
333
|
+
*/
|
|
334
|
+
transaction_date: string | null;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export namespace DisputeAlertListResponse {
|
|
338
|
+
/**
|
|
339
|
+
* The dispute associated with the dispute alert.
|
|
340
|
+
*/
|
|
341
|
+
export interface Dispute {
|
|
342
|
+
/**
|
|
343
|
+
* The unique identifier for the dispute.
|
|
344
|
+
*/
|
|
345
|
+
id: string;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* The payment associated with the dispute alert.
|
|
350
|
+
*/
|
|
351
|
+
export interface Payment {
|
|
352
|
+
/**
|
|
353
|
+
* The unique identifier for the payment.
|
|
354
|
+
*/
|
|
355
|
+
id: string;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export interface DisputeAlertListParams extends CursorPageParams {
|
|
360
|
+
/**
|
|
361
|
+
* The unique identifier of the company to list dispute alerts for.
|
|
362
|
+
*/
|
|
363
|
+
company_id: string;
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
367
|
+
*/
|
|
368
|
+
before?: string | null;
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Only return dispute alerts created after this timestamp.
|
|
372
|
+
*/
|
|
373
|
+
created_after?: string | null;
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Only return dispute alerts created before this timestamp.
|
|
377
|
+
*/
|
|
378
|
+
created_before?: string | null;
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* The direction of the sort.
|
|
382
|
+
*/
|
|
383
|
+
direction?: Shared.Direction | null;
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Returns the first _n_ elements from the list.
|
|
387
|
+
*/
|
|
388
|
+
first?: number | null;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Returns the last _n_ elements from the list.
|
|
392
|
+
*/
|
|
393
|
+
last?: number | null;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
export declare namespace DisputeAlerts {
|
|
397
|
+
export {
|
|
398
|
+
type DisputeAlertType as DisputeAlertType,
|
|
399
|
+
type DisputeAlertRetrieveResponse as DisputeAlertRetrieveResponse,
|
|
400
|
+
type DisputeAlertListResponse as DisputeAlertListResponse,
|
|
401
|
+
type DisputeAlertListResponsesCursorPage as DisputeAlertListResponsesCursorPage,
|
|
402
|
+
type DisputeAlertListParams as DisputeAlertListParams,
|
|
403
|
+
};
|
|
404
|
+
}
|
|
@@ -63,10 +63,6 @@ export class Experiences extends APIResource {
|
|
|
63
63
|
* Returns a paginated list of experiences belonging to a company, with optional
|
|
64
64
|
* filtering by product and app.
|
|
65
65
|
*
|
|
66
|
-
* Required permissions:
|
|
67
|
-
*
|
|
68
|
-
* - `experience:hidden_experience:read`
|
|
69
|
-
*
|
|
70
66
|
* @example
|
|
71
67
|
* ```ts
|
|
72
68
|
* // Automatically fetches more pages as needed.
|
package/src/resources/index.ts
CHANGED
|
@@ -119,6 +119,14 @@ export {
|
|
|
119
119
|
type CourseListParams,
|
|
120
120
|
type CourseListResponsesCursorPage,
|
|
121
121
|
} from './courses';
|
|
122
|
+
export {
|
|
123
|
+
DisputeAlerts,
|
|
124
|
+
type DisputeAlertType,
|
|
125
|
+
type DisputeAlertRetrieveResponse,
|
|
126
|
+
type DisputeAlertListResponse,
|
|
127
|
+
type DisputeAlertListParams,
|
|
128
|
+
type DisputeAlertListResponsesCursorPage,
|
|
129
|
+
} from './dispute-alerts';
|
|
122
130
|
export {
|
|
123
131
|
Disputes,
|
|
124
132
|
type Dispute,
|
|
@@ -290,7 +298,6 @@ export {
|
|
|
290
298
|
} from './plans';
|
|
291
299
|
export {
|
|
292
300
|
Products,
|
|
293
|
-
type IndustryGroups,
|
|
294
301
|
type ProductDeleteResponse,
|
|
295
302
|
type ProductCreateParams,
|
|
296
303
|
type ProductUpdateParams,
|
|
@@ -412,6 +419,7 @@ export {
|
|
|
412
419
|
type DisputeUpdatedWebhookEvent,
|
|
413
420
|
type RefundCreatedWebhookEvent,
|
|
414
421
|
type RefundUpdatedWebhookEvent,
|
|
422
|
+
type DisputeAlertCreatedWebhookEvent,
|
|
415
423
|
type MembershipCancelAtPeriodEndChangedWebhookEvent,
|
|
416
424
|
type UnwrapWebhookEvent,
|
|
417
425
|
type WebhookCreateParams,
|
|
@@ -254,6 +254,11 @@ export interface MessageCreateParams {
|
|
|
254
254
|
*/
|
|
255
255
|
attachments?: Array<MessageCreateParams.Attachment> | null;
|
|
256
256
|
|
|
257
|
+
/**
|
|
258
|
+
* Automatically detect URLs in the message and generate link previews.
|
|
259
|
+
*/
|
|
260
|
+
auto_detect_links?: boolean | null;
|
|
261
|
+
|
|
257
262
|
/**
|
|
258
263
|
* A poll to attach to this message, allowing recipients to vote on options.
|
|
259
264
|
*/
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
4
|
import * as PaymentsAPI from './payments';
|
|
5
|
-
import * as ProductsAPI from './products';
|
|
6
5
|
import * as Shared from './shared';
|
|
7
6
|
import { APIPromise } from '../core/api-promise';
|
|
8
7
|
import { CursorPage, type CursorPageParams, PagePromise } from '../core/pagination';
|
|
@@ -271,6 +270,7 @@ export type CardBrands =
|
|
|
271
270
|
| 'china_union_payuzcard'
|
|
272
271
|
| 'codensa'
|
|
273
272
|
| 'cabal'
|
|
273
|
+
| 'hipercard'
|
|
274
274
|
| 'unknown';
|
|
275
275
|
|
|
276
276
|
/**
|
|
@@ -1027,11 +1027,6 @@ export declare namespace PaymentCreateParams {
|
|
|
1027
1027
|
*/
|
|
1028
1028
|
title: string;
|
|
1029
1029
|
|
|
1030
|
-
/**
|
|
1031
|
-
* The different business types a company can be.
|
|
1032
|
-
*/
|
|
1033
|
-
business_type?: Shared.BusinessTypes | null;
|
|
1034
|
-
|
|
1035
1030
|
/**
|
|
1036
1031
|
* Whether or not to collect shipping information at checkout from the customer.
|
|
1037
1032
|
*/
|
|
@@ -1064,16 +1059,6 @@ export declare namespace PaymentCreateParams {
|
|
|
1064
1059
|
*/
|
|
1065
1060
|
headline?: string | null;
|
|
1066
1061
|
|
|
1067
|
-
/**
|
|
1068
|
-
* The different industry groups a company can be in.
|
|
1069
|
-
*/
|
|
1070
|
-
industry_group?: ProductsAPI.IndustryGroups | null;
|
|
1071
|
-
|
|
1072
|
-
/**
|
|
1073
|
-
* The different industry types a company can be in.
|
|
1074
|
-
*/
|
|
1075
|
-
industry_type?: Shared.IndustryTypes | null;
|
|
1076
|
-
|
|
1077
1062
|
/**
|
|
1078
1063
|
* The ID of the product tax code to apply to this product.
|
|
1079
1064
|
*/
|
|
@@ -115,145 +115,6 @@ export class Products extends APIResource {
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
/**
|
|
119
|
-
* The different industry groups a company can be in.
|
|
120
|
-
*/
|
|
121
|
-
export type IndustryGroups =
|
|
122
|
-
| 'academic_and_test_prep'
|
|
123
|
-
| 'accessories'
|
|
124
|
-
| 'agriculture_and_farming'
|
|
125
|
-
| 'ai_and_automation_agencies'
|
|
126
|
-
| 'ai_and_automation_software'
|
|
127
|
-
| 'arts_and_crafts'
|
|
128
|
-
| 'automotive'
|
|
129
|
-
| 'b2b_and_professional_marketplaces'
|
|
130
|
-
| 'baby_and_kids'
|
|
131
|
-
| 'beauty_and_personal_care'
|
|
132
|
-
| 'beauty_and_wellness'
|
|
133
|
-
| 'business_and_entrepreneurship'
|
|
134
|
-
| 'business_and_money_groups'
|
|
135
|
-
| 'career_and_professional'
|
|
136
|
-
| 'charity_and_cause_events'
|
|
137
|
-
| 'class_action_settlement'
|
|
138
|
-
| 'clothing_and_apparel'
|
|
139
|
-
| 'communication_and_messaging_software'
|
|
140
|
-
| 'community_and_education_software'
|
|
141
|
-
| 'consulting'
|
|
142
|
-
| 'content_and_clipping_agencies'
|
|
143
|
-
| 'creative_and_content_creation'
|
|
144
|
-
| 'creative_and_content_groups'
|
|
145
|
-
| 'creative_and_education'
|
|
146
|
-
| 'creative_gigs'
|
|
147
|
-
| 'creative_services'
|
|
148
|
-
| 'customer_support_agencies'
|
|
149
|
-
| 'dating_and_relationships'
|
|
150
|
-
| 'delivery_and_logistics'
|
|
151
|
-
| 'dental_and_vision'
|
|
152
|
-
| 'dermatology_and_skin'
|
|
153
|
-
| 'design_and_creative_agencies'
|
|
154
|
-
| 'developer_and_technical_tools'
|
|
155
|
-
| 'development_agencies'
|
|
156
|
-
| 'digital_and_education_marketplaces'
|
|
157
|
-
| 'digital_goods_and_accounts'
|
|
158
|
-
| 'e_commerce_software'
|
|
159
|
-
| 'education_and_business_events'
|
|
160
|
-
| 'education_and_childcare'
|
|
161
|
-
| 'electronics_and_gadgets'
|
|
162
|
-
| 'entertainment_and_leisure'
|
|
163
|
-
| 'entertainment_events'
|
|
164
|
-
| 'family_and_community_events'
|
|
165
|
-
| 'finance_and_investing'
|
|
166
|
-
| 'fitness_and_athletics'
|
|
167
|
-
| 'fitness_and_health_groups'
|
|
168
|
-
| 'fitness_and_recreation'
|
|
169
|
-
| 'fitness_equipment_and_gear'
|
|
170
|
-
| 'food_and_beverage'
|
|
171
|
-
| 'food_and_beverages'
|
|
172
|
-
| 'food_and_hospitality_marketplaces'
|
|
173
|
-
| 'funeral_and_death_care'
|
|
174
|
-
| 'gaming_and_entertainment_software'
|
|
175
|
-
| 'gaming_groups'
|
|
176
|
-
| 'genetic_and_specialized'
|
|
177
|
-
| 'government_and_public'
|
|
178
|
-
| 'health_and_wellness'
|
|
179
|
-
| 'health_and_wellness_services'
|
|
180
|
-
| 'healthcare'
|
|
181
|
-
| 'healthcare_and_wellness_software'
|
|
182
|
-
| 'hobbies_and_lifestyle'
|
|
183
|
-
| 'hobby_and_interest_groups'
|
|
184
|
-
| 'home_and_living'
|
|
185
|
-
| 'home_and_trade_services'
|
|
186
|
-
| 'home_and_trade_storefronts'
|
|
187
|
-
| 'home_improvement_and_tools'
|
|
188
|
-
| 'home_services_gigs'
|
|
189
|
-
| 'hospitality_and_lodging'
|
|
190
|
-
| 'industrial_and_manufacturing'
|
|
191
|
-
| 'industry_specific_software'
|
|
192
|
-
| 'language_and_communication'
|
|
193
|
-
| 'legal_and_compliance'
|
|
194
|
-
| 'lifestyle_and_culture'
|
|
195
|
-
| 'lifestyle_and_personal_growth_groups'
|
|
196
|
-
| 'lifestyle_and_wellness_events'
|
|
197
|
-
| 'logistics_and_transportation_services'
|
|
198
|
-
| 'marketing_agencies'
|
|
199
|
-
| 'marketing_and_advertising'
|
|
200
|
-
| 'marketing_and_sales_software'
|
|
201
|
-
| 'media_and_publishing_companies'
|
|
202
|
-
| 'mental_health_and_behavioral'
|
|
203
|
-
| 'miscellaneous'
|
|
204
|
-
| 'music_and_performing_arts'
|
|
205
|
-
| 'news_and_politics'
|
|
206
|
-
| 'nonprofit_and_charity'
|
|
207
|
-
| 'office_and_business_supplies'
|
|
208
|
-
| 'outdoor_and_sports'
|
|
209
|
-
| 'personal_development'
|
|
210
|
-
| 'personal_finance'
|
|
211
|
-
| 'personal_services'
|
|
212
|
-
| 'pet_services'
|
|
213
|
-
| 'pets_and_animals'
|
|
214
|
-
| 'primary_and_general_care'
|
|
215
|
-
| 'product_marketplaces'
|
|
216
|
-
| 'productivity_and_business_ops'
|
|
217
|
-
| 'professional_gigs'
|
|
218
|
-
| 'professional_services'
|
|
219
|
-
| 'professional_services_storefront'
|
|
220
|
-
| 'publishing_and_info_products'
|
|
221
|
-
| 'real_estate'
|
|
222
|
-
| 'real_estate_software'
|
|
223
|
-
| 'recruiting_and_staffing'
|
|
224
|
-
| 'rehabilitation_and_therapy'
|
|
225
|
-
| 'rental_marketplaces'
|
|
226
|
-
| 'retail'
|
|
227
|
-
| 'sales_agencies'
|
|
228
|
-
| 'sales_and_revenue'
|
|
229
|
-
| 'security_and_investigations'
|
|
230
|
-
| 'security_and_privacy_software'
|
|
231
|
-
| 'service_marketplaces'
|
|
232
|
-
| 'sleep_and_chronic_conditions'
|
|
233
|
-
| 'social_and_networking_events'
|
|
234
|
-
| 'specialized_gigs'
|
|
235
|
-
| 'specialty_medical_care'
|
|
236
|
-
| 'spirituality_and_mindfulness'
|
|
237
|
-
| 'spirituality_and_personal_growth'
|
|
238
|
-
| 'sports_and_fitness_events'
|
|
239
|
-
| 'sports_betting_and_gambling'
|
|
240
|
-
| 'sports_betting_groups'
|
|
241
|
-
| 'supplements_and_nutrition'
|
|
242
|
-
| 'sustainability_and_eco_products'
|
|
243
|
-
| 'task_and_errands'
|
|
244
|
-
| 'tech_and_ai'
|
|
245
|
-
| 'tech_and_dev_groups'
|
|
246
|
-
| 'tech_and_development'
|
|
247
|
-
| 'trading_and_finance_software'
|
|
248
|
-
| 'trading_and_investing'
|
|
249
|
-
| 'trading_and_investing_groups'
|
|
250
|
-
| 'transportation'
|
|
251
|
-
| 'veterinary'
|
|
252
|
-
| 'video_games_and_esports'
|
|
253
|
-
| 'weight_and_metabolic_health'
|
|
254
|
-
| 'wellness_and_alternative'
|
|
255
|
-
| 'womens_and_mens_health';
|
|
256
|
-
|
|
257
118
|
/**
|
|
258
119
|
* Represents `true` or `false` values.
|
|
259
120
|
*/
|
|
@@ -270,11 +131,6 @@ export interface ProductCreateParams {
|
|
|
270
131
|
*/
|
|
271
132
|
title: string;
|
|
272
133
|
|
|
273
|
-
/**
|
|
274
|
-
* The different business types a company can be.
|
|
275
|
-
*/
|
|
276
|
-
business_type?: Shared.BusinessTypes | null;
|
|
277
|
-
|
|
278
134
|
/**
|
|
279
135
|
* Whether the checkout flow collects a shipping address from the customer.
|
|
280
136
|
*/
|
|
@@ -324,16 +180,6 @@ export interface ProductCreateParams {
|
|
|
324
180
|
*/
|
|
325
181
|
headline?: string | null;
|
|
326
182
|
|
|
327
|
-
/**
|
|
328
|
-
* The different industry groups a company can be in.
|
|
329
|
-
*/
|
|
330
|
-
industry_group?: IndustryGroups | null;
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* The different industry types a company can be in.
|
|
334
|
-
*/
|
|
335
|
-
industry_type?: Shared.IndustryTypes | null;
|
|
336
|
-
|
|
337
183
|
/**
|
|
338
184
|
* The commission rate as a percentage that members earn through the member
|
|
339
185
|
* affiliate program.
|
|
@@ -455,11 +301,6 @@ export namespace ProductCreateParams {
|
|
|
455
301
|
}
|
|
456
302
|
|
|
457
303
|
export interface ProductUpdateParams {
|
|
458
|
-
/**
|
|
459
|
-
* The different business types a company can be.
|
|
460
|
-
*/
|
|
461
|
-
business_type?: Shared.BusinessTypes | null;
|
|
462
|
-
|
|
463
304
|
/**
|
|
464
305
|
* Whether the checkout flow collects a shipping address from the customer.
|
|
465
306
|
*/
|
|
@@ -509,16 +350,6 @@ export interface ProductUpdateParams {
|
|
|
509
350
|
*/
|
|
510
351
|
headline?: string | null;
|
|
511
352
|
|
|
512
|
-
/**
|
|
513
|
-
* The different industry groups a company can be in.
|
|
514
|
-
*/
|
|
515
|
-
industry_group?: IndustryGroups | null;
|
|
516
|
-
|
|
517
|
-
/**
|
|
518
|
-
* The different industry types a company can be in.
|
|
519
|
-
*/
|
|
520
|
-
industry_type?: Shared.IndustryTypes | null;
|
|
521
|
-
|
|
522
353
|
/**
|
|
523
354
|
* The commission rate as a percentage that members earn through the member
|
|
524
355
|
* affiliate program.
|
|
@@ -642,7 +473,6 @@ export interface ProductListParams extends CursorPageParams {
|
|
|
642
473
|
|
|
643
474
|
export declare namespace Products {
|
|
644
475
|
export {
|
|
645
|
-
type IndustryGroups as IndustryGroups,
|
|
646
476
|
type ProductDeleteResponse as ProductDeleteResponse,
|
|
647
477
|
type ProductCreateParams as ProductCreateParams,
|
|
648
478
|
type ProductUpdateParams as ProductUpdateParams,
|