@augustusbank/typescript-sdk 0.22.0 → 0.22.1
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 +19 -0
- package/client.d.mts +6 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -6
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account-programs.d.mts +21 -16
- package/resources/account-programs.d.mts.map +1 -1
- package/resources/account-programs.d.ts +21 -16
- package/resources/account-programs.d.ts.map +1 -1
- package/resources/account-programs.js +2 -2
- package/resources/account-programs.js.map +1 -1
- package/resources/account-programs.mjs +2 -2
- package/resources/account-programs.mjs.map +1 -1
- package/resources/accounts.d.mts +21 -6
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +21 -6
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js +2 -2
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs +2 -2
- package/resources/accounts.mjs.map +1 -1
- package/resources/counterparties.d.mts +16 -16
- package/resources/counterparties.d.mts.map +1 -1
- package/resources/counterparties.d.ts +16 -16
- package/resources/counterparties.d.ts.map +1 -1
- package/resources/deposits.d.mts +10 -0
- package/resources/deposits.d.mts.map +1 -1
- package/resources/deposits.d.ts +10 -0
- package/resources/deposits.d.ts.map +1 -1
- package/resources/events.d.mts +3 -3
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +3 -3
- package/resources/events.d.ts.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/payouts.d.mts +22 -406
- package/resources/payouts.d.mts.map +1 -1
- package/resources/payouts.d.ts +22 -406
- package/resources/payouts.d.ts.map +1 -1
- package/resources/payouts.js +2 -4
- package/resources/payouts.js.map +1 -1
- package/resources/payouts.mjs +2 -4
- package/resources/payouts.mjs.map +1 -1
- package/resources/simulations/account-programs.d.mts +9 -75
- package/resources/simulations/account-programs.d.mts.map +1 -1
- package/resources/simulations/account-programs.d.ts +9 -75
- package/resources/simulations/account-programs.d.ts.map +1 -1
- package/resources/simulations/account-programs.js +0 -2
- package/resources/simulations/account-programs.js.map +1 -1
- package/resources/simulations/account-programs.mjs +0 -2
- package/resources/simulations/account-programs.mjs.map +1 -1
- package/resources/simulations/accounts.d.mts +9 -70
- package/resources/simulations/accounts.d.mts.map +1 -1
- package/resources/simulations/accounts.d.ts +9 -70
- package/resources/simulations/accounts.d.ts.map +1 -1
- package/resources/simulations/accounts.js +0 -1
- package/resources/simulations/accounts.js.map +1 -1
- package/resources/simulations/accounts.mjs +0 -1
- package/resources/simulations/accounts.mjs.map +1 -1
- package/resources/simulations/conversions.d.mts +54 -0
- package/resources/simulations/conversions.d.mts.map +1 -0
- package/resources/simulations/conversions.d.ts +54 -0
- package/resources/simulations/conversions.d.ts.map +1 -0
- package/resources/simulations/conversions.js +39 -0
- package/resources/simulations/conversions.js.map +1 -0
- package/resources/simulations/conversions.mjs +35 -0
- package/resources/simulations/conversions.mjs.map +1 -0
- package/resources/simulations/deposits.d.mts +14 -30
- package/resources/simulations/deposits.d.mts.map +1 -1
- package/resources/simulations/deposits.d.ts +14 -30
- package/resources/simulations/deposits.d.ts.map +1 -1
- package/resources/simulations/index.d.mts +1 -0
- package/resources/simulations/index.d.mts.map +1 -1
- package/resources/simulations/index.d.ts +1 -0
- package/resources/simulations/index.d.ts.map +1 -1
- package/resources/simulations/index.js +3 -1
- package/resources/simulations/index.js.map +1 -1
- package/resources/simulations/index.mjs +1 -0
- package/resources/simulations/index.mjs.map +1 -1
- package/resources/simulations/payouts.d.mts +4 -18
- package/resources/simulations/payouts.d.mts.map +1 -1
- package/resources/simulations/payouts.d.ts +4 -18
- package/resources/simulations/payouts.d.ts.map +1 -1
- package/resources/simulations/simulations.d.mts +4 -0
- package/resources/simulations/simulations.d.mts.map +1 -1
- package/resources/simulations/simulations.d.ts +4 -0
- package/resources/simulations/simulations.d.ts.map +1 -1
- package/resources/simulations/simulations.js +4 -0
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/simulations.mjs +4 -0
- package/resources/simulations/simulations.mjs.map +1 -1
- package/resources/transactions.d.mts +60 -0
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +60 -0
- package/resources/transactions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.d.mts +9 -9
- package/resources/webhook-subscriptions.d.mts.map +1 -1
- package/resources/webhook-subscriptions.d.ts +9 -9
- package/resources/webhook-subscriptions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.js +1 -1
- package/resources/webhook-subscriptions.mjs +1 -1
- package/resources/webhooks.d.mts +245 -30
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +245 -30
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +16 -8
- package/src/resources/account-programs.ts +29 -18
- package/src/resources/accounts.ts +29 -6
- package/src/resources/counterparties.ts +16 -16
- package/src/resources/deposits.ts +12 -0
- package/src/resources/events.ts +18 -12
- package/src/resources/index.ts +8 -4
- package/src/resources/payouts.ts +36 -1993
- package/src/resources/simulations/account-programs.ts +10 -91
- package/src/resources/simulations/accounts.ts +10 -85
- package/src/resources/simulations/conversions.ts +70 -0
- package/src/resources/simulations/deposits.ts +27 -35
- package/src/resources/simulations/index.ts +1 -0
- package/src/resources/simulations/payouts.ts +4 -22
- package/src/resources/simulations/simulations.ts +10 -0
- package/src/resources/transactions.ts +70 -0
- package/src/resources/webhook-subscriptions.ts +49 -33
- package/src/resources/webhooks.ts +360 -36
- 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
|
@@ -10,7 +10,7 @@ export declare class WebhookSubscriptions extends APIResource {
|
|
|
10
10
|
* ```ts
|
|
11
11
|
* const webhookSubscription =
|
|
12
12
|
* await client.webhookSubscriptions.create({
|
|
13
|
-
* events: ['payout.
|
|
13
|
+
* events: ['payout.sent'],
|
|
14
14
|
* url: 'https://sandbox.example.com/webhooks/augustus',
|
|
15
15
|
* });
|
|
16
16
|
* ```
|
|
@@ -94,7 +94,7 @@ export interface WebhookSubscriptionCreateResponse {
|
|
|
94
94
|
/**
|
|
95
95
|
* Event types this subscription receives.
|
|
96
96
|
*/
|
|
97
|
-
events: Array<'payout.
|
|
97
|
+
events: Array<'payout.initiated' | 'payout.submitted' | 'payout.sent' | 'payout.failed' | 'payout.returned' | 'return.initiated' | 'return.submitted' | 'return.sent' | 'return.failed' | 'return.returned' | 'deposit.settled' | 'conversion.created' | 'conversion.completed' | 'conversion.failed' | 'account_holder.active' | 'account_holder.closed'>;
|
|
98
98
|
/**
|
|
99
99
|
* Resource type discriminator.
|
|
100
100
|
*/
|
|
@@ -120,7 +120,7 @@ export interface WebhookSubscriptionRetrieveResponse {
|
|
|
120
120
|
/**
|
|
121
121
|
* Event types this subscription receives.
|
|
122
122
|
*/
|
|
123
|
-
events: Array<'payout.
|
|
123
|
+
events: Array<'payout.initiated' | 'payout.submitted' | 'payout.sent' | 'payout.failed' | 'payout.returned' | 'return.initiated' | 'return.submitted' | 'return.sent' | 'return.failed' | 'return.returned' | 'deposit.settled' | 'conversion.created' | 'conversion.completed' | 'conversion.failed' | 'account_holder.active' | 'account_holder.closed'>;
|
|
124
124
|
/**
|
|
125
125
|
* Resource type discriminator.
|
|
126
126
|
*/
|
|
@@ -146,7 +146,7 @@ export interface WebhookSubscriptionUpdateResponse {
|
|
|
146
146
|
/**
|
|
147
147
|
* Event types this subscription receives.
|
|
148
148
|
*/
|
|
149
|
-
events: Array<'payout.
|
|
149
|
+
events: Array<'payout.initiated' | 'payout.submitted' | 'payout.sent' | 'payout.failed' | 'payout.returned' | 'return.initiated' | 'return.submitted' | 'return.sent' | 'return.failed' | 'return.returned' | 'deposit.settled' | 'conversion.created' | 'conversion.completed' | 'conversion.failed' | 'account_holder.active' | 'account_holder.closed'>;
|
|
150
150
|
/**
|
|
151
151
|
* Resource type discriminator.
|
|
152
152
|
*/
|
|
@@ -172,7 +172,7 @@ export interface WebhookSubscriptionListResponse {
|
|
|
172
172
|
/**
|
|
173
173
|
* Event types this subscription receives.
|
|
174
174
|
*/
|
|
175
|
-
events: Array<'payout.
|
|
175
|
+
events: Array<'payout.initiated' | 'payout.submitted' | 'payout.sent' | 'payout.failed' | 'payout.returned' | 'return.initiated' | 'return.submitted' | 'return.sent' | 'return.failed' | 'return.returned' | 'deposit.settled' | 'conversion.created' | 'conversion.completed' | 'conversion.failed' | 'account_holder.active' | 'account_holder.closed'>;
|
|
176
176
|
/**
|
|
177
177
|
* Resource type discriminator.
|
|
178
178
|
*/
|
|
@@ -198,7 +198,7 @@ export interface WebhookSubscriptionDeleteResponse {
|
|
|
198
198
|
/**
|
|
199
199
|
* Event types this subscription receives.
|
|
200
200
|
*/
|
|
201
|
-
events: Array<'payout.
|
|
201
|
+
events: Array<'payout.initiated' | 'payout.submitted' | 'payout.sent' | 'payout.failed' | 'payout.returned' | 'return.initiated' | 'return.submitted' | 'return.sent' | 'return.failed' | 'return.returned' | 'deposit.settled' | 'conversion.created' | 'conversion.completed' | 'conversion.failed' | 'account_holder.active' | 'account_holder.closed'>;
|
|
202
202
|
/**
|
|
203
203
|
* Resource type discriminator.
|
|
204
204
|
*/
|
|
@@ -236,7 +236,7 @@ export interface WebhookSubscriptionSendTestEventResponse {
|
|
|
236
236
|
/**
|
|
237
237
|
* Event type.
|
|
238
238
|
*/
|
|
239
|
-
event_type: 'payout.
|
|
239
|
+
event_type: 'payout.initiated' | 'payout.submitted' | 'payout.sent' | 'payout.failed' | 'payout.returned' | 'return.initiated' | 'return.submitted' | 'return.sent' | 'return.failed' | 'return.returned' | 'deposit.settled' | 'conversion.created' | 'conversion.completed' | 'conversion.failed' | 'account_holder.active' | 'account_holder.closed' | 'ping.test';
|
|
240
240
|
/**
|
|
241
241
|
* Resource type discriminator.
|
|
242
242
|
*/
|
|
@@ -246,7 +246,7 @@ export interface WebhookSubscriptionCreateParams {
|
|
|
246
246
|
/**
|
|
247
247
|
* Event types to subscribe to. Use ["*"] for all events.
|
|
248
248
|
*/
|
|
249
|
-
events: Array<'payout.
|
|
249
|
+
events: Array<'payout.initiated' | 'payout.submitted' | 'payout.sent' | 'payout.failed' | 'payout.returned' | 'return.initiated' | 'return.submitted' | 'return.sent' | 'return.failed' | 'return.returned' | 'deposit.settled' | 'conversion.created' | 'conversion.completed' | 'conversion.failed' | 'account_holder.active' | 'account_holder.closed' | '*'>;
|
|
250
250
|
/**
|
|
251
251
|
* The HTTPS URL where webhook events will be delivered.
|
|
252
252
|
*/
|
|
@@ -257,7 +257,7 @@ export interface WebhookSubscriptionUpdateParams {
|
|
|
257
257
|
* New event types. Omit or send null to keep the current events. Use ["*"] for all
|
|
258
258
|
* events.
|
|
259
259
|
*/
|
|
260
|
-
events?: Array<'payout.
|
|
260
|
+
events?: Array<'payout.initiated' | 'payout.submitted' | 'payout.sent' | 'payout.failed' | 'payout.returned' | 'return.initiated' | 'return.submitted' | 'return.sent' | 'return.failed' | 'return.returned' | 'deposit.settled' | 'conversion.created' | 'conversion.completed' | 'conversion.failed' | 'account_holder.active' | 'account_holder.closed' | '*'> | null;
|
|
261
261
|
/**
|
|
262
262
|
* The new HTTPS URL. Omit or send null to keep the current URL.
|
|
263
263
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook-subscriptions.d.mts","sourceRoot":"","sources":["../src/resources/webhook-subscriptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,+BAA2B;AACpF,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,oBAAqB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oBAAoB,CAAC;IAC5C,OAAO,EACL,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
|
@@ -10,7 +10,7 @@ export declare class WebhookSubscriptions extends APIResource {
|
|
|
10
10
|
* ```ts
|
|
11
11
|
* const webhookSubscription =
|
|
12
12
|
* await client.webhookSubscriptions.create({
|
|
13
|
-
* events: ['payout.
|
|
13
|
+
* events: ['payout.sent'],
|
|
14
14
|
* url: 'https://sandbox.example.com/webhooks/augustus',
|
|
15
15
|
* });
|
|
16
16
|
* ```
|
|
@@ -94,7 +94,7 @@ export interface WebhookSubscriptionCreateResponse {
|
|
|
94
94
|
/**
|
|
95
95
|
* Event types this subscription receives.
|
|
96
96
|
*/
|
|
97
|
-
events: Array<'payout.
|
|
97
|
+
events: Array<'payout.initiated' | 'payout.submitted' | 'payout.sent' | 'payout.failed' | 'payout.returned' | 'return.initiated' | 'return.submitted' | 'return.sent' | 'return.failed' | 'return.returned' | 'deposit.settled' | 'conversion.created' | 'conversion.completed' | 'conversion.failed' | 'account_holder.active' | 'account_holder.closed'>;
|
|
98
98
|
/**
|
|
99
99
|
* Resource type discriminator.
|
|
100
100
|
*/
|
|
@@ -120,7 +120,7 @@ export interface WebhookSubscriptionRetrieveResponse {
|
|
|
120
120
|
/**
|
|
121
121
|
* Event types this subscription receives.
|
|
122
122
|
*/
|
|
123
|
-
events: Array<'payout.
|
|
123
|
+
events: Array<'payout.initiated' | 'payout.submitted' | 'payout.sent' | 'payout.failed' | 'payout.returned' | 'return.initiated' | 'return.submitted' | 'return.sent' | 'return.failed' | 'return.returned' | 'deposit.settled' | 'conversion.created' | 'conversion.completed' | 'conversion.failed' | 'account_holder.active' | 'account_holder.closed'>;
|
|
124
124
|
/**
|
|
125
125
|
* Resource type discriminator.
|
|
126
126
|
*/
|
|
@@ -146,7 +146,7 @@ export interface WebhookSubscriptionUpdateResponse {
|
|
|
146
146
|
/**
|
|
147
147
|
* Event types this subscription receives.
|
|
148
148
|
*/
|
|
149
|
-
events: Array<'payout.
|
|
149
|
+
events: Array<'payout.initiated' | 'payout.submitted' | 'payout.sent' | 'payout.failed' | 'payout.returned' | 'return.initiated' | 'return.submitted' | 'return.sent' | 'return.failed' | 'return.returned' | 'deposit.settled' | 'conversion.created' | 'conversion.completed' | 'conversion.failed' | 'account_holder.active' | 'account_holder.closed'>;
|
|
150
150
|
/**
|
|
151
151
|
* Resource type discriminator.
|
|
152
152
|
*/
|
|
@@ -172,7 +172,7 @@ export interface WebhookSubscriptionListResponse {
|
|
|
172
172
|
/**
|
|
173
173
|
* Event types this subscription receives.
|
|
174
174
|
*/
|
|
175
|
-
events: Array<'payout.
|
|
175
|
+
events: Array<'payout.initiated' | 'payout.submitted' | 'payout.sent' | 'payout.failed' | 'payout.returned' | 'return.initiated' | 'return.submitted' | 'return.sent' | 'return.failed' | 'return.returned' | 'deposit.settled' | 'conversion.created' | 'conversion.completed' | 'conversion.failed' | 'account_holder.active' | 'account_holder.closed'>;
|
|
176
176
|
/**
|
|
177
177
|
* Resource type discriminator.
|
|
178
178
|
*/
|
|
@@ -198,7 +198,7 @@ export interface WebhookSubscriptionDeleteResponse {
|
|
|
198
198
|
/**
|
|
199
199
|
* Event types this subscription receives.
|
|
200
200
|
*/
|
|
201
|
-
events: Array<'payout.
|
|
201
|
+
events: Array<'payout.initiated' | 'payout.submitted' | 'payout.sent' | 'payout.failed' | 'payout.returned' | 'return.initiated' | 'return.submitted' | 'return.sent' | 'return.failed' | 'return.returned' | 'deposit.settled' | 'conversion.created' | 'conversion.completed' | 'conversion.failed' | 'account_holder.active' | 'account_holder.closed'>;
|
|
202
202
|
/**
|
|
203
203
|
* Resource type discriminator.
|
|
204
204
|
*/
|
|
@@ -236,7 +236,7 @@ export interface WebhookSubscriptionSendTestEventResponse {
|
|
|
236
236
|
/**
|
|
237
237
|
* Event type.
|
|
238
238
|
*/
|
|
239
|
-
event_type: 'payout.
|
|
239
|
+
event_type: 'payout.initiated' | 'payout.submitted' | 'payout.sent' | 'payout.failed' | 'payout.returned' | 'return.initiated' | 'return.submitted' | 'return.sent' | 'return.failed' | 'return.returned' | 'deposit.settled' | 'conversion.created' | 'conversion.completed' | 'conversion.failed' | 'account_holder.active' | 'account_holder.closed' | 'ping.test';
|
|
240
240
|
/**
|
|
241
241
|
* Resource type discriminator.
|
|
242
242
|
*/
|
|
@@ -246,7 +246,7 @@ export interface WebhookSubscriptionCreateParams {
|
|
|
246
246
|
/**
|
|
247
247
|
* Event types to subscribe to. Use ["*"] for all events.
|
|
248
248
|
*/
|
|
249
|
-
events: Array<'payout.
|
|
249
|
+
events: Array<'payout.initiated' | 'payout.submitted' | 'payout.sent' | 'payout.failed' | 'payout.returned' | 'return.initiated' | 'return.submitted' | 'return.sent' | 'return.failed' | 'return.returned' | 'deposit.settled' | 'conversion.created' | 'conversion.completed' | 'conversion.failed' | 'account_holder.active' | 'account_holder.closed' | '*'>;
|
|
250
250
|
/**
|
|
251
251
|
* The HTTPS URL where webhook events will be delivered.
|
|
252
252
|
*/
|
|
@@ -257,7 +257,7 @@ export interface WebhookSubscriptionUpdateParams {
|
|
|
257
257
|
* New event types. Omit or send null to keep the current events. Use ["*"] for all
|
|
258
258
|
* events.
|
|
259
259
|
*/
|
|
260
|
-
events?: Array<'payout.
|
|
260
|
+
events?: Array<'payout.initiated' | 'payout.submitted' | 'payout.sent' | 'payout.failed' | 'payout.returned' | 'return.initiated' | 'return.submitted' | 'return.sent' | 'return.failed' | 'return.returned' | 'deposit.settled' | 'conversion.created' | 'conversion.completed' | 'conversion.failed' | 'account_holder.active' | 'account_holder.closed' | '*'> | null;
|
|
261
261
|
/**
|
|
262
262
|
* The new HTTPS URL. Omit or send null to keep the current URL.
|
|
263
263
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook-subscriptions.d.ts","sourceRoot":"","sources":["../src/resources/webhook-subscriptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,8BAA2B;AACpF,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,oBAAqB,SAAQ,WAAW;IACnD;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,+BAA+B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;IAIhD;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mCAAmC,CAAC;IAI/F;;;;;;;;;;OAUG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,+BAA+B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;IAIhD;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,6BAA6B,GAAG,IAAI,GAAG,SAAc,EAC5D,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0CAA0C,EAAE,+BAA+B,CAAC;IAO3F;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iCAAiC,CAAC;IAI3F;;;;;;;;;;;;;;OAcG;IACH,aAAa,CAAC,EAAE,EAAE,MAA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AAM,CAAC;CACb;AAED,MAAM,WAAW,+BAA+B;IAC9C;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CACV,kBAAkB,GAClB,kBAAkB,GAClB,aAAa,GACb,eAAe,GACf,iBAAiB,GACjB,kBAAkB,GAClB,kBAAkB,GAClB,aAAa,GACb,eAAe,GACf,iBAAiB,GACjB,iBAAiB,GACjB,oBAAoB,GACpB,sBAAsB,GACtB,mBAAmB,GACnB,uBAAuB,GACvB,uBAAuB,GACvB,GAAG,CACN,GAAG,IAAI,CAAC;IAET;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,6BAA8B,SAAQ,gBAAgB;CAAG;AAE1E,MAAM,CAAC,OAAO,WAAW,oBAAoB,CAAC;IAC5C,OAAO,EACL,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
|
@@ -13,7 +13,7 @@ class WebhookSubscriptions extends resource_1.APIResource {
|
|
|
13
13
|
* ```ts
|
|
14
14
|
* const webhookSubscription =
|
|
15
15
|
* await client.webhookSubscriptions.create({
|
|
16
|
-
* events: ['payout.
|
|
16
|
+
* events: ['payout.sent'],
|
|
17
17
|
* url: 'https://sandbox.example.com/webhooks/augustus',
|
|
18
18
|
* });
|
|
19
19
|
* ```
|
|
@@ -10,7 +10,7 @@ export class WebhookSubscriptions extends APIResource {
|
|
|
10
10
|
* ```ts
|
|
11
11
|
* const webhookSubscription =
|
|
12
12
|
* await client.webhookSubscriptions.create({
|
|
13
|
-
* events: ['payout.
|
|
13
|
+
* events: ['payout.sent'],
|
|
14
14
|
* url: 'https://sandbox.example.com/webhooks/augustus',
|
|
15
15
|
* });
|
|
16
16
|
* ```
|