@whop/sdk 0.0.26 → 0.0.27
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 +37 -0
- package/client.d.mts +6 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -5
- package/client.d.ts.map +1 -1
- package/client.js +9 -2
- package/client.js.map +1 -1
- package/client.mjs +9 -2
- package/client.mjs.map +1 -1
- package/package.json +3 -3
- package/resources/access-tokens.d.mts +32 -51
- package/resources/access-tokens.d.mts.map +1 -1
- package/resources/access-tokens.d.ts +32 -51
- package/resources/access-tokens.d.ts.map +1 -1
- package/resources/access-tokens.js +6 -8
- package/resources/access-tokens.js.map +1 -1
- package/resources/access-tokens.mjs +6 -8
- package/resources/access-tokens.mjs.map +1 -1
- package/resources/ai-chats.d.mts +37 -9
- package/resources/ai-chats.d.mts.map +1 -1
- package/resources/ai-chats.d.ts +37 -9
- package/resources/ai-chats.d.ts.map +1 -1
- package/resources/ai-chats.js +1 -1
- package/resources/ai-chats.js.map +1 -1
- package/resources/ai-chats.mjs +1 -1
- package/resources/ai-chats.mjs.map +1 -1
- package/resources/app-builds.d.mts +2 -2
- package/resources/app-builds.d.ts +2 -2
- package/resources/apps.d.mts +5 -4
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +5 -4
- package/resources/apps.d.ts.map +1 -1
- package/resources/authorized-users.d.mts +6 -6
- package/resources/authorized-users.d.ts +6 -6
- package/resources/chat-channels.d.mts +1 -1
- package/resources/chat-channels.d.ts +1 -1
- package/resources/checkout-configurations.d.mts +24 -16
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +24 -16
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/companies.d.mts +38 -25
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +38 -25
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js +7 -4
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs +7 -4
- package/resources/companies.mjs.map +1 -1
- package/resources/company-token-transactions.d.mts +10 -10
- package/resources/company-token-transactions.d.ts +10 -10
- package/resources/course-chapters.d.mts +3 -3
- package/resources/course-chapters.d.ts +3 -3
- package/resources/course-lessons.d.mts +15 -15
- package/resources/course-lessons.d.ts +15 -15
- package/resources/course-students.d.mts +6 -6
- package/resources/course-students.d.ts +6 -6
- package/resources/courses.d.mts +8 -8
- package/resources/courses.d.ts +8 -8
- package/resources/disputes.d.mts +20 -18
- package/resources/disputes.d.mts.map +1 -1
- package/resources/disputes.d.ts +20 -18
- package/resources/disputes.d.ts.map +1 -1
- package/resources/entries.d.mts +6 -6
- package/resources/entries.d.ts +6 -6
- package/resources/experiences.d.mts +6 -5
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +6 -5
- package/resources/experiences.d.ts.map +1 -1
- package/resources/fee-markups.d.mts +6 -6
- package/resources/fee-markups.d.ts +6 -6
- package/resources/files.d.mts +2 -2
- package/resources/files.d.ts +2 -2
- package/resources/forum-posts.d.mts +8 -4
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +8 -4
- package/resources/forum-posts.d.ts.map +1 -1
- package/resources/forums.d.mts +1 -1
- package/resources/forums.d.ts +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.map +1 -1
- package/resources/invoices.d.mts +28 -20
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +28 -20
- package/resources/invoices.d.ts.map +1 -1
- package/resources/leads.d.mts +12 -12
- package/resources/leads.d.ts +12 -12
- package/resources/ledger-accounts.d.mts +9 -7
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +9 -7
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/members.d.mts +9 -9
- package/resources/members.d.ts +9 -9
- package/resources/memberships.d.mts +17 -12
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +17 -12
- package/resources/memberships.d.ts.map +1 -1
- package/resources/messages.d.mts +7 -3
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +7 -3
- package/resources/messages.d.ts.map +1 -1
- package/resources/payments.d.mts +27 -20
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +27 -20
- package/resources/payments.d.ts.map +1 -1
- package/resources/payout-methods.d.mts +6 -6
- package/resources/payout-methods.d.ts +6 -6
- package/resources/plans.d.mts +34 -24
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +34 -24
- package/resources/plans.d.ts.map +1 -1
- package/resources/products.d.mts +4 -2
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +4 -2
- package/resources/products.d.ts.map +1 -1
- package/resources/promo-codes.d.mts +22 -12
- package/resources/promo-codes.d.mts.map +1 -1
- package/resources/promo-codes.d.ts +22 -12
- package/resources/promo-codes.d.ts.map +1 -1
- package/resources/reactions.d.mts +1 -1
- package/resources/reactions.d.ts +1 -1
- package/resources/refunds.d.mts +19 -15
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +19 -15
- package/resources/refunds.d.ts.map +1 -1
- package/resources/reviews.d.mts +10 -10
- package/resources/reviews.d.ts +10 -10
- package/resources/setup-intents.d.mts +18 -20
- package/resources/setup-intents.d.mts.map +1 -1
- package/resources/setup-intents.d.ts +18 -20
- package/resources/setup-intents.d.ts.map +1 -1
- package/resources/shared.d.mts +175 -137
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +175 -137
- package/resources/shared.d.ts.map +1 -1
- package/resources/shipments.d.mts +4 -4
- package/resources/shipments.d.ts +4 -4
- package/resources/support-channels.d.mts +1 -1
- package/resources/support-channels.d.ts +1 -1
- package/resources/topups.d.mts +6 -4
- package/resources/topups.d.mts.map +1 -1
- package/resources/topups.d.ts +6 -4
- package/resources/topups.d.ts.map +1 -1
- package/resources/transfers.d.mts +8 -5
- package/resources/transfers.d.mts.map +1 -1
- package/resources/transfers.d.ts +8 -5
- package/resources/transfers.d.ts.map +1 -1
- package/resources/users.d.mts +46 -8
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +46 -8
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +10 -0
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +10 -0
- package/resources/users.mjs.map +1 -1
- package/resources/verifications.d.mts +1 -1
- package/resources/verifications.d.ts +1 -1
- package/resources/webhooks.d.mts +71 -57
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +71 -57
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/withdrawals.d.mts +15 -11
- package/resources/withdrawals.d.mts.map +1 -1
- package/resources/withdrawals.d.ts +15 -11
- package/resources/withdrawals.d.ts.map +1 -1
- package/src/client.ts +20 -8
- package/src/resources/access-tokens.ts +35 -56
- package/src/resources/ai-chats.ts +42 -9
- package/src/resources/app-builds.ts +2 -2
- package/src/resources/apps.ts +5 -4
- package/src/resources/authorized-users.ts +6 -6
- package/src/resources/chat-channels.ts +1 -1
- package/src/resources/checkout-configurations.ts +24 -16
- package/src/resources/companies.ts +41 -26
- package/src/resources/company-token-transactions.ts +10 -10
- package/src/resources/course-chapters.ts +3 -3
- package/src/resources/course-lessons.ts +15 -15
- package/src/resources/course-students.ts +6 -6
- package/src/resources/courses.ts +8 -8
- package/src/resources/disputes.ts +20 -18
- package/src/resources/entries.ts +6 -6
- package/src/resources/experiences.ts +6 -5
- package/src/resources/fee-markups.ts +6 -6
- package/src/resources/files.ts +2 -2
- package/src/resources/forum-posts.ts +8 -4
- package/src/resources/forums.ts +1 -1
- package/src/resources/index.ts +2 -1
- package/src/resources/invoices.ts +28 -20
- package/src/resources/leads.ts +12 -12
- package/src/resources/ledger-accounts.ts +9 -7
- package/src/resources/members.ts +9 -9
- package/src/resources/memberships.ts +18 -12
- package/src/resources/messages.ts +7 -3
- package/src/resources/payments.ts +28 -18
- package/src/resources/payout-methods.ts +6 -6
- package/src/resources/plans.ts +34 -24
- package/src/resources/products.ts +4 -2
- package/src/resources/promo-codes.ts +22 -12
- package/src/resources/reactions.ts +1 -1
- package/src/resources/refunds.ts +20 -15
- package/src/resources/reviews.ts +10 -10
- package/src/resources/setup-intents.ts +18 -20
- package/src/resources/shared.ts +176 -137
- package/src/resources/shipments.ts +4 -4
- package/src/resources/support-channels.ts +1 -1
- package/src/resources/topups.ts +6 -4
- package/src/resources/transfers.ts +8 -5
- package/src/resources/users.ts +58 -8
- package/src/resources/verifications.ts +1 -1
- package/src/resources/webhooks.ts +71 -57
- package/src/resources/withdrawals.ts +15 -11
- 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/refunds.d.mts
CHANGED
|
@@ -29,7 +29,7 @@ export type RefundListResponsesCursorPage = CursorPage<RefundListResponse>;
|
|
|
29
29
|
/**
|
|
30
30
|
* The different payment providers.
|
|
31
31
|
*/
|
|
32
|
-
export type PaymentProvider = 'stripe' | 'coinbase' | 'paypal' | 'apple' | 'sezzle' | 'splitit' | 'platform_balance' | 'multi_psp' | 'adyen';
|
|
32
|
+
export type PaymentProvider = 'stripe' | 'coinbase' | 'paypal' | 'apple' | 'sezzle' | 'splitit' | 'platform_balance' | 'multi_psp' | 'adyen' | 'claritypay';
|
|
33
33
|
/**
|
|
34
34
|
* The status of the refund reference.
|
|
35
35
|
*/
|
|
@@ -43,19 +43,21 @@ export type RefundReferenceType = 'acquirer_reference_number' | 'retrieval_refer
|
|
|
43
43
|
*/
|
|
44
44
|
export type RefundStatus = 'pending' | 'requires_action' | 'succeeded' | 'failed' | 'canceled';
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* A refund represents a full or partial reversal of a payment, including the
|
|
47
|
+
* amount, status, and payment provider.
|
|
47
48
|
*/
|
|
48
49
|
export interface RefundRetrieveResponse {
|
|
49
50
|
/**
|
|
50
|
-
* The
|
|
51
|
+
* The unique identifier for the refund.
|
|
51
52
|
*/
|
|
52
53
|
id: string;
|
|
53
54
|
/**
|
|
54
|
-
* The amount of the refund.
|
|
55
|
+
* The amount of the refund. Provided as a number in the specified currency. Eg:
|
|
56
|
+
* 10.43 for $10.43 USD.
|
|
55
57
|
*/
|
|
56
58
|
amount: number;
|
|
57
59
|
/**
|
|
58
|
-
* The
|
|
60
|
+
* The datetime the refund was created.
|
|
59
61
|
*/
|
|
60
62
|
created_at: string;
|
|
61
63
|
/**
|
|
@@ -97,7 +99,7 @@ export declare namespace RefundRetrieveResponse {
|
|
|
97
99
|
*/
|
|
98
100
|
interface Payment {
|
|
99
101
|
/**
|
|
100
|
-
* The payment
|
|
102
|
+
* The unique identifier for the payment.
|
|
101
103
|
*/
|
|
102
104
|
id: string;
|
|
103
105
|
/**
|
|
@@ -113,7 +115,7 @@ export declare namespace RefundRetrieveResponse {
|
|
|
113
115
|
*/
|
|
114
116
|
card_last4: string | null;
|
|
115
117
|
/**
|
|
116
|
-
* The datetime the payment was created
|
|
118
|
+
* The datetime the payment was created.
|
|
117
119
|
*/
|
|
118
120
|
created_at: string;
|
|
119
121
|
/**
|
|
@@ -163,7 +165,7 @@ export declare namespace RefundRetrieveResponse {
|
|
|
163
165
|
*/
|
|
164
166
|
interface Member {
|
|
165
167
|
/**
|
|
166
|
-
* The
|
|
168
|
+
* The unique identifier for the company member.
|
|
167
169
|
*/
|
|
168
170
|
id: string;
|
|
169
171
|
/**
|
|
@@ -176,7 +178,7 @@ export declare namespace RefundRetrieveResponse {
|
|
|
176
178
|
*/
|
|
177
179
|
interface Membership {
|
|
178
180
|
/**
|
|
179
|
-
* The
|
|
181
|
+
* The unique identifier for the membership.
|
|
180
182
|
*/
|
|
181
183
|
id: string;
|
|
182
184
|
/**
|
|
@@ -189,7 +191,7 @@ export declare namespace RefundRetrieveResponse {
|
|
|
189
191
|
*/
|
|
190
192
|
interface User {
|
|
191
193
|
/**
|
|
192
|
-
* The
|
|
194
|
+
* The unique identifier for the user.
|
|
193
195
|
*/
|
|
194
196
|
id: string;
|
|
195
197
|
/**
|
|
@@ -208,19 +210,21 @@ export declare namespace RefundRetrieveResponse {
|
|
|
208
210
|
}
|
|
209
211
|
}
|
|
210
212
|
/**
|
|
211
|
-
*
|
|
213
|
+
* A refund represents a full or partial reversal of a payment, including the
|
|
214
|
+
* amount, status, and payment provider.
|
|
212
215
|
*/
|
|
213
216
|
export interface RefundListResponse {
|
|
214
217
|
/**
|
|
215
|
-
* The
|
|
218
|
+
* The unique identifier for the refund.
|
|
216
219
|
*/
|
|
217
220
|
id: string;
|
|
218
221
|
/**
|
|
219
|
-
* The amount of the refund.
|
|
222
|
+
* The amount of the refund. Provided as a number in the specified currency. Eg:
|
|
223
|
+
* 10.43 for $10.43 USD.
|
|
220
224
|
*/
|
|
221
225
|
amount: number;
|
|
222
226
|
/**
|
|
223
|
-
* The
|
|
227
|
+
* The datetime the refund was created.
|
|
224
228
|
*/
|
|
225
229
|
created_at: string;
|
|
226
230
|
/**
|
|
@@ -262,7 +266,7 @@ export declare namespace RefundListResponse {
|
|
|
262
266
|
*/
|
|
263
267
|
interface Payment {
|
|
264
268
|
/**
|
|
265
|
-
* The payment
|
|
269
|
+
* The unique identifier for the payment.
|
|
266
270
|
*/
|
|
267
271
|
id: string;
|
|
268
272
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refunds.d.mts","sourceRoot":"","sources":["../src/resources/refunds.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAA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AAK,YAAY,IAAI,YAAY,EACjC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
package/resources/refunds.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export type RefundListResponsesCursorPage = CursorPage<RefundListResponse>;
|
|
|
29
29
|
/**
|
|
30
30
|
* The different payment providers.
|
|
31
31
|
*/
|
|
32
|
-
export type PaymentProvider = 'stripe' | 'coinbase' | 'paypal' | 'apple' | 'sezzle' | 'splitit' | 'platform_balance' | 'multi_psp' | 'adyen';
|
|
32
|
+
export type PaymentProvider = 'stripe' | 'coinbase' | 'paypal' | 'apple' | 'sezzle' | 'splitit' | 'platform_balance' | 'multi_psp' | 'adyen' | 'claritypay';
|
|
33
33
|
/**
|
|
34
34
|
* The status of the refund reference.
|
|
35
35
|
*/
|
|
@@ -43,19 +43,21 @@ export type RefundReferenceType = 'acquirer_reference_number' | 'retrieval_refer
|
|
|
43
43
|
*/
|
|
44
44
|
export type RefundStatus = 'pending' | 'requires_action' | 'succeeded' | 'failed' | 'canceled';
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* A refund represents a full or partial reversal of a payment, including the
|
|
47
|
+
* amount, status, and payment provider.
|
|
47
48
|
*/
|
|
48
49
|
export interface RefundRetrieveResponse {
|
|
49
50
|
/**
|
|
50
|
-
* The
|
|
51
|
+
* The unique identifier for the refund.
|
|
51
52
|
*/
|
|
52
53
|
id: string;
|
|
53
54
|
/**
|
|
54
|
-
* The amount of the refund.
|
|
55
|
+
* The amount of the refund. Provided as a number in the specified currency. Eg:
|
|
56
|
+
* 10.43 for $10.43 USD.
|
|
55
57
|
*/
|
|
56
58
|
amount: number;
|
|
57
59
|
/**
|
|
58
|
-
* The
|
|
60
|
+
* The datetime the refund was created.
|
|
59
61
|
*/
|
|
60
62
|
created_at: string;
|
|
61
63
|
/**
|
|
@@ -97,7 +99,7 @@ export declare namespace RefundRetrieveResponse {
|
|
|
97
99
|
*/
|
|
98
100
|
interface Payment {
|
|
99
101
|
/**
|
|
100
|
-
* The payment
|
|
102
|
+
* The unique identifier for the payment.
|
|
101
103
|
*/
|
|
102
104
|
id: string;
|
|
103
105
|
/**
|
|
@@ -113,7 +115,7 @@ export declare namespace RefundRetrieveResponse {
|
|
|
113
115
|
*/
|
|
114
116
|
card_last4: string | null;
|
|
115
117
|
/**
|
|
116
|
-
* The datetime the payment was created
|
|
118
|
+
* The datetime the payment was created.
|
|
117
119
|
*/
|
|
118
120
|
created_at: string;
|
|
119
121
|
/**
|
|
@@ -163,7 +165,7 @@ export declare namespace RefundRetrieveResponse {
|
|
|
163
165
|
*/
|
|
164
166
|
interface Member {
|
|
165
167
|
/**
|
|
166
|
-
* The
|
|
168
|
+
* The unique identifier for the company member.
|
|
167
169
|
*/
|
|
168
170
|
id: string;
|
|
169
171
|
/**
|
|
@@ -176,7 +178,7 @@ export declare namespace RefundRetrieveResponse {
|
|
|
176
178
|
*/
|
|
177
179
|
interface Membership {
|
|
178
180
|
/**
|
|
179
|
-
* The
|
|
181
|
+
* The unique identifier for the membership.
|
|
180
182
|
*/
|
|
181
183
|
id: string;
|
|
182
184
|
/**
|
|
@@ -189,7 +191,7 @@ export declare namespace RefundRetrieveResponse {
|
|
|
189
191
|
*/
|
|
190
192
|
interface User {
|
|
191
193
|
/**
|
|
192
|
-
* The
|
|
194
|
+
* The unique identifier for the user.
|
|
193
195
|
*/
|
|
194
196
|
id: string;
|
|
195
197
|
/**
|
|
@@ -208,19 +210,21 @@ export declare namespace RefundRetrieveResponse {
|
|
|
208
210
|
}
|
|
209
211
|
}
|
|
210
212
|
/**
|
|
211
|
-
*
|
|
213
|
+
* A refund represents a full or partial reversal of a payment, including the
|
|
214
|
+
* amount, status, and payment provider.
|
|
212
215
|
*/
|
|
213
216
|
export interface RefundListResponse {
|
|
214
217
|
/**
|
|
215
|
-
* The
|
|
218
|
+
* The unique identifier for the refund.
|
|
216
219
|
*/
|
|
217
220
|
id: string;
|
|
218
221
|
/**
|
|
219
|
-
* The amount of the refund.
|
|
222
|
+
* The amount of the refund. Provided as a number in the specified currency. Eg:
|
|
223
|
+
* 10.43 for $10.43 USD.
|
|
220
224
|
*/
|
|
221
225
|
amount: number;
|
|
222
226
|
/**
|
|
223
|
-
* The
|
|
227
|
+
* The datetime the refund was created.
|
|
224
228
|
*/
|
|
225
229
|
created_at: string;
|
|
226
230
|
/**
|
|
@@ -262,7 +266,7 @@ export declare namespace RefundListResponse {
|
|
|
262
266
|
*/
|
|
263
267
|
interface Payment {
|
|
264
268
|
/**
|
|
265
|
-
* The payment
|
|
269
|
+
* The unique identifier for the payment.
|
|
266
270
|
*/
|
|
267
271
|
id: string;
|
|
268
272
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refunds.d.ts","sourceRoot":"","sources":["../src/resources/refunds.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIlF;;;;;;OAMG;IACH,IAAI,CACF,KAAK,EAAE,gBAAgB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,6BAA6B,EAAE,kBAAkB,CAAC;CAGlE;AAED,MAAM,MAAM,6BAA6B,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,eAAe,GACvB,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,OAAO,GAC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Ac,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAE3C;;OAEG;IACH,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,yBAAiB,kBAAkB,CAAC;IAClC;;OAEG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IACxD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
package/resources/reviews.d.mts
CHANGED
|
@@ -22,7 +22,7 @@ export type ReviewStatus = 'pending' | 'published' | 'removed';
|
|
|
22
22
|
*/
|
|
23
23
|
export interface ReviewRetrieveResponse {
|
|
24
24
|
/**
|
|
25
|
-
* The
|
|
25
|
+
* The unique identifier for the review.
|
|
26
26
|
*/
|
|
27
27
|
id: string;
|
|
28
28
|
/**
|
|
@@ -34,7 +34,7 @@ export interface ReviewRetrieveResponse {
|
|
|
34
34
|
*/
|
|
35
35
|
company: ReviewRetrieveResponse.Company;
|
|
36
36
|
/**
|
|
37
|
-
* The
|
|
37
|
+
* The datetime the review was created.
|
|
38
38
|
*/
|
|
39
39
|
created_at: string;
|
|
40
40
|
/**
|
|
@@ -71,7 +71,7 @@ export interface ReviewRetrieveResponse {
|
|
|
71
71
|
*/
|
|
72
72
|
title: string | null;
|
|
73
73
|
/**
|
|
74
|
-
* The
|
|
74
|
+
* The datetime the review was last updated.
|
|
75
75
|
*/
|
|
76
76
|
updated_at: string;
|
|
77
77
|
/**
|
|
@@ -107,7 +107,7 @@ export declare namespace ReviewRetrieveResponse {
|
|
|
107
107
|
*/
|
|
108
108
|
interface Company {
|
|
109
109
|
/**
|
|
110
|
-
* The
|
|
110
|
+
* The unique identifier for the company.
|
|
111
111
|
*/
|
|
112
112
|
id: string;
|
|
113
113
|
/**
|
|
@@ -124,7 +124,7 @@ export declare namespace ReviewRetrieveResponse {
|
|
|
124
124
|
*/
|
|
125
125
|
interface Product {
|
|
126
126
|
/**
|
|
127
|
-
* The
|
|
127
|
+
* The unique identifier for the product.
|
|
128
128
|
*/
|
|
129
129
|
id: string;
|
|
130
130
|
/**
|
|
@@ -137,7 +137,7 @@ export declare namespace ReviewRetrieveResponse {
|
|
|
137
137
|
*/
|
|
138
138
|
interface User {
|
|
139
139
|
/**
|
|
140
|
-
* The
|
|
140
|
+
* The unique identifier for the user.
|
|
141
141
|
*/
|
|
142
142
|
id: string;
|
|
143
143
|
/**
|
|
@@ -155,7 +155,7 @@ export declare namespace ReviewRetrieveResponse {
|
|
|
155
155
|
*/
|
|
156
156
|
export interface ReviewListResponse {
|
|
157
157
|
/**
|
|
158
|
-
* The
|
|
158
|
+
* The unique identifier for the review.
|
|
159
159
|
*/
|
|
160
160
|
id: string;
|
|
161
161
|
/**
|
|
@@ -163,7 +163,7 @@ export interface ReviewListResponse {
|
|
|
163
163
|
*/
|
|
164
164
|
attachments: Array<ReviewListResponse.Attachment>;
|
|
165
165
|
/**
|
|
166
|
-
* The
|
|
166
|
+
* The datetime the review was created.
|
|
167
167
|
*/
|
|
168
168
|
created_at: string;
|
|
169
169
|
/**
|
|
@@ -196,7 +196,7 @@ export interface ReviewListResponse {
|
|
|
196
196
|
*/
|
|
197
197
|
title: string | null;
|
|
198
198
|
/**
|
|
199
|
-
* The
|
|
199
|
+
* The datetime the review was last updated.
|
|
200
200
|
*/
|
|
201
201
|
updated_at: string;
|
|
202
202
|
/**
|
|
@@ -232,7 +232,7 @@ export declare namespace ReviewListResponse {
|
|
|
232
232
|
*/
|
|
233
233
|
interface User {
|
|
234
234
|
/**
|
|
235
|
-
* The
|
|
235
|
+
* The unique identifier for the user.
|
|
236
236
|
*/
|
|
237
237
|
id: string;
|
|
238
238
|
/**
|
package/resources/reviews.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export type ReviewStatus = 'pending' | 'published' | 'removed';
|
|
|
22
22
|
*/
|
|
23
23
|
export interface ReviewRetrieveResponse {
|
|
24
24
|
/**
|
|
25
|
-
* The
|
|
25
|
+
* The unique identifier for the review.
|
|
26
26
|
*/
|
|
27
27
|
id: string;
|
|
28
28
|
/**
|
|
@@ -34,7 +34,7 @@ export interface ReviewRetrieveResponse {
|
|
|
34
34
|
*/
|
|
35
35
|
company: ReviewRetrieveResponse.Company;
|
|
36
36
|
/**
|
|
37
|
-
* The
|
|
37
|
+
* The datetime the review was created.
|
|
38
38
|
*/
|
|
39
39
|
created_at: string;
|
|
40
40
|
/**
|
|
@@ -71,7 +71,7 @@ export interface ReviewRetrieveResponse {
|
|
|
71
71
|
*/
|
|
72
72
|
title: string | null;
|
|
73
73
|
/**
|
|
74
|
-
* The
|
|
74
|
+
* The datetime the review was last updated.
|
|
75
75
|
*/
|
|
76
76
|
updated_at: string;
|
|
77
77
|
/**
|
|
@@ -107,7 +107,7 @@ export declare namespace ReviewRetrieveResponse {
|
|
|
107
107
|
*/
|
|
108
108
|
interface Company {
|
|
109
109
|
/**
|
|
110
|
-
* The
|
|
110
|
+
* The unique identifier for the company.
|
|
111
111
|
*/
|
|
112
112
|
id: string;
|
|
113
113
|
/**
|
|
@@ -124,7 +124,7 @@ export declare namespace ReviewRetrieveResponse {
|
|
|
124
124
|
*/
|
|
125
125
|
interface Product {
|
|
126
126
|
/**
|
|
127
|
-
* The
|
|
127
|
+
* The unique identifier for the product.
|
|
128
128
|
*/
|
|
129
129
|
id: string;
|
|
130
130
|
/**
|
|
@@ -137,7 +137,7 @@ export declare namespace ReviewRetrieveResponse {
|
|
|
137
137
|
*/
|
|
138
138
|
interface User {
|
|
139
139
|
/**
|
|
140
|
-
* The
|
|
140
|
+
* The unique identifier for the user.
|
|
141
141
|
*/
|
|
142
142
|
id: string;
|
|
143
143
|
/**
|
|
@@ -155,7 +155,7 @@ export declare namespace ReviewRetrieveResponse {
|
|
|
155
155
|
*/
|
|
156
156
|
export interface ReviewListResponse {
|
|
157
157
|
/**
|
|
158
|
-
* The
|
|
158
|
+
* The unique identifier for the review.
|
|
159
159
|
*/
|
|
160
160
|
id: string;
|
|
161
161
|
/**
|
|
@@ -163,7 +163,7 @@ export interface ReviewListResponse {
|
|
|
163
163
|
*/
|
|
164
164
|
attachments: Array<ReviewListResponse.Attachment>;
|
|
165
165
|
/**
|
|
166
|
-
* The
|
|
166
|
+
* The datetime the review was created.
|
|
167
167
|
*/
|
|
168
168
|
created_at: string;
|
|
169
169
|
/**
|
|
@@ -196,7 +196,7 @@ export interface ReviewListResponse {
|
|
|
196
196
|
*/
|
|
197
197
|
title: string | null;
|
|
198
198
|
/**
|
|
199
|
-
* The
|
|
199
|
+
* The datetime the review was last updated.
|
|
200
200
|
*/
|
|
201
201
|
updated_at: string;
|
|
202
202
|
/**
|
|
@@ -232,7 +232,7 @@ export declare namespace ReviewListResponse {
|
|
|
232
232
|
*/
|
|
233
233
|
interface User {
|
|
234
234
|
/**
|
|
235
|
-
* The
|
|
235
|
+
* The unique identifier for the user.
|
|
236
236
|
*/
|
|
237
237
|
id: string;
|
|
238
238
|
/**
|
|
@@ -36,12 +36,11 @@ export declare class SetupIntents extends APIResource {
|
|
|
36
36
|
}
|
|
37
37
|
export type SetupIntentListResponsesCursorPage = CursorPage<SetupIntentListResponse>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
40
|
-
* to add a payment method to their account without making a purchase.
|
|
39
|
+
* A setup intent allows a user to save a payment method without making a purchase.
|
|
41
40
|
*/
|
|
42
41
|
export interface SetupIntent {
|
|
43
42
|
/**
|
|
44
|
-
* The setup intent
|
|
43
|
+
* The unique identifier for the setup intent.
|
|
45
44
|
*/
|
|
46
45
|
id: string;
|
|
47
46
|
/**
|
|
@@ -53,7 +52,7 @@ export interface SetupIntent {
|
|
|
53
52
|
*/
|
|
54
53
|
company: SetupIntent.Company | null;
|
|
55
54
|
/**
|
|
56
|
-
* The datetime the
|
|
55
|
+
* The datetime the setup intent was created.
|
|
57
56
|
*/
|
|
58
57
|
created_at: string;
|
|
59
58
|
/**
|
|
@@ -85,7 +84,7 @@ export declare namespace SetupIntent {
|
|
|
85
84
|
*/
|
|
86
85
|
interface CheckoutConfiguration {
|
|
87
86
|
/**
|
|
88
|
-
* The
|
|
87
|
+
* The unique identifier for the checkout session.
|
|
89
88
|
*/
|
|
90
89
|
id: string;
|
|
91
90
|
}
|
|
@@ -94,7 +93,7 @@ export declare namespace SetupIntent {
|
|
|
94
93
|
*/
|
|
95
94
|
interface Company {
|
|
96
95
|
/**
|
|
97
|
-
* The
|
|
96
|
+
* The unique identifier for the company.
|
|
98
97
|
*/
|
|
99
98
|
id: string;
|
|
100
99
|
}
|
|
@@ -103,7 +102,7 @@ export declare namespace SetupIntent {
|
|
|
103
102
|
*/
|
|
104
103
|
interface Member {
|
|
105
104
|
/**
|
|
106
|
-
* The
|
|
105
|
+
* The unique identifier for the company member.
|
|
107
106
|
*/
|
|
108
107
|
id: string;
|
|
109
108
|
/**
|
|
@@ -117,7 +116,7 @@ export declare namespace SetupIntent {
|
|
|
117
116
|
*/
|
|
118
117
|
interface User {
|
|
119
118
|
/**
|
|
120
|
-
* The
|
|
119
|
+
* The unique identifier for the company member user.
|
|
121
120
|
*/
|
|
122
121
|
id: string;
|
|
123
122
|
/**
|
|
@@ -139,7 +138,7 @@ export declare namespace SetupIntent {
|
|
|
139
138
|
*/
|
|
140
139
|
interface PaymentMethod {
|
|
141
140
|
/**
|
|
142
|
-
* The
|
|
141
|
+
* The unique identifier for the payment token.
|
|
143
142
|
*/
|
|
144
143
|
id: string;
|
|
145
144
|
/**
|
|
@@ -147,7 +146,7 @@ export declare namespace SetupIntent {
|
|
|
147
146
|
*/
|
|
148
147
|
card: PaymentMethod.Card | null;
|
|
149
148
|
/**
|
|
150
|
-
* The
|
|
149
|
+
* The datetime the payment token was created.
|
|
151
150
|
*/
|
|
152
151
|
created_at: string;
|
|
153
152
|
/**
|
|
@@ -184,12 +183,11 @@ export declare namespace SetupIntent {
|
|
|
184
183
|
*/
|
|
185
184
|
export type SetupIntentStatus = 'processing' | 'succeeded' | 'canceled' | 'requires_action';
|
|
186
185
|
/**
|
|
187
|
-
*
|
|
188
|
-
* to add a payment method to their account without making a purchase.
|
|
186
|
+
* A setup intent allows a user to save a payment method without making a purchase.
|
|
189
187
|
*/
|
|
190
188
|
export interface SetupIntentListResponse {
|
|
191
189
|
/**
|
|
192
|
-
* The setup intent
|
|
190
|
+
* The unique identifier for the setup intent.
|
|
193
191
|
*/
|
|
194
192
|
id: string;
|
|
195
193
|
/**
|
|
@@ -201,7 +199,7 @@ export interface SetupIntentListResponse {
|
|
|
201
199
|
*/
|
|
202
200
|
company: SetupIntentListResponse.Company | null;
|
|
203
201
|
/**
|
|
204
|
-
* The datetime the
|
|
202
|
+
* The datetime the setup intent was created.
|
|
205
203
|
*/
|
|
206
204
|
created_at: string;
|
|
207
205
|
/**
|
|
@@ -233,7 +231,7 @@ export declare namespace SetupIntentListResponse {
|
|
|
233
231
|
*/
|
|
234
232
|
interface CheckoutConfiguration {
|
|
235
233
|
/**
|
|
236
|
-
* The
|
|
234
|
+
* The unique identifier for the checkout session.
|
|
237
235
|
*/
|
|
238
236
|
id: string;
|
|
239
237
|
}
|
|
@@ -242,7 +240,7 @@ export declare namespace SetupIntentListResponse {
|
|
|
242
240
|
*/
|
|
243
241
|
interface Company {
|
|
244
242
|
/**
|
|
245
|
-
* The
|
|
243
|
+
* The unique identifier for the company.
|
|
246
244
|
*/
|
|
247
245
|
id: string;
|
|
248
246
|
}
|
|
@@ -251,7 +249,7 @@ export declare namespace SetupIntentListResponse {
|
|
|
251
249
|
*/
|
|
252
250
|
interface Member {
|
|
253
251
|
/**
|
|
254
|
-
* The
|
|
252
|
+
* The unique identifier for the company member.
|
|
255
253
|
*/
|
|
256
254
|
id: string;
|
|
257
255
|
/**
|
|
@@ -265,7 +263,7 @@ export declare namespace SetupIntentListResponse {
|
|
|
265
263
|
*/
|
|
266
264
|
interface User {
|
|
267
265
|
/**
|
|
268
|
-
* The
|
|
266
|
+
* The unique identifier for the company member user.
|
|
269
267
|
*/
|
|
270
268
|
id: string;
|
|
271
269
|
/**
|
|
@@ -287,7 +285,7 @@ export declare namespace SetupIntentListResponse {
|
|
|
287
285
|
*/
|
|
288
286
|
interface PaymentMethod {
|
|
289
287
|
/**
|
|
290
|
-
* The
|
|
288
|
+
* The unique identifier for the payment token.
|
|
291
289
|
*/
|
|
292
290
|
id: string;
|
|
293
291
|
/**
|
|
@@ -295,7 +293,7 @@ export declare namespace SetupIntentListResponse {
|
|
|
295
293
|
*/
|
|
296
294
|
card: PaymentMethod.Card | null;
|
|
297
295
|
/**
|
|
298
|
-
* The
|
|
296
|
+
* The datetime the payment token was created.
|
|
299
297
|
*/
|
|
300
298
|
created_at: string;
|
|
301
299
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-intents.d.mts","sourceRoot":"","sources":["../src/resources/setup-intents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAIvE;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,KAAK,EAAE,qBAAqB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,kCAAkC,EAAE,uBAAuB,CAAC;CAM5E;AAED,MAAM,MAAM,kCAAkC,GAAG,UAAU,CAAC,uBAAuB,CAAC,CAAC;AAErF
|
|
1
|
+
{"version":3,"file":"setup-intents.d.mts","sourceRoot":"","sources":["../src/resources/setup-intents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAIvE;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,KAAK,EAAE,qBAAqB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,kCAAkC,EAAE,uBAAuB,CAAC;CAM5E;AAED,MAAM,MAAM,kCAAkC,GAAG,UAAU,CAAC,uBAAuB,CAAC,CAAC;AAErF;;GAEG;AACH,MAAM,WA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