@whop/sdk 0.0.26 → 0.0.28
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 +78 -0
- package/client.d.mts +10 -9
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -9
- package/client.d.ts.map +1 -1
- package/client.js +16 -2
- package/client.js.map +1 -1
- package/client.mjs +16 -2
- package/client.mjs.map +1 -1
- package/package.json +3 -3
- package/resources/access-tokens.d.mts +34 -54
- package/resources/access-tokens.d.mts.map +1 -1
- package/resources/access-tokens.d.ts +34 -54
- 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/account-links.d.mts +15 -13
- package/resources/account-links.d.mts.map +1 -1
- package/resources/account-links.d.ts +15 -13
- package/resources/account-links.d.ts.map +1 -1
- package/resources/account-links.js +2 -3
- package/resources/account-links.js.map +1 -1
- package/resources/account-links.mjs +2 -3
- package/resources/account-links.mjs.map +1 -1
- package/resources/ai-chats.d.mts +70 -30
- package/resources/ai-chats.d.mts.map +1 -1
- package/resources/ai-chats.d.ts +70 -30
- package/resources/ai-chats.d.ts.map +1 -1
- package/resources/ai-chats.js +6 -6
- package/resources/ai-chats.js.map +1 -1
- package/resources/ai-chats.mjs +6 -6
- package/resources/ai-chats.mjs.map +1 -1
- package/resources/app-builds.d.mts +37 -35
- package/resources/app-builds.d.mts.map +1 -1
- package/resources/app-builds.d.ts +37 -35
- package/resources/app-builds.d.ts.map +1 -1
- package/resources/app-builds.js +7 -4
- package/resources/app-builds.js.map +1 -1
- package/resources/app-builds.mjs +7 -4
- package/resources/app-builds.mjs.map +1 -1
- package/resources/apps.d.mts +86 -60
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +86 -60
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +7 -4
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +7 -4
- package/resources/apps.mjs.map +1 -1
- package/resources/authorized-users.d.mts +38 -32
- package/resources/authorized-users.d.mts.map +1 -1
- package/resources/authorized-users.d.ts +38 -32
- package/resources/authorized-users.d.ts.map +1 -1
- package/resources/authorized-users.js +3 -2
- package/resources/authorized-users.js.map +1 -1
- package/resources/authorized-users.mjs +3 -2
- package/resources/authorized-users.mjs.map +1 -1
- package/resources/chat-channels.d.mts +28 -20
- package/resources/chat-channels.d.mts.map +1 -1
- package/resources/chat-channels.d.ts +28 -20
- package/resources/chat-channels.d.ts.map +1 -1
- package/resources/chat-channels.js +5 -3
- package/resources/chat-channels.js.map +1 -1
- package/resources/chat-channels.mjs +5 -3
- package/resources/chat-channels.mjs.map +1 -1
- package/resources/checkout-configurations.d.mts +75 -58
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +75 -58
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/checkout-configurations.js +3 -2
- package/resources/checkout-configurations.js.map +1 -1
- package/resources/checkout-configurations.mjs +3 -2
- package/resources/checkout-configurations.mjs.map +1 -1
- package/resources/companies.d.mts +88 -56
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +88 -56
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js +9 -7
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs +9 -7
- package/resources/companies.mjs.map +1 -1
- package/resources/company-token-transactions.d.mts +90 -67
- package/resources/company-token-transactions.d.mts.map +1 -1
- package/resources/company-token-transactions.d.ts +90 -67
- package/resources/company-token-transactions.d.ts.map +1 -1
- package/resources/company-token-transactions.js +6 -3
- package/resources/company-token-transactions.js.map +1 -1
- package/resources/company-token-transactions.mjs +6 -3
- package/resources/company-token-transactions.mjs.map +1 -1
- package/resources/course-chapters.d.mts +27 -22
- package/resources/course-chapters.d.mts.map +1 -1
- package/resources/course-chapters.d.ts +27 -22
- package/resources/course-chapters.d.ts.map +1 -1
- package/resources/course-chapters.js +5 -5
- package/resources/course-chapters.mjs +5 -5
- package/resources/course-lesson-interactions.d.mts +7 -6
- package/resources/course-lesson-interactions.d.mts.map +1 -1
- package/resources/course-lesson-interactions.d.ts +7 -6
- package/resources/course-lesson-interactions.d.ts.map +1 -1
- package/resources/course-lesson-interactions.js +3 -2
- package/resources/course-lesson-interactions.js.map +1 -1
- package/resources/course-lesson-interactions.mjs +3 -2
- package/resources/course-lesson-interactions.mjs.map +1 -1
- package/resources/course-lessons.d.mts +141 -99
- package/resources/course-lessons.d.mts.map +1 -1
- package/resources/course-lessons.d.ts +141 -99
- package/resources/course-lessons.d.ts.map +1 -1
- package/resources/course-lessons.js +12 -8
- package/resources/course-lessons.js.map +1 -1
- package/resources/course-lessons.mjs +12 -8
- package/resources/course-lessons.mjs.map +1 -1
- package/resources/course-students.d.mts +44 -35
- package/resources/course-students.d.mts.map +1 -1
- package/resources/course-students.d.ts +44 -35
- package/resources/course-students.d.ts.map +1 -1
- package/resources/course-students.js +3 -2
- package/resources/course-students.js.map +1 -1
- package/resources/course-students.mjs +3 -2
- package/resources/course-students.mjs.map +1 -1
- package/resources/courses.d.mts +140 -99
- package/resources/courses.d.mts.map +1 -1
- package/resources/courses.d.ts +140 -99
- package/resources/courses.d.ts.map +1 -1
- package/resources/courses.js +9 -5
- package/resources/courses.js.map +1 -1
- package/resources/courses.mjs +9 -5
- package/resources/courses.mjs.map +1 -1
- package/resources/disputes.d.mts +176 -120
- package/resources/disputes.d.mts.map +1 -1
- package/resources/disputes.d.ts +176 -120
- package/resources/disputes.d.ts.map +1 -1
- package/resources/disputes.js +4 -2
- package/resources/disputes.js.map +1 -1
- package/resources/disputes.mjs +4 -2
- package/resources/disputes.mjs.map +1 -1
- package/resources/dm-channels.d.mts +29 -16
- package/resources/dm-channels.d.mts.map +1 -1
- package/resources/dm-channels.d.ts +29 -16
- package/resources/dm-channels.d.ts.map +1 -1
- package/resources/dm-channels.js +9 -5
- package/resources/dm-channels.js.map +1 -1
- package/resources/dm-channels.mjs +9 -5
- package/resources/dm-channels.mjs.map +1 -1
- package/resources/dm-members.d.mts +30 -21
- package/resources/dm-members.d.mts.map +1 -1
- package/resources/dm-members.d.ts +30 -21
- package/resources/dm-members.d.ts.map +1 -1
- package/resources/dm-members.js +9 -5
- package/resources/dm-members.js.map +1 -1
- package/resources/dm-members.mjs +9 -5
- package/resources/dm-members.mjs.map +1 -1
- package/resources/entries.d.mts +35 -27
- package/resources/entries.d.mts.map +1 -1
- package/resources/entries.d.ts +35 -27
- package/resources/entries.d.ts.map +1 -1
- package/resources/entries.js +7 -4
- package/resources/entries.js.map +1 -1
- package/resources/entries.mjs +7 -4
- package/resources/entries.mjs.map +1 -1
- package/resources/experiences.d.mts +58 -49
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +58 -49
- package/resources/experiences.d.ts.map +1 -1
- package/resources/experiences.js +6 -5
- package/resources/experiences.js.map +1 -1
- package/resources/experiences.mjs +6 -5
- package/resources/experiences.mjs.map +1 -1
- package/resources/fee-markups.d.mts +38 -27
- package/resources/fee-markups.d.mts.map +1 -1
- package/resources/fee-markups.d.ts +38 -27
- package/resources/fee-markups.d.ts.map +1 -1
- package/resources/fee-markups.js +6 -3
- package/resources/fee-markups.js.map +1 -1
- package/resources/fee-markups.mjs +6 -3
- package/resources/fee-markups.mjs.map +1 -1
- package/resources/files.d.mts +23 -19
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +23 -19
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +3 -2
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +3 -2
- package/resources/files.mjs.map +1 -1
- package/resources/forum-posts.d.mts +68 -45
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +68 -45
- package/resources/forum-posts.d.ts.map +1 -1
- package/resources/forum-posts.js +8 -4
- package/resources/forum-posts.js.map +1 -1
- package/resources/forum-posts.mjs +8 -4
- package/resources/forum-posts.mjs.map +1 -1
- package/resources/forums.d.mts +21 -13
- package/resources/forums.d.mts.map +1 -1
- package/resources/forums.d.ts +21 -13
- package/resources/forums.d.ts.map +1 -1
- package/resources/forums.js +5 -3
- package/resources/forums.js.map +1 -1
- package/resources/forums.mjs +5 -3
- package/resources/forums.mjs.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- 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 +136 -100
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +136 -100
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +7 -4
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +7 -4
- package/resources/invoices.mjs.map +1 -1
- package/resources/leads.d.mts +76 -54
- package/resources/leads.d.mts.map +1 -1
- package/resources/leads.d.ts +76 -54
- package/resources/leads.d.ts.map +1 -1
- package/resources/leads.js +6 -4
- package/resources/leads.js.map +1 -1
- package/resources/leads.mjs +6 -4
- package/resources/leads.mjs.map +1 -1
- package/resources/ledger-accounts.d.mts +19 -15
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +19 -15
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/ledger-accounts.js +1 -1
- package/resources/ledger-accounts.mjs +1 -1
- package/resources/members.d.mts +27 -28
- package/resources/members.d.mts.map +1 -1
- package/resources/members.d.ts +27 -28
- package/resources/members.d.ts.map +1 -1
- package/resources/members.js +3 -2
- package/resources/members.js.map +1 -1
- package/resources/members.mjs +3 -2
- package/resources/members.mjs.map +1 -1
- package/resources/memberships.d.mts +85 -62
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +85 -62
- package/resources/memberships.d.ts.map +1 -1
- package/resources/memberships.js +12 -8
- package/resources/memberships.js.map +1 -1
- package/resources/memberships.mjs +12 -8
- package/resources/memberships.mjs.map +1 -1
- package/resources/messages.d.mts +53 -35
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +53 -35
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +9 -5
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +9 -5
- package/resources/messages.mjs.map +1 -1
- package/resources/notifications.d.mts +33 -25
- package/resources/notifications.d.mts.map +1 -1
- package/resources/notifications.d.ts +33 -25
- package/resources/notifications.d.ts.map +1 -1
- package/resources/notifications.js +2 -1
- package/resources/notifications.js.map +1 -1
- package/resources/notifications.mjs +2 -1
- package/resources/notifications.mjs.map +1 -1
- package/resources/payment-methods.d.mts +212 -114
- package/resources/payment-methods.d.mts.map +1 -1
- package/resources/payment-methods.d.ts +212 -114
- package/resources/payment-methods.d.ts.map +1 -1
- package/resources/payment-methods.js +5 -10
- package/resources/payment-methods.js.map +1 -1
- package/resources/payment-methods.mjs +5 -10
- package/resources/payment-methods.mjs.map +1 -1
- package/resources/payments.d.mts +96 -56
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +96 -56
- package/resources/payments.d.ts.map +1 -1
- package/resources/payments.js +23 -10
- package/resources/payments.js.map +1 -1
- package/resources/payments.mjs +23 -10
- package/resources/payments.mjs.map +1 -1
- package/resources/payout-methods.d.mts +50 -35
- package/resources/payout-methods.d.mts.map +1 -1
- package/resources/payout-methods.d.ts +50 -35
- package/resources/payout-methods.d.ts.map +1 -1
- package/resources/payout-methods.js +3 -2
- package/resources/payout-methods.js.map +1 -1
- package/resources/payout-methods.mjs +3 -2
- package/resources/payout-methods.mjs.map +1 -1
- package/resources/plans.d.mts +136 -95
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +136 -95
- package/resources/plans.d.ts.map +1 -1
- package/resources/plans.js +9 -5
- package/resources/plans.js.map +1 -1
- package/resources/plans.mjs +9 -5
- package/resources/plans.mjs.map +1 -1
- package/resources/products.d.mts +80 -67
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +80 -67
- package/resources/products.d.ts.map +1 -1
- package/resources/products.js +7 -5
- package/resources/products.js.map +1 -1
- package/resources/products.mjs +7 -5
- package/resources/products.mjs.map +1 -1
- package/resources/promo-codes.d.mts +60 -40
- package/resources/promo-codes.d.mts.map +1 -1
- package/resources/promo-codes.d.ts +60 -40
- package/resources/promo-codes.d.ts.map +1 -1
- package/resources/promo-codes.js +7 -4
- package/resources/promo-codes.js.map +1 -1
- package/resources/promo-codes.mjs +7 -4
- package/resources/promo-codes.mjs.map +1 -1
- package/resources/reactions.d.mts +25 -19
- package/resources/reactions.d.mts.map +1 -1
- package/resources/reactions.d.ts +25 -19
- package/resources/reactions.d.ts.map +1 -1
- package/resources/reactions.js +7 -4
- package/resources/reactions.js.map +1 -1
- package/resources/reactions.mjs +7 -4
- package/resources/reactions.mjs.map +1 -1
- package/resources/refunds.d.mts +57 -39
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +57 -39
- package/resources/refunds.d.ts.map +1 -1
- package/resources/refunds.js +3 -2
- package/resources/refunds.js.map +1 -1
- package/resources/refunds.mjs +3 -2
- package/resources/refunds.mjs.map +1 -1
- package/resources/reviews.d.mts +76 -60
- package/resources/reviews.d.mts.map +1 -1
- package/resources/reviews.d.ts +76 -60
- package/resources/reviews.d.ts.map +1 -1
- package/resources/reviews.js +3 -2
- package/resources/reviews.js.map +1 -1
- package/resources/reviews.mjs +3 -2
- package/resources/reviews.mjs.map +1 -1
- package/resources/setup-intents.d.mts +77 -61
- package/resources/setup-intents.d.mts.map +1 -1
- package/resources/setup-intents.d.ts +77 -61
- package/resources/setup-intents.d.ts.map +1 -1
- package/resources/setup-intents.js +4 -10
- package/resources/setup-intents.js.map +1 -1
- package/resources/setup-intents.mjs +4 -10
- package/resources/setup-intents.mjs.map +1 -1
- package/resources/shared.d.mts +854 -509
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +854 -509
- package/resources/shared.d.ts.map +1 -1
- package/resources/shipments.d.mts +30 -21
- package/resources/shipments.d.mts.map +1 -1
- package/resources/shipments.d.ts +30 -21
- package/resources/shipments.d.ts.map +1 -1
- package/resources/shipments.js +5 -3
- package/resources/shipments.js.map +1 -1
- package/resources/shipments.mjs +5 -3
- package/resources/shipments.mjs.map +1 -1
- package/resources/support-channels.d.mts +28 -20
- package/resources/support-channels.d.mts.map +1 -1
- package/resources/support-channels.d.ts +28 -20
- package/resources/support-channels.d.ts.map +1 -1
- package/resources/support-channels.js +5 -4
- package/resources/support-channels.js.map +1 -1
- package/resources/support-channels.mjs +5 -4
- package/resources/support-channels.mjs.map +1 -1
- package/resources/topups.d.mts +13 -9
- package/resources/topups.d.mts.map +1 -1
- package/resources/topups.d.ts +13 -9
- package/resources/topups.d.ts.map +1 -1
- package/resources/topups.js +2 -1
- package/resources/topups.js.map +1 -1
- package/resources/topups.mjs +2 -1
- package/resources/topups.mjs.map +1 -1
- package/resources/transfers.d.mts +37 -28
- package/resources/transfers.d.mts.map +1 -1
- package/resources/transfers.d.ts +37 -28
- package/resources/transfers.d.ts.map +1 -1
- package/resources/transfers.js +5 -3
- package/resources/transfers.js.map +1 -1
- package/resources/transfers.mjs +5 -3
- package/resources/transfers.mjs.map +1 -1
- package/resources/users.d.mts +60 -18
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +60 -18
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +13 -2
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +13 -2
- package/resources/users.mjs.map +1 -1
- package/resources/verifications.d.mts +7 -5
- package/resources/verifications.d.mts.map +1 -1
- package/resources/verifications.d.ts +7 -5
- package/resources/verifications.d.ts.map +1 -1
- package/resources/verifications.js +1 -1
- package/resources/verifications.mjs +1 -1
- package/resources/webhooks.d.mts +188 -133
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +188 -133
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +3 -2
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +3 -2
- package/resources/webhooks.mjs.map +1 -1
- package/resources/withdrawals.d.mts +60 -47
- package/resources/withdrawals.d.mts.map +1 -1
- package/resources/withdrawals.d.ts +60 -47
- package/resources/withdrawals.d.ts.map +1 -1
- package/resources/withdrawals.js +3 -2
- package/resources/withdrawals.js.map +1 -1
- package/resources/withdrawals.mjs +3 -2
- package/resources/withdrawals.mjs.map +1 -1
- package/src/client.ts +33 -11
- package/src/resources/access-tokens.ts +37 -59
- package/src/resources/account-links.ts +15 -13
- package/src/resources/ai-chats.ts +76 -30
- package/src/resources/app-builds.ts +37 -35
- package/src/resources/apps.ts +89 -60
- package/src/resources/authorized-users.ts +38 -32
- package/src/resources/chat-channels.ts +28 -20
- package/src/resources/checkout-configurations.ts +76 -58
- package/src/resources/companies.ts +94 -57
- package/src/resources/company-token-transactions.ts +91 -68
- package/src/resources/course-chapters.ts +27 -22
- package/src/resources/course-lesson-interactions.ts +7 -6
- package/src/resources/course-lessons.ts +141 -99
- package/src/resources/course-students.ts +44 -35
- package/src/resources/courses.ts +140 -99
- package/src/resources/disputes.ts +176 -120
- package/src/resources/dm-channels.ts +29 -16
- package/src/resources/dm-members.ts +30 -21
- package/src/resources/entries.ts +35 -27
- package/src/resources/experiences.ts +58 -49
- package/src/resources/fee-markups.ts +38 -27
- package/src/resources/files.ts +23 -19
- package/src/resources/forum-posts.ts +69 -45
- package/src/resources/forums.ts +21 -13
- package/src/resources/index.ts +4 -2
- package/src/resources/invoices.ts +140 -100
- package/src/resources/leads.ts +76 -54
- package/src/resources/ledger-accounts.ts +19 -15
- package/src/resources/members.ts +27 -28
- package/src/resources/memberships.ts +86 -62
- package/src/resources/messages.ts +53 -35
- package/src/resources/notifications.ts +33 -25
- package/src/resources/payment-methods.ts +212 -114
- package/src/resources/payments.ts +103 -55
- package/src/resources/payout-methods.ts +50 -35
- package/src/resources/plans.ts +136 -95
- package/src/resources/products.ts +219 -70
- package/src/resources/promo-codes.ts +60 -40
- package/src/resources/reactions.ts +25 -19
- package/src/resources/refunds.ts +59 -39
- package/src/resources/reviews.ts +76 -60
- package/src/resources/setup-intents.ts +77 -61
- package/src/resources/shared.ts +2797 -508
- package/src/resources/shipments.ts +30 -21
- package/src/resources/support-channels.ts +28 -20
- package/src/resources/topups.ts +13 -9
- package/src/resources/transfers.ts +37 -28
- package/src/resources/users.ts +72 -18
- package/src/resources/verifications.ts +7 -5
- package/src/resources/webhooks.ts +188 -133
- package/src/resources/withdrawals.ts +60 -46
- 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/payments.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
2
|
import * as PaymentsAPI from "./payments.js";
|
|
3
|
+
import * as ProductsAPI from "./products.js";
|
|
3
4
|
import * as Shared from "./shared.js";
|
|
4
5
|
import { APIPromise } from "../core/api-promise.js";
|
|
5
6
|
import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.js";
|
|
@@ -24,6 +25,8 @@ export declare class Payments extends APIResource {
|
|
|
24
25
|
* - `member:basic:read`
|
|
25
26
|
* - `member:phone:read`
|
|
26
27
|
* - `promo_code:basic:read`
|
|
28
|
+
* - `payment:dispute:read`
|
|
29
|
+
* - `payment:resolution_center_case:read`
|
|
27
30
|
*
|
|
28
31
|
* @example
|
|
29
32
|
* ```ts
|
|
@@ -37,7 +40,7 @@ export declare class Payments extends APIResource {
|
|
|
37
40
|
*/
|
|
38
41
|
create(body: PaymentCreateParams, options?: RequestOptions): APIPromise<Shared.Payment>;
|
|
39
42
|
/**
|
|
40
|
-
* Retrieves
|
|
43
|
+
* Retrieves the details of an existing payment.
|
|
41
44
|
*
|
|
42
45
|
* Required permissions:
|
|
43
46
|
*
|
|
@@ -48,6 +51,8 @@ export declare class Payments extends APIResource {
|
|
|
48
51
|
* - `member:basic:read`
|
|
49
52
|
* - `member:phone:read`
|
|
50
53
|
* - `promo_code:basic:read`
|
|
54
|
+
* - `payment:dispute:read`
|
|
55
|
+
* - `payment:resolution_center_case:read`
|
|
51
56
|
*
|
|
52
57
|
* @example
|
|
53
58
|
* ```ts
|
|
@@ -58,7 +63,8 @@ export declare class Payments extends APIResource {
|
|
|
58
63
|
*/
|
|
59
64
|
retrieve(id: string, options?: RequestOptions): APIPromise<Shared.Payment>;
|
|
60
65
|
/**
|
|
61
|
-
*
|
|
66
|
+
* Returns a paginated list of payments for the actor in context, with optional
|
|
67
|
+
* filtering by product, plan, status, billing reason, currency, and creation date.
|
|
62
68
|
*
|
|
63
69
|
* Required permissions:
|
|
64
70
|
*
|
|
@@ -73,16 +79,15 @@ export declare class Payments extends APIResource {
|
|
|
73
79
|
* @example
|
|
74
80
|
* ```ts
|
|
75
81
|
* // Automatically fetches more pages as needed.
|
|
76
|
-
* for await (const paymentListResponse of client.payments.list(
|
|
77
|
-
* { company_id: 'biz_xxxxxxxxxxxxxx' },
|
|
78
|
-
* )) {
|
|
82
|
+
* for await (const paymentListResponse of client.payments.list()) {
|
|
79
83
|
* // ...
|
|
80
84
|
* }
|
|
81
85
|
* ```
|
|
82
86
|
*/
|
|
83
|
-
list(query
|
|
87
|
+
list(query?: PaymentListParams | null | undefined, options?: RequestOptions): PagePromise<PaymentListResponsesCursorPage, PaymentListResponse>;
|
|
84
88
|
/**
|
|
85
|
-
*
|
|
89
|
+
* Returns the list of fees associated with a specific payment, including platform
|
|
90
|
+
* fees and processing fees.
|
|
86
91
|
*
|
|
87
92
|
* Required permissions:
|
|
88
93
|
*
|
|
@@ -100,7 +105,8 @@ export declare class Payments extends APIResource {
|
|
|
100
105
|
*/
|
|
101
106
|
listFees(id: string, query?: PaymentListFeesParams | null | undefined, options?: RequestOptions): PagePromise<PaymentListFeesResponsesCursorPage, PaymentListFeesResponse>;
|
|
102
107
|
/**
|
|
103
|
-
*
|
|
108
|
+
* Issue a full or partial refund for a payment. The refund is processed through
|
|
109
|
+
* the original payment processor and the membership status is updated accordingly.
|
|
104
110
|
*
|
|
105
111
|
* Required permissions:
|
|
106
112
|
*
|
|
@@ -111,6 +117,8 @@ export declare class Payments extends APIResource {
|
|
|
111
117
|
* - `member:basic:read`
|
|
112
118
|
* - `member:phone:read`
|
|
113
119
|
* - `promo_code:basic:read`
|
|
120
|
+
* - `payment:dispute:read`
|
|
121
|
+
* - `payment:resolution_center_case:read`
|
|
114
122
|
*
|
|
115
123
|
* @example
|
|
116
124
|
* ```ts
|
|
@@ -121,7 +129,8 @@ export declare class Payments extends APIResource {
|
|
|
121
129
|
*/
|
|
122
130
|
refund(id: string, body?: PaymentRefundParams | null | undefined, options?: RequestOptions): APIPromise<Shared.Payment>;
|
|
123
131
|
/**
|
|
124
|
-
*
|
|
132
|
+
* Retry a failed or pending payment. This re-attempts the charge using the
|
|
133
|
+
* original payment method and plan details.
|
|
125
134
|
*
|
|
126
135
|
* Required permissions:
|
|
127
136
|
*
|
|
@@ -132,6 +141,8 @@ export declare class Payments extends APIResource {
|
|
|
132
141
|
* - `member:basic:read`
|
|
133
142
|
* - `member:phone:read`
|
|
134
143
|
* - `promo_code:basic:read`
|
|
144
|
+
* - `payment:dispute:read`
|
|
145
|
+
* - `payment:resolution_center_case:read`
|
|
135
146
|
*
|
|
136
147
|
* @example
|
|
137
148
|
* ```ts
|
|
@@ -142,7 +153,8 @@ export declare class Payments extends APIResource {
|
|
|
142
153
|
*/
|
|
143
154
|
retry(id: string, options?: RequestOptions): APIPromise<Shared.Payment>;
|
|
144
155
|
/**
|
|
145
|
-
*
|
|
156
|
+
* Void a payment that has not yet been settled. Voiding cancels the payment before
|
|
157
|
+
* it is captured by the payment processor.
|
|
146
158
|
*
|
|
147
159
|
* Required permissions:
|
|
148
160
|
*
|
|
@@ -153,6 +165,8 @@ export declare class Payments extends APIResource {
|
|
|
153
165
|
* - `member:basic:read`
|
|
154
166
|
* - `member:phone:read`
|
|
155
167
|
* - `promo_code:basic:read`
|
|
168
|
+
* - `payment:dispute:read`
|
|
169
|
+
* - `payment:resolution_center_case:read`
|
|
156
170
|
*
|
|
157
171
|
* @example
|
|
158
172
|
* ```ts
|
|
@@ -172,17 +186,18 @@ export type BillingReasons = 'subscription_create' | 'subscription_cycle' | 'sub
|
|
|
172
186
|
/**
|
|
173
187
|
* Possible card brands that a payment token can have
|
|
174
188
|
*/
|
|
175
|
-
export type CardBrands = 'mastercard' | 'visa' | 'amex' | 'discover' | 'unionpay' | 'jcb' | 'diners' | 'link' | 'troy' | 'visadankort' | 'visabancontact' | 'china_union_pay' | 'rupay' | 'jcbrupay' | 'elo' | 'maestro' | 'tarjeta_naranja' | 'cirrus' | 'nspk_mir' | 'verve' | 'ebt' | 'private_label' | 'local_brand' | 'uatp' | 'wexcard' | 'uzcard' | 'meeza' | 'hrg_store_card' | 'girocard' | 'fuel_card' | 'dankort' | 'carnet' | 'unknown';
|
|
189
|
+
export type CardBrands = 'mastercard' | 'visa' | 'amex' | 'discover' | 'unionpay' | 'jcb' | 'diners' | 'link' | 'troy' | 'visadankort' | 'visabancontact' | 'china_union_pay' | 'rupay' | 'jcbrupay' | 'elo' | 'maestro' | 'tarjeta_naranja' | 'cirrus' | 'nspk_mir' | 'verve' | 'ebt' | 'private_label' | 'local_brand' | 'uatp' | 'wexcard' | 'uzcard' | 'meeza' | 'hrg_store_card' | 'girocard' | 'fuel_card' | 'dankort' | 'carnet' | 'atm_card' | 'china_union_payuzcard' | 'codensa' | 'cabal' | 'unknown';
|
|
176
190
|
/**
|
|
177
191
|
* The different types of payment methods that can be used.
|
|
178
192
|
*/
|
|
179
|
-
export type PaymentMethodTypes = 'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'apple' | 'apple_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'bizum' | 'blik' | 'boleto' | 'capchase_pay' | 'card' | 'cashapp' | 'coinbase' | 'crypto' | 'custom' | 'customer_balance' | 'demo_pay' | 'eps' | 'eu_bank_transfer' | 'fpx' | 'giropay' | 'google_pay' | 'gopay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'interac' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'kr_market' | 'kriya' | 'link' | 'mb_way' | 'mobilepay' | 'mondu' | 'multibanco' | 'naver_pay' | 'netbanking' | 'ng_bank' | 'ng_bank_transfer' | 'ng_card' | 'ng_market' | 'ng_ussd' | 'ng_wallet' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'paypay' | 'payto' | 'pix' | 'platform_balance' | 'promptpay' | 'qris' | 'rechnung' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'scalapay' | 'sepa_debit' | 'sequra' | 'sezzle' | 'shop_pay' | 'shopeepay' | 'sofort' | 'south_korea_market' | 'splitit' | 'sunbit' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'venmo' | 'vipps' | 'wechat_pay' | 'zip' | 'unknown';
|
|
193
|
+
export type PaymentMethodTypes = 'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'apple' | 'apple_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'bizum' | 'blik' | 'boleto' | 'capchase_pay' | 'card' | 'cashapp' | 'claritypay' | 'coinbase' | 'crypto' | 'custom' | 'customer_balance' | 'demo_pay' | 'eps' | 'eu_bank_transfer' | 'fpx' | 'giropay' | 'google_pay' | 'gopay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'interac' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'kr_market' | 'kriya' | 'link' | 'mb_way' | 'mobilepay' | 'mondu' | 'multibanco' | 'naver_pay' | 'netbanking' | 'ng_bank' | 'ng_bank_transfer' | 'ng_card' | 'ng_market' | 'ng_ussd' | 'ng_wallet' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'paypay' | 'payto' | 'pix' | 'platform_balance' | 'promptpay' | 'qris' | 'rechnung' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'scalapay' | 'sepa_debit' | 'sequra' | 'sezzle' | 'shop_pay' | 'shopeepay' | 'sofort' | 'south_korea_market' | 'splitit' | 'sunbit' | 'swish' | 'tamara' | 'twint' | 'upi' | 'us_bank_account' | 'venmo' | 'vipps' | 'wechat_pay' | 'zip' | 'unknown';
|
|
180
194
|
/**
|
|
181
|
-
*
|
|
195
|
+
* A payment represents a completed or attempted charge. Payments track the amount,
|
|
196
|
+
* status, currency, and payment method used.
|
|
182
197
|
*/
|
|
183
198
|
export interface PaymentListResponse {
|
|
184
199
|
/**
|
|
185
|
-
* The payment
|
|
200
|
+
* The unique identifier for the payment.
|
|
186
201
|
*/
|
|
187
202
|
id: string;
|
|
188
203
|
/**
|
|
@@ -210,7 +225,8 @@ export interface PaymentListResponse {
|
|
|
210
225
|
*/
|
|
211
226
|
card_brand: CardBrands | null;
|
|
212
227
|
/**
|
|
213
|
-
* The last
|
|
228
|
+
* The last four digits of the card used to make this payment. Null if the payment
|
|
229
|
+
* was not made with a card.
|
|
214
230
|
*/
|
|
215
231
|
card_last4: string | null;
|
|
216
232
|
/**
|
|
@@ -218,7 +234,7 @@ export interface PaymentListResponse {
|
|
|
218
234
|
*/
|
|
219
235
|
company: PaymentListResponse.Company | null;
|
|
220
236
|
/**
|
|
221
|
-
* The datetime the payment was created
|
|
237
|
+
* The datetime the payment was created.
|
|
222
238
|
*/
|
|
223
239
|
created_at: string;
|
|
224
240
|
/**
|
|
@@ -257,11 +273,13 @@ export interface PaymentListResponse {
|
|
|
257
273
|
*/
|
|
258
274
|
next_payment_attempt: string | null;
|
|
259
275
|
/**
|
|
260
|
-
* The
|
|
276
|
+
* The time at which this payment was successfully collected. Null if the payment
|
|
277
|
+
* has not yet succeeded. As a Unix timestamp.
|
|
261
278
|
*/
|
|
262
279
|
paid_at: string | null;
|
|
263
280
|
/**
|
|
264
|
-
* The payment method used for
|
|
281
|
+
* The tokenized payment method reference used for this payment. Null if no token
|
|
282
|
+
* was used.
|
|
265
283
|
*/
|
|
266
284
|
payment_method: PaymentListResponse.PaymentMethod | null;
|
|
267
285
|
/**
|
|
@@ -355,7 +373,7 @@ export declare namespace PaymentListResponse {
|
|
|
355
373
|
*/
|
|
356
374
|
amount_refunded: number;
|
|
357
375
|
/**
|
|
358
|
-
*
|
|
376
|
+
* The datetime the application fee was created.
|
|
359
377
|
*/
|
|
360
378
|
created_at: string;
|
|
361
379
|
/**
|
|
@@ -401,7 +419,7 @@ export declare namespace PaymentListResponse {
|
|
|
401
419
|
*/
|
|
402
420
|
interface Company {
|
|
403
421
|
/**
|
|
404
|
-
* The
|
|
422
|
+
* The unique identifier for the company.
|
|
405
423
|
*/
|
|
406
424
|
id: string;
|
|
407
425
|
/**
|
|
@@ -418,7 +436,7 @@ export declare namespace PaymentListResponse {
|
|
|
418
436
|
*/
|
|
419
437
|
interface Member {
|
|
420
438
|
/**
|
|
421
|
-
* The
|
|
439
|
+
* The unique identifier for the company member.
|
|
422
440
|
*/
|
|
423
441
|
id: string;
|
|
424
442
|
/**
|
|
@@ -431,7 +449,7 @@ export declare namespace PaymentListResponse {
|
|
|
431
449
|
*/
|
|
432
450
|
interface Membership {
|
|
433
451
|
/**
|
|
434
|
-
* The
|
|
452
|
+
* The unique identifier for the membership.
|
|
435
453
|
*/
|
|
436
454
|
id: string;
|
|
437
455
|
/**
|
|
@@ -440,11 +458,12 @@ export declare namespace PaymentListResponse {
|
|
|
440
458
|
status: Shared.MembershipStatus;
|
|
441
459
|
}
|
|
442
460
|
/**
|
|
443
|
-
* The payment method used for
|
|
461
|
+
* The tokenized payment method reference used for this payment. Null if no token
|
|
462
|
+
* was used.
|
|
444
463
|
*/
|
|
445
464
|
interface PaymentMethod {
|
|
446
465
|
/**
|
|
447
|
-
* The
|
|
466
|
+
* The unique identifier for the payment token.
|
|
448
467
|
*/
|
|
449
468
|
id: string;
|
|
450
469
|
/**
|
|
@@ -452,7 +471,7 @@ export declare namespace PaymentListResponse {
|
|
|
452
471
|
*/
|
|
453
472
|
card: PaymentMethod.Card | null;
|
|
454
473
|
/**
|
|
455
|
-
* The
|
|
474
|
+
* The datetime the payment token was created.
|
|
456
475
|
*/
|
|
457
476
|
created_at: string;
|
|
458
477
|
/**
|
|
@@ -470,15 +489,16 @@ export declare namespace PaymentListResponse {
|
|
|
470
489
|
*/
|
|
471
490
|
brand: PaymentsAPI.CardBrands | null;
|
|
472
491
|
/**
|
|
473
|
-
*
|
|
492
|
+
* The two-digit expiration month of the card (1-12). Null if not available.
|
|
474
493
|
*/
|
|
475
494
|
exp_month: number | null;
|
|
476
495
|
/**
|
|
477
|
-
*
|
|
496
|
+
* The two-digit expiration year of the card (e.g., 27 for 2027). Null if not
|
|
497
|
+
* available.
|
|
478
498
|
*/
|
|
479
499
|
exp_year: number | null;
|
|
480
500
|
/**
|
|
481
|
-
*
|
|
501
|
+
* The last four digits of the card number. Null if not available.
|
|
482
502
|
*/
|
|
483
503
|
last4: string | null;
|
|
484
504
|
}
|
|
@@ -488,7 +508,7 @@ export declare namespace PaymentListResponse {
|
|
|
488
508
|
*/
|
|
489
509
|
interface Plan {
|
|
490
510
|
/**
|
|
491
|
-
* The
|
|
511
|
+
* The unique identifier for the plan.
|
|
492
512
|
*/
|
|
493
513
|
id: string;
|
|
494
514
|
}
|
|
@@ -497,15 +517,17 @@ export declare namespace PaymentListResponse {
|
|
|
497
517
|
*/
|
|
498
518
|
interface Product {
|
|
499
519
|
/**
|
|
500
|
-
* The
|
|
520
|
+
* The unique identifier for the product.
|
|
501
521
|
*/
|
|
502
522
|
id: string;
|
|
503
523
|
/**
|
|
504
|
-
* The
|
|
524
|
+
* The URL slug used in the product's public link (e.g., 'my-product' in
|
|
525
|
+
* whop.com/company/my-product).
|
|
505
526
|
*/
|
|
506
527
|
route: string;
|
|
507
528
|
/**
|
|
508
|
-
* The
|
|
529
|
+
* The display name of the product shown to customers on the product page and in
|
|
530
|
+
* search results.
|
|
509
531
|
*/
|
|
510
532
|
title: string;
|
|
511
533
|
}
|
|
@@ -514,11 +536,13 @@ export declare namespace PaymentListResponse {
|
|
|
514
536
|
*/
|
|
515
537
|
interface PromoCode {
|
|
516
538
|
/**
|
|
517
|
-
* The
|
|
539
|
+
* The unique identifier for the promo code.
|
|
518
540
|
*/
|
|
519
541
|
id: string;
|
|
520
542
|
/**
|
|
521
|
-
* The amount
|
|
543
|
+
* The discount amount. Interpretation depends on promo_type: if 'percentage', this
|
|
544
|
+
* is the percentage (e.g., 20 means 20% off); if 'flat_amount', this is dollars
|
|
545
|
+
* off (e.g., 10.00 means $10.00 off).
|
|
522
546
|
*/
|
|
523
547
|
amount_off: number;
|
|
524
548
|
/**
|
|
@@ -543,19 +567,20 @@ export declare namespace PaymentListResponse {
|
|
|
543
567
|
*/
|
|
544
568
|
interface User {
|
|
545
569
|
/**
|
|
546
|
-
* The
|
|
570
|
+
* The unique identifier for the user.
|
|
547
571
|
*/
|
|
548
572
|
id: string;
|
|
549
573
|
/**
|
|
550
|
-
* The email
|
|
574
|
+
* The user's email address. Requires the member:email:read permission to access.
|
|
575
|
+
* Null if not authorized.
|
|
551
576
|
*/
|
|
552
577
|
email: string | null;
|
|
553
578
|
/**
|
|
554
|
-
* The
|
|
579
|
+
* The user's display name shown on their public profile.
|
|
555
580
|
*/
|
|
556
581
|
name: string | null;
|
|
557
582
|
/**
|
|
558
|
-
* The
|
|
583
|
+
* The user's unique username shown on their public profile.
|
|
559
584
|
*/
|
|
560
585
|
username: string;
|
|
561
586
|
}
|
|
@@ -618,7 +643,8 @@ export declare namespace PaymentCreateParams {
|
|
|
618
643
|
*/
|
|
619
644
|
currency: Shared.Currency;
|
|
620
645
|
/**
|
|
621
|
-
* The interval at which the plan charges (renewal plans).
|
|
646
|
+
* The interval in days at which the plan charges (renewal plans). For example, 30
|
|
647
|
+
* for monthly billing.
|
|
622
648
|
*/
|
|
623
649
|
billing_period?: number | null;
|
|
624
650
|
/**
|
|
@@ -626,7 +652,8 @@ export declare namespace PaymentCreateParams {
|
|
|
626
652
|
*/
|
|
627
653
|
description?: string | null;
|
|
628
654
|
/**
|
|
629
|
-
* The
|
|
655
|
+
* The number of days until the membership expires and revokes access (expiration
|
|
656
|
+
* plans). For example, 365 for one year.
|
|
630
657
|
*/
|
|
631
658
|
expiration_days?: number | null;
|
|
632
659
|
/**
|
|
@@ -635,7 +662,8 @@ export declare namespace PaymentCreateParams {
|
|
|
635
662
|
*/
|
|
636
663
|
force_create_new_plan?: boolean | null;
|
|
637
664
|
/**
|
|
638
|
-
* An additional amount charged upon first purchase.
|
|
665
|
+
* An additional amount charged upon first purchase. Provided as a number in the
|
|
666
|
+
* specified currency. Eg: 10.43 for $10.43 USD.
|
|
639
667
|
*/
|
|
640
668
|
initial_price?: number | null;
|
|
641
669
|
/**
|
|
@@ -656,7 +684,8 @@ export declare namespace PaymentCreateParams {
|
|
|
656
684
|
*/
|
|
657
685
|
product_id?: string | null;
|
|
658
686
|
/**
|
|
659
|
-
* The amount the customer is charged every billing period.
|
|
687
|
+
* The amount the customer is charged every billing period. Provided as a number in
|
|
688
|
+
* the specified currency. Eg: 10.43 for $10.43 USD.
|
|
660
689
|
*/
|
|
661
690
|
renewal_price?: number | null;
|
|
662
691
|
/**
|
|
@@ -718,6 +747,10 @@ export declare namespace PaymentCreateParams {
|
|
|
718
747
|
* The headline of the product.
|
|
719
748
|
*/
|
|
720
749
|
headline?: string | null;
|
|
750
|
+
/**
|
|
751
|
+
* The different industry groups a company can be in.
|
|
752
|
+
*/
|
|
753
|
+
industry_group?: ProductsAPI.IndustryGroups | null;
|
|
721
754
|
/**
|
|
722
755
|
* The different industry types a company can be in.
|
|
723
756
|
*/
|
|
@@ -768,28 +801,28 @@ export declare namespace PaymentCreateParams {
|
|
|
768
801
|
}
|
|
769
802
|
}
|
|
770
803
|
export interface PaymentListParams extends CursorPageParams {
|
|
771
|
-
/**
|
|
772
|
-
* The ID of the company to list payments for
|
|
773
|
-
*/
|
|
774
|
-
company_id: string;
|
|
775
804
|
/**
|
|
776
805
|
* Returns the elements in the list that come before the specified cursor.
|
|
777
806
|
*/
|
|
778
807
|
before?: string | null;
|
|
779
808
|
/**
|
|
780
|
-
*
|
|
809
|
+
* Filter payments by their billing reason.
|
|
781
810
|
*/
|
|
782
811
|
billing_reasons?: Array<BillingReasons> | null;
|
|
783
812
|
/**
|
|
784
|
-
* The
|
|
813
|
+
* The unique identifier of the company to list payments for.
|
|
814
|
+
*/
|
|
815
|
+
company_id?: string | null;
|
|
816
|
+
/**
|
|
817
|
+
* Only return payments created after this timestamp.
|
|
785
818
|
*/
|
|
786
819
|
created_after?: string | null;
|
|
787
820
|
/**
|
|
788
|
-
*
|
|
821
|
+
* Only return payments created before this timestamp.
|
|
789
822
|
*/
|
|
790
823
|
created_before?: string | null;
|
|
791
824
|
/**
|
|
792
|
-
*
|
|
825
|
+
* Filter payments by their currency code.
|
|
793
826
|
*/
|
|
794
827
|
currencies?: Array<Shared.Currency> | null;
|
|
795
828
|
/**
|
|
@@ -801,7 +834,7 @@ export interface PaymentListParams extends CursorPageParams {
|
|
|
801
834
|
*/
|
|
802
835
|
first?: number | null;
|
|
803
836
|
/**
|
|
804
|
-
* Whether to include
|
|
837
|
+
* Whether to include payments with a zero amount.
|
|
805
838
|
*/
|
|
806
839
|
include_free?: boolean | null;
|
|
807
840
|
/**
|
|
@@ -813,19 +846,25 @@ export interface PaymentListParams extends CursorPageParams {
|
|
|
813
846
|
*/
|
|
814
847
|
order?: 'final_amount' | 'created_at' | 'paid_at' | null;
|
|
815
848
|
/**
|
|
816
|
-
*
|
|
849
|
+
* Filter payments to only those associated with these specific plan identifiers.
|
|
817
850
|
*/
|
|
818
851
|
plan_ids?: Array<string> | null;
|
|
819
852
|
/**
|
|
820
|
-
*
|
|
853
|
+
* Filter payments to only those associated with these specific product
|
|
854
|
+
* identifiers.
|
|
821
855
|
*/
|
|
822
856
|
product_ids?: Array<string> | null;
|
|
823
857
|
/**
|
|
824
|
-
*
|
|
858
|
+
* Search payments by user ID, membership ID, user email, name, or username. Email
|
|
859
|
+
* filtering requires the member:email:read permission.
|
|
860
|
+
*/
|
|
861
|
+
query?: string | null;
|
|
862
|
+
/**
|
|
863
|
+
* Filter payments by their current status.
|
|
825
864
|
*/
|
|
826
865
|
statuses?: Array<Shared.ReceiptStatus> | null;
|
|
827
866
|
/**
|
|
828
|
-
*
|
|
867
|
+
* Filter payments by their current substatus for more granular filtering.
|
|
829
868
|
*/
|
|
830
869
|
substatuses?: Array<Shared.FriendlyReceiptStatus> | null;
|
|
831
870
|
}
|
|
@@ -845,7 +884,8 @@ export interface PaymentListFeesParams extends CursorPageParams {
|
|
|
845
884
|
}
|
|
846
885
|
export interface PaymentRefundParams {
|
|
847
886
|
/**
|
|
848
|
-
*
|
|
887
|
+
* The amount to refund in the payment currency. If omitted, the full payment
|
|
888
|
+
* amount is refunded.
|
|
849
889
|
*/
|
|
850
890
|
partial_amount?: number | null;
|
|
851
891
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../src/resources/payments.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,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC;IAIvF;;;;;;;;;;;;;;;;;;;OAmBG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC;IAI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,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/payments.js
CHANGED
|
@@ -25,6 +25,8 @@ class Payments extends resource_1.APIResource {
|
|
|
25
25
|
* - `member:basic:read`
|
|
26
26
|
* - `member:phone:read`
|
|
27
27
|
* - `promo_code:basic:read`
|
|
28
|
+
* - `payment:dispute:read`
|
|
29
|
+
* - `payment:resolution_center_case:read`
|
|
28
30
|
*
|
|
29
31
|
* @example
|
|
30
32
|
* ```ts
|
|
@@ -40,7 +42,7 @@ class Payments extends resource_1.APIResource {
|
|
|
40
42
|
return this._client.post('/payments', { body, ...options });
|
|
41
43
|
}
|
|
42
44
|
/**
|
|
43
|
-
* Retrieves
|
|
45
|
+
* Retrieves the details of an existing payment.
|
|
44
46
|
*
|
|
45
47
|
* Required permissions:
|
|
46
48
|
*
|
|
@@ -51,6 +53,8 @@ class Payments extends resource_1.APIResource {
|
|
|
51
53
|
* - `member:basic:read`
|
|
52
54
|
* - `member:phone:read`
|
|
53
55
|
* - `promo_code:basic:read`
|
|
56
|
+
* - `payment:dispute:read`
|
|
57
|
+
* - `payment:resolution_center_case:read`
|
|
54
58
|
*
|
|
55
59
|
* @example
|
|
56
60
|
* ```ts
|
|
@@ -63,7 +67,8 @@ class Payments extends resource_1.APIResource {
|
|
|
63
67
|
return this._client.get((0, path_1.path) `/payments/${id}`, options);
|
|
64
68
|
}
|
|
65
69
|
/**
|
|
66
|
-
*
|
|
70
|
+
* Returns a paginated list of payments for the actor in context, with optional
|
|
71
|
+
* filtering by product, plan, status, billing reason, currency, and creation date.
|
|
67
72
|
*
|
|
68
73
|
* Required permissions:
|
|
69
74
|
*
|
|
@@ -78,18 +83,17 @@ class Payments extends resource_1.APIResource {
|
|
|
78
83
|
* @example
|
|
79
84
|
* ```ts
|
|
80
85
|
* // Automatically fetches more pages as needed.
|
|
81
|
-
* for await (const paymentListResponse of client.payments.list(
|
|
82
|
-
* { company_id: 'biz_xxxxxxxxxxxxxx' },
|
|
83
|
-
* )) {
|
|
86
|
+
* for await (const paymentListResponse of client.payments.list()) {
|
|
84
87
|
* // ...
|
|
85
88
|
* }
|
|
86
89
|
* ```
|
|
87
90
|
*/
|
|
88
|
-
list(query, options) {
|
|
91
|
+
list(query = {}, options) {
|
|
89
92
|
return this._client.getAPIList('/payments', (pagination_1.CursorPage), { query, ...options });
|
|
90
93
|
}
|
|
91
94
|
/**
|
|
92
|
-
*
|
|
95
|
+
* Returns the list of fees associated with a specific payment, including platform
|
|
96
|
+
* fees and processing fees.
|
|
93
97
|
*
|
|
94
98
|
* Required permissions:
|
|
95
99
|
*
|
|
@@ -112,7 +116,8 @@ class Payments extends resource_1.APIResource {
|
|
|
112
116
|
});
|
|
113
117
|
}
|
|
114
118
|
/**
|
|
115
|
-
*
|
|
119
|
+
* Issue a full or partial refund for a payment. The refund is processed through
|
|
120
|
+
* the original payment processor and the membership status is updated accordingly.
|
|
116
121
|
*
|
|
117
122
|
* Required permissions:
|
|
118
123
|
*
|
|
@@ -123,6 +128,8 @@ class Payments extends resource_1.APIResource {
|
|
|
123
128
|
* - `member:basic:read`
|
|
124
129
|
* - `member:phone:read`
|
|
125
130
|
* - `promo_code:basic:read`
|
|
131
|
+
* - `payment:dispute:read`
|
|
132
|
+
* - `payment:resolution_center_case:read`
|
|
126
133
|
*
|
|
127
134
|
* @example
|
|
128
135
|
* ```ts
|
|
@@ -135,7 +142,8 @@ class Payments extends resource_1.APIResource {
|
|
|
135
142
|
return this._client.post((0, path_1.path) `/payments/${id}/refund`, { body, ...options });
|
|
136
143
|
}
|
|
137
144
|
/**
|
|
138
|
-
*
|
|
145
|
+
* Retry a failed or pending payment. This re-attempts the charge using the
|
|
146
|
+
* original payment method and plan details.
|
|
139
147
|
*
|
|
140
148
|
* Required permissions:
|
|
141
149
|
*
|
|
@@ -146,6 +154,8 @@ class Payments extends resource_1.APIResource {
|
|
|
146
154
|
* - `member:basic:read`
|
|
147
155
|
* - `member:phone:read`
|
|
148
156
|
* - `promo_code:basic:read`
|
|
157
|
+
* - `payment:dispute:read`
|
|
158
|
+
* - `payment:resolution_center_case:read`
|
|
149
159
|
*
|
|
150
160
|
* @example
|
|
151
161
|
* ```ts
|
|
@@ -158,7 +168,8 @@ class Payments extends resource_1.APIResource {
|
|
|
158
168
|
return this._client.post((0, path_1.path) `/payments/${id}/retry`, options);
|
|
159
169
|
}
|
|
160
170
|
/**
|
|
161
|
-
*
|
|
171
|
+
* Void a payment that has not yet been settled. Voiding cancels the payment before
|
|
172
|
+
* it is captured by the payment processor.
|
|
162
173
|
*
|
|
163
174
|
* Required permissions:
|
|
164
175
|
*
|
|
@@ -169,6 +180,8 @@ class Payments extends resource_1.APIResource {
|
|
|
169
180
|
* - `member:basic:read`
|
|
170
181
|
* - `member:phone:read`
|
|
171
182
|
* - `promo_code:basic:read`
|
|
183
|
+
* - `payment:dispute:read`
|
|
184
|
+
* - `payment:resolution_center_case:read`
|
|
172
185
|
*
|
|
173
186
|
* @example
|
|
174
187
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments.js","sourceRoot":"","sources":["../src/resources/payments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;
|
|
1
|
+
{"version":3,"file":"payments.js","sourceRoot":"","sources":["../src/resources/payments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,MAAM,CAAC,IAAyB,EAAE,OA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