@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/webhooks.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare class Webhooks extends APIResource {
|
|
|
27
27
|
*/
|
|
28
28
|
create(body: WebhookCreateParams, options?: RequestOptions): APIPromise<WebhookCreateResponse>;
|
|
29
29
|
/**
|
|
30
|
-
* Retrieves
|
|
30
|
+
* Retrieves the details of an existing webhook.
|
|
31
31
|
*
|
|
32
32
|
* Required permissions:
|
|
33
33
|
*
|
|
@@ -57,7 +57,8 @@ export declare class Webhooks extends APIResource {
|
|
|
57
57
|
*/
|
|
58
58
|
update(id: string, body?: WebhookUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Webhook>;
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* Returns a paginated list of webhook endpoints configured for a company, ordered
|
|
61
|
+
* by most recently created.
|
|
61
62
|
*
|
|
62
63
|
* Required permissions:
|
|
63
64
|
*
|
|
@@ -100,45 +101,46 @@ export type WebhookListResponsesCursorPage = CursorPage<WebhookListResponse>;
|
|
|
100
101
|
*/
|
|
101
102
|
export type APIVersion = 'v1' | 'v2' | 'v5';
|
|
102
103
|
/**
|
|
103
|
-
* A webhook
|
|
104
|
+
* A webhook endpoint that receives event notifications for a company via HTTP
|
|
105
|
+
* POST.
|
|
104
106
|
*/
|
|
105
107
|
export interface Webhook {
|
|
106
108
|
/**
|
|
107
|
-
* The
|
|
109
|
+
* The unique identifier for the webhook.
|
|
108
110
|
*/
|
|
109
111
|
id: string;
|
|
110
112
|
/**
|
|
111
|
-
* The API version
|
|
113
|
+
* The API version used to format payloads sent to this webhook endpoint.
|
|
112
114
|
*/
|
|
113
115
|
api_version: APIVersion;
|
|
114
116
|
/**
|
|
115
|
-
* Whether
|
|
116
|
-
*
|
|
117
|
-
*
|
|
117
|
+
* Whether events are sent for child resources. For example, if the webhook is on a
|
|
118
|
+
* company, enabling this sends events only from the company's sub-merchants (child
|
|
119
|
+
* companies).
|
|
118
120
|
*/
|
|
119
121
|
child_resource_events: boolean;
|
|
120
122
|
/**
|
|
121
|
-
* The
|
|
123
|
+
* The datetime the webhook was created.
|
|
122
124
|
*/
|
|
123
125
|
created_at: string;
|
|
124
126
|
/**
|
|
125
|
-
* Whether
|
|
127
|
+
* Whether this webhook endpoint is currently active and receiving events.
|
|
126
128
|
*/
|
|
127
129
|
enabled: boolean;
|
|
128
130
|
/**
|
|
129
|
-
* The
|
|
131
|
+
* The list of event types this webhook is subscribed to.
|
|
130
132
|
*/
|
|
131
133
|
events: Array<WebhookEvent>;
|
|
132
134
|
/**
|
|
133
|
-
* The resource
|
|
135
|
+
* The ID of the resource (company or product) this webhook is attached to.
|
|
134
136
|
*/
|
|
135
137
|
resource_id: string;
|
|
136
138
|
/**
|
|
137
|
-
* The
|
|
139
|
+
* The subset of subscribed event types that support sending test payloads.
|
|
138
140
|
*/
|
|
139
141
|
testable_events: Array<WebhookEvent>;
|
|
140
142
|
/**
|
|
141
|
-
* The URL
|
|
143
|
+
* The destination URL where webhook payloads are delivered via HTTP POST.
|
|
142
144
|
*/
|
|
143
145
|
url: string;
|
|
144
146
|
}
|
|
@@ -147,84 +149,87 @@ export interface Webhook {
|
|
|
147
149
|
*/
|
|
148
150
|
export type WebhookEvent = 'invoice.created' | 'invoice.paid' | 'invoice.past_due' | 'invoice.voided' | 'membership.activated' | 'membership.deactivated' | 'entry.created' | 'entry.approved' | 'entry.denied' | 'entry.deleted' | 'setup_intent.requires_action' | 'setup_intent.succeeded' | 'setup_intent.canceled' | 'withdrawal.created' | 'withdrawal.updated' | 'course_lesson_interaction.completed' | 'payout_method.created' | 'verification.succeeded' | 'payment.created' | 'payment.succeeded' | 'payment.failed' | 'payment.pending' | 'dispute.created' | 'dispute.updated' | 'refund.created' | 'refund.updated' | 'membership.cancel_at_period_end_changed';
|
|
149
151
|
/**
|
|
150
|
-
* A webhook
|
|
152
|
+
* A webhook endpoint that receives event notifications for a company via HTTP
|
|
153
|
+
* POST.
|
|
151
154
|
*/
|
|
152
155
|
export interface WebhookCreateResponse {
|
|
153
156
|
/**
|
|
154
|
-
* The
|
|
157
|
+
* The unique identifier for the webhook.
|
|
155
158
|
*/
|
|
156
159
|
id: string;
|
|
157
160
|
/**
|
|
158
|
-
* The API version
|
|
161
|
+
* The API version used to format payloads sent to this webhook endpoint.
|
|
159
162
|
*/
|
|
160
163
|
api_version: APIVersion;
|
|
161
164
|
/**
|
|
162
|
-
* Whether
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
+
* Whether events are sent for child resources. For example, if the webhook is on a
|
|
166
|
+
* company, enabling this sends events only from the company's sub-merchants (child
|
|
167
|
+
* companies).
|
|
165
168
|
*/
|
|
166
169
|
child_resource_events: boolean;
|
|
167
170
|
/**
|
|
168
|
-
* The
|
|
171
|
+
* The datetime the webhook was created.
|
|
169
172
|
*/
|
|
170
173
|
created_at: string;
|
|
171
174
|
/**
|
|
172
|
-
* Whether
|
|
175
|
+
* Whether this webhook endpoint is currently active and receiving events.
|
|
173
176
|
*/
|
|
174
177
|
enabled: boolean;
|
|
175
178
|
/**
|
|
176
|
-
* The
|
|
179
|
+
* The list of event types this webhook is subscribed to.
|
|
177
180
|
*/
|
|
178
181
|
events: Array<WebhookEvent>;
|
|
179
182
|
/**
|
|
180
|
-
* The resource
|
|
183
|
+
* The ID of the resource (company or product) this webhook is attached to.
|
|
181
184
|
*/
|
|
182
185
|
resource_id: string;
|
|
183
186
|
/**
|
|
184
|
-
* The
|
|
187
|
+
* The subset of subscribed event types that support sending test payloads.
|
|
185
188
|
*/
|
|
186
189
|
testable_events: Array<WebhookEvent>;
|
|
187
190
|
/**
|
|
188
|
-
* The URL
|
|
191
|
+
* The destination URL where webhook payloads are delivered via HTTP POST.
|
|
189
192
|
*/
|
|
190
193
|
url: string;
|
|
191
194
|
/**
|
|
192
|
-
*
|
|
195
|
+
* The secret key used to sign webhook payloads for verification. Include this in
|
|
196
|
+
* your HMAC validation logic.
|
|
193
197
|
*/
|
|
194
198
|
webhook_secret: string;
|
|
195
199
|
}
|
|
196
200
|
/**
|
|
197
|
-
* A webhook
|
|
201
|
+
* A webhook endpoint that receives event notifications for a company via HTTP
|
|
202
|
+
* POST.
|
|
198
203
|
*/
|
|
199
204
|
export interface WebhookListResponse {
|
|
200
205
|
/**
|
|
201
|
-
* The
|
|
206
|
+
* The unique identifier for the webhook.
|
|
202
207
|
*/
|
|
203
208
|
id: string;
|
|
204
209
|
/**
|
|
205
|
-
* The API version
|
|
210
|
+
* The API version used to format payloads sent to this webhook endpoint.
|
|
206
211
|
*/
|
|
207
212
|
api_version: APIVersion;
|
|
208
213
|
/**
|
|
209
|
-
* Whether
|
|
210
|
-
*
|
|
211
|
-
*
|
|
214
|
+
* Whether events are sent for child resources. For example, if the webhook is on a
|
|
215
|
+
* company, enabling this sends events only from the company's sub-merchants (child
|
|
216
|
+
* companies).
|
|
212
217
|
*/
|
|
213
218
|
child_resource_events: boolean;
|
|
214
219
|
/**
|
|
215
|
-
* The
|
|
220
|
+
* The datetime the webhook was created.
|
|
216
221
|
*/
|
|
217
222
|
created_at: string;
|
|
218
223
|
/**
|
|
219
|
-
* Whether
|
|
224
|
+
* Whether this webhook endpoint is currently active and receiving events.
|
|
220
225
|
*/
|
|
221
226
|
enabled: boolean;
|
|
222
227
|
/**
|
|
223
|
-
* The
|
|
228
|
+
* The list of event types this webhook is subscribed to.
|
|
224
229
|
*/
|
|
225
230
|
events: Array<WebhookEvent>;
|
|
226
231
|
/**
|
|
227
|
-
* The URL
|
|
232
|
+
* The destination URL where webhook payloads are delivered via HTTP POST.
|
|
228
233
|
*/
|
|
229
234
|
url: string;
|
|
230
235
|
}
|
|
@@ -242,7 +247,9 @@ export interface InvoiceCreatedWebhookEvent {
|
|
|
242
247
|
*/
|
|
243
248
|
api_version: 'v1';
|
|
244
249
|
/**
|
|
245
|
-
*
|
|
250
|
+
* An invoice represents an itemized bill sent by a company to a customer for a
|
|
251
|
+
* specific product and plan, tracking the amount owed, due date, and payment
|
|
252
|
+
* status.
|
|
246
253
|
*/
|
|
247
254
|
data: Shared.Invoice;
|
|
248
255
|
/**
|
|
@@ -268,7 +275,9 @@ export interface InvoicePaidWebhookEvent {
|
|
|
268
275
|
*/
|
|
269
276
|
api_version: 'v1';
|
|
270
277
|
/**
|
|
271
|
-
*
|
|
278
|
+
* An invoice represents an itemized bill sent by a company to a customer for a
|
|
279
|
+
* specific product and plan, tracking the amount owed, due date, and payment
|
|
280
|
+
* status.
|
|
272
281
|
*/
|
|
273
282
|
data: Shared.Invoice;
|
|
274
283
|
/**
|
|
@@ -294,7 +303,9 @@ export interface InvoicePastDueWebhookEvent {
|
|
|
294
303
|
*/
|
|
295
304
|
api_version: 'v1';
|
|
296
305
|
/**
|
|
297
|
-
*
|
|
306
|
+
* An invoice represents an itemized bill sent by a company to a customer for a
|
|
307
|
+
* specific product and plan, tracking the amount owed, due date, and payment
|
|
308
|
+
* status.
|
|
298
309
|
*/
|
|
299
310
|
data: Shared.Invoice;
|
|
300
311
|
/**
|
|
@@ -320,7 +331,9 @@ export interface InvoiceVoidedWebhookEvent {
|
|
|
320
331
|
*/
|
|
321
332
|
api_version: 'v1';
|
|
322
333
|
/**
|
|
323
|
-
*
|
|
334
|
+
* An invoice represents an itemized bill sent by a company to a customer for a
|
|
335
|
+
* specific product and plan, tracking the amount owed, due date, and payment
|
|
336
|
+
* status.
|
|
324
337
|
*/
|
|
325
338
|
data: Shared.Invoice;
|
|
326
339
|
/**
|
|
@@ -346,8 +359,8 @@ export interface MembershipActivatedWebhookEvent {
|
|
|
346
359
|
*/
|
|
347
360
|
api_version: 'v1';
|
|
348
361
|
/**
|
|
349
|
-
* A membership represents
|
|
350
|
-
*
|
|
362
|
+
* A membership represents an active relationship between a user and a product. It
|
|
363
|
+
* tracks the user's access, billing status, and renewal schedule.
|
|
351
364
|
*/
|
|
352
365
|
data: Shared.Membership;
|
|
353
366
|
/**
|
|
@@ -373,8 +386,8 @@ export interface MembershipDeactivatedWebhookEvent {
|
|
|
373
386
|
*/
|
|
374
387
|
api_version: 'v1';
|
|
375
388
|
/**
|
|
376
|
-
* A membership represents
|
|
377
|
-
*
|
|
389
|
+
* A membership represents an active relationship between a user and a product. It
|
|
390
|
+
* tracks the user's access, billing status, and renewal schedule.
|
|
378
391
|
*/
|
|
379
392
|
data: Shared.Membership;
|
|
380
393
|
/**
|
|
@@ -400,7 +413,7 @@ export interface EntryCreatedWebhookEvent {
|
|
|
400
413
|
*/
|
|
401
414
|
api_version: 'v1';
|
|
402
415
|
/**
|
|
403
|
-
* An
|
|
416
|
+
* An entry represents a user's signup for a waitlisted plan.
|
|
404
417
|
*/
|
|
405
418
|
data: Shared.Entry;
|
|
406
419
|
/**
|
|
@@ -426,7 +439,7 @@ export interface EntryApprovedWebhookEvent {
|
|
|
426
439
|
*/
|
|
427
440
|
api_version: 'v1';
|
|
428
441
|
/**
|
|
429
|
-
* An
|
|
442
|
+
* An entry represents a user's signup for a waitlisted plan.
|
|
430
443
|
*/
|
|
431
444
|
data: Shared.Entry;
|
|
432
445
|
/**
|
|
@@ -452,7 +465,7 @@ export interface EntryDeniedWebhookEvent {
|
|
|
452
465
|
*/
|
|
453
466
|
api_version: 'v1';
|
|
454
467
|
/**
|
|
455
|
-
* An
|
|
468
|
+
* An entry represents a user's signup for a waitlisted plan.
|
|
456
469
|
*/
|
|
457
470
|
data: Shared.Entry;
|
|
458
471
|
/**
|
|
@@ -478,7 +491,7 @@ export interface EntryDeletedWebhookEvent {
|
|
|
478
491
|
*/
|
|
479
492
|
api_version: 'v1';
|
|
480
493
|
/**
|
|
481
|
-
* An
|
|
494
|
+
* An entry represents a user's signup for a waitlisted plan.
|
|
482
495
|
*/
|
|
483
496
|
data: Shared.Entry;
|
|
484
497
|
/**
|
|
@@ -504,8 +517,8 @@ export interface SetupIntentRequiresActionWebhookEvent {
|
|
|
504
517
|
*/
|
|
505
518
|
api_version: 'v1';
|
|
506
519
|
/**
|
|
507
|
-
*
|
|
508
|
-
*
|
|
520
|
+
* A setup intent allows a user to save a payment method for future use without
|
|
521
|
+
* making an immediate purchase.
|
|
509
522
|
*/
|
|
510
523
|
data: SetupIntentsAPI.SetupIntent;
|
|
511
524
|
/**
|
|
@@ -531,8 +544,8 @@ export interface SetupIntentSucceededWebhookEvent {
|
|
|
531
544
|
*/
|
|
532
545
|
api_version: 'v1';
|
|
533
546
|
/**
|
|
534
|
-
*
|
|
535
|
-
*
|
|
547
|
+
* A setup intent allows a user to save a payment method for future use without
|
|
548
|
+
* making an immediate purchase.
|
|
536
549
|
*/
|
|
537
550
|
data: SetupIntentsAPI.SetupIntent;
|
|
538
551
|
/**
|
|
@@ -558,8 +571,8 @@ export interface SetupIntentCanceledWebhookEvent {
|
|
|
558
571
|
*/
|
|
559
572
|
api_version: 'v1';
|
|
560
573
|
/**
|
|
561
|
-
*
|
|
562
|
-
*
|
|
574
|
+
* A setup intent allows a user to save a payment method for future use without
|
|
575
|
+
* making an immediate purchase.
|
|
563
576
|
*/
|
|
564
577
|
data: SetupIntentsAPI.SetupIntent;
|
|
565
578
|
/**
|
|
@@ -585,7 +598,8 @@ export interface WithdrawalCreatedWebhookEvent {
|
|
|
585
598
|
*/
|
|
586
599
|
api_version: 'v1';
|
|
587
600
|
/**
|
|
588
|
-
* A withdrawal request
|
|
601
|
+
* A withdrawal represents a request to transfer funds from a ledger account to an
|
|
602
|
+
* external payout method.
|
|
589
603
|
*/
|
|
590
604
|
data: WithdrawalsAPI.Withdrawal;
|
|
591
605
|
/**
|
|
@@ -611,7 +625,8 @@ export interface WithdrawalUpdatedWebhookEvent {
|
|
|
611
625
|
*/
|
|
612
626
|
api_version: 'v1';
|
|
613
627
|
/**
|
|
614
|
-
* A withdrawal request
|
|
628
|
+
* A withdrawal represents a request to transfer funds from a ledger account to an
|
|
629
|
+
* external payout method.
|
|
615
630
|
*/
|
|
616
631
|
data: WithdrawalsAPI.Withdrawal;
|
|
617
632
|
/**
|
|
@@ -637,7 +652,8 @@ export interface CourseLessonInteractionCompletedWebhookEvent {
|
|
|
637
652
|
*/
|
|
638
653
|
api_version: 'v1';
|
|
639
654
|
/**
|
|
640
|
-
* A
|
|
655
|
+
* A record of a user's progress on a specific lesson, tracking whether they have
|
|
656
|
+
* completed it.
|
|
641
657
|
*/
|
|
642
658
|
data: Shared.CourseLessonInteraction;
|
|
643
659
|
/**
|
|
@@ -663,7 +679,8 @@ export interface PayoutMethodCreatedWebhookEvent {
|
|
|
663
679
|
*/
|
|
664
680
|
api_version: 'v1';
|
|
665
681
|
/**
|
|
666
|
-
*
|
|
682
|
+
* A configured payout destination where a user receives earned funds, such as a
|
|
683
|
+
* bank account or digital wallet.
|
|
667
684
|
*/
|
|
668
685
|
data: PayoutMethodCreatedWebhookEvent.Data;
|
|
669
686
|
/**
|
|
@@ -681,61 +698,68 @@ export interface PayoutMethodCreatedWebhookEvent {
|
|
|
681
698
|
}
|
|
682
699
|
export declare namespace PayoutMethodCreatedWebhookEvent {
|
|
683
700
|
/**
|
|
684
|
-
*
|
|
701
|
+
* A configured payout destination where a user receives earned funds, such as a
|
|
702
|
+
* bank account or digital wallet.
|
|
685
703
|
*/
|
|
686
704
|
interface Data {
|
|
687
705
|
/**
|
|
688
|
-
* The
|
|
706
|
+
* The unique identifier for the payout token.
|
|
689
707
|
*/
|
|
690
708
|
id: string;
|
|
691
709
|
/**
|
|
692
|
-
* A
|
|
693
|
-
* account
|
|
710
|
+
* A masked identifier for the payout destination, such as the last four digits of
|
|
711
|
+
* a bank account or an email address. Null if no reference is available.
|
|
694
712
|
*/
|
|
695
713
|
account_reference: string | null;
|
|
696
714
|
/**
|
|
697
|
-
* The company associated with
|
|
715
|
+
* The company associated with this payout destination. Null if not linked to a
|
|
716
|
+
* specific company.
|
|
698
717
|
*/
|
|
699
718
|
company: Data.Company | null;
|
|
700
719
|
/**
|
|
701
|
-
* The
|
|
720
|
+
* The datetime the payout token was created.
|
|
702
721
|
*/
|
|
703
722
|
created_at: string;
|
|
704
723
|
/**
|
|
705
|
-
* The currency code
|
|
706
|
-
*
|
|
724
|
+
* The three-letter ISO currency code that payouts are delivered in for this
|
|
725
|
+
* destination.
|
|
707
726
|
*/
|
|
708
727
|
currency: string;
|
|
709
728
|
/**
|
|
710
|
-
* The payout destination
|
|
729
|
+
* The payout destination configuration linked to this token. Null if not yet
|
|
730
|
+
* configured.
|
|
711
731
|
*/
|
|
712
732
|
destination: Data.Destination | null;
|
|
713
733
|
/**
|
|
714
|
-
* The name of the bank or financial institution.
|
|
734
|
+
* The name of the bank or financial institution receiving payouts. Null if not
|
|
735
|
+
* applicable or not provided.
|
|
715
736
|
*/
|
|
716
737
|
institution_name: string | null;
|
|
717
738
|
/**
|
|
718
|
-
* Whether this
|
|
739
|
+
* Whether this is the default payout destination for the associated payout
|
|
740
|
+
* account.
|
|
719
741
|
*/
|
|
720
742
|
is_default: boolean;
|
|
721
743
|
/**
|
|
722
|
-
*
|
|
723
|
-
*
|
|
744
|
+
* A user-defined label to help identify this payout destination. Not sent to the
|
|
745
|
+
* provider. Null if no nickname has been set.
|
|
724
746
|
*/
|
|
725
747
|
nickname: string | null;
|
|
726
748
|
}
|
|
727
749
|
namespace Data {
|
|
728
750
|
/**
|
|
729
|
-
* The company associated with
|
|
751
|
+
* The company associated with this payout destination. Null if not linked to a
|
|
752
|
+
* specific company.
|
|
730
753
|
*/
|
|
731
754
|
interface Company {
|
|
732
755
|
/**
|
|
733
|
-
* The
|
|
756
|
+
* The unique identifier for the company.
|
|
734
757
|
*/
|
|
735
758
|
id: string;
|
|
736
759
|
}
|
|
737
760
|
/**
|
|
738
|
-
* The payout destination
|
|
761
|
+
* The payout destination configuration linked to this token. Null if not yet
|
|
762
|
+
* configured.
|
|
739
763
|
*/
|
|
740
764
|
interface Destination {
|
|
741
765
|
/**
|
|
@@ -763,7 +787,8 @@ export interface VerificationSucceededWebhookEvent {
|
|
|
763
787
|
*/
|
|
764
788
|
api_version: 'v1';
|
|
765
789
|
/**
|
|
766
|
-
* An
|
|
790
|
+
* An identity verification session used to confirm a person or entity's identity
|
|
791
|
+
* for payout account eligibility.
|
|
767
792
|
*/
|
|
768
793
|
data: VerificationSucceededWebhookEvent.Data;
|
|
769
794
|
/**
|
|
@@ -781,11 +806,12 @@ export interface VerificationSucceededWebhookEvent {
|
|
|
781
806
|
}
|
|
782
807
|
export declare namespace VerificationSucceededWebhookEvent {
|
|
783
808
|
/**
|
|
784
|
-
* An
|
|
809
|
+
* An identity verification session used to confirm a person or entity's identity
|
|
810
|
+
* for payout account eligibility.
|
|
785
811
|
*/
|
|
786
812
|
interface Data {
|
|
787
813
|
/**
|
|
788
|
-
*
|
|
814
|
+
* The unique identifier for the verification.
|
|
789
815
|
*/
|
|
790
816
|
id: string;
|
|
791
817
|
/**
|
|
@@ -793,11 +819,12 @@ export declare namespace VerificationSucceededWebhookEvent {
|
|
|
793
819
|
*/
|
|
794
820
|
last_error_code: VerificationsAPI.VerificationErrorCode | null;
|
|
795
821
|
/**
|
|
796
|
-
*
|
|
822
|
+
* A human-readable explanation of the most recent verification error. Null if no
|
|
823
|
+
* error has occurred.
|
|
797
824
|
*/
|
|
798
825
|
last_error_reason: string | null;
|
|
799
826
|
/**
|
|
800
|
-
* The status of
|
|
827
|
+
* The current status of this verification session.
|
|
801
828
|
*/
|
|
802
829
|
status: VerificationsAPI.VerificationStatus;
|
|
803
830
|
}
|
|
@@ -812,7 +839,8 @@ export interface PaymentCreatedWebhookEvent {
|
|
|
812
839
|
*/
|
|
813
840
|
api_version: 'v1';
|
|
814
841
|
/**
|
|
815
|
-
*
|
|
842
|
+
* A payment represents a completed or attempted charge. Payments track the amount,
|
|
843
|
+
* status, currency, and payment method used.
|
|
816
844
|
*/
|
|
817
845
|
data: Shared.Payment;
|
|
818
846
|
/**
|
|
@@ -838,7 +866,8 @@ export interface PaymentSucceededWebhookEvent {
|
|
|
838
866
|
*/
|
|
839
867
|
api_version: 'v1';
|
|
840
868
|
/**
|
|
841
|
-
*
|
|
869
|
+
* A payment represents a completed or attempted charge. Payments track the amount,
|
|
870
|
+
* status, currency, and payment method used.
|
|
842
871
|
*/
|
|
843
872
|
data: Shared.Payment;
|
|
844
873
|
/**
|
|
@@ -864,7 +893,8 @@ export interface PaymentFailedWebhookEvent {
|
|
|
864
893
|
*/
|
|
865
894
|
api_version: 'v1';
|
|
866
895
|
/**
|
|
867
|
-
*
|
|
896
|
+
* A payment represents a completed or attempted charge. Payments track the amount,
|
|
897
|
+
* status, currency, and payment method used.
|
|
868
898
|
*/
|
|
869
899
|
data: Shared.Payment;
|
|
870
900
|
/**
|
|
@@ -890,7 +920,8 @@ export interface PaymentPendingWebhookEvent {
|
|
|
890
920
|
*/
|
|
891
921
|
api_version: 'v1';
|
|
892
922
|
/**
|
|
893
|
-
*
|
|
923
|
+
* A payment represents a completed or attempted charge. Payments track the amount,
|
|
924
|
+
* status, currency, and payment method used.
|
|
894
925
|
*/
|
|
895
926
|
data: Shared.Payment;
|
|
896
927
|
/**
|
|
@@ -916,7 +947,8 @@ export interface DisputeCreatedWebhookEvent {
|
|
|
916
947
|
*/
|
|
917
948
|
api_version: 'v1';
|
|
918
949
|
/**
|
|
919
|
-
*
|
|
950
|
+
* A dispute is a chargeback or payment challenge filed against a company,
|
|
951
|
+
* including evidence and response status.
|
|
920
952
|
*/
|
|
921
953
|
data: DisputesAPI.Dispute;
|
|
922
954
|
/**
|
|
@@ -942,7 +974,8 @@ export interface DisputeUpdatedWebhookEvent {
|
|
|
942
974
|
*/
|
|
943
975
|
api_version: 'v1';
|
|
944
976
|
/**
|
|
945
|
-
*
|
|
977
|
+
* A dispute is a chargeback or payment challenge filed against a company,
|
|
978
|
+
* including evidence and response status.
|
|
946
979
|
*/
|
|
947
980
|
data: DisputesAPI.Dispute;
|
|
948
981
|
/**
|
|
@@ -968,7 +1001,8 @@ export interface RefundCreatedWebhookEvent {
|
|
|
968
1001
|
*/
|
|
969
1002
|
api_version: 'v1';
|
|
970
1003
|
/**
|
|
971
|
-
*
|
|
1004
|
+
* A refund represents a full or partial reversal of a payment, including the
|
|
1005
|
+
* amount, status, and payment provider.
|
|
972
1006
|
*/
|
|
973
1007
|
data: RefundCreatedWebhookEvent.Data;
|
|
974
1008
|
/**
|
|
@@ -986,35 +1020,39 @@ export interface RefundCreatedWebhookEvent {
|
|
|
986
1020
|
}
|
|
987
1021
|
export declare namespace RefundCreatedWebhookEvent {
|
|
988
1022
|
/**
|
|
989
|
-
*
|
|
1023
|
+
* A refund represents a full or partial reversal of a payment, including the
|
|
1024
|
+
* amount, status, and payment provider.
|
|
990
1025
|
*/
|
|
991
1026
|
interface Data {
|
|
992
1027
|
/**
|
|
993
|
-
* The
|
|
1028
|
+
* The unique identifier for the refund.
|
|
994
1029
|
*/
|
|
995
1030
|
id: string;
|
|
996
1031
|
/**
|
|
997
|
-
* The amount
|
|
1032
|
+
* The refunded amount as a decimal in the specified currency, such as 10.43 for
|
|
1033
|
+
* $10.43 USD.
|
|
998
1034
|
*/
|
|
999
1035
|
amount: number;
|
|
1000
1036
|
/**
|
|
1001
|
-
* The
|
|
1037
|
+
* The datetime the refund was created.
|
|
1002
1038
|
*/
|
|
1003
1039
|
created_at: string;
|
|
1004
1040
|
/**
|
|
1005
|
-
* The currency
|
|
1041
|
+
* The three-letter ISO currency code for the refunded amount.
|
|
1006
1042
|
*/
|
|
1007
1043
|
currency: Shared.Currency;
|
|
1008
1044
|
/**
|
|
1009
|
-
* The payment
|
|
1045
|
+
* The original payment that this refund was issued against. Null if the payment is
|
|
1046
|
+
* no longer available.
|
|
1010
1047
|
*/
|
|
1011
1048
|
payment: Data.Payment | null;
|
|
1012
1049
|
/**
|
|
1013
|
-
* The provider
|
|
1050
|
+
* The payment provider that processed the refund.
|
|
1014
1051
|
*/
|
|
1015
1052
|
provider: RefundsAPI.PaymentProvider;
|
|
1016
1053
|
/**
|
|
1017
|
-
* The
|
|
1054
|
+
* The timestamp when the refund was created in the payment provider's system. Null
|
|
1055
|
+
* if not available from the provider.
|
|
1018
1056
|
*/
|
|
1019
1057
|
provider_created_at: string | null;
|
|
1020
1058
|
/**
|
|
@@ -1026,21 +1064,24 @@ export declare namespace RefundCreatedWebhookEvent {
|
|
|
1026
1064
|
*/
|
|
1027
1065
|
reference_type: RefundsAPI.RefundReferenceType | null;
|
|
1028
1066
|
/**
|
|
1029
|
-
* The value
|
|
1067
|
+
* The tracking reference value from the payment processor, used to trace the
|
|
1068
|
+
* refund through banking networks. Null if no reference was provided.
|
|
1030
1069
|
*/
|
|
1031
1070
|
reference_value: string | null;
|
|
1032
1071
|
/**
|
|
1033
|
-
* The status of the refund
|
|
1072
|
+
* The current processing status of the refund, such as pending, succeeded, or
|
|
1073
|
+
* failed.
|
|
1034
1074
|
*/
|
|
1035
1075
|
status: RefundsAPI.RefundStatus;
|
|
1036
1076
|
}
|
|
1037
1077
|
namespace Data {
|
|
1038
1078
|
/**
|
|
1039
|
-
* The payment
|
|
1079
|
+
* The original payment that this refund was issued against. Null if the payment is
|
|
1080
|
+
* no longer available.
|
|
1040
1081
|
*/
|
|
1041
1082
|
interface Payment {
|
|
1042
1083
|
/**
|
|
1043
|
-
* The payment
|
|
1084
|
+
* The unique identifier for the payment.
|
|
1044
1085
|
*/
|
|
1045
1086
|
id: string;
|
|
1046
1087
|
/**
|
|
@@ -1052,11 +1093,12 @@ export declare namespace RefundCreatedWebhookEvent {
|
|
|
1052
1093
|
*/
|
|
1053
1094
|
card_brand: PaymentsAPI.CardBrands | null;
|
|
1054
1095
|
/**
|
|
1055
|
-
* The last
|
|
1096
|
+
* The last four digits of the card used to make this payment. Null if the payment
|
|
1097
|
+
* was not made with a card.
|
|
1056
1098
|
*/
|
|
1057
1099
|
card_last4: string | null;
|
|
1058
1100
|
/**
|
|
1059
|
-
* The datetime the payment was created
|
|
1101
|
+
* The datetime the payment was created.
|
|
1060
1102
|
*/
|
|
1061
1103
|
created_at: string;
|
|
1062
1104
|
/**
|
|
@@ -1076,7 +1118,8 @@ export declare namespace RefundCreatedWebhookEvent {
|
|
|
1076
1118
|
*/
|
|
1077
1119
|
membership: Payment.Membership | null;
|
|
1078
1120
|
/**
|
|
1079
|
-
* The
|
|
1121
|
+
* The time at which this payment was successfully collected. Null if the payment
|
|
1122
|
+
* has not yet succeeded. As a Unix timestamp.
|
|
1080
1123
|
*/
|
|
1081
1124
|
paid_at: string | null;
|
|
1082
1125
|
/**
|
|
@@ -1106,7 +1149,7 @@ export declare namespace RefundCreatedWebhookEvent {
|
|
|
1106
1149
|
*/
|
|
1107
1150
|
interface Member {
|
|
1108
1151
|
/**
|
|
1109
|
-
* The
|
|
1152
|
+
* The unique identifier for the company member.
|
|
1110
1153
|
*/
|
|
1111
1154
|
id: string;
|
|
1112
1155
|
/**
|
|
@@ -1119,7 +1162,7 @@ export declare namespace RefundCreatedWebhookEvent {
|
|
|
1119
1162
|
*/
|
|
1120
1163
|
interface Membership {
|
|
1121
1164
|
/**
|
|
1122
|
-
* The
|
|
1165
|
+
* The unique identifier for the membership.
|
|
1123
1166
|
*/
|
|
1124
1167
|
id: string;
|
|
1125
1168
|
/**
|
|
@@ -1132,19 +1175,20 @@ export declare namespace RefundCreatedWebhookEvent {
|
|
|
1132
1175
|
*/
|
|
1133
1176
|
interface User {
|
|
1134
1177
|
/**
|
|
1135
|
-
* The
|
|
1178
|
+
* The unique identifier for the user.
|
|
1136
1179
|
*/
|
|
1137
1180
|
id: string;
|
|
1138
1181
|
/**
|
|
1139
|
-
* The email
|
|
1182
|
+
* The user's email address. Requires the member:email:read permission to access.
|
|
1183
|
+
* Null if not authorized.
|
|
1140
1184
|
*/
|
|
1141
1185
|
email: string | null;
|
|
1142
1186
|
/**
|
|
1143
|
-
* The
|
|
1187
|
+
* The user's display name shown on their public profile.
|
|
1144
1188
|
*/
|
|
1145
1189
|
name: string | null;
|
|
1146
1190
|
/**
|
|
1147
|
-
* The
|
|
1191
|
+
* The user's unique username shown on their public profile.
|
|
1148
1192
|
*/
|
|
1149
1193
|
username: string;
|
|
1150
1194
|
}
|
|
@@ -1161,7 +1205,8 @@ export interface RefundUpdatedWebhookEvent {
|
|
|
1161
1205
|
*/
|
|
1162
1206
|
api_version: 'v1';
|
|
1163
1207
|
/**
|
|
1164
|
-
*
|
|
1208
|
+
* A refund represents a full or partial reversal of a payment, including the
|
|
1209
|
+
* amount, status, and payment provider.
|
|
1165
1210
|
*/
|
|
1166
1211
|
data: RefundUpdatedWebhookEvent.Data;
|
|
1167
1212
|
/**
|
|
@@ -1179,35 +1224,39 @@ export interface RefundUpdatedWebhookEvent {
|
|
|
1179
1224
|
}
|
|
1180
1225
|
export declare namespace RefundUpdatedWebhookEvent {
|
|
1181
1226
|
/**
|
|
1182
|
-
*
|
|
1227
|
+
* A refund represents a full or partial reversal of a payment, including the
|
|
1228
|
+
* amount, status, and payment provider.
|
|
1183
1229
|
*/
|
|
1184
1230
|
interface Data {
|
|
1185
1231
|
/**
|
|
1186
|
-
* The
|
|
1232
|
+
* The unique identifier for the refund.
|
|
1187
1233
|
*/
|
|
1188
1234
|
id: string;
|
|
1189
1235
|
/**
|
|
1190
|
-
* The amount
|
|
1236
|
+
* The refunded amount as a decimal in the specified currency, such as 10.43 for
|
|
1237
|
+
* $10.43 USD.
|
|
1191
1238
|
*/
|
|
1192
1239
|
amount: number;
|
|
1193
1240
|
/**
|
|
1194
|
-
* The
|
|
1241
|
+
* The datetime the refund was created.
|
|
1195
1242
|
*/
|
|
1196
1243
|
created_at: string;
|
|
1197
1244
|
/**
|
|
1198
|
-
* The currency
|
|
1245
|
+
* The three-letter ISO currency code for the refunded amount.
|
|
1199
1246
|
*/
|
|
1200
1247
|
currency: Shared.Currency;
|
|
1201
1248
|
/**
|
|
1202
|
-
* The payment
|
|
1249
|
+
* The original payment that this refund was issued against. Null if the payment is
|
|
1250
|
+
* no longer available.
|
|
1203
1251
|
*/
|
|
1204
1252
|
payment: Data.Payment | null;
|
|
1205
1253
|
/**
|
|
1206
|
-
* The provider
|
|
1254
|
+
* The payment provider that processed the refund.
|
|
1207
1255
|
*/
|
|
1208
1256
|
provider: RefundsAPI.PaymentProvider;
|
|
1209
1257
|
/**
|
|
1210
|
-
* The
|
|
1258
|
+
* The timestamp when the refund was created in the payment provider's system. Null
|
|
1259
|
+
* if not available from the provider.
|
|
1211
1260
|
*/
|
|
1212
1261
|
provider_created_at: string | null;
|
|
1213
1262
|
/**
|
|
@@ -1219,21 +1268,24 @@ export declare namespace RefundUpdatedWebhookEvent {
|
|
|
1219
1268
|
*/
|
|
1220
1269
|
reference_type: RefundsAPI.RefundReferenceType | null;
|
|
1221
1270
|
/**
|
|
1222
|
-
* The value
|
|
1271
|
+
* The tracking reference value from the payment processor, used to trace the
|
|
1272
|
+
* refund through banking networks. Null if no reference was provided.
|
|
1223
1273
|
*/
|
|
1224
1274
|
reference_value: string | null;
|
|
1225
1275
|
/**
|
|
1226
|
-
* The status of the refund
|
|
1276
|
+
* The current processing status of the refund, such as pending, succeeded, or
|
|
1277
|
+
* failed.
|
|
1227
1278
|
*/
|
|
1228
1279
|
status: RefundsAPI.RefundStatus;
|
|
1229
1280
|
}
|
|
1230
1281
|
namespace Data {
|
|
1231
1282
|
/**
|
|
1232
|
-
* The payment
|
|
1283
|
+
* The original payment that this refund was issued against. Null if the payment is
|
|
1284
|
+
* no longer available.
|
|
1233
1285
|
*/
|
|
1234
1286
|
interface Payment {
|
|
1235
1287
|
/**
|
|
1236
|
-
* The payment
|
|
1288
|
+
* The unique identifier for the payment.
|
|
1237
1289
|
*/
|
|
1238
1290
|
id: string;
|
|
1239
1291
|
/**
|
|
@@ -1245,11 +1297,12 @@ export declare namespace RefundUpdatedWebhookEvent {
|
|
|
1245
1297
|
*/
|
|
1246
1298
|
card_brand: PaymentsAPI.CardBrands | null;
|
|
1247
1299
|
/**
|
|
1248
|
-
* The last
|
|
1300
|
+
* The last four digits of the card used to make this payment. Null if the payment
|
|
1301
|
+
* was not made with a card.
|
|
1249
1302
|
*/
|
|
1250
1303
|
card_last4: string | null;
|
|
1251
1304
|
/**
|
|
1252
|
-
* The datetime the payment was created
|
|
1305
|
+
* The datetime the payment was created.
|
|
1253
1306
|
*/
|
|
1254
1307
|
created_at: string;
|
|
1255
1308
|
/**
|
|
@@ -1269,7 +1322,8 @@ export declare namespace RefundUpdatedWebhookEvent {
|
|
|
1269
1322
|
*/
|
|
1270
1323
|
membership: Payment.Membership | null;
|
|
1271
1324
|
/**
|
|
1272
|
-
* The
|
|
1325
|
+
* The time at which this payment was successfully collected. Null if the payment
|
|
1326
|
+
* has not yet succeeded. As a Unix timestamp.
|
|
1273
1327
|
*/
|
|
1274
1328
|
paid_at: string | null;
|
|
1275
1329
|
/**
|
|
@@ -1299,7 +1353,7 @@ export declare namespace RefundUpdatedWebhookEvent {
|
|
|
1299
1353
|
*/
|
|
1300
1354
|
interface Member {
|
|
1301
1355
|
/**
|
|
1302
|
-
* The
|
|
1356
|
+
* The unique identifier for the company member.
|
|
1303
1357
|
*/
|
|
1304
1358
|
id: string;
|
|
1305
1359
|
/**
|
|
@@ -1312,7 +1366,7 @@ export declare namespace RefundUpdatedWebhookEvent {
|
|
|
1312
1366
|
*/
|
|
1313
1367
|
interface Membership {
|
|
1314
1368
|
/**
|
|
1315
|
-
* The
|
|
1369
|
+
* The unique identifier for the membership.
|
|
1316
1370
|
*/
|
|
1317
1371
|
id: string;
|
|
1318
1372
|
/**
|
|
@@ -1325,19 +1379,20 @@ export declare namespace RefundUpdatedWebhookEvent {
|
|
|
1325
1379
|
*/
|
|
1326
1380
|
interface User {
|
|
1327
1381
|
/**
|
|
1328
|
-
* The
|
|
1382
|
+
* The unique identifier for the user.
|
|
1329
1383
|
*/
|
|
1330
1384
|
id: string;
|
|
1331
1385
|
/**
|
|
1332
|
-
* The email
|
|
1386
|
+
* The user's email address. Requires the member:email:read permission to access.
|
|
1387
|
+
* Null if not authorized.
|
|
1333
1388
|
*/
|
|
1334
1389
|
email: string | null;
|
|
1335
1390
|
/**
|
|
1336
|
-
* The
|
|
1391
|
+
* The user's display name shown on their public profile.
|
|
1337
1392
|
*/
|
|
1338
1393
|
name: string | null;
|
|
1339
1394
|
/**
|
|
1340
|
-
* The
|
|
1395
|
+
* The user's unique username shown on their public profile.
|
|
1341
1396
|
*/
|
|
1342
1397
|
username: string;
|
|
1343
1398
|
}
|
|
@@ -1354,8 +1409,8 @@ export interface MembershipCancelAtPeriodEndChangedWebhookEvent {
|
|
|
1354
1409
|
*/
|
|
1355
1410
|
api_version: 'v1';
|
|
1356
1411
|
/**
|
|
1357
|
-
* A membership represents
|
|
1358
|
-
*
|
|
1412
|
+
* A membership represents an active relationship between a user and a product. It
|
|
1413
|
+
* tracks the user's access, billing status, and renewal schedule.
|
|
1359
1414
|
*/
|
|
1360
1415
|
data: Shared.Membership;
|
|
1361
1416
|
/**
|
|
@@ -1424,7 +1479,7 @@ export interface WebhookUpdateParams {
|
|
|
1424
1479
|
}
|
|
1425
1480
|
export interface WebhookListParams extends CursorPageParams {
|
|
1426
1481
|
/**
|
|
1427
|
-
* The
|
|
1482
|
+
* The unique identifier of the company to list webhooks for.
|
|
1428
1483
|
*/
|
|
1429
1484
|
company_id: string;
|
|
1430
1485
|
/**
|