@whop/sdk 0.0.27 → 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 +41 -0
- package/client.d.mts +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- package/client.d.ts.map +1 -1
- package/client.js +7 -0
- package/client.js.map +1 -1
- package/client.mjs +7 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/access-tokens.d.mts +19 -20
- package/resources/access-tokens.d.mts.map +1 -1
- package/resources/access-tokens.d.ts +19 -20
- package/resources/access-tokens.d.ts.map +1 -1
- package/resources/access-tokens.js +4 -4
- package/resources/access-tokens.mjs +4 -4
- 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 +38 -26
- package/resources/ai-chats.d.mts.map +1 -1
- package/resources/ai-chats.d.ts +38 -26
- package/resources/ai-chats.d.ts.map +1 -1
- package/resources/ai-chats.js +5 -5
- package/resources/ai-chats.mjs +5 -5
- package/resources/app-builds.d.mts +35 -33
- package/resources/app-builds.d.mts.map +1 -1
- package/resources/app-builds.d.ts +35 -33
- 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 +81 -56
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +81 -56
- 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 +32 -26
- package/resources/authorized-users.d.mts.map +1 -1
- package/resources/authorized-users.d.ts +32 -26
- 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 +27 -19
- package/resources/chat-channels.d.mts.map +1 -1
- package/resources/chat-channels.d.ts +27 -19
- 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 +55 -46
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +55 -46
- 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 +65 -46
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +65 -46
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js +7 -8
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs +7 -8
- package/resources/companies.mjs.map +1 -1
- package/resources/company-token-transactions.d.mts +80 -57
- package/resources/company-token-transactions.d.mts.map +1 -1
- package/resources/company-token-transactions.d.ts +80 -57
- 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 +24 -19
- package/resources/course-chapters.d.mts.map +1 -1
- package/resources/course-chapters.d.ts +24 -19
- 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 +126 -84
- package/resources/course-lessons.d.mts.map +1 -1
- package/resources/course-lessons.d.ts +126 -84
- 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 +38 -29
- package/resources/course-students.d.mts.map +1 -1
- package/resources/course-students.d.ts +38 -29
- 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 +132 -91
- package/resources/courses.d.mts.map +1 -1
- package/resources/courses.d.ts +132 -91
- 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 +156 -102
- package/resources/disputes.d.mts.map +1 -1
- package/resources/disputes.d.ts +156 -102
- 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 +29 -21
- package/resources/entries.d.mts.map +1 -1
- package/resources/entries.d.ts +29 -21
- 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 +53 -45
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +53 -45
- 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 +32 -21
- package/resources/fee-markups.d.mts.map +1 -1
- package/resources/fee-markups.d.ts +32 -21
- 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 +21 -17
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +21 -17
- 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 +62 -43
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +62 -43
- 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 +20 -12
- package/resources/forums.d.mts.map +1 -1
- package/resources/forums.d.ts +20 -12
- 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 +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- 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 +108 -80
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +108 -80
- 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 +64 -42
- package/resources/leads.d.mts.map +1 -1
- package/resources/leads.d.ts +64 -42
- 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 +10 -8
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +10 -8
- 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 +18 -19
- package/resources/members.d.mts.map +1 -1
- package/resources/members.d.ts +18 -19
- 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 +69 -51
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +69 -51
- 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 +46 -32
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +46 -32
- 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 +73 -40
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +73 -40
- 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 +44 -29
- package/resources/payout-methods.d.mts.map +1 -1
- package/resources/payout-methods.d.ts +44 -29
- 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 +121 -90
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +121 -90
- 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 +76 -65
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +76 -65
- 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 +41 -31
- package/resources/promo-codes.d.mts.map +1 -1
- package/resources/promo-codes.d.ts +41 -31
- 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 +24 -18
- package/resources/reactions.d.mts.map +1 -1
- package/resources/reactions.d.ts +24 -18
- 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 +43 -29
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +43 -29
- 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 +66 -50
- package/resources/reviews.d.mts.map +1 -1
- package/resources/reviews.d.ts +66 -50
- 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 +61 -43
- package/resources/setup-intents.d.mts.map +1 -1
- package/resources/setup-intents.d.ts +61 -43
- 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 +695 -388
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +695 -388
- package/resources/shared.d.ts.map +1 -1
- package/resources/shipments.d.mts +26 -17
- package/resources/shipments.d.mts.map +1 -1
- package/resources/shipments.d.ts +26 -17
- 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 +27 -19
- package/resources/support-channels.d.mts.map +1 -1
- package/resources/support-channels.d.ts +27 -19
- 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 +11 -9
- package/resources/topups.d.mts.map +1 -1
- package/resources/topups.d.ts +11 -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 +35 -29
- package/resources/transfers.d.mts.map +1 -1
- package/resources/transfers.d.ts +35 -29
- 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 +20 -16
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +20 -16
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +4 -3
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +4 -3
- package/resources/users.mjs.map +1 -1
- package/resources/verifications.d.mts +6 -4
- package/resources/verifications.d.mts.map +1 -1
- package/resources/verifications.d.ts +6 -4
- 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 +136 -95
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +136 -95
- 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 +53 -44
- package/resources/withdrawals.d.mts.map +1 -1
- package/resources/withdrawals.d.ts +53 -44
- 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 +13 -3
- package/src/resources/access-tokens.ts +19 -20
- package/src/resources/account-links.ts +15 -13
- package/src/resources/ai-chats.ts +39 -26
- package/src/resources/app-builds.ts +35 -33
- package/src/resources/apps.ts +84 -56
- package/src/resources/authorized-users.ts +32 -26
- package/src/resources/chat-channels.ts +27 -19
- package/src/resources/checkout-configurations.ts +56 -46
- package/src/resources/companies.ts +68 -46
- package/src/resources/company-token-transactions.ts +81 -58
- package/src/resources/course-chapters.ts +24 -19
- package/src/resources/course-lesson-interactions.ts +7 -6
- package/src/resources/course-lessons.ts +126 -84
- package/src/resources/course-students.ts +38 -29
- package/src/resources/courses.ts +132 -91
- package/src/resources/disputes.ts +156 -102
- package/src/resources/dm-channels.ts +29 -16
- package/src/resources/dm-members.ts +30 -21
- package/src/resources/entries.ts +29 -21
- package/src/resources/experiences.ts +53 -45
- package/src/resources/fee-markups.ts +32 -21
- package/src/resources/files.ts +21 -17
- package/src/resources/forum-posts.ts +63 -43
- package/src/resources/forums.ts +20 -12
- package/src/resources/index.ts +2 -1
- package/src/resources/invoices.ts +112 -80
- package/src/resources/leads.ts +64 -42
- package/src/resources/ledger-accounts.ts +10 -8
- package/src/resources/members.ts +18 -19
- package/src/resources/memberships.ts +69 -51
- package/src/resources/messages.ts +46 -32
- package/src/resources/notifications.ts +33 -25
- package/src/resources/payment-methods.ts +212 -114
- package/src/resources/payments.ts +77 -39
- package/src/resources/payout-methods.ts +44 -29
- package/src/resources/plans.ts +121 -90
- package/src/resources/products.ts +215 -68
- package/src/resources/promo-codes.ts +41 -31
- package/src/resources/reactions.ts +24 -18
- package/src/resources/refunds.ts +44 -29
- package/src/resources/reviews.ts +66 -50
- package/src/resources/setup-intents.ts +61 -43
- package/src/resources/shared.ts +2637 -387
- package/src/resources/shipments.ts +26 -17
- package/src/resources/support-channels.ts +27 -19
- package/src/resources/topups.ts +11 -9
- package/src/resources/transfers.ts +35 -29
- package/src/resources/users.ts +20 -16
- package/src/resources/verifications.ts +6 -4
- package/src/resources/webhooks.ts +136 -95
- package/src/resources/withdrawals.ts +53 -43
- 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
|
*
|
|
@@ -148,14 +149,14 @@ export interface Webhook {
|
|
|
148
149
|
id: string;
|
|
149
150
|
|
|
150
151
|
/**
|
|
151
|
-
* The API version
|
|
152
|
+
* The API version used to format payloads sent to this webhook endpoint.
|
|
152
153
|
*/
|
|
153
154
|
api_version: APIVersion;
|
|
154
155
|
|
|
155
156
|
/**
|
|
156
|
-
* Whether
|
|
157
|
-
*
|
|
158
|
-
*
|
|
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).
|
|
159
160
|
*/
|
|
160
161
|
child_resource_events: boolean;
|
|
161
162
|
|
|
@@ -165,27 +166,27 @@ export interface Webhook {
|
|
|
165
166
|
created_at: string;
|
|
166
167
|
|
|
167
168
|
/**
|
|
168
|
-
* Whether
|
|
169
|
+
* Whether this webhook endpoint is currently active and receiving events.
|
|
169
170
|
*/
|
|
170
171
|
enabled: boolean;
|
|
171
172
|
|
|
172
173
|
/**
|
|
173
|
-
* The
|
|
174
|
+
* The list of event types this webhook is subscribed to.
|
|
174
175
|
*/
|
|
175
176
|
events: Array<WebhookEvent>;
|
|
176
177
|
|
|
177
178
|
/**
|
|
178
|
-
* The resource
|
|
179
|
+
* The ID of the resource (company or product) this webhook is attached to.
|
|
179
180
|
*/
|
|
180
181
|
resource_id: string;
|
|
181
182
|
|
|
182
183
|
/**
|
|
183
|
-
* The
|
|
184
|
+
* The subset of subscribed event types that support sending test payloads.
|
|
184
185
|
*/
|
|
185
186
|
testable_events: Array<WebhookEvent>;
|
|
186
187
|
|
|
187
188
|
/**
|
|
188
|
-
* The URL
|
|
189
|
+
* The destination URL where webhook payloads are delivered via HTTP POST.
|
|
189
190
|
*/
|
|
190
191
|
url: string;
|
|
191
192
|
}
|
|
@@ -233,14 +234,14 @@ export interface WebhookCreateResponse {
|
|
|
233
234
|
id: string;
|
|
234
235
|
|
|
235
236
|
/**
|
|
236
|
-
* The API version
|
|
237
|
+
* The API version used to format payloads sent to this webhook endpoint.
|
|
237
238
|
*/
|
|
238
239
|
api_version: APIVersion;
|
|
239
240
|
|
|
240
241
|
/**
|
|
241
|
-
* Whether
|
|
242
|
-
*
|
|
243
|
-
*
|
|
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).
|
|
244
245
|
*/
|
|
245
246
|
child_resource_events: boolean;
|
|
246
247
|
|
|
@@ -250,32 +251,33 @@ export interface WebhookCreateResponse {
|
|
|
250
251
|
created_at: string;
|
|
251
252
|
|
|
252
253
|
/**
|
|
253
|
-
* Whether
|
|
254
|
+
* Whether this webhook endpoint is currently active and receiving events.
|
|
254
255
|
*/
|
|
255
256
|
enabled: boolean;
|
|
256
257
|
|
|
257
258
|
/**
|
|
258
|
-
* The
|
|
259
|
+
* The list of event types this webhook is subscribed to.
|
|
259
260
|
*/
|
|
260
261
|
events: Array<WebhookEvent>;
|
|
261
262
|
|
|
262
263
|
/**
|
|
263
|
-
* The resource
|
|
264
|
+
* The ID of the resource (company or product) this webhook is attached to.
|
|
264
265
|
*/
|
|
265
266
|
resource_id: string;
|
|
266
267
|
|
|
267
268
|
/**
|
|
268
|
-
* The
|
|
269
|
+
* The subset of subscribed event types that support sending test payloads.
|
|
269
270
|
*/
|
|
270
271
|
testable_events: Array<WebhookEvent>;
|
|
271
272
|
|
|
272
273
|
/**
|
|
273
|
-
* The URL
|
|
274
|
+
* The destination URL where webhook payloads are delivered via HTTP POST.
|
|
274
275
|
*/
|
|
275
276
|
url: string;
|
|
276
277
|
|
|
277
278
|
/**
|
|
278
|
-
*
|
|
279
|
+
* The secret key used to sign webhook payloads for verification. Include this in
|
|
280
|
+
* your HMAC validation logic.
|
|
279
281
|
*/
|
|
280
282
|
webhook_secret: string;
|
|
281
283
|
}
|
|
@@ -291,14 +293,14 @@ export interface WebhookListResponse {
|
|
|
291
293
|
id: string;
|
|
292
294
|
|
|
293
295
|
/**
|
|
294
|
-
* The API version
|
|
296
|
+
* The API version used to format payloads sent to this webhook endpoint.
|
|
295
297
|
*/
|
|
296
298
|
api_version: APIVersion;
|
|
297
299
|
|
|
298
300
|
/**
|
|
299
|
-
* Whether
|
|
300
|
-
*
|
|
301
|
-
*
|
|
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).
|
|
302
304
|
*/
|
|
303
305
|
child_resource_events: boolean;
|
|
304
306
|
|
|
@@ -308,17 +310,17 @@ export interface WebhookListResponse {
|
|
|
308
310
|
created_at: string;
|
|
309
311
|
|
|
310
312
|
/**
|
|
311
|
-
* Whether
|
|
313
|
+
* Whether this webhook endpoint is currently active and receiving events.
|
|
312
314
|
*/
|
|
313
315
|
enabled: boolean;
|
|
314
316
|
|
|
315
317
|
/**
|
|
316
|
-
* The
|
|
318
|
+
* The list of event types this webhook is subscribed to.
|
|
317
319
|
*/
|
|
318
320
|
events: Array<WebhookEvent>;
|
|
319
321
|
|
|
320
322
|
/**
|
|
321
|
-
* The URL
|
|
323
|
+
* The destination URL where webhook payloads are delivered via HTTP POST.
|
|
322
324
|
*/
|
|
323
325
|
url: string;
|
|
324
326
|
}
|
|
@@ -340,7 +342,9 @@ export interface InvoiceCreatedWebhookEvent {
|
|
|
340
342
|
api_version: 'v1';
|
|
341
343
|
|
|
342
344
|
/**
|
|
343
|
-
*
|
|
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.
|
|
344
348
|
*/
|
|
345
349
|
data: Shared.Invoice;
|
|
346
350
|
|
|
@@ -372,7 +376,9 @@ export interface InvoicePaidWebhookEvent {
|
|
|
372
376
|
api_version: 'v1';
|
|
373
377
|
|
|
374
378
|
/**
|
|
375
|
-
*
|
|
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.
|
|
376
382
|
*/
|
|
377
383
|
data: Shared.Invoice;
|
|
378
384
|
|
|
@@ -404,7 +410,9 @@ export interface InvoicePastDueWebhookEvent {
|
|
|
404
410
|
api_version: 'v1';
|
|
405
411
|
|
|
406
412
|
/**
|
|
407
|
-
*
|
|
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.
|
|
408
416
|
*/
|
|
409
417
|
data: Shared.Invoice;
|
|
410
418
|
|
|
@@ -436,7 +444,9 @@ export interface InvoiceVoidedWebhookEvent {
|
|
|
436
444
|
api_version: 'v1';
|
|
437
445
|
|
|
438
446
|
/**
|
|
439
|
-
*
|
|
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.
|
|
440
450
|
*/
|
|
441
451
|
data: Shared.Invoice;
|
|
442
452
|
|
|
@@ -662,7 +672,8 @@ export interface SetupIntentRequiresActionWebhookEvent {
|
|
|
662
672
|
api_version: 'v1';
|
|
663
673
|
|
|
664
674
|
/**
|
|
665
|
-
* A setup intent allows a user to save a payment method
|
|
675
|
+
* A setup intent allows a user to save a payment method for future use without
|
|
676
|
+
* making an immediate purchase.
|
|
666
677
|
*/
|
|
667
678
|
data: SetupIntentsAPI.SetupIntent;
|
|
668
679
|
|
|
@@ -694,7 +705,8 @@ export interface SetupIntentSucceededWebhookEvent {
|
|
|
694
705
|
api_version: 'v1';
|
|
695
706
|
|
|
696
707
|
/**
|
|
697
|
-
* A setup intent allows a user to save a payment method
|
|
708
|
+
* A setup intent allows a user to save a payment method for future use without
|
|
709
|
+
* making an immediate purchase.
|
|
698
710
|
*/
|
|
699
711
|
data: SetupIntentsAPI.SetupIntent;
|
|
700
712
|
|
|
@@ -726,7 +738,8 @@ export interface SetupIntentCanceledWebhookEvent {
|
|
|
726
738
|
api_version: 'v1';
|
|
727
739
|
|
|
728
740
|
/**
|
|
729
|
-
* A setup intent allows a user to save a payment method
|
|
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,8 +771,8 @@ export interface WithdrawalCreatedWebhookEvent {
|
|
|
758
771
|
api_version: 'v1';
|
|
759
772
|
|
|
760
773
|
/**
|
|
761
|
-
* A withdrawal represents a request to transfer funds from a
|
|
762
|
-
*
|
|
774
|
+
* A withdrawal represents a request to transfer funds from a ledger account to an
|
|
775
|
+
* external payout method.
|
|
763
776
|
*/
|
|
764
777
|
data: WithdrawalsAPI.Withdrawal;
|
|
765
778
|
|
|
@@ -791,8 +804,8 @@ export interface WithdrawalUpdatedWebhookEvent {
|
|
|
791
804
|
api_version: 'v1';
|
|
792
805
|
|
|
793
806
|
/**
|
|
794
|
-
* A withdrawal represents a request to transfer funds from a
|
|
795
|
-
*
|
|
807
|
+
* A withdrawal represents a request to transfer funds from a ledger account to an
|
|
808
|
+
* external payout method.
|
|
796
809
|
*/
|
|
797
810
|
data: WithdrawalsAPI.Withdrawal;
|
|
798
811
|
|
|
@@ -824,7 +837,8 @@ export interface CourseLessonInteractionCompletedWebhookEvent {
|
|
|
824
837
|
api_version: 'v1';
|
|
825
838
|
|
|
826
839
|
/**
|
|
827
|
-
* A
|
|
840
|
+
* A record of a user's progress on a specific lesson, tracking whether they have
|
|
841
|
+
* completed it.
|
|
828
842
|
*/
|
|
829
843
|
data: Shared.CourseLessonInteraction;
|
|
830
844
|
|
|
@@ -856,7 +870,8 @@ export interface PayoutMethodCreatedWebhookEvent {
|
|
|
856
870
|
api_version: 'v1';
|
|
857
871
|
|
|
858
872
|
/**
|
|
859
|
-
*
|
|
873
|
+
* A configured payout destination where a user receives earned funds, such as a
|
|
874
|
+
* bank account or digital wallet.
|
|
860
875
|
*/
|
|
861
876
|
data: PayoutMethodCreatedWebhookEvent.Data;
|
|
862
877
|
|
|
@@ -878,7 +893,8 @@ export interface PayoutMethodCreatedWebhookEvent {
|
|
|
878
893
|
|
|
879
894
|
export namespace PayoutMethodCreatedWebhookEvent {
|
|
880
895
|
/**
|
|
881
|
-
*
|
|
896
|
+
* A configured payout destination where a user receives earned funds, such as a
|
|
897
|
+
* bank account or digital wallet.
|
|
882
898
|
*/
|
|
883
899
|
export interface Data {
|
|
884
900
|
/**
|
|
@@ -887,13 +903,14 @@ export namespace PayoutMethodCreatedWebhookEvent {
|
|
|
887
903
|
id: string;
|
|
888
904
|
|
|
889
905
|
/**
|
|
890
|
-
* A
|
|
891
|
-
* 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.
|
|
892
908
|
*/
|
|
893
909
|
account_reference: string | null;
|
|
894
910
|
|
|
895
911
|
/**
|
|
896
|
-
* The company associated with
|
|
912
|
+
* The company associated with this payout destination. Null if not linked to a
|
|
913
|
+
* specific company.
|
|
897
914
|
*/
|
|
898
915
|
company: Data.Company | null;
|
|
899
916
|
|
|
@@ -903,36 +920,40 @@ export namespace PayoutMethodCreatedWebhookEvent {
|
|
|
903
920
|
created_at: string;
|
|
904
921
|
|
|
905
922
|
/**
|
|
906
|
-
* The currency code
|
|
907
|
-
*
|
|
923
|
+
* The three-letter ISO currency code that payouts are delivered in for this
|
|
924
|
+
* destination.
|
|
908
925
|
*/
|
|
909
926
|
currency: string;
|
|
910
927
|
|
|
911
928
|
/**
|
|
912
|
-
* The payout destination
|
|
929
|
+
* The payout destination configuration linked to this token. Null if not yet
|
|
930
|
+
* configured.
|
|
913
931
|
*/
|
|
914
932
|
destination: Data.Destination | null;
|
|
915
933
|
|
|
916
934
|
/**
|
|
917
|
-
* 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.
|
|
918
937
|
*/
|
|
919
938
|
institution_name: string | null;
|
|
920
939
|
|
|
921
940
|
/**
|
|
922
|
-
* Whether this
|
|
941
|
+
* Whether this is the default payout destination for the associated payout
|
|
942
|
+
* account.
|
|
923
943
|
*/
|
|
924
944
|
is_default: boolean;
|
|
925
945
|
|
|
926
946
|
/**
|
|
927
|
-
*
|
|
928
|
-
*
|
|
947
|
+
* A user-defined label to help identify this payout destination. Not sent to the
|
|
948
|
+
* provider. Null if no nickname has been set.
|
|
929
949
|
*/
|
|
930
950
|
nickname: string | null;
|
|
931
951
|
}
|
|
932
952
|
|
|
933
953
|
export namespace Data {
|
|
934
954
|
/**
|
|
935
|
-
* The company associated with
|
|
955
|
+
* The company associated with this payout destination. Null if not linked to a
|
|
956
|
+
* specific company.
|
|
936
957
|
*/
|
|
937
958
|
export interface Company {
|
|
938
959
|
/**
|
|
@@ -942,7 +963,8 @@ export namespace PayoutMethodCreatedWebhookEvent {
|
|
|
942
963
|
}
|
|
943
964
|
|
|
944
965
|
/**
|
|
945
|
-
* The payout destination
|
|
966
|
+
* The payout destination configuration linked to this token. Null if not yet
|
|
967
|
+
* configured.
|
|
946
968
|
*/
|
|
947
969
|
export interface Destination {
|
|
948
970
|
/**
|
|
@@ -975,7 +997,8 @@ export interface VerificationSucceededWebhookEvent {
|
|
|
975
997
|
api_version: 'v1';
|
|
976
998
|
|
|
977
999
|
/**
|
|
978
|
-
* An
|
|
1000
|
+
* An identity verification session used to confirm a person or entity's identity
|
|
1001
|
+
* for payout account eligibility.
|
|
979
1002
|
*/
|
|
980
1003
|
data: VerificationSucceededWebhookEvent.Data;
|
|
981
1004
|
|
|
@@ -997,7 +1020,8 @@ export interface VerificationSucceededWebhookEvent {
|
|
|
997
1020
|
|
|
998
1021
|
export namespace VerificationSucceededWebhookEvent {
|
|
999
1022
|
/**
|
|
1000
|
-
* An
|
|
1023
|
+
* An identity verification session used to confirm a person or entity's identity
|
|
1024
|
+
* for payout account eligibility.
|
|
1001
1025
|
*/
|
|
1002
1026
|
export interface Data {
|
|
1003
1027
|
/**
|
|
@@ -1011,12 +1035,13 @@ export namespace VerificationSucceededWebhookEvent {
|
|
|
1011
1035
|
last_error_code: VerificationsAPI.VerificationErrorCode | null;
|
|
1012
1036
|
|
|
1013
1037
|
/**
|
|
1014
|
-
*
|
|
1038
|
+
* A human-readable explanation of the most recent verification error. Null if no
|
|
1039
|
+
* error has occurred.
|
|
1015
1040
|
*/
|
|
1016
1041
|
last_error_reason: string | null;
|
|
1017
1042
|
|
|
1018
1043
|
/**
|
|
1019
|
-
* The status of
|
|
1044
|
+
* The current status of this verification session.
|
|
1020
1045
|
*/
|
|
1021
1046
|
status: VerificationsAPI.VerificationStatus;
|
|
1022
1047
|
}
|
|
@@ -1034,8 +1059,8 @@ export interface PaymentCreatedWebhookEvent {
|
|
|
1034
1059
|
api_version: 'v1';
|
|
1035
1060
|
|
|
1036
1061
|
/**
|
|
1037
|
-
* A payment represents a completed or attempted charge
|
|
1038
|
-
*
|
|
1062
|
+
* A payment represents a completed or attempted charge. Payments track the amount,
|
|
1063
|
+
* status, currency, and payment method used.
|
|
1039
1064
|
*/
|
|
1040
1065
|
data: Shared.Payment;
|
|
1041
1066
|
|
|
@@ -1067,8 +1092,8 @@ export interface PaymentSucceededWebhookEvent {
|
|
|
1067
1092
|
api_version: 'v1';
|
|
1068
1093
|
|
|
1069
1094
|
/**
|
|
1070
|
-
* A payment represents a completed or attempted charge
|
|
1071
|
-
*
|
|
1095
|
+
* A payment represents a completed or attempted charge. Payments track the amount,
|
|
1096
|
+
* status, currency, and payment method used.
|
|
1072
1097
|
*/
|
|
1073
1098
|
data: Shared.Payment;
|
|
1074
1099
|
|
|
@@ -1100,8 +1125,8 @@ export interface PaymentFailedWebhookEvent {
|
|
|
1100
1125
|
api_version: 'v1';
|
|
1101
1126
|
|
|
1102
1127
|
/**
|
|
1103
|
-
* A payment represents a completed or attempted charge
|
|
1104
|
-
*
|
|
1128
|
+
* A payment represents a completed or attempted charge. Payments track the amount,
|
|
1129
|
+
* status, currency, and payment method used.
|
|
1105
1130
|
*/
|
|
1106
1131
|
data: Shared.Payment;
|
|
1107
1132
|
|
|
@@ -1133,8 +1158,8 @@ export interface PaymentPendingWebhookEvent {
|
|
|
1133
1158
|
api_version: 'v1';
|
|
1134
1159
|
|
|
1135
1160
|
/**
|
|
1136
|
-
* A payment represents a completed or attempted charge
|
|
1137
|
-
*
|
|
1161
|
+
* A payment represents a completed or attempted charge. Payments track the amount,
|
|
1162
|
+
* status, currency, and payment method used.
|
|
1138
1163
|
*/
|
|
1139
1164
|
data: Shared.Payment;
|
|
1140
1165
|
|
|
@@ -1265,8 +1290,8 @@ export namespace RefundCreatedWebhookEvent {
|
|
|
1265
1290
|
id: string;
|
|
1266
1291
|
|
|
1267
1292
|
/**
|
|
1268
|
-
* The amount
|
|
1269
|
-
*
|
|
1293
|
+
* The refunded amount as a decimal in the specified currency, such as 10.43 for
|
|
1294
|
+
* $10.43 USD.
|
|
1270
1295
|
*/
|
|
1271
1296
|
amount: number;
|
|
1272
1297
|
|
|
@@ -1276,22 +1301,24 @@ export namespace RefundCreatedWebhookEvent {
|
|
|
1276
1301
|
created_at: string;
|
|
1277
1302
|
|
|
1278
1303
|
/**
|
|
1279
|
-
* The currency
|
|
1304
|
+
* The three-letter ISO currency code for the refunded amount.
|
|
1280
1305
|
*/
|
|
1281
1306
|
currency: Shared.Currency;
|
|
1282
1307
|
|
|
1283
1308
|
/**
|
|
1284
|
-
* The payment
|
|
1309
|
+
* The original payment that this refund was issued against. Null if the payment is
|
|
1310
|
+
* no longer available.
|
|
1285
1311
|
*/
|
|
1286
1312
|
payment: Data.Payment | null;
|
|
1287
1313
|
|
|
1288
1314
|
/**
|
|
1289
|
-
* The provider
|
|
1315
|
+
* The payment provider that processed the refund.
|
|
1290
1316
|
*/
|
|
1291
1317
|
provider: RefundsAPI.PaymentProvider;
|
|
1292
1318
|
|
|
1293
1319
|
/**
|
|
1294
|
-
* The
|
|
1320
|
+
* The timestamp when the refund was created in the payment provider's system. Null
|
|
1321
|
+
* if not available from the provider.
|
|
1295
1322
|
*/
|
|
1296
1323
|
provider_created_at: string | null;
|
|
1297
1324
|
|
|
@@ -1306,19 +1333,22 @@ export namespace RefundCreatedWebhookEvent {
|
|
|
1306
1333
|
reference_type: RefundsAPI.RefundReferenceType | null;
|
|
1307
1334
|
|
|
1308
1335
|
/**
|
|
1309
|
-
* 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.
|
|
1310
1338
|
*/
|
|
1311
1339
|
reference_value: string | null;
|
|
1312
1340
|
|
|
1313
1341
|
/**
|
|
1314
|
-
* The status of the refund
|
|
1342
|
+
* The current processing status of the refund, such as pending, succeeded, or
|
|
1343
|
+
* failed.
|
|
1315
1344
|
*/
|
|
1316
1345
|
status: RefundsAPI.RefundStatus;
|
|
1317
1346
|
}
|
|
1318
1347
|
|
|
1319
1348
|
export namespace Data {
|
|
1320
1349
|
/**
|
|
1321
|
-
* The payment
|
|
1350
|
+
* The original payment that this refund was issued against. Null if the payment is
|
|
1351
|
+
* no longer available.
|
|
1322
1352
|
*/
|
|
1323
1353
|
export interface Payment {
|
|
1324
1354
|
/**
|
|
@@ -1337,7 +1367,8 @@ export namespace RefundCreatedWebhookEvent {
|
|
|
1337
1367
|
card_brand: PaymentsAPI.CardBrands | null;
|
|
1338
1368
|
|
|
1339
1369
|
/**
|
|
1340
|
-
* 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.
|
|
1341
1372
|
*/
|
|
1342
1373
|
card_last4: string | null;
|
|
1343
1374
|
|
|
@@ -1367,7 +1398,8 @@ export namespace RefundCreatedWebhookEvent {
|
|
|
1367
1398
|
membership: Payment.Membership | null;
|
|
1368
1399
|
|
|
1369
1400
|
/**
|
|
1370
|
-
* The
|
|
1401
|
+
* The time at which this payment was successfully collected. Null if the payment
|
|
1402
|
+
* has not yet succeeded. As a Unix timestamp.
|
|
1371
1403
|
*/
|
|
1372
1404
|
paid_at: string | null;
|
|
1373
1405
|
|
|
@@ -1438,17 +1470,18 @@ export namespace RefundCreatedWebhookEvent {
|
|
|
1438
1470
|
id: string;
|
|
1439
1471
|
|
|
1440
1472
|
/**
|
|
1441
|
-
* The email
|
|
1473
|
+
* The user's email address. Requires the member:email:read permission to access.
|
|
1474
|
+
* Null if not authorized.
|
|
1442
1475
|
*/
|
|
1443
1476
|
email: string | null;
|
|
1444
1477
|
|
|
1445
1478
|
/**
|
|
1446
|
-
* The
|
|
1479
|
+
* The user's display name shown on their public profile.
|
|
1447
1480
|
*/
|
|
1448
1481
|
name: string | null;
|
|
1449
1482
|
|
|
1450
1483
|
/**
|
|
1451
|
-
* The
|
|
1484
|
+
* The user's unique username shown on their public profile.
|
|
1452
1485
|
*/
|
|
1453
1486
|
username: string;
|
|
1454
1487
|
}
|
|
@@ -1501,8 +1534,8 @@ export namespace RefundUpdatedWebhookEvent {
|
|
|
1501
1534
|
id: string;
|
|
1502
1535
|
|
|
1503
1536
|
/**
|
|
1504
|
-
* The amount
|
|
1505
|
-
*
|
|
1537
|
+
* The refunded amount as a decimal in the specified currency, such as 10.43 for
|
|
1538
|
+
* $10.43 USD.
|
|
1506
1539
|
*/
|
|
1507
1540
|
amount: number;
|
|
1508
1541
|
|
|
@@ -1512,22 +1545,24 @@ export namespace RefundUpdatedWebhookEvent {
|
|
|
1512
1545
|
created_at: string;
|
|
1513
1546
|
|
|
1514
1547
|
/**
|
|
1515
|
-
* The currency
|
|
1548
|
+
* The three-letter ISO currency code for the refunded amount.
|
|
1516
1549
|
*/
|
|
1517
1550
|
currency: Shared.Currency;
|
|
1518
1551
|
|
|
1519
1552
|
/**
|
|
1520
|
-
* The payment
|
|
1553
|
+
* The original payment that this refund was issued against. Null if the payment is
|
|
1554
|
+
* no longer available.
|
|
1521
1555
|
*/
|
|
1522
1556
|
payment: Data.Payment | null;
|
|
1523
1557
|
|
|
1524
1558
|
/**
|
|
1525
|
-
* The provider
|
|
1559
|
+
* The payment provider that processed the refund.
|
|
1526
1560
|
*/
|
|
1527
1561
|
provider: RefundsAPI.PaymentProvider;
|
|
1528
1562
|
|
|
1529
1563
|
/**
|
|
1530
|
-
* The
|
|
1564
|
+
* The timestamp when the refund was created in the payment provider's system. Null
|
|
1565
|
+
* if not available from the provider.
|
|
1531
1566
|
*/
|
|
1532
1567
|
provider_created_at: string | null;
|
|
1533
1568
|
|
|
@@ -1542,19 +1577,22 @@ export namespace RefundUpdatedWebhookEvent {
|
|
|
1542
1577
|
reference_type: RefundsAPI.RefundReferenceType | null;
|
|
1543
1578
|
|
|
1544
1579
|
/**
|
|
1545
|
-
* 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.
|
|
1546
1582
|
*/
|
|
1547
1583
|
reference_value: string | null;
|
|
1548
1584
|
|
|
1549
1585
|
/**
|
|
1550
|
-
* The status of the refund
|
|
1586
|
+
* The current processing status of the refund, such as pending, succeeded, or
|
|
1587
|
+
* failed.
|
|
1551
1588
|
*/
|
|
1552
1589
|
status: RefundsAPI.RefundStatus;
|
|
1553
1590
|
}
|
|
1554
1591
|
|
|
1555
1592
|
export namespace Data {
|
|
1556
1593
|
/**
|
|
1557
|
-
* The payment
|
|
1594
|
+
* The original payment that this refund was issued against. Null if the payment is
|
|
1595
|
+
* no longer available.
|
|
1558
1596
|
*/
|
|
1559
1597
|
export interface Payment {
|
|
1560
1598
|
/**
|
|
@@ -1573,7 +1611,8 @@ export namespace RefundUpdatedWebhookEvent {
|
|
|
1573
1611
|
card_brand: PaymentsAPI.CardBrands | null;
|
|
1574
1612
|
|
|
1575
1613
|
/**
|
|
1576
|
-
* 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.
|
|
1577
1616
|
*/
|
|
1578
1617
|
card_last4: string | null;
|
|
1579
1618
|
|
|
@@ -1603,7 +1642,8 @@ export namespace RefundUpdatedWebhookEvent {
|
|
|
1603
1642
|
membership: Payment.Membership | null;
|
|
1604
1643
|
|
|
1605
1644
|
/**
|
|
1606
|
-
* The
|
|
1645
|
+
* The time at which this payment was successfully collected. Null if the payment
|
|
1646
|
+
* has not yet succeeded. As a Unix timestamp.
|
|
1607
1647
|
*/
|
|
1608
1648
|
paid_at: string | null;
|
|
1609
1649
|
|
|
@@ -1674,17 +1714,18 @@ export namespace RefundUpdatedWebhookEvent {
|
|
|
1674
1714
|
id: string;
|
|
1675
1715
|
|
|
1676
1716
|
/**
|
|
1677
|
-
* The email
|
|
1717
|
+
* The user's email address. Requires the member:email:read permission to access.
|
|
1718
|
+
* Null if not authorized.
|
|
1678
1719
|
*/
|
|
1679
1720
|
email: string | null;
|
|
1680
1721
|
|
|
1681
1722
|
/**
|
|
1682
|
-
* The
|
|
1723
|
+
* The user's display name shown on their public profile.
|
|
1683
1724
|
*/
|
|
1684
1725
|
name: string | null;
|
|
1685
1726
|
|
|
1686
1727
|
/**
|
|
1687
|
-
* The
|
|
1728
|
+
* The user's unique username shown on their public profile.
|
|
1688
1729
|
*/
|
|
1689
1730
|
username: string;
|
|
1690
1731
|
}
|
|
@@ -1817,7 +1858,7 @@ export interface WebhookUpdateParams {
|
|
|
1817
1858
|
|
|
1818
1859
|
export interface WebhookListParams extends CursorPageParams {
|
|
1819
1860
|
/**
|
|
1820
|
-
* The
|
|
1861
|
+
* The unique identifier of the company to list webhooks for.
|
|
1821
1862
|
*/
|
|
1822
1863
|
company_id: string;
|
|
1823
1864
|
|