@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
package/resources/messages.d.ts
CHANGED
|
@@ -20,6 +20,10 @@ export declare class Messages extends APIResource {
|
|
|
20
20
|
* - `chat:read`
|
|
21
21
|
*/
|
|
22
22
|
retrieve(id: string, options?: RequestOptions): APIPromise<Shared.Message>;
|
|
23
|
+
/**
|
|
24
|
+
* Updates an existing message
|
|
25
|
+
*/
|
|
26
|
+
update(id: string, body?: MessageUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Shared.Message>;
|
|
23
27
|
/**
|
|
24
28
|
* Lists messages inside a channel
|
|
25
29
|
*
|
|
@@ -168,7 +172,7 @@ export interface MessageCreateParams {
|
|
|
168
172
|
/**
|
|
169
173
|
* The attachments for this message, such as videos or images.
|
|
170
174
|
*/
|
|
171
|
-
attachments?: Array<MessageCreateParams.
|
|
175
|
+
attachments?: Array<MessageCreateParams.AttachmentInputWithDirectUploadID | MessageCreateParams.AttachmentInputWithID> | null;
|
|
172
176
|
/**
|
|
173
177
|
* The poll for this message
|
|
174
178
|
*/
|
|
@@ -178,19 +182,24 @@ export declare namespace MessageCreateParams {
|
|
|
178
182
|
/**
|
|
179
183
|
* Input for an attachment
|
|
180
184
|
*/
|
|
181
|
-
interface
|
|
182
|
-
/**
|
|
183
|
-
* The ID of an existing attachment object. Use this when updating a resource and
|
|
184
|
-
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
185
|
-
* doing.
|
|
186
|
-
*/
|
|
187
|
-
id?: string | null;
|
|
185
|
+
interface AttachmentInputWithDirectUploadID {
|
|
188
186
|
/**
|
|
189
187
|
* This ID should be used the first time you upload an attachment. It is the ID of
|
|
190
188
|
* the direct upload that was created when uploading the file to S3 via the
|
|
191
189
|
* mediaDirectUpload mutation.
|
|
192
190
|
*/
|
|
193
|
-
direct_upload_id
|
|
191
|
+
direct_upload_id: string;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Input for an attachment
|
|
195
|
+
*/
|
|
196
|
+
interface AttachmentInputWithID {
|
|
197
|
+
/**
|
|
198
|
+
* The ID of an existing attachment object. Use this when updating a resource and
|
|
199
|
+
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
200
|
+
* doing.
|
|
201
|
+
*/
|
|
202
|
+
id: string;
|
|
194
203
|
}
|
|
195
204
|
/**
|
|
196
205
|
* The poll for this message
|
|
@@ -217,6 +226,44 @@ export declare namespace MessageCreateParams {
|
|
|
217
226
|
}
|
|
218
227
|
}
|
|
219
228
|
}
|
|
229
|
+
export interface MessageUpdateParams {
|
|
230
|
+
/**
|
|
231
|
+
* The attachments for this message
|
|
232
|
+
*/
|
|
233
|
+
attachments?: Array<MessageUpdateParams.AttachmentInputWithDirectUploadID | MessageUpdateParams.AttachmentInputWithID> | null;
|
|
234
|
+
/**
|
|
235
|
+
* The content of the message in Markdown format
|
|
236
|
+
*/
|
|
237
|
+
content?: string | null;
|
|
238
|
+
/**
|
|
239
|
+
* Whether this message is pinned
|
|
240
|
+
*/
|
|
241
|
+
is_pinned?: boolean | null;
|
|
242
|
+
}
|
|
243
|
+
export declare namespace MessageUpdateParams {
|
|
244
|
+
/**
|
|
245
|
+
* Input for an attachment
|
|
246
|
+
*/
|
|
247
|
+
interface AttachmentInputWithDirectUploadID {
|
|
248
|
+
/**
|
|
249
|
+
* This ID should be used the first time you upload an attachment. It is the ID of
|
|
250
|
+
* the direct upload that was created when uploading the file to S3 via the
|
|
251
|
+
* mediaDirectUpload mutation.
|
|
252
|
+
*/
|
|
253
|
+
direct_upload_id: string;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Input for an attachment
|
|
257
|
+
*/
|
|
258
|
+
interface AttachmentInputWithID {
|
|
259
|
+
/**
|
|
260
|
+
* The ID of an existing attachment object. Use this when updating a resource and
|
|
261
|
+
* keeping a subset of the attachments. Don't use this unless you know what you're
|
|
262
|
+
* doing.
|
|
263
|
+
*/
|
|
264
|
+
id: string;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
220
267
|
export interface MessageListParams extends CursorPageParams {
|
|
221
268
|
/**
|
|
222
269
|
* The ID of the channel or the experience ID to list messages for
|
|
@@ -240,6 +287,6 @@ export interface MessageListParams extends CursorPageParams {
|
|
|
240
287
|
last?: number | null;
|
|
241
288
|
}
|
|
242
289
|
export declare namespace Messages {
|
|
243
|
-
export { type MessageListResponse as MessageListResponse, type MessageListResponsesCursorPage as MessageListResponsesCursorPage, type MessageCreateParams as MessageCreateParams, type MessageListParams as MessageListParams, };
|
|
290
|
+
export { type MessageListResponse as MessageListResponse, type MessageListResponsesCursorPage as MessageListResponsesCursorPage, type MessageCreateParams as MessageCreateParams, type MessageUpdateParams as MessageUpdateParams, type MessageListParams as MessageListParams, };
|
|
244
291
|
}
|
|
245
292
|
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/resources/messages.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,QAAS,SAAQ,WAAW;IACvC;;;;;;OAMG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC;IAIvF;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC;IAI1E;;;;;;OAMG;IACH,IAAI,CACF,KAAK,EAAE,iBAAiB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,8BAA8B,EAAE,mBAAmB,CAAC;CAGpE;AAED,MAAM,MAAM,8BAA8B,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC;AAE7E;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,OAAO,EAAE,MAAM,G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C;IAExB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC5B;AAED,yBAAiB,mBAAmB,CAAC;IACnC;;OAEG;IACH,UAAiB,iCAAiC;QAChD;;;;WAIG;QACH,gBAAgB,EAAE,MAAM,CAAC;KAC1B;IAED;;OAEG;IACH,UAAiB,qBAAqB;QACpC;;;;WAIG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACzD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;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,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/messages.js
CHANGED
|
@@ -26,6 +26,12 @@ class Messages extends resource_1.APIResource {
|
|
|
26
26
|
retrieve(id, options) {
|
|
27
27
|
return this._client.get((0, path_1.path) `/messages/${id}`, options);
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Updates an existing message
|
|
31
|
+
*/
|
|
32
|
+
update(id, body = {}, options) {
|
|
33
|
+
return this._client.patch((0, path_1.path) `/messages/${id}`, { body, ...options });
|
|
34
|
+
}
|
|
29
35
|
/**
|
|
30
36
|
* Lists messages inside a channel
|
|
31
37
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;OAMG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CACF,KAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,CAAA,uBAA+B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;OAMG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,OAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CACF,KAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,CAAA,uBAA+B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;CACF;AA/CD,4BA+CC"}
|
package/resources/messages.mjs
CHANGED
|
@@ -23,6 +23,12 @@ export class Messages extends APIResource {
|
|
|
23
23
|
retrieve(id, options) {
|
|
24
24
|
return this._client.get(path `/messages/${id}`, options);
|
|
25
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Updates an existing message
|
|
28
|
+
*/
|
|
29
|
+
update(id, body = {}, options) {
|
|
30
|
+
return this._client.patch(path `/messages/${id}`, { body, ...options });
|
|
31
|
+
}
|
|
26
32
|
/**
|
|
27
33
|
* Lists messages inside a channel
|
|
28
34
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;OAMG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;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AW,EAAE,CAAA,UAA+B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;CACF"}
|
package/resources/payments.d.mts
CHANGED
|
@@ -114,6 +114,18 @@ export declare class Payments extends APIResource {
|
|
|
114
114
|
void(id: string, options?: RequestOptions): APIPromise<Shared.Payment>;
|
|
115
115
|
}
|
|
116
116
|
export type PaymentListResponsesCursorPage = CursorPage<PaymentListResponse>;
|
|
117
|
+
/**
|
|
118
|
+
* The reason why a specific payment was billed
|
|
119
|
+
*/
|
|
120
|
+
export type BillingReasons = 'subscription_create' | 'subscription_cycle' | 'subscription_update' | 'one_time' | 'manual' | 'subscription';
|
|
121
|
+
/**
|
|
122
|
+
* Possible card brands that a payment token can have
|
|
123
|
+
*/
|
|
124
|
+
export type CardBrands = 'mastercard' | 'visa' | 'amex' | 'discover' | 'unionpay' | 'jcb' | 'diners' | 'link' | 'troy' | 'visadankort' | 'visabancontact' | 'china_union_pay' | 'rupay' | 'jcbrupay' | 'elo' | 'unknown';
|
|
125
|
+
/**
|
|
126
|
+
* The different types of payment methods that can be used.
|
|
127
|
+
*/
|
|
128
|
+
export type PaymentMethodTypes = 'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'apple_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'eps' | 'fpx' | 'giropay' | 'google_pay' | 'grabpay' | 'ideal' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'pix' | 'promptpay' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip' | 'bizum' | 'capchase_pay' | 'kriya' | 'mondu' | 'ng_wallet' | 'paypay' | 'sequra' | 'scalapay' | 'vipps' | 'custom' | 'customer_balance' | 'gopay' | 'mb_way' | 'ng_bank' | 'ng_bank_transfer' | 'ng_card' | 'ng_market' | 'ng_ussd' | 'paypal' | 'payto' | 'qris' | 'rechnung' | 'south_korea_market' | 'kr_market' | 'shopeepay' | 'upi' | 'sunbit' | 'netbanking' | 'id_bank_transfer' | 'demo_pay' | 'shop_pay' | 'sezzle' | 'coinbase' | 'splitit' | 'platform_balance' | 'apple' | 'unknown';
|
|
117
129
|
/**
|
|
118
130
|
* An object representing a receipt for a membership.
|
|
119
131
|
*/
|
|
@@ -135,13 +147,13 @@ export interface PaymentListResponse {
|
|
|
135
147
|
*/
|
|
136
148
|
billing_address: PaymentListResponse.BillingAddress | null;
|
|
137
149
|
/**
|
|
138
|
-
* The
|
|
150
|
+
* The reason why a specific payment was billed
|
|
139
151
|
*/
|
|
140
|
-
billing_reason:
|
|
152
|
+
billing_reason: BillingReasons | null;
|
|
141
153
|
/**
|
|
142
|
-
*
|
|
154
|
+
* Possible card brands that a payment token can have
|
|
143
155
|
*/
|
|
144
|
-
card_brand:
|
|
156
|
+
card_brand: CardBrands | null;
|
|
145
157
|
/**
|
|
146
158
|
* The last 4 digits of the card used to make the payment.
|
|
147
159
|
*/
|
|
@@ -178,15 +190,21 @@ export interface PaymentListResponse {
|
|
|
178
190
|
* The membership attached to this payment.
|
|
179
191
|
*/
|
|
180
192
|
membership: PaymentListResponse.Membership | null;
|
|
193
|
+
/**
|
|
194
|
+
* The custom metadata stored on this payment. This will be copied the checkout
|
|
195
|
+
* configuration for which this payment was made
|
|
196
|
+
*/
|
|
197
|
+
metadata: {
|
|
198
|
+
[key: string]: unknown;
|
|
199
|
+
} | null;
|
|
181
200
|
/**
|
|
182
201
|
* The datetime the payment was paid
|
|
183
202
|
*/
|
|
184
203
|
paid_at: string | null;
|
|
185
204
|
/**
|
|
186
|
-
*
|
|
187
|
-
* klarna, affirm, card, cashapp
|
|
205
|
+
* The different types of payment methods that can be used.
|
|
188
206
|
*/
|
|
189
|
-
payment_method_type:
|
|
207
|
+
payment_method_type: PaymentMethodTypes | null;
|
|
190
208
|
/**
|
|
191
209
|
* The plan attached to this payment.
|
|
192
210
|
*/
|
|
@@ -200,7 +218,8 @@ export interface PaymentListResponse {
|
|
|
200
218
|
*/
|
|
201
219
|
promo_code: PaymentListResponse.PromoCode | null;
|
|
202
220
|
/**
|
|
203
|
-
*
|
|
221
|
+
* True only for payments that are `paid`, have not been fully refunded, and were
|
|
222
|
+
* processed by a payment processor that allows refunds.
|
|
204
223
|
*/
|
|
205
224
|
refundable: boolean;
|
|
206
225
|
/**
|
|
@@ -212,7 +231,9 @@ export interface PaymentListResponse {
|
|
|
212
231
|
*/
|
|
213
232
|
refunded_at: string | null;
|
|
214
233
|
/**
|
|
215
|
-
*
|
|
234
|
+
* True when the payment status is `open` and its membership is in one of the
|
|
235
|
+
* retry-eligible states (`active`, `trialing`, `completed`, or `past_due`);
|
|
236
|
+
* otherwise false. Used to decide if Whop can attempt the charge again.
|
|
216
237
|
*/
|
|
217
238
|
retryable: boolean;
|
|
218
239
|
/**
|
|
@@ -240,7 +261,8 @@ export interface PaymentListResponse {
|
|
|
240
261
|
*/
|
|
241
262
|
user: PaymentListResponse.User | null;
|
|
242
263
|
/**
|
|
243
|
-
*
|
|
264
|
+
* True when the payment is tied to a membership in `past_due`, the payment status
|
|
265
|
+
* is `open`, and the processor allows voiding payments; otherwise false.
|
|
244
266
|
*/
|
|
245
267
|
voidable: boolean;
|
|
246
268
|
}
|
|
@@ -368,7 +390,7 @@ export declare namespace PaymentListResponse {
|
|
|
368
390
|
*/
|
|
369
391
|
code: string | null;
|
|
370
392
|
/**
|
|
371
|
-
* The number of
|
|
393
|
+
* The number of months the promo is applied for.
|
|
372
394
|
*/
|
|
373
395
|
number_of_intervals: number | null;
|
|
374
396
|
/**
|
|
@@ -410,7 +432,7 @@ export interface PaymentListParams extends CursorPageParams {
|
|
|
410
432
|
/**
|
|
411
433
|
* The billing reason for the payment
|
|
412
434
|
*/
|
|
413
|
-
billing_reasons?: Array<
|
|
435
|
+
billing_reasons?: Array<BillingReasons> | null;
|
|
414
436
|
/**
|
|
415
437
|
* The minimum creation date to filter by
|
|
416
438
|
*/
|
|
@@ -467,6 +489,6 @@ export interface PaymentRefundParams {
|
|
|
467
489
|
partial_amount?: number | null;
|
|
468
490
|
}
|
|
469
491
|
export declare namespace Payments {
|
|
470
|
-
export { type PaymentListResponse as PaymentListResponse, type PaymentListResponsesCursorPage as PaymentListResponsesCursorPage, type PaymentListParams as PaymentListParams, type PaymentRefundParams as PaymentRefundParams, };
|
|
492
|
+
export { type BillingReasons as BillingReasons, type CardBrands as CardBrands, type PaymentMethodTypes as PaymentMethodTypes, type PaymentListResponse as PaymentListResponse, type PaymentListResponsesCursorPage as PaymentListResponsesCursorPage, type PaymentListParams as PaymentListParams, type PaymentRefundParams as PaymentRefundParams, };
|
|
471
493
|
}
|
|
472
494
|
//# sourceMappingURL=payments.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments.d.mts","sourceRoot":"","sources":["../src/resources/payments.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,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC;IAI1E;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,IAAI,CACF,KAAK,EAAE,iBAAiB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,8BAA8B,EAAE,mBAAmB,CAAC;IAInE;;;;;;;;;;;;;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,CAAC,SAAS,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,cAAc,GAAG,YAAY,GAAG,SAAS,GAAG,IAAI,CAAC;IAEzD;;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,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC;IAE9C;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC;CAC1D;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/payments.d.ts
CHANGED
|
@@ -114,6 +114,18 @@ export declare class Payments extends APIResource {
|
|
|
114
114
|
void(id: string, options?: RequestOptions): APIPromise<Shared.Payment>;
|
|
115
115
|
}
|
|
116
116
|
export type PaymentListResponsesCursorPage = CursorPage<PaymentListResponse>;
|
|
117
|
+
/**
|
|
118
|
+
* The reason why a specific payment was billed
|
|
119
|
+
*/
|
|
120
|
+
export type BillingReasons = 'subscription_create' | 'subscription_cycle' | 'subscription_update' | 'one_time' | 'manual' | 'subscription';
|
|
121
|
+
/**
|
|
122
|
+
* Possible card brands that a payment token can have
|
|
123
|
+
*/
|
|
124
|
+
export type CardBrands = 'mastercard' | 'visa' | 'amex' | 'discover' | 'unionpay' | 'jcb' | 'diners' | 'link' | 'troy' | 'visadankort' | 'visabancontact' | 'china_union_pay' | 'rupay' | 'jcbrupay' | 'elo' | 'unknown';
|
|
125
|
+
/**
|
|
126
|
+
* The different types of payment methods that can be used.
|
|
127
|
+
*/
|
|
128
|
+
export type PaymentMethodTypes = 'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'apple_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'eps' | 'fpx' | 'giropay' | 'google_pay' | 'grabpay' | 'ideal' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'pix' | 'promptpay' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip' | 'bizum' | 'capchase_pay' | 'kriya' | 'mondu' | 'ng_wallet' | 'paypay' | 'sequra' | 'scalapay' | 'vipps' | 'custom' | 'customer_balance' | 'gopay' | 'mb_way' | 'ng_bank' | 'ng_bank_transfer' | 'ng_card' | 'ng_market' | 'ng_ussd' | 'paypal' | 'payto' | 'qris' | 'rechnung' | 'south_korea_market' | 'kr_market' | 'shopeepay' | 'upi' | 'sunbit' | 'netbanking' | 'id_bank_transfer' | 'demo_pay' | 'shop_pay' | 'sezzle' | 'coinbase' | 'splitit' | 'platform_balance' | 'apple' | 'unknown';
|
|
117
129
|
/**
|
|
118
130
|
* An object representing a receipt for a membership.
|
|
119
131
|
*/
|
|
@@ -135,13 +147,13 @@ export interface PaymentListResponse {
|
|
|
135
147
|
*/
|
|
136
148
|
billing_address: PaymentListResponse.BillingAddress | null;
|
|
137
149
|
/**
|
|
138
|
-
* The
|
|
150
|
+
* The reason why a specific payment was billed
|
|
139
151
|
*/
|
|
140
|
-
billing_reason:
|
|
152
|
+
billing_reason: BillingReasons | null;
|
|
141
153
|
/**
|
|
142
|
-
*
|
|
154
|
+
* Possible card brands that a payment token can have
|
|
143
155
|
*/
|
|
144
|
-
card_brand:
|
|
156
|
+
card_brand: CardBrands | null;
|
|
145
157
|
/**
|
|
146
158
|
* The last 4 digits of the card used to make the payment.
|
|
147
159
|
*/
|
|
@@ -178,15 +190,21 @@ export interface PaymentListResponse {
|
|
|
178
190
|
* The membership attached to this payment.
|
|
179
191
|
*/
|
|
180
192
|
membership: PaymentListResponse.Membership | null;
|
|
193
|
+
/**
|
|
194
|
+
* The custom metadata stored on this payment. This will be copied the checkout
|
|
195
|
+
* configuration for which this payment was made
|
|
196
|
+
*/
|
|
197
|
+
metadata: {
|
|
198
|
+
[key: string]: unknown;
|
|
199
|
+
} | null;
|
|
181
200
|
/**
|
|
182
201
|
* The datetime the payment was paid
|
|
183
202
|
*/
|
|
184
203
|
paid_at: string | null;
|
|
185
204
|
/**
|
|
186
|
-
*
|
|
187
|
-
* klarna, affirm, card, cashapp
|
|
205
|
+
* The different types of payment methods that can be used.
|
|
188
206
|
*/
|
|
189
|
-
payment_method_type:
|
|
207
|
+
payment_method_type: PaymentMethodTypes | null;
|
|
190
208
|
/**
|
|
191
209
|
* The plan attached to this payment.
|
|
192
210
|
*/
|
|
@@ -200,7 +218,8 @@ export interface PaymentListResponse {
|
|
|
200
218
|
*/
|
|
201
219
|
promo_code: PaymentListResponse.PromoCode | null;
|
|
202
220
|
/**
|
|
203
|
-
*
|
|
221
|
+
* True only for payments that are `paid`, have not been fully refunded, and were
|
|
222
|
+
* processed by a payment processor that allows refunds.
|
|
204
223
|
*/
|
|
205
224
|
refundable: boolean;
|
|
206
225
|
/**
|
|
@@ -212,7 +231,9 @@ export interface PaymentListResponse {
|
|
|
212
231
|
*/
|
|
213
232
|
refunded_at: string | null;
|
|
214
233
|
/**
|
|
215
|
-
*
|
|
234
|
+
* True when the payment status is `open` and its membership is in one of the
|
|
235
|
+
* retry-eligible states (`active`, `trialing`, `completed`, or `past_due`);
|
|
236
|
+
* otherwise false. Used to decide if Whop can attempt the charge again.
|
|
216
237
|
*/
|
|
217
238
|
retryable: boolean;
|
|
218
239
|
/**
|
|
@@ -240,7 +261,8 @@ export interface PaymentListResponse {
|
|
|
240
261
|
*/
|
|
241
262
|
user: PaymentListResponse.User | null;
|
|
242
263
|
/**
|
|
243
|
-
*
|
|
264
|
+
* True when the payment is tied to a membership in `past_due`, the payment status
|
|
265
|
+
* is `open`, and the processor allows voiding payments; otherwise false.
|
|
244
266
|
*/
|
|
245
267
|
voidable: boolean;
|
|
246
268
|
}
|
|
@@ -368,7 +390,7 @@ export declare namespace PaymentListResponse {
|
|
|
368
390
|
*/
|
|
369
391
|
code: string | null;
|
|
370
392
|
/**
|
|
371
|
-
* The number of
|
|
393
|
+
* The number of months the promo is applied for.
|
|
372
394
|
*/
|
|
373
395
|
number_of_intervals: number | null;
|
|
374
396
|
/**
|
|
@@ -410,7 +432,7 @@ export interface PaymentListParams extends CursorPageParams {
|
|
|
410
432
|
/**
|
|
411
433
|
* The billing reason for the payment
|
|
412
434
|
*/
|
|
413
|
-
billing_reasons?: Array<
|
|
435
|
+
billing_reasons?: Array<BillingReasons> | null;
|
|
414
436
|
/**
|
|
415
437
|
* The minimum creation date to filter by
|
|
416
438
|
*/
|
|
@@ -467,6 +489,6 @@ export interface PaymentRefundParams {
|
|
|
467
489
|
partial_amount?: number | null;
|
|
468
490
|
}
|
|
469
491
|
export declare namespace Payments {
|
|
470
|
-
export { type PaymentListResponse as PaymentListResponse, type PaymentListResponsesCursorPage as PaymentListResponsesCursorPage, type PaymentListParams as PaymentListParams, type PaymentRefundParams as PaymentRefundParams, };
|
|
492
|
+
export { type BillingReasons as BillingReasons, type CardBrands as CardBrands, type PaymentMethodTypes as PaymentMethodTypes, type PaymentListResponse as PaymentListResponse, type PaymentListResponsesCursorPage as PaymentListResponsesCursorPage, type PaymentListParams as PaymentListParams, type PaymentRefundParams as PaymentRefundParams, };
|
|
471
493
|
}
|
|
472
494
|
//# sourceMappingURL=payments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../src/resources/payments.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,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC;IAI1E;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,IAAI,CACF,KAAK,EAAE,iBAAiB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,8BAA8B,EAAE,mBAAmB,CAAC;IAInE;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC;IAI7B;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,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