@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
|
@@ -35,7 +35,7 @@ export class Webhooks extends APIResource {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
* Retrieves
|
|
38
|
+
* Retrieves the details of an existing webhook.
|
|
39
39
|
*
|
|
40
40
|
* Required permissions:
|
|
41
41
|
*
|
|
@@ -75,7 +75,8 @@ export class Webhooks extends APIResource {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* Returns a paginated list of webhook endpoints configured for a company, ordered
|
|
79
|
+
* by most recently created.
|
|
79
80
|
*
|
|
80
81
|
* Required permissions:
|
|
81
82
|
*
|
|
@@ -138,53 +139,54 @@ export type WebhookListResponsesCursorPage = CursorPage<WebhookListResponse>;
|
|
|
138
139
|
export type APIVersion = 'v1' | 'v2' | 'v5';
|
|
139
140
|
|
|
140
141
|
/**
|
|
141
|
-
* A webhook
|
|
142
|
+
* A webhook endpoint that receives event notifications for a company via HTTP
|
|
143
|
+
* POST.
|
|
142
144
|
*/
|
|
143
145
|
export interface Webhook {
|
|
144
146
|
/**
|
|
145
|
-
* The
|
|
147
|
+
* The unique identifier for the webhook.
|
|
146
148
|
*/
|
|
147
149
|
id: string;
|
|
148
150
|
|
|
149
151
|
/**
|
|
150
|
-
* The API version
|
|
152
|
+
* The API version used to format payloads sent to this webhook endpoint.
|
|
151
153
|
*/
|
|
152
154
|
api_version: APIVersion;
|
|
153
155
|
|
|
154
156
|
/**
|
|
155
|
-
* Whether
|
|
156
|
-
*
|
|
157
|
-
*
|
|
157
|
+
* Whether events are sent for child resources. For example, if the webhook is on a
|
|
158
|
+
* company, enabling this sends events only from the company's sub-merchants (child
|
|
159
|
+
* companies).
|
|
158
160
|
*/
|
|
159
161
|
child_resource_events: boolean;
|
|
160
162
|
|
|
161
163
|
/**
|
|
162
|
-
* The
|
|
164
|
+
* The datetime the webhook was created.
|
|
163
165
|
*/
|
|
164
166
|
created_at: string;
|
|
165
167
|
|
|
166
168
|
/**
|
|
167
|
-
* Whether
|
|
169
|
+
* Whether this webhook endpoint is currently active and receiving events.
|
|
168
170
|
*/
|
|
169
171
|
enabled: boolean;
|
|
170
172
|
|
|
171
173
|
/**
|
|
172
|
-
* The
|
|
174
|
+
* The list of event types this webhook is subscribed to.
|
|
173
175
|
*/
|
|
174
176
|
events: Array<WebhookEvent>;
|
|
175
177
|
|
|
176
178
|
/**
|
|
177
|
-
* The resource
|
|
179
|
+
* The ID of the resource (company or product) this webhook is attached to.
|
|
178
180
|
*/
|
|
179
181
|
resource_id: string;
|
|
180
182
|
|
|
181
183
|
/**
|
|
182
|
-
* The
|
|
184
|
+
* The subset of subscribed event types that support sending test payloads.
|
|
183
185
|
*/
|
|
184
186
|
testable_events: Array<WebhookEvent>;
|
|
185
187
|
|
|
186
188
|
/**
|
|
187
|
-
* The URL
|
|
189
|
+
* The destination URL where webhook payloads are delivered via HTTP POST.
|
|
188
190
|
*/
|
|
189
191
|
url: string;
|
|
190
192
|
}
|
|
@@ -222,100 +224,103 @@ export type WebhookEvent =
|
|
|
222
224
|
| 'membership.cancel_at_period_end_changed';
|
|
223
225
|
|
|
224
226
|
/**
|
|
225
|
-
* A webhook
|
|
227
|
+
* A webhook endpoint that receives event notifications for a company via HTTP
|
|
228
|
+
* POST.
|
|
226
229
|
*/
|
|
227
230
|
export interface WebhookCreateResponse {
|
|
228
231
|
/**
|
|
229
|
-
* The
|
|
232
|
+
* The unique identifier for the webhook.
|
|
230
233
|
*/
|
|
231
234
|
id: string;
|
|
232
235
|
|
|
233
236
|
/**
|
|
234
|
-
* The API version
|
|
237
|
+
* The API version used to format payloads sent to this webhook endpoint.
|
|
235
238
|
*/
|
|
236
239
|
api_version: APIVersion;
|
|
237
240
|
|
|
238
241
|
/**
|
|
239
|
-
* Whether
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
+
* Whether events are sent for child resources. For example, if the webhook is on a
|
|
243
|
+
* company, enabling this sends events only from the company's sub-merchants (child
|
|
244
|
+
* companies).
|
|
242
245
|
*/
|
|
243
246
|
child_resource_events: boolean;
|
|
244
247
|
|
|
245
248
|
/**
|
|
246
|
-
* The
|
|
249
|
+
* The datetime the webhook was created.
|
|
247
250
|
*/
|
|
248
251
|
created_at: string;
|
|
249
252
|
|
|
250
253
|
/**
|
|
251
|
-
* Whether
|
|
254
|
+
* Whether this webhook endpoint is currently active and receiving events.
|
|
252
255
|
*/
|
|
253
256
|
enabled: boolean;
|
|
254
257
|
|
|
255
258
|
/**
|
|
256
|
-
* The
|
|
259
|
+
* The list of event types this webhook is subscribed to.
|
|
257
260
|
*/
|
|
258
261
|
events: Array<WebhookEvent>;
|
|
259
262
|
|
|
260
263
|
/**
|
|
261
|
-
* The resource
|
|
264
|
+
* The ID of the resource (company or product) this webhook is attached to.
|
|
262
265
|
*/
|
|
263
266
|
resource_id: string;
|
|
264
267
|
|
|
265
268
|
/**
|
|
266
|
-
* The
|
|
269
|
+
* The subset of subscribed event types that support sending test payloads.
|
|
267
270
|
*/
|
|
268
271
|
testable_events: Array<WebhookEvent>;
|
|
269
272
|
|
|
270
273
|
/**
|
|
271
|
-
* The URL
|
|
274
|
+
* The destination URL where webhook payloads are delivered via HTTP POST.
|
|
272
275
|
*/
|
|
273
276
|
url: string;
|
|
274
277
|
|
|
275
278
|
/**
|
|
276
|
-
*
|
|
279
|
+
* The secret key used to sign webhook payloads for verification. Include this in
|
|
280
|
+
* your HMAC validation logic.
|
|
277
281
|
*/
|
|
278
282
|
webhook_secret: string;
|
|
279
283
|
}
|
|
280
284
|
|
|
281
285
|
/**
|
|
282
|
-
* A webhook
|
|
286
|
+
* A webhook endpoint that receives event notifications for a company via HTTP
|
|
287
|
+
* POST.
|
|
283
288
|
*/
|
|
284
289
|
export interface WebhookListResponse {
|
|
285
290
|
/**
|
|
286
|
-
* The
|
|
291
|
+
* The unique identifier for the webhook.
|
|
287
292
|
*/
|
|
288
293
|
id: string;
|
|
289
294
|
|
|
290
295
|
/**
|
|
291
|
-
* The API version
|
|
296
|
+
* The API version used to format payloads sent to this webhook endpoint.
|
|
292
297
|
*/
|
|
293
298
|
api_version: APIVersion;
|
|
294
299
|
|
|
295
300
|
/**
|
|
296
|
-
* Whether
|
|
297
|
-
*
|
|
298
|
-
*
|
|
301
|
+
* Whether events are sent for child resources. For example, if the webhook is on a
|
|
302
|
+
* company, enabling this sends events only from the company's sub-merchants (child
|
|
303
|
+
* companies).
|
|
299
304
|
*/
|
|
300
305
|
child_resource_events: boolean;
|
|
301
306
|
|
|
302
307
|
/**
|
|
303
|
-
* The
|
|
308
|
+
* The datetime the webhook was created.
|
|
304
309
|
*/
|
|
305
310
|
created_at: string;
|
|
306
311
|
|
|
307
312
|
/**
|
|
308
|
-
* Whether
|
|
313
|
+
* Whether this webhook endpoint is currently active and receiving events.
|
|
309
314
|
*/
|
|
310
315
|
enabled: boolean;
|
|
311
316
|
|
|
312
317
|
/**
|
|
313
|
-
* The
|
|
318
|
+
* The list of event types this webhook is subscribed to.
|
|
314
319
|
*/
|
|
315
320
|
events: Array<WebhookEvent>;
|
|
316
321
|
|
|
317
322
|
/**
|
|
318
|
-
* The URL
|
|
323
|
+
* The destination URL where webhook payloads are delivered via HTTP POST.
|
|
319
324
|
*/
|
|
320
325
|
url: string;
|
|
321
326
|
}
|
|
@@ -337,7 +342,9 @@ export interface InvoiceCreatedWebhookEvent {
|
|
|
337
342
|
api_version: 'v1';
|
|
338
343
|
|
|
339
344
|
/**
|
|
340
|
-
*
|
|
345
|
+
* An invoice represents an itemized bill sent by a company to a customer for a
|
|
346
|
+
* specific product and plan, tracking the amount owed, due date, and payment
|
|
347
|
+
* status.
|
|
341
348
|
*/
|
|
342
349
|
data: Shared.Invoice;
|
|
343
350
|
|
|
@@ -369,7 +376,9 @@ export interface InvoicePaidWebhookEvent {
|
|
|
369
376
|
api_version: 'v1';
|
|
370
377
|
|
|
371
378
|
/**
|
|
372
|
-
*
|
|
379
|
+
* An invoice represents an itemized bill sent by a company to a customer for a
|
|
380
|
+
* specific product and plan, tracking the amount owed, due date, and payment
|
|
381
|
+
* status.
|
|
373
382
|
*/
|
|
374
383
|
data: Shared.Invoice;
|
|
375
384
|
|
|
@@ -401,7 +410,9 @@ export interface InvoicePastDueWebhookEvent {
|
|
|
401
410
|
api_version: 'v1';
|
|
402
411
|
|
|
403
412
|
/**
|
|
404
|
-
*
|
|
413
|
+
* An invoice represents an itemized bill sent by a company to a customer for a
|
|
414
|
+
* specific product and plan, tracking the amount owed, due date, and payment
|
|
415
|
+
* status.
|
|
405
416
|
*/
|
|
406
417
|
data: Shared.Invoice;
|
|
407
418
|
|
|
@@ -433,7 +444,9 @@ export interface InvoiceVoidedWebhookEvent {
|
|
|
433
444
|
api_version: 'v1';
|
|
434
445
|
|
|
435
446
|
/**
|
|
436
|
-
*
|
|
447
|
+
* An invoice represents an itemized bill sent by a company to a customer for a
|
|
448
|
+
* specific product and plan, tracking the amount owed, due date, and payment
|
|
449
|
+
* status.
|
|
437
450
|
*/
|
|
438
451
|
data: Shared.Invoice;
|
|
439
452
|
|
|
@@ -465,8 +478,8 @@ export interface MembershipActivatedWebhookEvent {
|
|
|
465
478
|
api_version: 'v1';
|
|
466
479
|
|
|
467
480
|
/**
|
|
468
|
-
* A membership represents
|
|
469
|
-
*
|
|
481
|
+
* A membership represents an active relationship between a user and a product. It
|
|
482
|
+
* tracks the user's access, billing status, and renewal schedule.
|
|
470
483
|
*/
|
|
471
484
|
data: Shared.Membership;
|
|
472
485
|
|
|
@@ -498,8 +511,8 @@ export interface MembershipDeactivatedWebhookEvent {
|
|
|
498
511
|
api_version: 'v1';
|
|
499
512
|
|
|
500
513
|
/**
|
|
501
|
-
* A membership represents
|
|
502
|
-
*
|
|
514
|
+
* A membership represents an active relationship between a user and a product. It
|
|
515
|
+
* tracks the user's access, billing status, and renewal schedule.
|
|
503
516
|
*/
|
|
504
517
|
data: Shared.Membership;
|
|
505
518
|
|
|
@@ -531,7 +544,7 @@ export interface EntryCreatedWebhookEvent {
|
|
|
531
544
|
api_version: 'v1';
|
|
532
545
|
|
|
533
546
|
/**
|
|
534
|
-
* An
|
|
547
|
+
* An entry represents a user's signup for a waitlisted plan.
|
|
535
548
|
*/
|
|
536
549
|
data: Shared.Entry;
|
|
537
550
|
|
|
@@ -563,7 +576,7 @@ export interface EntryApprovedWebhookEvent {
|
|
|
563
576
|
api_version: 'v1';
|
|
564
577
|
|
|
565
578
|
/**
|
|
566
|
-
* An
|
|
579
|
+
* An entry represents a user's signup for a waitlisted plan.
|
|
567
580
|
*/
|
|
568
581
|
data: Shared.Entry;
|
|
569
582
|
|
|
@@ -595,7 +608,7 @@ export interface EntryDeniedWebhookEvent {
|
|
|
595
608
|
api_version: 'v1';
|
|
596
609
|
|
|
597
610
|
/**
|
|
598
|
-
* An
|
|
611
|
+
* An entry represents a user's signup for a waitlisted plan.
|
|
599
612
|
*/
|
|
600
613
|
data: Shared.Entry;
|
|
601
614
|
|
|
@@ -627,7 +640,7 @@ export interface EntryDeletedWebhookEvent {
|
|
|
627
640
|
api_version: 'v1';
|
|
628
641
|
|
|
629
642
|
/**
|
|
630
|
-
* An
|
|
643
|
+
* An entry represents a user's signup for a waitlisted plan.
|
|
631
644
|
*/
|
|
632
645
|
data: Shared.Entry;
|
|
633
646
|
|
|
@@ -659,8 +672,8 @@ export interface SetupIntentRequiresActionWebhookEvent {
|
|
|
659
672
|
api_version: 'v1';
|
|
660
673
|
|
|
661
674
|
/**
|
|
662
|
-
*
|
|
663
|
-
*
|
|
675
|
+
* A setup intent allows a user to save a payment method for future use without
|
|
676
|
+
* making an immediate purchase.
|
|
664
677
|
*/
|
|
665
678
|
data: SetupIntentsAPI.SetupIntent;
|
|
666
679
|
|
|
@@ -692,8 +705,8 @@ export interface SetupIntentSucceededWebhookEvent {
|
|
|
692
705
|
api_version: 'v1';
|
|
693
706
|
|
|
694
707
|
/**
|
|
695
|
-
*
|
|
696
|
-
*
|
|
708
|
+
* A setup intent allows a user to save a payment method for future use without
|
|
709
|
+
* making an immediate purchase.
|
|
697
710
|
*/
|
|
698
711
|
data: SetupIntentsAPI.SetupIntent;
|
|
699
712
|
|
|
@@ -725,8 +738,8 @@ export interface SetupIntentCanceledWebhookEvent {
|
|
|
725
738
|
api_version: 'v1';
|
|
726
739
|
|
|
727
740
|
/**
|
|
728
|
-
*
|
|
729
|
-
*
|
|
741
|
+
* A setup intent allows a user to save a payment method for future use without
|
|
742
|
+
* making an immediate purchase.
|
|
730
743
|
*/
|
|
731
744
|
data: SetupIntentsAPI.SetupIntent;
|
|
732
745
|
|
|
@@ -758,7 +771,8 @@ export interface WithdrawalCreatedWebhookEvent {
|
|
|
758
771
|
api_version: 'v1';
|
|
759
772
|
|
|
760
773
|
/**
|
|
761
|
-
* A withdrawal request
|
|
774
|
+
* A withdrawal represents a request to transfer funds from a ledger account to an
|
|
775
|
+
* external payout method.
|
|
762
776
|
*/
|
|
763
777
|
data: WithdrawalsAPI.Withdrawal;
|
|
764
778
|
|
|
@@ -790,7 +804,8 @@ export interface WithdrawalUpdatedWebhookEvent {
|
|
|
790
804
|
api_version: 'v1';
|
|
791
805
|
|
|
792
806
|
/**
|
|
793
|
-
* A withdrawal request
|
|
807
|
+
* A withdrawal represents a request to transfer funds from a ledger account to an
|
|
808
|
+
* external payout method.
|
|
794
809
|
*/
|
|
795
810
|
data: WithdrawalsAPI.Withdrawal;
|
|
796
811
|
|
|
@@ -822,7 +837,8 @@ export interface CourseLessonInteractionCompletedWebhookEvent {
|
|
|
822
837
|
api_version: 'v1';
|
|
823
838
|
|
|
824
839
|
/**
|
|
825
|
-
* A
|
|
840
|
+
* A record of a user's progress on a specific lesson, tracking whether they have
|
|
841
|
+
* completed it.
|
|
826
842
|
*/
|
|
827
843
|
data: Shared.CourseLessonInteraction;
|
|
828
844
|
|
|
@@ -854,7 +870,8 @@ export interface PayoutMethodCreatedWebhookEvent {
|
|
|
854
870
|
api_version: 'v1';
|
|
855
871
|
|
|
856
872
|
/**
|
|
857
|
-
*
|
|
873
|
+
* A configured payout destination where a user receives earned funds, such as a
|
|
874
|
+
* bank account or digital wallet.
|
|
858
875
|
*/
|
|
859
876
|
data: PayoutMethodCreatedWebhookEvent.Data;
|
|
860
877
|
|
|
@@ -876,71 +893,78 @@ export interface PayoutMethodCreatedWebhookEvent {
|
|
|
876
893
|
|
|
877
894
|
export namespace PayoutMethodCreatedWebhookEvent {
|
|
878
895
|
/**
|
|
879
|
-
*
|
|
896
|
+
* A configured payout destination where a user receives earned funds, such as a
|
|
897
|
+
* bank account or digital wallet.
|
|
880
898
|
*/
|
|
881
899
|
export interface Data {
|
|
882
900
|
/**
|
|
883
|
-
* The
|
|
901
|
+
* The unique identifier for the payout token.
|
|
884
902
|
*/
|
|
885
903
|
id: string;
|
|
886
904
|
|
|
887
905
|
/**
|
|
888
|
-
* A
|
|
889
|
-
* account
|
|
906
|
+
* A masked identifier for the payout destination, such as the last four digits of
|
|
907
|
+
* a bank account or an email address. Null if no reference is available.
|
|
890
908
|
*/
|
|
891
909
|
account_reference: string | null;
|
|
892
910
|
|
|
893
911
|
/**
|
|
894
|
-
* The company associated with
|
|
912
|
+
* The company associated with this payout destination. Null if not linked to a
|
|
913
|
+
* specific company.
|
|
895
914
|
*/
|
|
896
915
|
company: Data.Company | null;
|
|
897
916
|
|
|
898
917
|
/**
|
|
899
|
-
* The
|
|
918
|
+
* The datetime the payout token was created.
|
|
900
919
|
*/
|
|
901
920
|
created_at: string;
|
|
902
921
|
|
|
903
922
|
/**
|
|
904
|
-
* The currency code
|
|
905
|
-
*
|
|
923
|
+
* The three-letter ISO currency code that payouts are delivered in for this
|
|
924
|
+
* destination.
|
|
906
925
|
*/
|
|
907
926
|
currency: string;
|
|
908
927
|
|
|
909
928
|
/**
|
|
910
|
-
* The payout destination
|
|
929
|
+
* The payout destination configuration linked to this token. Null if not yet
|
|
930
|
+
* configured.
|
|
911
931
|
*/
|
|
912
932
|
destination: Data.Destination | null;
|
|
913
933
|
|
|
914
934
|
/**
|
|
915
|
-
* The name of the bank or financial institution.
|
|
935
|
+
* The name of the bank or financial institution receiving payouts. Null if not
|
|
936
|
+
* applicable or not provided.
|
|
916
937
|
*/
|
|
917
938
|
institution_name: string | null;
|
|
918
939
|
|
|
919
940
|
/**
|
|
920
|
-
* Whether this
|
|
941
|
+
* Whether this is the default payout destination for the associated payout
|
|
942
|
+
* account.
|
|
921
943
|
*/
|
|
922
944
|
is_default: boolean;
|
|
923
945
|
|
|
924
946
|
/**
|
|
925
|
-
*
|
|
926
|
-
*
|
|
947
|
+
* A user-defined label to help identify this payout destination. Not sent to the
|
|
948
|
+
* provider. Null if no nickname has been set.
|
|
927
949
|
*/
|
|
928
950
|
nickname: string | null;
|
|
929
951
|
}
|
|
930
952
|
|
|
931
953
|
export namespace Data {
|
|
932
954
|
/**
|
|
933
|
-
* The company associated with
|
|
955
|
+
* The company associated with this payout destination. Null if not linked to a
|
|
956
|
+
* specific company.
|
|
934
957
|
*/
|
|
935
958
|
export interface Company {
|
|
936
959
|
/**
|
|
937
|
-
* The
|
|
960
|
+
* The unique identifier for the company.
|
|
938
961
|
*/
|
|
939
962
|
id: string;
|
|
940
963
|
}
|
|
941
964
|
|
|
942
965
|
/**
|
|
943
|
-
* The payout destination
|
|
966
|
+
* The payout destination configuration linked to this token. Null if not yet
|
|
967
|
+
* configured.
|
|
944
968
|
*/
|
|
945
969
|
export interface Destination {
|
|
946
970
|
/**
|
|
@@ -973,7 +997,8 @@ export interface VerificationSucceededWebhookEvent {
|
|
|
973
997
|
api_version: 'v1';
|
|
974
998
|
|
|
975
999
|
/**
|
|
976
|
-
* An
|
|
1000
|
+
* An identity verification session used to confirm a person or entity's identity
|
|
1001
|
+
* for payout account eligibility.
|
|
977
1002
|
*/
|
|
978
1003
|
data: VerificationSucceededWebhookEvent.Data;
|
|
979
1004
|
|
|
@@ -995,11 +1020,12 @@ export interface VerificationSucceededWebhookEvent {
|
|
|
995
1020
|
|
|
996
1021
|
export namespace VerificationSucceededWebhookEvent {
|
|
997
1022
|
/**
|
|
998
|
-
* An
|
|
1023
|
+
* An identity verification session used to confirm a person or entity's identity
|
|
1024
|
+
* for payout account eligibility.
|
|
999
1025
|
*/
|
|
1000
1026
|
export interface Data {
|
|
1001
1027
|
/**
|
|
1002
|
-
*
|
|
1028
|
+
* The unique identifier for the verification.
|
|
1003
1029
|
*/
|
|
1004
1030
|
id: string;
|
|
1005
1031
|
|
|
@@ -1009,12 +1035,13 @@ export namespace VerificationSucceededWebhookEvent {
|
|
|
1009
1035
|
last_error_code: VerificationsAPI.VerificationErrorCode | null;
|
|
1010
1036
|
|
|
1011
1037
|
/**
|
|
1012
|
-
*
|
|
1038
|
+
* A human-readable explanation of the most recent verification error. Null if no
|
|
1039
|
+
* error has occurred.
|
|
1013
1040
|
*/
|
|
1014
1041
|
last_error_reason: string | null;
|
|
1015
1042
|
|
|
1016
1043
|
/**
|
|
1017
|
-
* The status of
|
|
1044
|
+
* The current status of this verification session.
|
|
1018
1045
|
*/
|
|
1019
1046
|
status: VerificationsAPI.VerificationStatus;
|
|
1020
1047
|
}
|
|
@@ -1032,7 +1059,8 @@ export interface PaymentCreatedWebhookEvent {
|
|
|
1032
1059
|
api_version: 'v1';
|
|
1033
1060
|
|
|
1034
1061
|
/**
|
|
1035
|
-
*
|
|
1062
|
+
* A payment represents a completed or attempted charge. Payments track the amount,
|
|
1063
|
+
* status, currency, and payment method used.
|
|
1036
1064
|
*/
|
|
1037
1065
|
data: Shared.Payment;
|
|
1038
1066
|
|
|
@@ -1064,7 +1092,8 @@ export interface PaymentSucceededWebhookEvent {
|
|
|
1064
1092
|
api_version: 'v1';
|
|
1065
1093
|
|
|
1066
1094
|
/**
|
|
1067
|
-
*
|
|
1095
|
+
* A payment represents a completed or attempted charge. Payments track the amount,
|
|
1096
|
+
* status, currency, and payment method used.
|
|
1068
1097
|
*/
|
|
1069
1098
|
data: Shared.Payment;
|
|
1070
1099
|
|
|
@@ -1096,7 +1125,8 @@ export interface PaymentFailedWebhookEvent {
|
|
|
1096
1125
|
api_version: 'v1';
|
|
1097
1126
|
|
|
1098
1127
|
/**
|
|
1099
|
-
*
|
|
1128
|
+
* A payment represents a completed or attempted charge. Payments track the amount,
|
|
1129
|
+
* status, currency, and payment method used.
|
|
1100
1130
|
*/
|
|
1101
1131
|
data: Shared.Payment;
|
|
1102
1132
|
|
|
@@ -1128,7 +1158,8 @@ export interface PaymentPendingWebhookEvent {
|
|
|
1128
1158
|
api_version: 'v1';
|
|
1129
1159
|
|
|
1130
1160
|
/**
|
|
1131
|
-
*
|
|
1161
|
+
* A payment represents a completed or attempted charge. Payments track the amount,
|
|
1162
|
+
* status, currency, and payment method used.
|
|
1132
1163
|
*/
|
|
1133
1164
|
data: Shared.Payment;
|
|
1134
1165
|
|
|
@@ -1160,7 +1191,8 @@ export interface DisputeCreatedWebhookEvent {
|
|
|
1160
1191
|
api_version: 'v1';
|
|
1161
1192
|
|
|
1162
1193
|
/**
|
|
1163
|
-
*
|
|
1194
|
+
* A dispute is a chargeback or payment challenge filed against a company,
|
|
1195
|
+
* including evidence and response status.
|
|
1164
1196
|
*/
|
|
1165
1197
|
data: DisputesAPI.Dispute;
|
|
1166
1198
|
|
|
@@ -1192,7 +1224,8 @@ export interface DisputeUpdatedWebhookEvent {
|
|
|
1192
1224
|
api_version: 'v1';
|
|
1193
1225
|
|
|
1194
1226
|
/**
|
|
1195
|
-
*
|
|
1227
|
+
* A dispute is a chargeback or payment challenge filed against a company,
|
|
1228
|
+
* including evidence and response status.
|
|
1196
1229
|
*/
|
|
1197
1230
|
data: DisputesAPI.Dispute;
|
|
1198
1231
|
|
|
@@ -1224,7 +1257,8 @@ export interface RefundCreatedWebhookEvent {
|
|
|
1224
1257
|
api_version: 'v1';
|
|
1225
1258
|
|
|
1226
1259
|
/**
|
|
1227
|
-
*
|
|
1260
|
+
* A refund represents a full or partial reversal of a payment, including the
|
|
1261
|
+
* amount, status, and payment provider.
|
|
1228
1262
|
*/
|
|
1229
1263
|
data: RefundCreatedWebhookEvent.Data;
|
|
1230
1264
|
|
|
@@ -1246,41 +1280,45 @@ export interface RefundCreatedWebhookEvent {
|
|
|
1246
1280
|
|
|
1247
1281
|
export namespace RefundCreatedWebhookEvent {
|
|
1248
1282
|
/**
|
|
1249
|
-
*
|
|
1283
|
+
* A refund represents a full or partial reversal of a payment, including the
|
|
1284
|
+
* amount, status, and payment provider.
|
|
1250
1285
|
*/
|
|
1251
1286
|
export interface Data {
|
|
1252
1287
|
/**
|
|
1253
|
-
* The
|
|
1288
|
+
* The unique identifier for the refund.
|
|
1254
1289
|
*/
|
|
1255
1290
|
id: string;
|
|
1256
1291
|
|
|
1257
1292
|
/**
|
|
1258
|
-
* The amount
|
|
1293
|
+
* The refunded amount as a decimal in the specified currency, such as 10.43 for
|
|
1294
|
+
* $10.43 USD.
|
|
1259
1295
|
*/
|
|
1260
1296
|
amount: number;
|
|
1261
1297
|
|
|
1262
1298
|
/**
|
|
1263
|
-
* The
|
|
1299
|
+
* The datetime the refund was created.
|
|
1264
1300
|
*/
|
|
1265
1301
|
created_at: string;
|
|
1266
1302
|
|
|
1267
1303
|
/**
|
|
1268
|
-
* The currency
|
|
1304
|
+
* The three-letter ISO currency code for the refunded amount.
|
|
1269
1305
|
*/
|
|
1270
1306
|
currency: Shared.Currency;
|
|
1271
1307
|
|
|
1272
1308
|
/**
|
|
1273
|
-
* The payment
|
|
1309
|
+
* The original payment that this refund was issued against. Null if the payment is
|
|
1310
|
+
* no longer available.
|
|
1274
1311
|
*/
|
|
1275
1312
|
payment: Data.Payment | null;
|
|
1276
1313
|
|
|
1277
1314
|
/**
|
|
1278
|
-
* The provider
|
|
1315
|
+
* The payment provider that processed the refund.
|
|
1279
1316
|
*/
|
|
1280
1317
|
provider: RefundsAPI.PaymentProvider;
|
|
1281
1318
|
|
|
1282
1319
|
/**
|
|
1283
|
-
* The
|
|
1320
|
+
* The timestamp when the refund was created in the payment provider's system. Null
|
|
1321
|
+
* if not available from the provider.
|
|
1284
1322
|
*/
|
|
1285
1323
|
provider_created_at: string | null;
|
|
1286
1324
|
|
|
@@ -1295,23 +1333,26 @@ export namespace RefundCreatedWebhookEvent {
|
|
|
1295
1333
|
reference_type: RefundsAPI.RefundReferenceType | null;
|
|
1296
1334
|
|
|
1297
1335
|
/**
|
|
1298
|
-
* The value
|
|
1336
|
+
* The tracking reference value from the payment processor, used to trace the
|
|
1337
|
+
* refund through banking networks. Null if no reference was provided.
|
|
1299
1338
|
*/
|
|
1300
1339
|
reference_value: string | null;
|
|
1301
1340
|
|
|
1302
1341
|
/**
|
|
1303
|
-
* The status of the refund
|
|
1342
|
+
* The current processing status of the refund, such as pending, succeeded, or
|
|
1343
|
+
* failed.
|
|
1304
1344
|
*/
|
|
1305
1345
|
status: RefundsAPI.RefundStatus;
|
|
1306
1346
|
}
|
|
1307
1347
|
|
|
1308
1348
|
export namespace Data {
|
|
1309
1349
|
/**
|
|
1310
|
-
* The payment
|
|
1350
|
+
* The original payment that this refund was issued against. Null if the payment is
|
|
1351
|
+
* no longer available.
|
|
1311
1352
|
*/
|
|
1312
1353
|
export interface Payment {
|
|
1313
1354
|
/**
|
|
1314
|
-
* The payment
|
|
1355
|
+
* The unique identifier for the payment.
|
|
1315
1356
|
*/
|
|
1316
1357
|
id: string;
|
|
1317
1358
|
|
|
@@ -1326,12 +1367,13 @@ export namespace RefundCreatedWebhookEvent {
|
|
|
1326
1367
|
card_brand: PaymentsAPI.CardBrands | null;
|
|
1327
1368
|
|
|
1328
1369
|
/**
|
|
1329
|
-
* The last
|
|
1370
|
+
* The last four digits of the card used to make this payment. Null if the payment
|
|
1371
|
+
* was not made with a card.
|
|
1330
1372
|
*/
|
|
1331
1373
|
card_last4: string | null;
|
|
1332
1374
|
|
|
1333
1375
|
/**
|
|
1334
|
-
* The datetime the payment was created
|
|
1376
|
+
* The datetime the payment was created.
|
|
1335
1377
|
*/
|
|
1336
1378
|
created_at: string;
|
|
1337
1379
|
|
|
@@ -1356,7 +1398,8 @@ export namespace RefundCreatedWebhookEvent {
|
|
|
1356
1398
|
membership: Payment.Membership | null;
|
|
1357
1399
|
|
|
1358
1400
|
/**
|
|
1359
|
-
* The
|
|
1401
|
+
* The time at which this payment was successfully collected. Null if the payment
|
|
1402
|
+
* has not yet succeeded. As a Unix timestamp.
|
|
1360
1403
|
*/
|
|
1361
1404
|
paid_at: string | null;
|
|
1362
1405
|
|
|
@@ -1392,7 +1435,7 @@ export namespace RefundCreatedWebhookEvent {
|
|
|
1392
1435
|
*/
|
|
1393
1436
|
export interface Member {
|
|
1394
1437
|
/**
|
|
1395
|
-
* The
|
|
1438
|
+
* The unique identifier for the company member.
|
|
1396
1439
|
*/
|
|
1397
1440
|
id: string;
|
|
1398
1441
|
|
|
@@ -1407,7 +1450,7 @@ export namespace RefundCreatedWebhookEvent {
|
|
|
1407
1450
|
*/
|
|
1408
1451
|
export interface Membership {
|
|
1409
1452
|
/**
|
|
1410
|
-
* The
|
|
1453
|
+
* The unique identifier for the membership.
|
|
1411
1454
|
*/
|
|
1412
1455
|
id: string;
|
|
1413
1456
|
|
|
@@ -1422,22 +1465,23 @@ export namespace RefundCreatedWebhookEvent {
|
|
|
1422
1465
|
*/
|
|
1423
1466
|
export interface User {
|
|
1424
1467
|
/**
|
|
1425
|
-
* The
|
|
1468
|
+
* The unique identifier for the user.
|
|
1426
1469
|
*/
|
|
1427
1470
|
id: string;
|
|
1428
1471
|
|
|
1429
1472
|
/**
|
|
1430
|
-
* The email
|
|
1473
|
+
* The user's email address. Requires the member:email:read permission to access.
|
|
1474
|
+
* Null if not authorized.
|
|
1431
1475
|
*/
|
|
1432
1476
|
email: string | null;
|
|
1433
1477
|
|
|
1434
1478
|
/**
|
|
1435
|
-
* The
|
|
1479
|
+
* The user's display name shown on their public profile.
|
|
1436
1480
|
*/
|
|
1437
1481
|
name: string | null;
|
|
1438
1482
|
|
|
1439
1483
|
/**
|
|
1440
|
-
* The
|
|
1484
|
+
* The user's unique username shown on their public profile.
|
|
1441
1485
|
*/
|
|
1442
1486
|
username: string;
|
|
1443
1487
|
}
|
|
@@ -1457,7 +1501,8 @@ export interface RefundUpdatedWebhookEvent {
|
|
|
1457
1501
|
api_version: 'v1';
|
|
1458
1502
|
|
|
1459
1503
|
/**
|
|
1460
|
-
*
|
|
1504
|
+
* A refund represents a full or partial reversal of a payment, including the
|
|
1505
|
+
* amount, status, and payment provider.
|
|
1461
1506
|
*/
|
|
1462
1507
|
data: RefundUpdatedWebhookEvent.Data;
|
|
1463
1508
|
|
|
@@ -1479,41 +1524,45 @@ export interface RefundUpdatedWebhookEvent {
|
|
|
1479
1524
|
|
|
1480
1525
|
export namespace RefundUpdatedWebhookEvent {
|
|
1481
1526
|
/**
|
|
1482
|
-
*
|
|
1527
|
+
* A refund represents a full or partial reversal of a payment, including the
|
|
1528
|
+
* amount, status, and payment provider.
|
|
1483
1529
|
*/
|
|
1484
1530
|
export interface Data {
|
|
1485
1531
|
/**
|
|
1486
|
-
* The
|
|
1532
|
+
* The unique identifier for the refund.
|
|
1487
1533
|
*/
|
|
1488
1534
|
id: string;
|
|
1489
1535
|
|
|
1490
1536
|
/**
|
|
1491
|
-
* The amount
|
|
1537
|
+
* The refunded amount as a decimal in the specified currency, such as 10.43 for
|
|
1538
|
+
* $10.43 USD.
|
|
1492
1539
|
*/
|
|
1493
1540
|
amount: number;
|
|
1494
1541
|
|
|
1495
1542
|
/**
|
|
1496
|
-
* The
|
|
1543
|
+
* The datetime the refund was created.
|
|
1497
1544
|
*/
|
|
1498
1545
|
created_at: string;
|
|
1499
1546
|
|
|
1500
1547
|
/**
|
|
1501
|
-
* The currency
|
|
1548
|
+
* The three-letter ISO currency code for the refunded amount.
|
|
1502
1549
|
*/
|
|
1503
1550
|
currency: Shared.Currency;
|
|
1504
1551
|
|
|
1505
1552
|
/**
|
|
1506
|
-
* The payment
|
|
1553
|
+
* The original payment that this refund was issued against. Null if the payment is
|
|
1554
|
+
* no longer available.
|
|
1507
1555
|
*/
|
|
1508
1556
|
payment: Data.Payment | null;
|
|
1509
1557
|
|
|
1510
1558
|
/**
|
|
1511
|
-
* The provider
|
|
1559
|
+
* The payment provider that processed the refund.
|
|
1512
1560
|
*/
|
|
1513
1561
|
provider: RefundsAPI.PaymentProvider;
|
|
1514
1562
|
|
|
1515
1563
|
/**
|
|
1516
|
-
* The
|
|
1564
|
+
* The timestamp when the refund was created in the payment provider's system. Null
|
|
1565
|
+
* if not available from the provider.
|
|
1517
1566
|
*/
|
|
1518
1567
|
provider_created_at: string | null;
|
|
1519
1568
|
|
|
@@ -1528,23 +1577,26 @@ export namespace RefundUpdatedWebhookEvent {
|
|
|
1528
1577
|
reference_type: RefundsAPI.RefundReferenceType | null;
|
|
1529
1578
|
|
|
1530
1579
|
/**
|
|
1531
|
-
* The value
|
|
1580
|
+
* The tracking reference value from the payment processor, used to trace the
|
|
1581
|
+
* refund through banking networks. Null if no reference was provided.
|
|
1532
1582
|
*/
|
|
1533
1583
|
reference_value: string | null;
|
|
1534
1584
|
|
|
1535
1585
|
/**
|
|
1536
|
-
* The status of the refund
|
|
1586
|
+
* The current processing status of the refund, such as pending, succeeded, or
|
|
1587
|
+
* failed.
|
|
1537
1588
|
*/
|
|
1538
1589
|
status: RefundsAPI.RefundStatus;
|
|
1539
1590
|
}
|
|
1540
1591
|
|
|
1541
1592
|
export namespace Data {
|
|
1542
1593
|
/**
|
|
1543
|
-
* The payment
|
|
1594
|
+
* The original payment that this refund was issued against. Null if the payment is
|
|
1595
|
+
* no longer available.
|
|
1544
1596
|
*/
|
|
1545
1597
|
export interface Payment {
|
|
1546
1598
|
/**
|
|
1547
|
-
* The payment
|
|
1599
|
+
* The unique identifier for the payment.
|
|
1548
1600
|
*/
|
|
1549
1601
|
id: string;
|
|
1550
1602
|
|
|
@@ -1559,12 +1611,13 @@ export namespace RefundUpdatedWebhookEvent {
|
|
|
1559
1611
|
card_brand: PaymentsAPI.CardBrands | null;
|
|
1560
1612
|
|
|
1561
1613
|
/**
|
|
1562
|
-
* The last
|
|
1614
|
+
* The last four digits of the card used to make this payment. Null if the payment
|
|
1615
|
+
* was not made with a card.
|
|
1563
1616
|
*/
|
|
1564
1617
|
card_last4: string | null;
|
|
1565
1618
|
|
|
1566
1619
|
/**
|
|
1567
|
-
* The datetime the payment was created
|
|
1620
|
+
* The datetime the payment was created.
|
|
1568
1621
|
*/
|
|
1569
1622
|
created_at: string;
|
|
1570
1623
|
|
|
@@ -1589,7 +1642,8 @@ export namespace RefundUpdatedWebhookEvent {
|
|
|
1589
1642
|
membership: Payment.Membership | null;
|
|
1590
1643
|
|
|
1591
1644
|
/**
|
|
1592
|
-
* The
|
|
1645
|
+
* The time at which this payment was successfully collected. Null if the payment
|
|
1646
|
+
* has not yet succeeded. As a Unix timestamp.
|
|
1593
1647
|
*/
|
|
1594
1648
|
paid_at: string | null;
|
|
1595
1649
|
|
|
@@ -1625,7 +1679,7 @@ export namespace RefundUpdatedWebhookEvent {
|
|
|
1625
1679
|
*/
|
|
1626
1680
|
export interface Member {
|
|
1627
1681
|
/**
|
|
1628
|
-
* The
|
|
1682
|
+
* The unique identifier for the company member.
|
|
1629
1683
|
*/
|
|
1630
1684
|
id: string;
|
|
1631
1685
|
|
|
@@ -1640,7 +1694,7 @@ export namespace RefundUpdatedWebhookEvent {
|
|
|
1640
1694
|
*/
|
|
1641
1695
|
export interface Membership {
|
|
1642
1696
|
/**
|
|
1643
|
-
* The
|
|
1697
|
+
* The unique identifier for the membership.
|
|
1644
1698
|
*/
|
|
1645
1699
|
id: string;
|
|
1646
1700
|
|
|
@@ -1655,22 +1709,23 @@ export namespace RefundUpdatedWebhookEvent {
|
|
|
1655
1709
|
*/
|
|
1656
1710
|
export interface User {
|
|
1657
1711
|
/**
|
|
1658
|
-
* The
|
|
1712
|
+
* The unique identifier for the user.
|
|
1659
1713
|
*/
|
|
1660
1714
|
id: string;
|
|
1661
1715
|
|
|
1662
1716
|
/**
|
|
1663
|
-
* The email
|
|
1717
|
+
* The user's email address. Requires the member:email:read permission to access.
|
|
1718
|
+
* Null if not authorized.
|
|
1664
1719
|
*/
|
|
1665
1720
|
email: string | null;
|
|
1666
1721
|
|
|
1667
1722
|
/**
|
|
1668
|
-
* The
|
|
1723
|
+
* The user's display name shown on their public profile.
|
|
1669
1724
|
*/
|
|
1670
1725
|
name: string | null;
|
|
1671
1726
|
|
|
1672
1727
|
/**
|
|
1673
|
-
* The
|
|
1728
|
+
* The user's unique username shown on their public profile.
|
|
1674
1729
|
*/
|
|
1675
1730
|
username: string;
|
|
1676
1731
|
}
|
|
@@ -1690,8 +1745,8 @@ export interface MembershipCancelAtPeriodEndChangedWebhookEvent {
|
|
|
1690
1745
|
api_version: 'v1';
|
|
1691
1746
|
|
|
1692
1747
|
/**
|
|
1693
|
-
* A membership represents
|
|
1694
|
-
*
|
|
1748
|
+
* A membership represents an active relationship between a user and a product. It
|
|
1749
|
+
* tracks the user's access, billing status, and renewal schedule.
|
|
1695
1750
|
*/
|
|
1696
1751
|
data: Shared.Membership;
|
|
1697
1752
|
|
|
@@ -1803,7 +1858,7 @@ export interface WebhookUpdateParams {
|
|
|
1803
1858
|
|
|
1804
1859
|
export interface WebhookListParams extends CursorPageParams {
|
|
1805
1860
|
/**
|
|
1806
|
-
* The
|
|
1861
|
+
* The unique identifier of the company to list webhooks for.
|
|
1807
1862
|
*/
|
|
1808
1863
|
company_id: string;
|
|
1809
1864
|
|