@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
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
|
*
|
|
@@ -109,13 +110,13 @@ export interface Webhook {
|
|
|
109
110
|
*/
|
|
110
111
|
id: string;
|
|
111
112
|
/**
|
|
112
|
-
* The API version
|
|
113
|
+
* The API version used to format payloads sent to this webhook endpoint.
|
|
113
114
|
*/
|
|
114
115
|
api_version: APIVersion;
|
|
115
116
|
/**
|
|
116
|
-
* Whether
|
|
117
|
-
*
|
|
118
|
-
*
|
|
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).
|
|
119
120
|
*/
|
|
120
121
|
child_resource_events: boolean;
|
|
121
122
|
/**
|
|
@@ -123,23 +124,23 @@ export interface Webhook {
|
|
|
123
124
|
*/
|
|
124
125
|
created_at: string;
|
|
125
126
|
/**
|
|
126
|
-
* Whether
|
|
127
|
+
* Whether this webhook endpoint is currently active and receiving events.
|
|
127
128
|
*/
|
|
128
129
|
enabled: boolean;
|
|
129
130
|
/**
|
|
130
|
-
* The
|
|
131
|
+
* The list of event types this webhook is subscribed to.
|
|
131
132
|
*/
|
|
132
133
|
events: Array<WebhookEvent>;
|
|
133
134
|
/**
|
|
134
|
-
* The resource
|
|
135
|
+
* The ID of the resource (company or product) this webhook is attached to.
|
|
135
136
|
*/
|
|
136
137
|
resource_id: string;
|
|
137
138
|
/**
|
|
138
|
-
* The
|
|
139
|
+
* The subset of subscribed event types that support sending test payloads.
|
|
139
140
|
*/
|
|
140
141
|
testable_events: Array<WebhookEvent>;
|
|
141
142
|
/**
|
|
142
|
-
* The URL
|
|
143
|
+
* The destination URL where webhook payloads are delivered via HTTP POST.
|
|
143
144
|
*/
|
|
144
145
|
url: string;
|
|
145
146
|
}
|
|
@@ -157,13 +158,13 @@ export interface WebhookCreateResponse {
|
|
|
157
158
|
*/
|
|
158
159
|
id: string;
|
|
159
160
|
/**
|
|
160
|
-
* The API version
|
|
161
|
+
* The API version used to format payloads sent to this webhook endpoint.
|
|
161
162
|
*/
|
|
162
163
|
api_version: APIVersion;
|
|
163
164
|
/**
|
|
164
|
-
* Whether
|
|
165
|
-
*
|
|
166
|
-
*
|
|
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).
|
|
167
168
|
*/
|
|
168
169
|
child_resource_events: boolean;
|
|
169
170
|
/**
|
|
@@ -171,27 +172,28 @@ export interface WebhookCreateResponse {
|
|
|
171
172
|
*/
|
|
172
173
|
created_at: string;
|
|
173
174
|
/**
|
|
174
|
-
* Whether
|
|
175
|
+
* Whether this webhook endpoint is currently active and receiving events.
|
|
175
176
|
*/
|
|
176
177
|
enabled: boolean;
|
|
177
178
|
/**
|
|
178
|
-
* The
|
|
179
|
+
* The list of event types this webhook is subscribed to.
|
|
179
180
|
*/
|
|
180
181
|
events: Array<WebhookEvent>;
|
|
181
182
|
/**
|
|
182
|
-
* The resource
|
|
183
|
+
* The ID of the resource (company or product) this webhook is attached to.
|
|
183
184
|
*/
|
|
184
185
|
resource_id: string;
|
|
185
186
|
/**
|
|
186
|
-
* The
|
|
187
|
+
* The subset of subscribed event types that support sending test payloads.
|
|
187
188
|
*/
|
|
188
189
|
testable_events: Array<WebhookEvent>;
|
|
189
190
|
/**
|
|
190
|
-
* The URL
|
|
191
|
+
* The destination URL where webhook payloads are delivered via HTTP POST.
|
|
191
192
|
*/
|
|
192
193
|
url: string;
|
|
193
194
|
/**
|
|
194
|
-
*
|
|
195
|
+
* The secret key used to sign webhook payloads for verification. Include this in
|
|
196
|
+
* your HMAC validation logic.
|
|
195
197
|
*/
|
|
196
198
|
webhook_secret: string;
|
|
197
199
|
}
|
|
@@ -205,13 +207,13 @@ export interface WebhookListResponse {
|
|
|
205
207
|
*/
|
|
206
208
|
id: string;
|
|
207
209
|
/**
|
|
208
|
-
* The API version
|
|
210
|
+
* The API version used to format payloads sent to this webhook endpoint.
|
|
209
211
|
*/
|
|
210
212
|
api_version: APIVersion;
|
|
211
213
|
/**
|
|
212
|
-
* Whether
|
|
213
|
-
*
|
|
214
|
-
*
|
|
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).
|
|
215
217
|
*/
|
|
216
218
|
child_resource_events: boolean;
|
|
217
219
|
/**
|
|
@@ -219,15 +221,15 @@ export interface WebhookListResponse {
|
|
|
219
221
|
*/
|
|
220
222
|
created_at: string;
|
|
221
223
|
/**
|
|
222
|
-
* Whether
|
|
224
|
+
* Whether this webhook endpoint is currently active and receiving events.
|
|
223
225
|
*/
|
|
224
226
|
enabled: boolean;
|
|
225
227
|
/**
|
|
226
|
-
* The
|
|
228
|
+
* The list of event types this webhook is subscribed to.
|
|
227
229
|
*/
|
|
228
230
|
events: Array<WebhookEvent>;
|
|
229
231
|
/**
|
|
230
|
-
* The URL
|
|
232
|
+
* The destination URL where webhook payloads are delivered via HTTP POST.
|
|
231
233
|
*/
|
|
232
234
|
url: string;
|
|
233
235
|
}
|
|
@@ -245,7 +247,9 @@ export interface InvoiceCreatedWebhookEvent {
|
|
|
245
247
|
*/
|
|
246
248
|
api_version: 'v1';
|
|
247
249
|
/**
|
|
248
|
-
*
|
|
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.
|
|
249
253
|
*/
|
|
250
254
|
data: Shared.Invoice;
|
|
251
255
|
/**
|
|
@@ -271,7 +275,9 @@ export interface InvoicePaidWebhookEvent {
|
|
|
271
275
|
*/
|
|
272
276
|
api_version: 'v1';
|
|
273
277
|
/**
|
|
274
|
-
*
|
|
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.
|
|
275
281
|
*/
|
|
276
282
|
data: Shared.Invoice;
|
|
277
283
|
/**
|
|
@@ -297,7 +303,9 @@ export interface InvoicePastDueWebhookEvent {
|
|
|
297
303
|
*/
|
|
298
304
|
api_version: 'v1';
|
|
299
305
|
/**
|
|
300
|
-
*
|
|
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.
|
|
301
309
|
*/
|
|
302
310
|
data: Shared.Invoice;
|
|
303
311
|
/**
|
|
@@ -323,7 +331,9 @@ export interface InvoiceVoidedWebhookEvent {
|
|
|
323
331
|
*/
|
|
324
332
|
api_version: 'v1';
|
|
325
333
|
/**
|
|
326
|
-
*
|
|
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.
|
|
327
337
|
*/
|
|
328
338
|
data: Shared.Invoice;
|
|
329
339
|
/**
|
|
@@ -507,7 +517,8 @@ export interface SetupIntentRequiresActionWebhookEvent {
|
|
|
507
517
|
*/
|
|
508
518
|
api_version: 'v1';
|
|
509
519
|
/**
|
|
510
|
-
* A setup intent allows a user to save a payment method
|
|
520
|
+
* A setup intent allows a user to save a payment method for future use without
|
|
521
|
+
* making an immediate purchase.
|
|
511
522
|
*/
|
|
512
523
|
data: SetupIntentsAPI.SetupIntent;
|
|
513
524
|
/**
|
|
@@ -533,7 +544,8 @@ export interface SetupIntentSucceededWebhookEvent {
|
|
|
533
544
|
*/
|
|
534
545
|
api_version: 'v1';
|
|
535
546
|
/**
|
|
536
|
-
* A setup intent allows a user to save a payment method
|
|
547
|
+
* A setup intent allows a user to save a payment method for future use without
|
|
548
|
+
* making an immediate purchase.
|
|
537
549
|
*/
|
|
538
550
|
data: SetupIntentsAPI.SetupIntent;
|
|
539
551
|
/**
|
|
@@ -559,7 +571,8 @@ export interface SetupIntentCanceledWebhookEvent {
|
|
|
559
571
|
*/
|
|
560
572
|
api_version: 'v1';
|
|
561
573
|
/**
|
|
562
|
-
* A setup intent allows a user to save a payment method
|
|
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,8 +598,8 @@ export interface WithdrawalCreatedWebhookEvent {
|
|
|
585
598
|
*/
|
|
586
599
|
api_version: 'v1';
|
|
587
600
|
/**
|
|
588
|
-
* A withdrawal represents a request to transfer funds from a
|
|
589
|
-
*
|
|
601
|
+
* A withdrawal represents a request to transfer funds from a ledger account to an
|
|
602
|
+
* external payout method.
|
|
590
603
|
*/
|
|
591
604
|
data: WithdrawalsAPI.Withdrawal;
|
|
592
605
|
/**
|
|
@@ -612,8 +625,8 @@ export interface WithdrawalUpdatedWebhookEvent {
|
|
|
612
625
|
*/
|
|
613
626
|
api_version: 'v1';
|
|
614
627
|
/**
|
|
615
|
-
* A withdrawal represents a request to transfer funds from a
|
|
616
|
-
*
|
|
628
|
+
* A withdrawal represents a request to transfer funds from a ledger account to an
|
|
629
|
+
* external payout method.
|
|
617
630
|
*/
|
|
618
631
|
data: WithdrawalsAPI.Withdrawal;
|
|
619
632
|
/**
|
|
@@ -639,7 +652,8 @@ export interface CourseLessonInteractionCompletedWebhookEvent {
|
|
|
639
652
|
*/
|
|
640
653
|
api_version: 'v1';
|
|
641
654
|
/**
|
|
642
|
-
* A
|
|
655
|
+
* A record of a user's progress on a specific lesson, tracking whether they have
|
|
656
|
+
* completed it.
|
|
643
657
|
*/
|
|
644
658
|
data: Shared.CourseLessonInteraction;
|
|
645
659
|
/**
|
|
@@ -665,7 +679,8 @@ export interface PayoutMethodCreatedWebhookEvent {
|
|
|
665
679
|
*/
|
|
666
680
|
api_version: 'v1';
|
|
667
681
|
/**
|
|
668
|
-
*
|
|
682
|
+
* A configured payout destination where a user receives earned funds, such as a
|
|
683
|
+
* bank account or digital wallet.
|
|
669
684
|
*/
|
|
670
685
|
data: PayoutMethodCreatedWebhookEvent.Data;
|
|
671
686
|
/**
|
|
@@ -683,7 +698,8 @@ export interface PayoutMethodCreatedWebhookEvent {
|
|
|
683
698
|
}
|
|
684
699
|
export declare namespace PayoutMethodCreatedWebhookEvent {
|
|
685
700
|
/**
|
|
686
|
-
*
|
|
701
|
+
* A configured payout destination where a user receives earned funds, such as a
|
|
702
|
+
* bank account or digital wallet.
|
|
687
703
|
*/
|
|
688
704
|
interface Data {
|
|
689
705
|
/**
|
|
@@ -691,12 +707,13 @@ export declare namespace PayoutMethodCreatedWebhookEvent {
|
|
|
691
707
|
*/
|
|
692
708
|
id: string;
|
|
693
709
|
/**
|
|
694
|
-
* A
|
|
695
|
-
* 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.
|
|
696
712
|
*/
|
|
697
713
|
account_reference: string | null;
|
|
698
714
|
/**
|
|
699
|
-
* The company associated with
|
|
715
|
+
* The company associated with this payout destination. Null if not linked to a
|
|
716
|
+
* specific company.
|
|
700
717
|
*/
|
|
701
718
|
company: Data.Company | null;
|
|
702
719
|
/**
|
|
@@ -704,31 +721,35 @@ export declare namespace PayoutMethodCreatedWebhookEvent {
|
|
|
704
721
|
*/
|
|
705
722
|
created_at: string;
|
|
706
723
|
/**
|
|
707
|
-
* The currency code
|
|
708
|
-
*
|
|
724
|
+
* The three-letter ISO currency code that payouts are delivered in for this
|
|
725
|
+
* destination.
|
|
709
726
|
*/
|
|
710
727
|
currency: string;
|
|
711
728
|
/**
|
|
712
|
-
* The payout destination
|
|
729
|
+
* The payout destination configuration linked to this token. Null if not yet
|
|
730
|
+
* configured.
|
|
713
731
|
*/
|
|
714
732
|
destination: Data.Destination | null;
|
|
715
733
|
/**
|
|
716
|
-
* 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.
|
|
717
736
|
*/
|
|
718
737
|
institution_name: string | null;
|
|
719
738
|
/**
|
|
720
|
-
* Whether this
|
|
739
|
+
* Whether this is the default payout destination for the associated payout
|
|
740
|
+
* account.
|
|
721
741
|
*/
|
|
722
742
|
is_default: boolean;
|
|
723
743
|
/**
|
|
724
|
-
*
|
|
725
|
-
*
|
|
744
|
+
* A user-defined label to help identify this payout destination. Not sent to the
|
|
745
|
+
* provider. Null if no nickname has been set.
|
|
726
746
|
*/
|
|
727
747
|
nickname: string | null;
|
|
728
748
|
}
|
|
729
749
|
namespace Data {
|
|
730
750
|
/**
|
|
731
|
-
* The company associated with
|
|
751
|
+
* The company associated with this payout destination. Null if not linked to a
|
|
752
|
+
* specific company.
|
|
732
753
|
*/
|
|
733
754
|
interface Company {
|
|
734
755
|
/**
|
|
@@ -737,7 +758,8 @@ export declare namespace PayoutMethodCreatedWebhookEvent {
|
|
|
737
758
|
id: string;
|
|
738
759
|
}
|
|
739
760
|
/**
|
|
740
|
-
* The payout destination
|
|
761
|
+
* The payout destination configuration linked to this token. Null if not yet
|
|
762
|
+
* configured.
|
|
741
763
|
*/
|
|
742
764
|
interface Destination {
|
|
743
765
|
/**
|
|
@@ -765,7 +787,8 @@ export interface VerificationSucceededWebhookEvent {
|
|
|
765
787
|
*/
|
|
766
788
|
api_version: 'v1';
|
|
767
789
|
/**
|
|
768
|
-
* An
|
|
790
|
+
* An identity verification session used to confirm a person or entity's identity
|
|
791
|
+
* for payout account eligibility.
|
|
769
792
|
*/
|
|
770
793
|
data: VerificationSucceededWebhookEvent.Data;
|
|
771
794
|
/**
|
|
@@ -783,7 +806,8 @@ export interface VerificationSucceededWebhookEvent {
|
|
|
783
806
|
}
|
|
784
807
|
export declare namespace VerificationSucceededWebhookEvent {
|
|
785
808
|
/**
|
|
786
|
-
* An
|
|
809
|
+
* An identity verification session used to confirm a person or entity's identity
|
|
810
|
+
* for payout account eligibility.
|
|
787
811
|
*/
|
|
788
812
|
interface Data {
|
|
789
813
|
/**
|
|
@@ -795,11 +819,12 @@ export declare namespace VerificationSucceededWebhookEvent {
|
|
|
795
819
|
*/
|
|
796
820
|
last_error_code: VerificationsAPI.VerificationErrorCode | null;
|
|
797
821
|
/**
|
|
798
|
-
*
|
|
822
|
+
* A human-readable explanation of the most recent verification error. Null if no
|
|
823
|
+
* error has occurred.
|
|
799
824
|
*/
|
|
800
825
|
last_error_reason: string | null;
|
|
801
826
|
/**
|
|
802
|
-
* The status of
|
|
827
|
+
* The current status of this verification session.
|
|
803
828
|
*/
|
|
804
829
|
status: VerificationsAPI.VerificationStatus;
|
|
805
830
|
}
|
|
@@ -814,8 +839,8 @@ export interface PaymentCreatedWebhookEvent {
|
|
|
814
839
|
*/
|
|
815
840
|
api_version: 'v1';
|
|
816
841
|
/**
|
|
817
|
-
* A payment represents a completed or attempted charge
|
|
818
|
-
*
|
|
842
|
+
* A payment represents a completed or attempted charge. Payments track the amount,
|
|
843
|
+
* status, currency, and payment method used.
|
|
819
844
|
*/
|
|
820
845
|
data: Shared.Payment;
|
|
821
846
|
/**
|
|
@@ -841,8 +866,8 @@ export interface PaymentSucceededWebhookEvent {
|
|
|
841
866
|
*/
|
|
842
867
|
api_version: 'v1';
|
|
843
868
|
/**
|
|
844
|
-
* A payment represents a completed or attempted charge
|
|
845
|
-
*
|
|
869
|
+
* A payment represents a completed or attempted charge. Payments track the amount,
|
|
870
|
+
* status, currency, and payment method used.
|
|
846
871
|
*/
|
|
847
872
|
data: Shared.Payment;
|
|
848
873
|
/**
|
|
@@ -868,8 +893,8 @@ export interface PaymentFailedWebhookEvent {
|
|
|
868
893
|
*/
|
|
869
894
|
api_version: 'v1';
|
|
870
895
|
/**
|
|
871
|
-
* A payment represents a completed or attempted charge
|
|
872
|
-
*
|
|
896
|
+
* A payment represents a completed or attempted charge. Payments track the amount,
|
|
897
|
+
* status, currency, and payment method used.
|
|
873
898
|
*/
|
|
874
899
|
data: Shared.Payment;
|
|
875
900
|
/**
|
|
@@ -895,8 +920,8 @@ export interface PaymentPendingWebhookEvent {
|
|
|
895
920
|
*/
|
|
896
921
|
api_version: 'v1';
|
|
897
922
|
/**
|
|
898
|
-
* A payment represents a completed or attempted charge
|
|
899
|
-
*
|
|
923
|
+
* A payment represents a completed or attempted charge. Payments track the amount,
|
|
924
|
+
* status, currency, and payment method used.
|
|
900
925
|
*/
|
|
901
926
|
data: Shared.Payment;
|
|
902
927
|
/**
|
|
@@ -1004,8 +1029,8 @@ export declare namespace RefundCreatedWebhookEvent {
|
|
|
1004
1029
|
*/
|
|
1005
1030
|
id: string;
|
|
1006
1031
|
/**
|
|
1007
|
-
* The amount
|
|
1008
|
-
*
|
|
1032
|
+
* The refunded amount as a decimal in the specified currency, such as 10.43 for
|
|
1033
|
+
* $10.43 USD.
|
|
1009
1034
|
*/
|
|
1010
1035
|
amount: number;
|
|
1011
1036
|
/**
|
|
@@ -1013,19 +1038,21 @@ export declare namespace RefundCreatedWebhookEvent {
|
|
|
1013
1038
|
*/
|
|
1014
1039
|
created_at: string;
|
|
1015
1040
|
/**
|
|
1016
|
-
* The currency
|
|
1041
|
+
* The three-letter ISO currency code for the refunded amount.
|
|
1017
1042
|
*/
|
|
1018
1043
|
currency: Shared.Currency;
|
|
1019
1044
|
/**
|
|
1020
|
-
* The payment
|
|
1045
|
+
* The original payment that this refund was issued against. Null if the payment is
|
|
1046
|
+
* no longer available.
|
|
1021
1047
|
*/
|
|
1022
1048
|
payment: Data.Payment | null;
|
|
1023
1049
|
/**
|
|
1024
|
-
* The provider
|
|
1050
|
+
* The payment provider that processed the refund.
|
|
1025
1051
|
*/
|
|
1026
1052
|
provider: RefundsAPI.PaymentProvider;
|
|
1027
1053
|
/**
|
|
1028
|
-
* The
|
|
1054
|
+
* The timestamp when the refund was created in the payment provider's system. Null
|
|
1055
|
+
* if not available from the provider.
|
|
1029
1056
|
*/
|
|
1030
1057
|
provider_created_at: string | null;
|
|
1031
1058
|
/**
|
|
@@ -1037,17 +1064,20 @@ export declare namespace RefundCreatedWebhookEvent {
|
|
|
1037
1064
|
*/
|
|
1038
1065
|
reference_type: RefundsAPI.RefundReferenceType | null;
|
|
1039
1066
|
/**
|
|
1040
|
-
* 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.
|
|
1041
1069
|
*/
|
|
1042
1070
|
reference_value: string | null;
|
|
1043
1071
|
/**
|
|
1044
|
-
* The status of the refund
|
|
1072
|
+
* The current processing status of the refund, such as pending, succeeded, or
|
|
1073
|
+
* failed.
|
|
1045
1074
|
*/
|
|
1046
1075
|
status: RefundsAPI.RefundStatus;
|
|
1047
1076
|
}
|
|
1048
1077
|
namespace Data {
|
|
1049
1078
|
/**
|
|
1050
|
-
* The payment
|
|
1079
|
+
* The original payment that this refund was issued against. Null if the payment is
|
|
1080
|
+
* no longer available.
|
|
1051
1081
|
*/
|
|
1052
1082
|
interface Payment {
|
|
1053
1083
|
/**
|
|
@@ -1063,7 +1093,8 @@ export declare namespace RefundCreatedWebhookEvent {
|
|
|
1063
1093
|
*/
|
|
1064
1094
|
card_brand: PaymentsAPI.CardBrands | null;
|
|
1065
1095
|
/**
|
|
1066
|
-
* 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.
|
|
1067
1098
|
*/
|
|
1068
1099
|
card_last4: string | null;
|
|
1069
1100
|
/**
|
|
@@ -1087,7 +1118,8 @@ export declare namespace RefundCreatedWebhookEvent {
|
|
|
1087
1118
|
*/
|
|
1088
1119
|
membership: Payment.Membership | null;
|
|
1089
1120
|
/**
|
|
1090
|
-
* The
|
|
1121
|
+
* The time at which this payment was successfully collected. Null if the payment
|
|
1122
|
+
* has not yet succeeded. As a Unix timestamp.
|
|
1091
1123
|
*/
|
|
1092
1124
|
paid_at: string | null;
|
|
1093
1125
|
/**
|
|
@@ -1147,15 +1179,16 @@ export declare namespace RefundCreatedWebhookEvent {
|
|
|
1147
1179
|
*/
|
|
1148
1180
|
id: string;
|
|
1149
1181
|
/**
|
|
1150
|
-
* The email
|
|
1182
|
+
* The user's email address. Requires the member:email:read permission to access.
|
|
1183
|
+
* Null if not authorized.
|
|
1151
1184
|
*/
|
|
1152
1185
|
email: string | null;
|
|
1153
1186
|
/**
|
|
1154
|
-
* The
|
|
1187
|
+
* The user's display name shown on their public profile.
|
|
1155
1188
|
*/
|
|
1156
1189
|
name: string | null;
|
|
1157
1190
|
/**
|
|
1158
|
-
* The
|
|
1191
|
+
* The user's unique username shown on their public profile.
|
|
1159
1192
|
*/
|
|
1160
1193
|
username: string;
|
|
1161
1194
|
}
|
|
@@ -1200,8 +1233,8 @@ export declare namespace RefundUpdatedWebhookEvent {
|
|
|
1200
1233
|
*/
|
|
1201
1234
|
id: string;
|
|
1202
1235
|
/**
|
|
1203
|
-
* The amount
|
|
1204
|
-
*
|
|
1236
|
+
* The refunded amount as a decimal in the specified currency, such as 10.43 for
|
|
1237
|
+
* $10.43 USD.
|
|
1205
1238
|
*/
|
|
1206
1239
|
amount: number;
|
|
1207
1240
|
/**
|
|
@@ -1209,19 +1242,21 @@ export declare namespace RefundUpdatedWebhookEvent {
|
|
|
1209
1242
|
*/
|
|
1210
1243
|
created_at: string;
|
|
1211
1244
|
/**
|
|
1212
|
-
* The currency
|
|
1245
|
+
* The three-letter ISO currency code for the refunded amount.
|
|
1213
1246
|
*/
|
|
1214
1247
|
currency: Shared.Currency;
|
|
1215
1248
|
/**
|
|
1216
|
-
* The payment
|
|
1249
|
+
* The original payment that this refund was issued against. Null if the payment is
|
|
1250
|
+
* no longer available.
|
|
1217
1251
|
*/
|
|
1218
1252
|
payment: Data.Payment | null;
|
|
1219
1253
|
/**
|
|
1220
|
-
* The provider
|
|
1254
|
+
* The payment provider that processed the refund.
|
|
1221
1255
|
*/
|
|
1222
1256
|
provider: RefundsAPI.PaymentProvider;
|
|
1223
1257
|
/**
|
|
1224
|
-
* The
|
|
1258
|
+
* The timestamp when the refund was created in the payment provider's system. Null
|
|
1259
|
+
* if not available from the provider.
|
|
1225
1260
|
*/
|
|
1226
1261
|
provider_created_at: string | null;
|
|
1227
1262
|
/**
|
|
@@ -1233,17 +1268,20 @@ export declare namespace RefundUpdatedWebhookEvent {
|
|
|
1233
1268
|
*/
|
|
1234
1269
|
reference_type: RefundsAPI.RefundReferenceType | null;
|
|
1235
1270
|
/**
|
|
1236
|
-
* 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.
|
|
1237
1273
|
*/
|
|
1238
1274
|
reference_value: string | null;
|
|
1239
1275
|
/**
|
|
1240
|
-
* The status of the refund
|
|
1276
|
+
* The current processing status of the refund, such as pending, succeeded, or
|
|
1277
|
+
* failed.
|
|
1241
1278
|
*/
|
|
1242
1279
|
status: RefundsAPI.RefundStatus;
|
|
1243
1280
|
}
|
|
1244
1281
|
namespace Data {
|
|
1245
1282
|
/**
|
|
1246
|
-
* The payment
|
|
1283
|
+
* The original payment that this refund was issued against. Null if the payment is
|
|
1284
|
+
* no longer available.
|
|
1247
1285
|
*/
|
|
1248
1286
|
interface Payment {
|
|
1249
1287
|
/**
|
|
@@ -1259,7 +1297,8 @@ export declare namespace RefundUpdatedWebhookEvent {
|
|
|
1259
1297
|
*/
|
|
1260
1298
|
card_brand: PaymentsAPI.CardBrands | null;
|
|
1261
1299
|
/**
|
|
1262
|
-
* 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.
|
|
1263
1302
|
*/
|
|
1264
1303
|
card_last4: string | null;
|
|
1265
1304
|
/**
|
|
@@ -1283,7 +1322,8 @@ export declare namespace RefundUpdatedWebhookEvent {
|
|
|
1283
1322
|
*/
|
|
1284
1323
|
membership: Payment.Membership | null;
|
|
1285
1324
|
/**
|
|
1286
|
-
* The
|
|
1325
|
+
* The time at which this payment was successfully collected. Null if the payment
|
|
1326
|
+
* has not yet succeeded. As a Unix timestamp.
|
|
1287
1327
|
*/
|
|
1288
1328
|
paid_at: string | null;
|
|
1289
1329
|
/**
|
|
@@ -1343,15 +1383,16 @@ export declare namespace RefundUpdatedWebhookEvent {
|
|
|
1343
1383
|
*/
|
|
1344
1384
|
id: string;
|
|
1345
1385
|
/**
|
|
1346
|
-
* The email
|
|
1386
|
+
* The user's email address. Requires the member:email:read permission to access.
|
|
1387
|
+
* Null if not authorized.
|
|
1347
1388
|
*/
|
|
1348
1389
|
email: string | null;
|
|
1349
1390
|
/**
|
|
1350
|
-
* The
|
|
1391
|
+
* The user's display name shown on their public profile.
|
|
1351
1392
|
*/
|
|
1352
1393
|
name: string | null;
|
|
1353
1394
|
/**
|
|
1354
|
-
* The
|
|
1395
|
+
* The user's unique username shown on their public profile.
|
|
1355
1396
|
*/
|
|
1356
1397
|
username: string;
|
|
1357
1398
|
}
|
|
@@ -1438,7 +1479,7 @@ export interface WebhookUpdateParams {
|
|
|
1438
1479
|
}
|
|
1439
1480
|
export interface WebhookListParams extends CursorPageParams {
|
|
1440
1481
|
/**
|
|
1441
|
-
* The
|
|
1482
|
+
* The unique identifier of the company to list webhooks for.
|
|
1442
1483
|
*/
|
|
1443
1484
|
company_id: string;
|
|
1444
1485
|
/**
|