@whop/sdk 0.0.7 → 0.0.8
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 +19 -0
- package/client.d.mts +16 -10
- package/client.d.mts.map +1 -1
- package/client.d.ts +16 -10
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +17 -1
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +17 -1
- package/resources/apps.d.ts.map +1 -1
- package/resources/checkout-configurations.d.mts +165 -8
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +165 -8
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/checkout-configurations.js +1 -0
- package/resources/checkout-configurations.js.map +1 -1
- package/resources/checkout-configurations.mjs +1 -0
- package/resources/checkout-configurations.mjs.map +1 -1
- package/resources/course-lessons.d.mts +199 -1
- package/resources/course-lessons.d.mts.map +1 -1
- package/resources/course-lessons.d.ts +199 -1
- package/resources/course-lessons.d.ts.map +1 -1
- package/resources/course-lessons.js +40 -0
- package/resources/course-lessons.js.map +1 -1
- package/resources/course-lessons.mjs +40 -0
- package/resources/course-lessons.mjs.map +1 -1
- package/resources/courses.d.mts +8 -0
- package/resources/courses.d.mts.map +1 -1
- package/resources/courses.d.ts +8 -0
- package/resources/courses.d.ts.map +1 -1
- package/resources/forum-posts.d.mts +7 -3
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +7 -3
- package/resources/forum-posts.d.ts.map +1 -1
- package/resources/index.d.mts +7 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +7 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/refunds.d.mts +295 -0
- package/resources/refunds.d.mts.map +1 -0
- package/resources/refunds.d.ts +295 -0
- package/resources/refunds.d.ts.map +1 -0
- package/resources/refunds.js +34 -0
- package/resources/refunds.js.map +1 -0
- package/resources/refunds.mjs +30 -0
- package/resources/refunds.mjs.map +1 -0
- package/resources/shared.d.mts +43 -2
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +43 -2
- package/resources/shared.d.ts.map +1 -1
- package/resources/webhooks.d.mts +382 -2
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +382 -2
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/withdrawals.d.mts +233 -0
- package/resources/withdrawals.d.mts.map +1 -0
- package/resources/withdrawals.d.ts +233 -0
- package/resources/withdrawals.d.ts.map +1 -0
- package/resources/withdrawals.js +31 -0
- package/resources/withdrawals.js.map +1 -0
- package/resources/withdrawals.mjs +27 -0
- package/resources/withdrawals.mjs.map +1 -0
- package/src/client.ts +68 -0
- package/src/resources/apps.ts +21 -0
- package/src/resources/checkout-configurations.ts +189 -8
- package/src/resources/course-lessons.ts +250 -0
- package/src/resources/courses.ts +10 -0
- package/src/resources/forum-posts.ts +8 -2
- package/src/resources/index.ts +31 -0
- package/src/resources/refunds.ts +383 -0
- package/src/resources/shared.ts +49 -2
- package/src/resources/webhooks.ts +463 -1
- package/src/resources/withdrawals.ts +361 -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/index.d.mts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export * from "./shared.mjs";
|
|
2
2
|
export { AccessTokens, type AccessTokenCreateResponse, type AccessTokenCreateParams } from "./access-tokens.mjs";
|
|
3
3
|
export { AppBuilds, type AppBuildListResponse, type AppBuildCreateParams, type AppBuildListParams, type AppBuildListResponsesCursorPage, } from "./app-builds.mjs";
|
|
4
|
-
export { Apps, type AppListResponse, type AppCreateParams, type AppUpdateParams, type AppListParams, type AppListResponsesCursorPage, } from "./apps.mjs";
|
|
4
|
+
export { Apps, type AppType, type AppListResponse, type AppCreateParams, type AppUpdateParams, type AppListParams, type AppListResponsesCursorPage, } from "./apps.mjs";
|
|
5
5
|
export { AuthorizedUsers, type AuthorizedUserRetrieveResponse, type AuthorizedUserListResponse, type AuthorizedUserListParams, type AuthorizedUserListResponsesCursorPage, } from "./authorized-users.mjs";
|
|
6
6
|
export { ChatChannels, type ChatChannelListResponse, type ChatChannelUpdateParams, type ChatChannelListParams, type ChatChannelListResponsesCursorPage, } from "./chat-channels.mjs";
|
|
7
|
-
export { CheckoutConfigurations, type CheckoutConfigurationListResponse, type CheckoutConfigurationCreateParams, type CheckoutConfigurationListParams, type CheckoutConfigurationListResponsesCursorPage, } from "./checkout-configurations.mjs";
|
|
7
|
+
export { CheckoutConfigurations, type CheckoutModes, type CheckoutConfigurationListResponse, type CheckoutConfigurationCreateParams, type CheckoutConfigurationListParams, type CheckoutConfigurationListResponsesCursorPage, } from "./checkout-configurations.mjs";
|
|
8
8
|
export { Companies, type CompanyListResponse, type CompanyCreateParams, type CompanyListParams, type CompanyListResponsesCursorPage, } from "./companies.mjs";
|
|
9
9
|
export { CourseChapters, type CourseChapter, type CourseChapterListResponse, type CourseChapterDeleteResponse, type CourseChapterCreateParams, type CourseChapterUpdateParams, type CourseChapterListParams, type CourseChapterListResponsesCursorPage, } from "./course-chapters.mjs";
|
|
10
10
|
export { CourseLessonInteractions, type CourseLessonInteractionListParams, } from "./course-lesson-interactions.mjs";
|
|
11
|
-
export { CourseLessons, type AssessmentQuestionTypes, type EmbedType, type Lesson, type LessonTypes, type LessonVisibilities, type CourseLessonListResponse, type CourseLessonDeleteResponse, type CourseLessonCreateParams, type CourseLessonUpdateParams, type CourseLessonListParams, type CourseLessonListResponsesCursorPage, } from "./course-lessons.mjs";
|
|
11
|
+
export { CourseLessons, type AssessmentQuestionTypes, type EmbedType, type Lesson, type LessonTypes, type LessonVisibilities, type CourseLessonListResponse, type CourseLessonDeleteResponse, type CourseLessonMarkAsCompletedResponse, type CourseLessonStartResponse, type CourseLessonSubmitAssessmentResponse, type CourseLessonCreateParams, type CourseLessonUpdateParams, type CourseLessonListParams, type CourseLessonSubmitAssessmentParams, type CourseLessonListResponsesCursorPage, } from "./course-lessons.mjs";
|
|
12
12
|
export { CourseStudents, type CourseStudentRetrieveResponse, type CourseStudentListResponse, type CourseStudentListParams, type CourseStudentListResponsesCursorPage, } from "./course-students.mjs";
|
|
13
13
|
export { Courses, type Course, type CourseVisibilities, type Languages, type CourseListResponse, type CourseDeleteResponse, type CourseCreateParams, type CourseUpdateParams, type CourseListParams, type CourseListResponsesCursorPage, } from "./courses.mjs";
|
|
14
14
|
export { Disputes, type Dispute, type DisputeStatuses, type DisputeListResponse, type DisputeListParams, type DisputeUpdateEvidenceParams, type DisputeListResponsesCursorPage, } from "./disputes.mjs";
|
|
15
15
|
export { Entries, type EntryListResponse, type EntryApproveResponse, type EntryListParams, type EntryListResponsesCursorPage, } from "./entries.mjs";
|
|
16
16
|
export { Experiences, type ExperienceListResponse, type ExperienceDeleteResponse, type ExperienceCreateParams, type ExperienceUpdateParams, type ExperienceListParams, type ExperienceAttachParams, type ExperienceDetachParams, type ExperienceDuplicateParams, type ExperienceListResponsesCursorPage, } from "./experiences.mjs";
|
|
17
|
-
export { ForumPosts, type ForumPostListResponse, type ForumPostCreateParams, type ForumPostUpdateParams, type ForumPostListParams, type ForumPostListResponsesCursorPage, } from "./forum-posts.mjs";
|
|
17
|
+
export { ForumPosts, type ForumPostVisibilityType, type ForumPostListResponse, type ForumPostCreateParams, type ForumPostUpdateParams, type ForumPostListParams, type ForumPostListResponsesCursorPage, } from "./forum-posts.mjs";
|
|
18
18
|
export { Forums, type ForumListResponse, type ForumUpdateParams, type ForumListParams, type ForumListResponsesCursorPage, } from "./forums.mjs";
|
|
19
19
|
export { Invoices, type InvoiceVoidResponse, type InvoiceCreateParams, type InvoiceListParams, } from "./invoices.mjs";
|
|
20
20
|
export { LedgerAccounts, type LedgerAccountRetrieveResponse } from "./ledger-accounts.mjs";
|
|
@@ -27,10 +27,12 @@ export { Plans, type PlanListResponse, type PlanDeleteResponse, type PlanCreateP
|
|
|
27
27
|
export { Products, type ProductDeleteResponse, type ProductCreateParams, type ProductUpdateParams, type ProductListParams, } from "./products.mjs";
|
|
28
28
|
export { PromoCodes, type PromoCode, type PromoCodeStatus, type PromoDuration, type PromoCodeListResponse, type PromoCodeDeleteResponse, type PromoCodeCreateParams, type PromoCodeListParams, type PromoCodeListResponsesCursorPage, } from "./promo-codes.mjs";
|
|
29
29
|
export { Reactions, type ReactionListResponse, type ReactionCreateParams, type ReactionListParams, type ReactionListResponsesCursorPage, } from "./reactions.mjs";
|
|
30
|
+
export { Refunds, type PaymentProvider, type RefundReferenceStatus, type RefundReferenceType, type RefundStatus, type RefundRetrieveResponse, type RefundListResponse, type RefundListParams, type RefundListResponsesCursorPage, } from "./refunds.mjs";
|
|
30
31
|
export { Reviews, type ReviewStatus, type ReviewRetrieveResponse, type ReviewListResponse, type ReviewListParams, type ReviewListResponsesCursorPage, } from "./reviews.mjs";
|
|
31
32
|
export { Shipments, type ShipmentListResponse, type ShipmentCreateParams, type ShipmentListParams, type ShipmentListResponsesCursorPage, } from "./shipments.mjs";
|
|
32
33
|
export { SupportChannels, type SupportChannelListResponse, type SupportChannelCreateParams, type SupportChannelListParams, type SupportChannelListResponsesCursorPage, } from "./support-channels.mjs";
|
|
33
34
|
export { Transfers, type TransferListResponse, type TransferCreateParams, type TransferListParams, type TransferListResponsesCursorPage, } from "./transfers.mjs";
|
|
34
35
|
export { Users, type UserRetrieveResponse, type UserCheckAccessResponse, type UserCheckAccessParams, } from "./users.mjs";
|
|
35
|
-
export { Webhooks, type InvoiceCreatedWebhookEvent, type InvoicePaidWebhookEvent, type InvoicePastDueWebhookEvent, type InvoiceVoidedWebhookEvent, type MembershipActivatedWebhookEvent, type MembershipDeactivatedWebhookEvent, type EntryCreatedWebhookEvent, type EntryApprovedWebhookEvent, type EntryDeniedWebhookEvent, type EntryDeletedWebhookEvent, type CourseLessonInteractionCompletedWebhookEvent, type PaymentSucceededWebhookEvent, type PaymentFailedWebhookEvent, type PaymentPendingWebhookEvent, type DisputeCreatedWebhookEvent, type DisputeUpdatedWebhookEvent, type UnwrapWebhookEvent, } from "./webhooks.mjs";
|
|
36
|
+
export { Webhooks, type InvoiceCreatedWebhookEvent, type InvoicePaidWebhookEvent, type InvoicePastDueWebhookEvent, type InvoiceVoidedWebhookEvent, type MembershipActivatedWebhookEvent, type MembershipDeactivatedWebhookEvent, type EntryCreatedWebhookEvent, type EntryApprovedWebhookEvent, type EntryDeniedWebhookEvent, type EntryDeletedWebhookEvent, type CourseLessonInteractionCompletedWebhookEvent, type PaymentSucceededWebhookEvent, type PaymentFailedWebhookEvent, type PaymentPendingWebhookEvent, type DisputeCreatedWebhookEvent, type DisputeUpdatedWebhookEvent, type RefundCreatedWebhookEvent, type RefundUpdatedWebhookEvent, type UnwrapWebhookEvent, } from "./webhooks.mjs";
|
|
37
|
+
export { Withdrawals, type WithdrawalFeeTypes, type WithdrawalSpeeds, type WithdrawalStatus, type WithdrawalTypes, type WithdrawalRetrieveResponse, type WithdrawalListResponse, type WithdrawalListParams, type WithdrawalListResponsesCursorPage, } from "./withdrawals.mjs";
|
|
36
38
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EAAE,YAAY,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC9E,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,GACrC;OACM,EACL,IAAI,EACJ,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,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ACR,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,4CAA4C,EACjD,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,GACxB"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EAAE,YAAY,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC9E,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,GACrC;OACM,EACL,IAAI,EACJ,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,0BAA0B,GAChC;OACM,EACL,eAAe,EACf,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,qCAAqC,GAC3C;OACM,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,kCAAkC,GACxC;OACM,EACL,sBAAsB,EACtB,KAAK,aAAa,EAClB,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,EACpC,KAAK,4CAA4C,GAClD;OACM,EACL,SAAS,EACT,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,8BAA8B,GACpC;OACM,EACL,cAAc,EACd,KAAK,aAAa,EAClB,KAAK,yB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EACjD,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,GACxB;OACM,EACL,WAAW,EACX,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,iCAAiC,GACvC"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export * from "./shared.js";
|
|
2
2
|
export { AccessTokens, type AccessTokenCreateResponse, type AccessTokenCreateParams } from "./access-tokens.js";
|
|
3
3
|
export { AppBuilds, type AppBuildListResponse, type AppBuildCreateParams, type AppBuildListParams, type AppBuildListResponsesCursorPage, } from "./app-builds.js";
|
|
4
|
-
export { Apps, type AppListResponse, type AppCreateParams, type AppUpdateParams, type AppListParams, type AppListResponsesCursorPage, } from "./apps.js";
|
|
4
|
+
export { Apps, type AppType, type AppListResponse, type AppCreateParams, type AppUpdateParams, type AppListParams, type AppListResponsesCursorPage, } from "./apps.js";
|
|
5
5
|
export { AuthorizedUsers, type AuthorizedUserRetrieveResponse, type AuthorizedUserListResponse, type AuthorizedUserListParams, type AuthorizedUserListResponsesCursorPage, } from "./authorized-users.js";
|
|
6
6
|
export { ChatChannels, type ChatChannelListResponse, type ChatChannelUpdateParams, type ChatChannelListParams, type ChatChannelListResponsesCursorPage, } from "./chat-channels.js";
|
|
7
|
-
export { CheckoutConfigurations, type CheckoutConfigurationListResponse, type CheckoutConfigurationCreateParams, type CheckoutConfigurationListParams, type CheckoutConfigurationListResponsesCursorPage, } from "./checkout-configurations.js";
|
|
7
|
+
export { CheckoutConfigurations, type CheckoutModes, type CheckoutConfigurationListResponse, type CheckoutConfigurationCreateParams, type CheckoutConfigurationListParams, type CheckoutConfigurationListResponsesCursorPage, } from "./checkout-configurations.js";
|
|
8
8
|
export { Companies, type CompanyListResponse, type CompanyCreateParams, type CompanyListParams, type CompanyListResponsesCursorPage, } from "./companies.js";
|
|
9
9
|
export { CourseChapters, type CourseChapter, type CourseChapterListResponse, type CourseChapterDeleteResponse, type CourseChapterCreateParams, type CourseChapterUpdateParams, type CourseChapterListParams, type CourseChapterListResponsesCursorPage, } from "./course-chapters.js";
|
|
10
10
|
export { CourseLessonInteractions, type CourseLessonInteractionListParams, } from "./course-lesson-interactions.js";
|
|
11
|
-
export { CourseLessons, type AssessmentQuestionTypes, type EmbedType, type Lesson, type LessonTypes, type LessonVisibilities, type CourseLessonListResponse, type CourseLessonDeleteResponse, type CourseLessonCreateParams, type CourseLessonUpdateParams, type CourseLessonListParams, type CourseLessonListResponsesCursorPage, } from "./course-lessons.js";
|
|
11
|
+
export { CourseLessons, type AssessmentQuestionTypes, type EmbedType, type Lesson, type LessonTypes, type LessonVisibilities, type CourseLessonListResponse, type CourseLessonDeleteResponse, type CourseLessonMarkAsCompletedResponse, type CourseLessonStartResponse, type CourseLessonSubmitAssessmentResponse, type CourseLessonCreateParams, type CourseLessonUpdateParams, type CourseLessonListParams, type CourseLessonSubmitAssessmentParams, type CourseLessonListResponsesCursorPage, } from "./course-lessons.js";
|
|
12
12
|
export { CourseStudents, type CourseStudentRetrieveResponse, type CourseStudentListResponse, type CourseStudentListParams, type CourseStudentListResponsesCursorPage, } from "./course-students.js";
|
|
13
13
|
export { Courses, type Course, type CourseVisibilities, type Languages, type CourseListResponse, type CourseDeleteResponse, type CourseCreateParams, type CourseUpdateParams, type CourseListParams, type CourseListResponsesCursorPage, } from "./courses.js";
|
|
14
14
|
export { Disputes, type Dispute, type DisputeStatuses, type DisputeListResponse, type DisputeListParams, type DisputeUpdateEvidenceParams, type DisputeListResponsesCursorPage, } from "./disputes.js";
|
|
15
15
|
export { Entries, type EntryListResponse, type EntryApproveResponse, type EntryListParams, type EntryListResponsesCursorPage, } from "./entries.js";
|
|
16
16
|
export { Experiences, type ExperienceListResponse, type ExperienceDeleteResponse, type ExperienceCreateParams, type ExperienceUpdateParams, type ExperienceListParams, type ExperienceAttachParams, type ExperienceDetachParams, type ExperienceDuplicateParams, type ExperienceListResponsesCursorPage, } from "./experiences.js";
|
|
17
|
-
export { ForumPosts, type ForumPostListResponse, type ForumPostCreateParams, type ForumPostUpdateParams, type ForumPostListParams, type ForumPostListResponsesCursorPage, } from "./forum-posts.js";
|
|
17
|
+
export { ForumPosts, type ForumPostVisibilityType, type ForumPostListResponse, type ForumPostCreateParams, type ForumPostUpdateParams, type ForumPostListParams, type ForumPostListResponsesCursorPage, } from "./forum-posts.js";
|
|
18
18
|
export { Forums, type ForumListResponse, type ForumUpdateParams, type ForumListParams, type ForumListResponsesCursorPage, } from "./forums.js";
|
|
19
19
|
export { Invoices, type InvoiceVoidResponse, type InvoiceCreateParams, type InvoiceListParams, } from "./invoices.js";
|
|
20
20
|
export { LedgerAccounts, type LedgerAccountRetrieveResponse } from "./ledger-accounts.js";
|
|
@@ -27,10 +27,12 @@ export { Plans, type PlanListResponse, type PlanDeleteResponse, type PlanCreateP
|
|
|
27
27
|
export { Products, type ProductDeleteResponse, type ProductCreateParams, type ProductUpdateParams, type ProductListParams, } from "./products.js";
|
|
28
28
|
export { PromoCodes, type PromoCode, type PromoCodeStatus, type PromoDuration, type PromoCodeListResponse, type PromoCodeDeleteResponse, type PromoCodeCreateParams, type PromoCodeListParams, type PromoCodeListResponsesCursorPage, } from "./promo-codes.js";
|
|
29
29
|
export { Reactions, type ReactionListResponse, type ReactionCreateParams, type ReactionListParams, type ReactionListResponsesCursorPage, } from "./reactions.js";
|
|
30
|
+
export { Refunds, type PaymentProvider, type RefundReferenceStatus, type RefundReferenceType, type RefundStatus, type RefundRetrieveResponse, type RefundListResponse, type RefundListParams, type RefundListResponsesCursorPage, } from "./refunds.js";
|
|
30
31
|
export { Reviews, type ReviewStatus, type ReviewRetrieveResponse, type ReviewListResponse, type ReviewListParams, type ReviewListResponsesCursorPage, } from "./reviews.js";
|
|
31
32
|
export { Shipments, type ShipmentListResponse, type ShipmentCreateParams, type ShipmentListParams, type ShipmentListResponsesCursorPage, } from "./shipments.js";
|
|
32
33
|
export { SupportChannels, type SupportChannelListResponse, type SupportChannelCreateParams, type SupportChannelListParams, type SupportChannelListResponsesCursorPage, } from "./support-channels.js";
|
|
33
34
|
export { Transfers, type TransferListResponse, type TransferCreateParams, type TransferListParams, type TransferListResponsesCursorPage, } from "./transfers.js";
|
|
34
35
|
export { Users, type UserRetrieveResponse, type UserCheckAccessResponse, type UserCheckAccessParams, } from "./users.js";
|
|
35
|
-
export { Webhooks, type InvoiceCreatedWebhookEvent, type InvoicePaidWebhookEvent, type InvoicePastDueWebhookEvent, type InvoiceVoidedWebhookEvent, type MembershipActivatedWebhookEvent, type MembershipDeactivatedWebhookEvent, type EntryCreatedWebhookEvent, type EntryApprovedWebhookEvent, type EntryDeniedWebhookEvent, type EntryDeletedWebhookEvent, type CourseLessonInteractionCompletedWebhookEvent, type PaymentSucceededWebhookEvent, type PaymentFailedWebhookEvent, type PaymentPendingWebhookEvent, type DisputeCreatedWebhookEvent, type DisputeUpdatedWebhookEvent, type UnwrapWebhookEvent, } from "./webhooks.js";
|
|
36
|
+
export { Webhooks, type InvoiceCreatedWebhookEvent, type InvoicePaidWebhookEvent, type InvoicePastDueWebhookEvent, type InvoiceVoidedWebhookEvent, type MembershipActivatedWebhookEvent, type MembershipDeactivatedWebhookEvent, type EntryCreatedWebhookEvent, type EntryApprovedWebhookEvent, type EntryDeniedWebhookEvent, type EntryDeletedWebhookEvent, type CourseLessonInteractionCompletedWebhookEvent, type PaymentSucceededWebhookEvent, type PaymentFailedWebhookEvent, type PaymentPendingWebhookEvent, type DisputeCreatedWebhookEvent, type DisputeUpdatedWebhookEvent, type RefundCreatedWebhookEvent, type RefundUpdatedWebhookEvent, type UnwrapWebhookEvent, } from "./webhooks.js";
|
|
37
|
+
export { Withdrawals, type WithdrawalFeeTypes, type WithdrawalSpeeds, type WithdrawalStatus, type WithdrawalTypes, type WithdrawalRetrieveResponse, type WithdrawalListResponse, type WithdrawalListParams, type WithdrawalListResponsesCursorPage, } from "./withdrawals.js";
|
|
36
38
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EAAE,YAAY,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC9E,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,GACrC;OACM,EACL,IAAI,EACJ,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,0BAA0B,GAChC;OACM,EACL,eAAe,EACf,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,qCAAqC,GAC3C;OACM,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,kCAAkC,GACxC;OACM,EACL,sBAAsB,EACtB,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,EACpC,KAAK,4CAA4C,GAClD;OACM,EACL,SAAS,EACT,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,8BAA8B,GACpC;OACM,EACL,cAAc,EACd,KAAK,aAAa,EAClB,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,oCAAoC,GAC1C;OACM,EACL,wBAAwB,EACxB,KAAK,iCAAiC,GACvC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+BAA+B,GACrC;OACM,EACL,OAAO,EACP,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,6BAA6B,GACnC;OACM,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,GACrC;OACM,EACL,eAAe,EACf,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,qCAAqC,GAC3C;OACM,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,GACrC;OACM,EACL,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,GAC3B;OACM,EACL,QAAQ,EACR,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,4CAA4C,EACjD,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,GACxB"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EAAE,YAAY,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC9E,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,GACrC;OACM,EACL,IAAI,EACJ,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,eAAe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GACrC;OACM,EACL,eAAe,EACf,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,qCAAqC,GAC3C;OACM,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,GACrC;OACM,EACL,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,GAC3B;OACM,EACL,QAAQ,EACR,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,4CAA4C,EACjD,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,GACxB;OACM,EACL,WAAW,EACX,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,iCAAiC,GACvC"}
|
package/resources/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Webhooks = exports.Users = exports.Transfers = exports.SupportChannels = exports.Shipments = exports.Reviews = exports.Reactions = exports.PromoCodes = exports.Products = exports.Plans = exports.Payments = exports.Notifications = exports.Messages = exports.Memberships = exports.Members = exports.LedgerAccounts = exports.Invoices = exports.Forums = exports.ForumPosts = exports.Experiences = exports.Entries = exports.Disputes = exports.Courses = exports.CourseStudents = exports.CourseLessons = exports.CourseLessonInteractions = exports.CourseChapters = exports.Companies = exports.CheckoutConfigurations = exports.ChatChannels = exports.AuthorizedUsers = exports.Apps = exports.AppBuilds = exports.AccessTokens = void 0;
|
|
4
|
+
exports.Withdrawals = exports.Webhooks = exports.Users = exports.Transfers = exports.SupportChannels = exports.Shipments = exports.Reviews = exports.Refunds = exports.Reactions = exports.PromoCodes = exports.Products = exports.Plans = exports.Payments = exports.Notifications = exports.Messages = exports.Memberships = exports.Members = exports.LedgerAccounts = exports.Invoices = exports.Forums = exports.ForumPosts = exports.Experiences = exports.Entries = exports.Disputes = exports.Courses = exports.CourseStudents = exports.CourseLessons = exports.CourseLessonInteractions = exports.CourseChapters = exports.Companies = exports.CheckoutConfigurations = exports.ChatChannels = exports.AuthorizedUsers = exports.Apps = exports.AppBuilds = exports.AccessTokens = void 0;
|
|
5
5
|
const tslib_1 = require("../internal/tslib.js");
|
|
6
6
|
tslib_1.__exportStar(require("./shared.js"), exports);
|
|
7
7
|
var access_tokens_1 = require("./access-tokens.js");
|
|
@@ -60,6 +60,8 @@ var promo_codes_1 = require("./promo-codes.js");
|
|
|
60
60
|
Object.defineProperty(exports, "PromoCodes", { enumerable: true, get: function () { return promo_codes_1.PromoCodes; } });
|
|
61
61
|
var reactions_1 = require("./reactions.js");
|
|
62
62
|
Object.defineProperty(exports, "Reactions", { enumerable: true, get: function () { return reactions_1.Reactions; } });
|
|
63
|
+
var refunds_1 = require("./refunds.js");
|
|
64
|
+
Object.defineProperty(exports, "Refunds", { enumerable: true, get: function () { return refunds_1.Refunds; } });
|
|
63
65
|
var reviews_1 = require("./reviews.js");
|
|
64
66
|
Object.defineProperty(exports, "Reviews", { enumerable: true, get: function () { return reviews_1.Reviews; } });
|
|
65
67
|
var shipments_1 = require("./shipments.js");
|
|
@@ -72,4 +74,6 @@ var users_1 = require("./users.js");
|
|
|
72
74
|
Object.defineProperty(exports, "Users", { enumerable: true, get: function () { return users_1.Users; } });
|
|
73
75
|
var webhooks_1 = require("./webhooks.js");
|
|
74
76
|
Object.defineProperty(exports, "Webhooks", { enumerable: true, get: function () { return webhooks_1.Webhooks; } });
|
|
77
|
+
var withdrawals_1 = require("./withdrawals.js");
|
|
78
|
+
Object.defineProperty(exports, "Withdrawals", { enumerable: true, get: function () { return withdrawals_1.Withdrawals; } });
|
|
75
79
|
//# sourceMappingURL=index.js.map
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,oDAA6G;AAApG,6GAAA,YAAY,OAAA;AACrB,8CAMsB;AALpB,uGAAA,SAAS,OAAA;AAMX,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,oDAA6G;AAApG,6GAAA,YAAY,OAAA;AACrB,8CAMsB;AALpB,uGAAA,SAAS,OAAA;AAMX,kCAQgB;AAPd,4FAAA,IAAI,OAAA;AAQN,0DAM4B;AAL1B,mHAAA,eAAe,OAAA;AAMjB,oDAMyB;AALvB,6GAAA,YAAY,OAAA;AAMd,wEAOmC;AANjC,iIAAA,sBAAsB,OAAA;AAOxB,4CAMqB;AALnB,sGAAA,SAAS,OAAA;AAMX,wDAS2B;AARzB,iHAAA,cAAc,OAAA;AAShB,8EAGsC;AAFpC,sIAAA,wBAAwB,OAAA;AAG1B,sDAiB0B;AAhBxB,+GAAA,aAAa,OAAA;AAiBf,wDAM2B;AALzB,iHAAA,cAAc,OAAA;AAMhB,wCAWmB;AAVjB,kGAAA,OAAO,OAAA;AAWT,0CAQoB;AAPlB,oGAAA,QAAQ,OAAA;AAQV,wCAMmB;AALjB,kGAAA,OAAO,OAAA;AAMT,gDAWuB;AAVrB,0GAAA,WAAW,OAAA;AAWb,gDAQuB;AAPrB,yGAAA,UAAU,OAAA;AAQZ,sCAMkB;AALhB,gGAAA,MAAM,OAAA;AAMR,0CAKoB;AAJlB,oGAAA,QAAQ,OAAA;AAKV,wDAAuF;AAA9E,iHAAA,cAAc,OAAA;AACvB,wCAMmB;AALjB,kGAAA,OAAO,OAAA;AAMT,gDAQuB;AAPrB,0GAAA,WAAW,OAAA;AAQb,0CAOoB;AANlB,oGAAA,QAAQ,OAAA;AAOV,oDAIyB;AAHvB,8GAAA,aAAa,OAAA;AAIf,0CASoB;AARlB,oGAAA,QAAQ,OAAA;AASV,oCAQiB;AAPf,8FAAA,KAAK,OAAA;AAQP,0CAMoB;AALlB,oGAAA,QAAQ,OAAA;AAMV,gDAUuB;AATrB,yGAAA,UAAU,OAAA;AAUZ,4CAMqB;AALnB,sGAAA,SAAS,OAAA;AAMX,wCAUmB;AATjB,kGAAA,OAAO,OAAA;AAUT,wCAOmB;AANjB,kGAAA,OAAO,OAAA;AAOT,4CAMqB;AALnB,sGAAA,SAAS,OAAA;AAMX,0DAM4B;AAL1B,mHAAA,eAAe,OAAA;AAMjB,4CAMqB;AALnB,sGAAA,SAAS,OAAA;AAMX,oCAKiB;AAJf,8FAAA,KAAK,OAAA;AAKP,0CAqBoB;AApBlB,oGAAA,QAAQ,OAAA;AAqBV,gDAUuB;AATrB,0GAAA,WAAW,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -28,10 +28,12 @@ export { Plans, } from "./plans.mjs";
|
|
|
28
28
|
export { Products, } from "./products.mjs";
|
|
29
29
|
export { PromoCodes, } from "./promo-codes.mjs";
|
|
30
30
|
export { Reactions, } from "./reactions.mjs";
|
|
31
|
+
export { Refunds, } from "./refunds.mjs";
|
|
31
32
|
export { Reviews, } from "./reviews.mjs";
|
|
32
33
|
export { Shipments, } from "./shipments.mjs";
|
|
33
34
|
export { SupportChannels, } from "./support-channels.mjs";
|
|
34
35
|
export { Transfers, } from "./transfers.mjs";
|
|
35
36
|
export { Users, } from "./users.mjs";
|
|
36
37
|
export { Webhooks, } from "./webhooks.mjs";
|
|
38
|
+
export { Withdrawals, } from "./withdrawals.mjs";
|
|
37
39
|
//# sourceMappingURL=index.mjs.map
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EAAE,YAAY,EAAgE;OAC9E,EACL,SAAS,GAKV;OACM,EACL,IAAI,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EAAE,YAAY,EAAgE;OAC9E,EACL,SAAS,GAKV;OACM,EACL,IAAI,GAOL;OACM,EACL,eAAe,GAKhB;OACM,EACL,YAAY,GAKb;OACM,EACL,sBAAsB,GAMvB;OACM,EACL,SAAS,GAKV;OACM,EACL,cAAc,GAQf;OACM,EACL,wBAAwB,GAEzB;OACM,EACL,aAAa,GAgBd;OACM,EACL,cAAc,GAKf;OACM,EACL,OAAO,GAUR;OACM,EACL,QAAQ,GAOT;OACM,EACL,OAAO,GAKR;OACM,EACL,WAAW,GAUZ;OACM,EACL,UAAU,GAOX;OACM,EACL,MAAM,GAKP;OACM,EACL,QAAQ,GAIT;OACM,EAAE,cAAc,EAAsC;OACtD,EACL,OAAO,GAKR;OACM,EACL,WAAW,GAOZ;OACM,EACL,QAAQ,GAMT;OACM,EACL,aAAa,GAGd;OACM,EACL,QAAQ,GAQT;OACM,EACL,KAAK,GAON;OACM,EACL,QAAQ,GAKT;OACM,EACL,UAAU,GASX;OACM,EACL,SAAS,GAKV;OACM,EACL,OAAO,GASR;OACM,EACL,OAAO,GAMR;OACM,EACL,SAAS,GAKV;OACM,EACL,eAAe,GAKhB;OACM,EACL,SAAS,GAKV;OACM,EACL,KAAK,GAIN;OACM,EACL,QAAQ,GAoBT;OACM,EACL,WAAW,GASZ"}
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as PaymentsAPI from "./payments.mjs";
|
|
3
|
+
import * as Shared from "./shared.mjs";
|
|
4
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
5
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.mjs";
|
|
6
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
7
|
+
export declare class Refunds extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves a Refund by ID
|
|
10
|
+
*
|
|
11
|
+
* Required permissions:
|
|
12
|
+
*
|
|
13
|
+
* - `payment:basic:read`
|
|
14
|
+
* - `member:email:read`
|
|
15
|
+
* - `member:basic:read`
|
|
16
|
+
* - `member:phone:read`
|
|
17
|
+
*/
|
|
18
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<RefundRetrieveResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Lists Refunds for a payment.
|
|
21
|
+
*
|
|
22
|
+
* Required permissions:
|
|
23
|
+
*
|
|
24
|
+
* - `payment:basic:read`
|
|
25
|
+
*/
|
|
26
|
+
list(query: RefundListParams, options?: RequestOptions): PagePromise<RefundListResponsesCursorPage, RefundListResponse>;
|
|
27
|
+
}
|
|
28
|
+
export type RefundListResponsesCursorPage = CursorPage<RefundListResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* The different payment providers.
|
|
31
|
+
*/
|
|
32
|
+
export type PaymentProvider = 'stripe' | 'coinbase' | 'paypal' | 'apple' | 'sezzle' | 'splitit' | 'platform_balance' | 'multi_psp';
|
|
33
|
+
/**
|
|
34
|
+
* The status of the refund reference.
|
|
35
|
+
*/
|
|
36
|
+
export type RefundReferenceStatus = 'available' | 'pending' | 'unavailable';
|
|
37
|
+
/**
|
|
38
|
+
* The type of refund reference that was made available by the payment provider.
|
|
39
|
+
*/
|
|
40
|
+
export type RefundReferenceType = 'acquirer_reference_number' | 'retrieval_reference_number' | 'system_trace_audit_number';
|
|
41
|
+
/**
|
|
42
|
+
* The different statuses for a Refund object
|
|
43
|
+
*/
|
|
44
|
+
export type RefundStatus = 'pending' | 'requires_action' | 'succeeded' | 'failed' | 'canceled';
|
|
45
|
+
/**
|
|
46
|
+
* An object representing a refund made on a payment.
|
|
47
|
+
*/
|
|
48
|
+
export interface RefundRetrieveResponse {
|
|
49
|
+
/**
|
|
50
|
+
* The ID of the refund.
|
|
51
|
+
*/
|
|
52
|
+
id: string;
|
|
53
|
+
/**
|
|
54
|
+
* The amount of the refund.
|
|
55
|
+
*/
|
|
56
|
+
amount: number;
|
|
57
|
+
/**
|
|
58
|
+
* The time the refund was created.
|
|
59
|
+
*/
|
|
60
|
+
created_at: string;
|
|
61
|
+
/**
|
|
62
|
+
* The currency of the refund.
|
|
63
|
+
*/
|
|
64
|
+
currency: Shared.Currency;
|
|
65
|
+
/**
|
|
66
|
+
* The payment associated with the refund.
|
|
67
|
+
*/
|
|
68
|
+
payment: RefundRetrieveResponse.Payment | null;
|
|
69
|
+
/**
|
|
70
|
+
* The provider of the refund.
|
|
71
|
+
*/
|
|
72
|
+
provider: PaymentProvider;
|
|
73
|
+
/**
|
|
74
|
+
* The time the refund was created by the provider.
|
|
75
|
+
*/
|
|
76
|
+
provider_created_at: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* The status of the refund reference.
|
|
79
|
+
*/
|
|
80
|
+
reference_status: RefundReferenceStatus | null;
|
|
81
|
+
/**
|
|
82
|
+
* The type of refund reference that was made available by the payment provider.
|
|
83
|
+
*/
|
|
84
|
+
reference_type: RefundReferenceType | null;
|
|
85
|
+
/**
|
|
86
|
+
* The value of the reference.
|
|
87
|
+
*/
|
|
88
|
+
reference_value: string | null;
|
|
89
|
+
/**
|
|
90
|
+
* The status of the refund.
|
|
91
|
+
*/
|
|
92
|
+
status: RefundStatus;
|
|
93
|
+
}
|
|
94
|
+
export declare namespace RefundRetrieveResponse {
|
|
95
|
+
/**
|
|
96
|
+
* The payment associated with the refund.
|
|
97
|
+
*/
|
|
98
|
+
interface Payment {
|
|
99
|
+
/**
|
|
100
|
+
* The payment ID
|
|
101
|
+
*/
|
|
102
|
+
id: string;
|
|
103
|
+
/**
|
|
104
|
+
* The reason why a specific payment was billed
|
|
105
|
+
*/
|
|
106
|
+
billing_reason: PaymentsAPI.BillingReasons | null;
|
|
107
|
+
/**
|
|
108
|
+
* Possible card brands that a payment token can have
|
|
109
|
+
*/
|
|
110
|
+
card_brand: PaymentsAPI.CardBrands | null;
|
|
111
|
+
/**
|
|
112
|
+
* The last 4 digits of the card used to make the payment.
|
|
113
|
+
*/
|
|
114
|
+
card_last4: string | null;
|
|
115
|
+
/**
|
|
116
|
+
* The datetime the payment was created
|
|
117
|
+
*/
|
|
118
|
+
created_at: string;
|
|
119
|
+
/**
|
|
120
|
+
* The available currencies on the platform
|
|
121
|
+
*/
|
|
122
|
+
currency: Shared.Currency | null;
|
|
123
|
+
/**
|
|
124
|
+
* When an alert came in that this transaction will be disputed
|
|
125
|
+
*/
|
|
126
|
+
dispute_alerted_at: string | null;
|
|
127
|
+
/**
|
|
128
|
+
* The member attached to this payment.
|
|
129
|
+
*/
|
|
130
|
+
member: Payment.Member | null;
|
|
131
|
+
/**
|
|
132
|
+
* The membership attached to this payment.
|
|
133
|
+
*/
|
|
134
|
+
membership: Payment.Membership | null;
|
|
135
|
+
/**
|
|
136
|
+
* The datetime the payment was paid
|
|
137
|
+
*/
|
|
138
|
+
paid_at: string | null;
|
|
139
|
+
/**
|
|
140
|
+
* The different types of payment methods that can be used.
|
|
141
|
+
*/
|
|
142
|
+
payment_method_type: PaymentsAPI.PaymentMethodTypes | null;
|
|
143
|
+
/**
|
|
144
|
+
* The subtotal to show to the creator (excluding buyer fees).
|
|
145
|
+
*/
|
|
146
|
+
subtotal: number | null;
|
|
147
|
+
/**
|
|
148
|
+
* The total to show to the creator (excluding buyer fees).
|
|
149
|
+
*/
|
|
150
|
+
total: number | null;
|
|
151
|
+
/**
|
|
152
|
+
* The total in USD to show to the creator (excluding buyer fees).
|
|
153
|
+
*/
|
|
154
|
+
usd_total: number | null;
|
|
155
|
+
/**
|
|
156
|
+
* The user that made this payment.
|
|
157
|
+
*/
|
|
158
|
+
user: Payment.User | null;
|
|
159
|
+
}
|
|
160
|
+
namespace Payment {
|
|
161
|
+
/**
|
|
162
|
+
* The member attached to this payment.
|
|
163
|
+
*/
|
|
164
|
+
interface Member {
|
|
165
|
+
/**
|
|
166
|
+
* The ID of the member
|
|
167
|
+
*/
|
|
168
|
+
id: string;
|
|
169
|
+
/**
|
|
170
|
+
* The phone number for the member, if available.
|
|
171
|
+
*/
|
|
172
|
+
phone: string | null;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* The membership attached to this payment.
|
|
176
|
+
*/
|
|
177
|
+
interface Membership {
|
|
178
|
+
/**
|
|
179
|
+
* The internal ID of the membership.
|
|
180
|
+
*/
|
|
181
|
+
id: string;
|
|
182
|
+
/**
|
|
183
|
+
* The state of the membership.
|
|
184
|
+
*/
|
|
185
|
+
status: Shared.MembershipStatus;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* The user that made this payment.
|
|
189
|
+
*/
|
|
190
|
+
interface User {
|
|
191
|
+
/**
|
|
192
|
+
* The internal ID of the user.
|
|
193
|
+
*/
|
|
194
|
+
id: string;
|
|
195
|
+
/**
|
|
196
|
+
* The email of the user
|
|
197
|
+
*/
|
|
198
|
+
email: string | null;
|
|
199
|
+
/**
|
|
200
|
+
* The name of the user from their Whop account.
|
|
201
|
+
*/
|
|
202
|
+
name: string | null;
|
|
203
|
+
/**
|
|
204
|
+
* The username of the user from their Whop account.
|
|
205
|
+
*/
|
|
206
|
+
username: string;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* An object representing a refund made on a payment.
|
|
212
|
+
*/
|
|
213
|
+
export interface RefundListResponse {
|
|
214
|
+
/**
|
|
215
|
+
* The ID of the refund.
|
|
216
|
+
*/
|
|
217
|
+
id: string;
|
|
218
|
+
/**
|
|
219
|
+
* The amount of the refund.
|
|
220
|
+
*/
|
|
221
|
+
amount: number;
|
|
222
|
+
/**
|
|
223
|
+
* The time the refund was created.
|
|
224
|
+
*/
|
|
225
|
+
created_at: string;
|
|
226
|
+
/**
|
|
227
|
+
* The currency of the refund.
|
|
228
|
+
*/
|
|
229
|
+
currency: Shared.Currency;
|
|
230
|
+
/**
|
|
231
|
+
* The payment associated with the refund.
|
|
232
|
+
*/
|
|
233
|
+
payment: RefundListResponse.Payment | null;
|
|
234
|
+
/**
|
|
235
|
+
* The provider of the refund.
|
|
236
|
+
*/
|
|
237
|
+
provider: PaymentProvider;
|
|
238
|
+
/**
|
|
239
|
+
* The time the refund was created by the provider.
|
|
240
|
+
*/
|
|
241
|
+
provider_created_at: string | null;
|
|
242
|
+
/**
|
|
243
|
+
* The status of the refund reference.
|
|
244
|
+
*/
|
|
245
|
+
reference_status: RefundReferenceStatus | null;
|
|
246
|
+
/**
|
|
247
|
+
* The type of refund reference that was made available by the payment provider.
|
|
248
|
+
*/
|
|
249
|
+
reference_type: RefundReferenceType | null;
|
|
250
|
+
/**
|
|
251
|
+
* The value of the reference.
|
|
252
|
+
*/
|
|
253
|
+
reference_value: string | null;
|
|
254
|
+
/**
|
|
255
|
+
* The status of the refund.
|
|
256
|
+
*/
|
|
257
|
+
status: RefundStatus;
|
|
258
|
+
}
|
|
259
|
+
export declare namespace RefundListResponse {
|
|
260
|
+
/**
|
|
261
|
+
* The payment associated with the refund.
|
|
262
|
+
*/
|
|
263
|
+
interface Payment {
|
|
264
|
+
/**
|
|
265
|
+
* The payment ID
|
|
266
|
+
*/
|
|
267
|
+
id: string;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
export interface RefundListParams extends CursorPageParams {
|
|
271
|
+
/**
|
|
272
|
+
* The ID of the payment to list refunds for
|
|
273
|
+
*/
|
|
274
|
+
payment_id: string;
|
|
275
|
+
/**
|
|
276
|
+
* Returns the elements in the list that come before the specified cursor.
|
|
277
|
+
*/
|
|
278
|
+
before?: string | null;
|
|
279
|
+
/**
|
|
280
|
+
* The direction of the sort.
|
|
281
|
+
*/
|
|
282
|
+
direction?: Shared.Direction | null;
|
|
283
|
+
/**
|
|
284
|
+
* Returns the first _n_ elements from the list.
|
|
285
|
+
*/
|
|
286
|
+
first?: number | null;
|
|
287
|
+
/**
|
|
288
|
+
* Returns the last _n_ elements from the list.
|
|
289
|
+
*/
|
|
290
|
+
last?: number | null;
|
|
291
|
+
}
|
|
292
|
+
export declare namespace Refunds {
|
|
293
|
+
export { type PaymentProvider as PaymentProvider, type RefundReferenceStatus as RefundReferenceStatus, type RefundReferenceType as RefundReferenceType, type RefundStatus as RefundStatus, type RefundRetrieveResponse as RefundRetrieveResponse, type RefundListResponse as RefundListResponse, type RefundListResponsesCursorPage as RefundListResponsesCursorPage, type RefundListParams as RefundListParams, };
|
|
294
|
+
}
|
|
295
|
+
//# sourceMappingURL=refunds.d.mts.map
|
|
@@ -0,0 +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,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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