increase 0.17.0 → 0.19.0
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 +30 -0
- package/README.md +2 -2
- package/core.d.ts +0 -10
- package/core.d.ts.map +1 -1
- package/core.js +1 -13
- package/core.js.map +1 -1
- package/core.mjs +0 -11
- package/core.mjs.map +1 -1
- package/index.d.mts +17 -4
- package/index.d.ts +17 -4
- package/index.d.ts.map +1 -1
- package/index.js +13 -3
- package/index.js.map +1 -1
- package/index.mjs +13 -3
- package/index.mjs.map +1 -1
- package/package.json +27 -23
- package/resource.d.ts +1 -7
- package/resource.d.ts.map +1 -1
- package/resource.js +1 -7
- package/resource.js.map +1 -1
- package/resource.mjs +1 -7
- package/resource.mjs.map +1 -1
- package/resources/account-numbers.js +4 -4
- package/resources/account-numbers.js.map +1 -1
- package/resources/account-numbers.mjs +4 -4
- package/resources/account-numbers.mjs.map +1 -1
- package/resources/account-statements.js +2 -2
- package/resources/account-statements.js.map +1 -1
- package/resources/account-statements.mjs +2 -2
- package/resources/account-statements.mjs.map +1 -1
- package/resources/account-transfers.js +5 -5
- package/resources/account-transfers.js.map +1 -1
- package/resources/account-transfers.mjs +5 -5
- package/resources/account-transfers.mjs.map +1 -1
- package/resources/accounts.js +6 -6
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs +6 -6
- package/resources/accounts.mjs.map +1 -1
- package/resources/ach-prenotifications.js +3 -3
- package/resources/ach-prenotifications.js.map +1 -1
- package/resources/ach-prenotifications.mjs +3 -3
- package/resources/ach-prenotifications.mjs.map +1 -1
- package/resources/ach-transfers.js +5 -5
- package/resources/ach-transfers.js.map +1 -1
- package/resources/ach-transfers.mjs +5 -5
- package/resources/ach-transfers.mjs.map +1 -1
- package/resources/bookkeeping-accounts.js +4 -4
- package/resources/bookkeeping-accounts.js.map +1 -1
- package/resources/bookkeeping-accounts.mjs +4 -4
- package/resources/bookkeeping-accounts.mjs.map +1 -1
- package/resources/bookkeeping-entries.js +2 -2
- package/resources/bookkeeping-entries.js.map +1 -1
- package/resources/bookkeeping-entries.mjs +2 -2
- package/resources/bookkeeping-entries.mjs.map +1 -1
- package/resources/bookkeeping-entry-sets.d.ts.map +1 -1
- package/resources/bookkeeping-entry-sets.js +6 -3
- package/resources/bookkeeping-entry-sets.js.map +1 -1
- package/resources/bookkeeping-entry-sets.mjs +6 -3
- package/resources/bookkeeping-entry-sets.mjs.map +1 -1
- package/resources/card-disputes.js +3 -3
- package/resources/card-disputes.js.map +1 -1
- package/resources/card-disputes.mjs +3 -3
- package/resources/card-disputes.mjs.map +1 -1
- package/resources/card-payments.js +2 -2
- package/resources/card-payments.js.map +1 -1
- package/resources/card-payments.mjs +2 -2
- package/resources/card-payments.mjs.map +1 -1
- package/resources/card-profiles.js +4 -4
- package/resources/card-profiles.js.map +1 -1
- package/resources/card-profiles.mjs +4 -4
- package/resources/card-profiles.mjs.map +1 -1
- package/resources/card-purchase-supplements.d.ts.map +1 -1
- package/resources/card-purchase-supplements.js +5 -2
- package/resources/card-purchase-supplements.js.map +1 -1
- package/resources/card-purchase-supplements.mjs +5 -2
- package/resources/card-purchase-supplements.mjs.map +1 -1
- package/resources/cards.js +5 -5
- package/resources/cards.js.map +1 -1
- package/resources/cards.mjs +5 -5
- package/resources/cards.mjs.map +1 -1
- package/resources/check-deposits.d.ts +18 -1
- package/resources/check-deposits.d.ts.map +1 -1
- package/resources/check-deposits.js +3 -3
- package/resources/check-deposits.js.map +1 -1
- package/resources/check-deposits.mjs +3 -3
- package/resources/check-deposits.mjs.map +1 -1
- package/resources/check-transfers.js +6 -6
- package/resources/check-transfers.js.map +1 -1
- package/resources/check-transfers.mjs +6 -6
- package/resources/check-transfers.mjs.map +1 -1
- package/resources/declined-transactions.js +2 -2
- package/resources/declined-transactions.js.map +1 -1
- package/resources/declined-transactions.mjs +2 -2
- package/resources/declined-transactions.mjs.map +1 -1
- package/resources/digital-wallet-tokens.js +2 -2
- package/resources/digital-wallet-tokens.js.map +1 -1
- package/resources/digital-wallet-tokens.mjs +2 -2
- package/resources/digital-wallet-tokens.mjs.map +1 -1
- package/resources/documents.js +2 -2
- package/resources/documents.js.map +1 -1
- package/resources/documents.mjs +2 -2
- package/resources/documents.mjs.map +1 -1
- package/resources/entities/beneficial-owners.js +3 -3
- package/resources/entities/beneficial-owners.js.map +1 -1
- package/resources/entities/beneficial-owners.mjs +3 -3
- package/resources/entities/beneficial-owners.mjs.map +1 -1
- package/resources/entities/entities.d.ts.map +1 -1
- package/resources/entities/entities.js +7 -7
- package/resources/entities/entities.js.map +1 -1
- package/resources/entities/entities.mjs +7 -7
- package/resources/entities/entities.mjs.map +1 -1
- package/resources/entities/supplemental-documents.js +2 -2
- package/resources/entities/supplemental-documents.js.map +1 -1
- package/resources/entities/supplemental-documents.mjs +2 -2
- package/resources/entities/supplemental-documents.mjs.map +1 -1
- package/resources/event-subscriptions.d.ts +18 -2
- package/resources/event-subscriptions.d.ts.map +1 -1
- package/resources/event-subscriptions.js +4 -4
- package/resources/event-subscriptions.js.map +1 -1
- package/resources/event-subscriptions.mjs +4 -4
- package/resources/event-subscriptions.mjs.map +1 -1
- package/resources/events.d.ts +10 -2
- package/resources/events.d.ts.map +1 -1
- package/resources/events.js +2 -2
- package/resources/events.js.map +1 -1
- package/resources/events.mjs +2 -2
- package/resources/events.mjs.map +1 -1
- package/resources/exports.js +3 -3
- package/resources/exports.js.map +1 -1
- package/resources/exports.mjs +3 -3
- package/resources/exports.mjs.map +1 -1
- package/resources/external-accounts.js +4 -4
- package/resources/external-accounts.js.map +1 -1
- package/resources/external-accounts.mjs +4 -4
- package/resources/external-accounts.mjs.map +1 -1
- package/resources/files.js +3 -3
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +3 -3
- package/resources/files.mjs.map +1 -1
- package/resources/groups.js +1 -1
- package/resources/groups.js.map +1 -1
- package/resources/groups.mjs +1 -1
- package/resources/groups.mjs.map +1 -1
- package/resources/inbound-ach-transfers.d.ts.map +1 -1
- package/resources/inbound-ach-transfers.js +8 -5
- package/resources/inbound-ach-transfers.js.map +1 -1
- package/resources/inbound-ach-transfers.mjs +8 -5
- package/resources/inbound-ach-transfers.mjs.map +1 -1
- package/resources/inbound-wire-drawdown-requests.js +2 -2
- package/resources/inbound-wire-drawdown-requests.js.map +1 -1
- package/resources/inbound-wire-drawdown-requests.mjs +2 -2
- package/resources/inbound-wire-drawdown-requests.mjs.map +1 -1
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/oauth-connections.js +2 -2
- package/resources/oauth-connections.js.map +1 -1
- package/resources/oauth-connections.mjs +2 -2
- package/resources/oauth-connections.mjs.map +1 -1
- package/resources/pending-transactions.js +2 -2
- package/resources/pending-transactions.js.map +1 -1
- package/resources/pending-transactions.mjs +2 -2
- package/resources/pending-transactions.mjs.map +1 -1
- package/resources/physical-cards.js +4 -4
- package/resources/physical-cards.js.map +1 -1
- package/resources/physical-cards.mjs +4 -4
- package/resources/physical-cards.mjs.map +1 -1
- package/resources/programs.js +2 -2
- package/resources/programs.js.map +1 -1
- package/resources/programs.mjs +2 -2
- package/resources/programs.mjs.map +1 -1
- package/resources/proof-of-authorization-request-submissions.d.ts +129 -0
- package/resources/proof-of-authorization-request-submissions.d.ts.map +1 -0
- package/resources/proof-of-authorization-request-submissions.js +59 -0
- package/resources/proof-of-authorization-request-submissions.js.map +1 -0
- package/resources/proof-of-authorization-request-submissions.mjs +31 -0
- package/resources/proof-of-authorization-request-submissions.mjs.map +1 -0
- package/resources/proof-of-authorization-requests.d.ts +84 -0
- package/resources/proof-of-authorization-requests.d.ts.map +1 -0
- package/resources/proof-of-authorization-requests.js +56 -0
- package/resources/proof-of-authorization-requests.js.map +1 -0
- package/resources/proof-of-authorization-requests.mjs +28 -0
- package/resources/proof-of-authorization-requests.mjs.map +1 -0
- package/resources/real-time-decisions.js +2 -2
- package/resources/real-time-decisions.js.map +1 -1
- package/resources/real-time-decisions.mjs +2 -2
- package/resources/real-time-decisions.mjs.map +1 -1
- package/resources/real-time-payments-transfers.js +3 -3
- package/resources/real-time-payments-transfers.js.map +1 -1
- package/resources/real-time-payments-transfers.mjs +3 -3
- package/resources/real-time-payments-transfers.mjs.map +1 -1
- package/resources/routing-numbers.js +1 -1
- package/resources/routing-numbers.js.map +1 -1
- package/resources/routing-numbers.mjs +1 -1
- package/resources/routing-numbers.mjs.map +1 -1
- package/resources/simulations/account-statements.js +1 -1
- package/resources/simulations/account-statements.js.map +1 -1
- package/resources/simulations/account-statements.mjs +1 -1
- package/resources/simulations/account-statements.mjs.map +1 -1
- package/resources/simulations/account-transfers.js +1 -1
- package/resources/simulations/account-transfers.js.map +1 -1
- package/resources/simulations/account-transfers.mjs +1 -1
- package/resources/simulations/account-transfers.mjs.map +1 -1
- package/resources/simulations/ach-transfers.d.ts +19 -2
- package/resources/simulations/ach-transfers.d.ts.map +1 -1
- package/resources/simulations/ach-transfers.js +3 -3
- package/resources/simulations/ach-transfers.js.map +1 -1
- package/resources/simulations/ach-transfers.mjs +3 -3
- package/resources/simulations/ach-transfers.mjs.map +1 -1
- package/resources/simulations/card-disputes.js +1 -1
- package/resources/simulations/card-disputes.js.map +1 -1
- package/resources/simulations/card-disputes.mjs +1 -1
- package/resources/simulations/card-disputes.mjs.map +1 -1
- package/resources/simulations/card-profiles.js +1 -1
- package/resources/simulations/card-profiles.js.map +1 -1
- package/resources/simulations/card-profiles.mjs +1 -1
- package/resources/simulations/card-profiles.mjs.map +1 -1
- package/resources/simulations/card-refunds.js +1 -1
- package/resources/simulations/card-refunds.js.map +1 -1
- package/resources/simulations/card-refunds.mjs +1 -1
- package/resources/simulations/card-refunds.mjs.map +1 -1
- package/resources/simulations/cards.js +2 -2
- package/resources/simulations/cards.js.map +1 -1
- package/resources/simulations/cards.mjs +2 -2
- package/resources/simulations/cards.mjs.map +1 -1
- package/resources/simulations/check-deposits.js +3 -3
- package/resources/simulations/check-deposits.js.map +1 -1
- package/resources/simulations/check-deposits.mjs +3 -3
- package/resources/simulations/check-deposits.mjs.map +1 -1
- package/resources/simulations/check-transfers.js +2 -2
- package/resources/simulations/check-transfers.js.map +1 -1
- package/resources/simulations/check-transfers.mjs +2 -2
- package/resources/simulations/check-transfers.mjs.map +1 -1
- package/resources/simulations/digital-wallet-token-requests.js +1 -1
- package/resources/simulations/digital-wallet-token-requests.js.map +1 -1
- package/resources/simulations/digital-wallet-token-requests.mjs +1 -1
- package/resources/simulations/digital-wallet-token-requests.mjs.map +1 -1
- package/resources/simulations/documents.js +1 -1
- package/resources/simulations/documents.js.map +1 -1
- package/resources/simulations/documents.mjs +1 -1
- package/resources/simulations/documents.mjs.map +1 -1
- package/resources/simulations/inbound-funds-holds.js +1 -1
- package/resources/simulations/inbound-funds-holds.js.map +1 -1
- package/resources/simulations/inbound-funds-holds.mjs +1 -1
- package/resources/simulations/inbound-funds-holds.mjs.map +1 -1
- package/resources/simulations/inbound-wire-drawdown-requests.js +1 -1
- package/resources/simulations/inbound-wire-drawdown-requests.js.map +1 -1
- package/resources/simulations/inbound-wire-drawdown-requests.mjs +1 -1
- package/resources/simulations/inbound-wire-drawdown-requests.mjs.map +1 -1
- package/resources/simulations/interest-payments.d.ts +19 -2
- package/resources/simulations/interest-payments.d.ts.map +1 -1
- package/resources/simulations/interest-payments.js +1 -1
- package/resources/simulations/interest-payments.js.map +1 -1
- package/resources/simulations/interest-payments.mjs +1 -1
- package/resources/simulations/interest-payments.mjs.map +1 -1
- package/resources/simulations/physical-cards.d.ts.map +1 -1
- package/resources/simulations/physical-cards.js +4 -1
- package/resources/simulations/physical-cards.js.map +1 -1
- package/resources/simulations/physical-cards.mjs +4 -1
- package/resources/simulations/physical-cards.mjs.map +1 -1
- package/resources/simulations/programs.js +1 -1
- package/resources/simulations/programs.js.map +1 -1
- package/resources/simulations/programs.mjs +1 -1
- package/resources/simulations/programs.mjs.map +1 -1
- package/resources/simulations/real-time-payments-transfers.d.ts +19 -2
- package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/simulations/real-time-payments-transfers.js +2 -5
- package/resources/simulations/real-time-payments-transfers.js.map +1 -1
- package/resources/simulations/real-time-payments-transfers.mjs +2 -5
- package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
- package/resources/simulations/simulations.d.ts.map +1 -1
- package/resources/simulations/simulations.js +18 -18
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/simulations.mjs +18 -18
- package/resources/simulations/simulations.mjs.map +1 -1
- package/resources/simulations/wire-transfers.d.ts +19 -2
- package/resources/simulations/wire-transfers.d.ts.map +1 -1
- package/resources/simulations/wire-transfers.js +1 -1
- package/resources/simulations/wire-transfers.js.map +1 -1
- package/resources/simulations/wire-transfers.mjs +1 -1
- package/resources/simulations/wire-transfers.mjs.map +1 -1
- package/resources/transactions.d.ts +19 -2
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js +2 -2
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs +2 -2
- package/resources/transactions.mjs.map +1 -1
- package/resources/wire-drawdown-requests.d.ts.map +1 -1
- package/resources/wire-drawdown-requests.js +6 -3
- package/resources/wire-drawdown-requests.js.map +1 -1
- package/resources/wire-drawdown-requests.mjs +6 -3
- package/resources/wire-drawdown-requests.mjs.map +1 -1
- package/resources/wire-transfers.js +7 -7
- package/resources/wire-transfers.js.map +1 -1
- package/resources/wire-transfers.mjs +7 -7
- package/resources/wire-transfers.mjs.map +1 -1
- package/src/core.ts +0 -21
- package/src/index.ts +31 -4
- package/src/resource.ts +3 -16
- package/src/resources/account-numbers.ts +4 -4
- package/src/resources/account-statements.ts +2 -2
- package/src/resources/account-transfers.ts +5 -5
- package/src/resources/accounts.ts +6 -6
- package/src/resources/ach-prenotifications.ts +3 -3
- package/src/resources/ach-transfers.ts +5 -5
- package/src/resources/bookkeeping-accounts.ts +4 -4
- package/src/resources/bookkeeping-entries.ts +2 -2
- package/src/resources/bookkeeping-entry-sets.ts +6 -3
- package/src/resources/card-disputes.ts +3 -3
- package/src/resources/card-payments.ts +2 -2
- package/src/resources/card-profiles.ts +4 -4
- package/src/resources/card-purchase-supplements.ts +5 -2
- package/src/resources/cards.ts +5 -5
- package/src/resources/check-deposits.ts +35 -4
- package/src/resources/check-transfers.ts +6 -6
- package/src/resources/declined-transactions.ts +2 -2
- package/src/resources/digital-wallet-tokens.ts +2 -2
- package/src/resources/documents.ts +2 -2
- package/src/resources/entities/beneficial-owners.ts +3 -3
- package/src/resources/entities/entities.ts +7 -7
- package/src/resources/entities/supplemental-documents.ts +2 -2
- package/src/resources/event-subscriptions.ts +28 -4
- package/src/resources/events.ts +18 -2
- package/src/resources/exports.ts +3 -3
- package/src/resources/external-accounts.ts +4 -4
- package/src/resources/files.ts +3 -3
- package/src/resources/groups.ts +1 -1
- package/src/resources/inbound-ach-transfers.ts +8 -5
- package/src/resources/inbound-wire-drawdown-requests.ts +2 -2
- package/src/resources/index.ts +13 -0
- package/src/resources/oauth-connections.ts +2 -2
- package/src/resources/pending-transactions.ts +2 -2
- package/src/resources/physical-cards.ts +4 -4
- package/src/resources/programs.ts +2 -2
- package/src/resources/proof-of-authorization-request-submissions.ts +186 -0
- package/src/resources/proof-of-authorization-requests.ts +122 -0
- package/src/resources/real-time-decisions.ts +2 -2
- package/src/resources/real-time-payments-transfers.ts +3 -3
- package/src/resources/routing-numbers.ts +1 -1
- package/src/resources/simulations/account-statements.ts +1 -1
- package/src/resources/simulations/account-transfers.ts +1 -1
- package/src/resources/simulations/ach-transfers.ts +35 -4
- package/src/resources/simulations/card-disputes.ts +1 -1
- package/src/resources/simulations/card-profiles.ts +1 -1
- package/src/resources/simulations/card-refunds.ts +1 -1
- package/src/resources/simulations/cards.ts +2 -2
- package/src/resources/simulations/check-deposits.ts +3 -3
- package/src/resources/simulations/check-transfers.ts +2 -2
- package/src/resources/simulations/digital-wallet-token-requests.ts +1 -1
- package/src/resources/simulations/documents.ts +1 -1
- package/src/resources/simulations/inbound-funds-holds.ts +1 -1
- package/src/resources/simulations/inbound-wire-drawdown-requests.ts +1 -1
- package/src/resources/simulations/interest-payments.ts +33 -2
- package/src/resources/simulations/physical-cards.ts +4 -1
- package/src/resources/simulations/programs.ts +1 -1
- package/src/resources/simulations/real-time-payments-transfers.ts +37 -6
- package/src/resources/simulations/simulations.ts +18 -18
- package/src/resources/simulations/wire-transfers.ts +33 -2
- package/src/resources/transactions.ts +34 -3
- package/src/resources/wire-drawdown-requests.ts +6 -3
- package/src/resources/wire-transfers.ts +7 -7
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -15,7 +15,7 @@ export class SupplementalDocuments extends APIResource {
|
|
|
15
15
|
body: SupplementalDocumentCreateParams,
|
|
16
16
|
options?: Core.RequestOptions,
|
|
17
17
|
): Core.APIPromise<EntitiesAPI.Entity> {
|
|
18
|
-
return this.post(`/entities/${entityId}/supplemental_documents`, { body, ...options });
|
|
18
|
+
return this._client.post(`/entities/${entityId}/supplemental_documents`, { body, ...options });
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -25,7 +25,7 @@ export class SupplementalDocuments extends APIResource {
|
|
|
25
25
|
query: SupplementalDocumentListParams,
|
|
26
26
|
options?: Core.RequestOptions,
|
|
27
27
|
): Core.PagePromise<SupplementalDocumentsPage, SupplementalDocument> {
|
|
28
|
-
return this.getAPIList('/entity_supplemental_documents', SupplementalDocumentsPage, {
|
|
28
|
+
return this._client.getAPIList('/entity_supplemental_documents', SupplementalDocumentsPage, {
|
|
29
29
|
query,
|
|
30
30
|
...options,
|
|
31
31
|
});
|
|
@@ -14,14 +14,14 @@ export class EventSubscriptions extends APIResource {
|
|
|
14
14
|
body: EventSubscriptionCreateParams,
|
|
15
15
|
options?: Core.RequestOptions,
|
|
16
16
|
): Core.APIPromise<EventSubscription> {
|
|
17
|
-
return this.post('/event_subscriptions', { body, ...options });
|
|
17
|
+
return this._client.post('/event_subscriptions', { body, ...options });
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Retrieve an Event Subscription
|
|
22
22
|
*/
|
|
23
23
|
retrieve(eventSubscriptionId: string, options?: Core.RequestOptions): Core.APIPromise<EventSubscription> {
|
|
24
|
-
return this.get(`/event_subscriptions/${eventSubscriptionId}`, options);
|
|
24
|
+
return this._client.get(`/event_subscriptions/${eventSubscriptionId}`, options);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -32,7 +32,7 @@ export class EventSubscriptions extends APIResource {
|
|
|
32
32
|
body: EventSubscriptionUpdateParams,
|
|
33
33
|
options?: Core.RequestOptions,
|
|
34
34
|
): Core.APIPromise<EventSubscription> {
|
|
35
|
-
return this.patch(`/event_subscriptions/${eventSubscriptionId}`, { body, ...options });
|
|
35
|
+
return this._client.patch(`/event_subscriptions/${eventSubscriptionId}`, { body, ...options });
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/**
|
|
@@ -50,7 +50,7 @@ export class EventSubscriptions extends APIResource {
|
|
|
50
50
|
if (isRequestOptions(query)) {
|
|
51
51
|
return this.list({}, query);
|
|
52
52
|
}
|
|
53
|
-
return this.getAPIList('/event_subscriptions', EventSubscriptionsPage, { query, ...options });
|
|
53
|
+
return this._client.getAPIList('/event_subscriptions', EventSubscriptionsPage, { query, ...options });
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -156,6 +156,14 @@ export interface EventSubscription {
|
|
|
156
156
|
* updated.
|
|
157
157
|
* - `physical_card.created` - Occurs whenever a Physical Card is created.
|
|
158
158
|
* - `physical_card.updated` - Occurs whenever a Physical Card is updated.
|
|
159
|
+
* - `proof_of_authorization_request.created` - Occurs whenever a Proof of
|
|
160
|
+
* Authorization Request is created.
|
|
161
|
+
* - `proof_of_authorization_request.updated` - Occurs whenever a Proof of
|
|
162
|
+
* Authorization Request is updated.
|
|
163
|
+
* - `proof_of_authorization_request_submission.created` - Occurs whenever a Proof
|
|
164
|
+
* of Authorization Request Submission is created.
|
|
165
|
+
* - `proof_of_authorization_request_submission.updated` - Occurs whenever a Proof
|
|
166
|
+
* of Authorization Request Submission is updated.
|
|
159
167
|
* - `real_time_decision.card_authorization_requested` - Occurs whenever a
|
|
160
168
|
* Real-Time Decision is created in response to a card authorization.
|
|
161
169
|
* - `real_time_decision.digital_wallet_token_requested` - Occurs whenever a
|
|
@@ -237,6 +245,10 @@ export interface EventSubscription {
|
|
|
237
245
|
| 'pending_transaction.updated'
|
|
238
246
|
| 'physical_card.created'
|
|
239
247
|
| 'physical_card.updated'
|
|
248
|
+
| 'proof_of_authorization_request.created'
|
|
249
|
+
| 'proof_of_authorization_request.updated'
|
|
250
|
+
| 'proof_of_authorization_request_submission.created'
|
|
251
|
+
| 'proof_of_authorization_request_submission.updated'
|
|
240
252
|
| 'real_time_decision.card_authorization_requested'
|
|
241
253
|
| 'real_time_decision.digital_wallet_token_requested'
|
|
242
254
|
| 'real_time_decision.digital_wallet_authentication_requested'
|
|
@@ -363,6 +375,14 @@ export interface EventSubscriptionCreateParams {
|
|
|
363
375
|
* updated.
|
|
364
376
|
* - `physical_card.created` - Occurs whenever a Physical Card is created.
|
|
365
377
|
* - `physical_card.updated` - Occurs whenever a Physical Card is updated.
|
|
378
|
+
* - `proof_of_authorization_request.created` - Occurs whenever a Proof of
|
|
379
|
+
* Authorization Request is created.
|
|
380
|
+
* - `proof_of_authorization_request.updated` - Occurs whenever a Proof of
|
|
381
|
+
* Authorization Request is updated.
|
|
382
|
+
* - `proof_of_authorization_request_submission.created` - Occurs whenever a Proof
|
|
383
|
+
* of Authorization Request Submission is created.
|
|
384
|
+
* - `proof_of_authorization_request_submission.updated` - Occurs whenever a Proof
|
|
385
|
+
* of Authorization Request Submission is updated.
|
|
366
386
|
* - `real_time_decision.card_authorization_requested` - Occurs whenever a
|
|
367
387
|
* Real-Time Decision is created in response to a card authorization.
|
|
368
388
|
* - `real_time_decision.digital_wallet_token_requested` - Occurs whenever a
|
|
@@ -444,6 +464,10 @@ export interface EventSubscriptionCreateParams {
|
|
|
444
464
|
| 'pending_transaction.updated'
|
|
445
465
|
| 'physical_card.created'
|
|
446
466
|
| 'physical_card.updated'
|
|
467
|
+
| 'proof_of_authorization_request.created'
|
|
468
|
+
| 'proof_of_authorization_request.updated'
|
|
469
|
+
| 'proof_of_authorization_request_submission.created'
|
|
470
|
+
| 'proof_of_authorization_request_submission.updated'
|
|
447
471
|
| 'real_time_decision.card_authorization_requested'
|
|
448
472
|
| 'real_time_decision.digital_wallet_token_requested'
|
|
449
473
|
| 'real_time_decision.digital_wallet_authentication_requested'
|
package/src/resources/events.ts
CHANGED
|
@@ -11,7 +11,7 @@ export class Events extends APIResource {
|
|
|
11
11
|
* Retrieve an Event
|
|
12
12
|
*/
|
|
13
13
|
retrieve(eventId: string, options?: Core.RequestOptions): Core.APIPromise<Event> {
|
|
14
|
-
return this.get(`/events/${eventId}`, options);
|
|
14
|
+
return this._client.get(`/events/${eventId}`, options);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -26,7 +26,7 @@ export class Events extends APIResource {
|
|
|
26
26
|
if (isRequestOptions(query)) {
|
|
27
27
|
return this.list({}, query);
|
|
28
28
|
}
|
|
29
|
-
return this.getAPIList('/events', EventsPage, { query, ...options });
|
|
29
|
+
return this._client.getAPIList('/events', EventsPage, { query, ...options });
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -135,6 +135,14 @@ export interface Event {
|
|
|
135
135
|
* updated.
|
|
136
136
|
* - `physical_card.created` - Occurs whenever a Physical Card is created.
|
|
137
137
|
* - `physical_card.updated` - Occurs whenever a Physical Card is updated.
|
|
138
|
+
* - `proof_of_authorization_request.created` - Occurs whenever a Proof of
|
|
139
|
+
* Authorization Request is created.
|
|
140
|
+
* - `proof_of_authorization_request.updated` - Occurs whenever a Proof of
|
|
141
|
+
* Authorization Request is updated.
|
|
142
|
+
* - `proof_of_authorization_request_submission.created` - Occurs whenever a Proof
|
|
143
|
+
* of Authorization Request Submission is created.
|
|
144
|
+
* - `proof_of_authorization_request_submission.updated` - Occurs whenever a Proof
|
|
145
|
+
* of Authorization Request Submission is updated.
|
|
138
146
|
* - `real_time_decision.card_authorization_requested` - Occurs whenever a
|
|
139
147
|
* Real-Time Decision is created in response to a card authorization.
|
|
140
148
|
* - `real_time_decision.digital_wallet_token_requested` - Occurs whenever a
|
|
@@ -216,6 +224,10 @@ export interface Event {
|
|
|
216
224
|
| 'pending_transaction.updated'
|
|
217
225
|
| 'physical_card.created'
|
|
218
226
|
| 'physical_card.updated'
|
|
227
|
+
| 'proof_of_authorization_request.created'
|
|
228
|
+
| 'proof_of_authorization_request.updated'
|
|
229
|
+
| 'proof_of_authorization_request_submission.created'
|
|
230
|
+
| 'proof_of_authorization_request_submission.updated'
|
|
219
231
|
| 'real_time_decision.card_authorization_requested'
|
|
220
232
|
| 'real_time_decision.digital_wallet_token_requested'
|
|
221
233
|
| 'real_time_decision.digital_wallet_authentication_requested'
|
|
@@ -316,6 +328,10 @@ export namespace EventListParams {
|
|
|
316
328
|
| 'pending_transaction.updated'
|
|
317
329
|
| 'physical_card.created'
|
|
318
330
|
| 'physical_card.updated'
|
|
331
|
+
| 'proof_of_authorization_request.created'
|
|
332
|
+
| 'proof_of_authorization_request.updated'
|
|
333
|
+
| 'proof_of_authorization_request_submission.created'
|
|
334
|
+
| 'proof_of_authorization_request_submission.updated'
|
|
319
335
|
| 'real_time_decision.card_authorization_requested'
|
|
320
336
|
| 'real_time_decision.digital_wallet_token_requested'
|
|
321
337
|
| 'real_time_decision.digital_wallet_authentication_requested'
|
package/src/resources/exports.ts
CHANGED
|
@@ -11,14 +11,14 @@ export class Exports extends APIResource {
|
|
|
11
11
|
* Create an Export
|
|
12
12
|
*/
|
|
13
13
|
create(body: ExportCreateParams, options?: Core.RequestOptions): Core.APIPromise<Export> {
|
|
14
|
-
return this.post('/exports', { body, ...options });
|
|
14
|
+
return this._client.post('/exports', { body, ...options });
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Retrieve an Export
|
|
19
19
|
*/
|
|
20
20
|
retrieve(exportId: string, options?: Core.RequestOptions): Core.APIPromise<Export> {
|
|
21
|
-
return this.get(`/exports/${exportId}`, options);
|
|
21
|
+
return this._client.get(`/exports/${exportId}`, options);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/**
|
|
@@ -33,7 +33,7 @@ export class Exports extends APIResource {
|
|
|
33
33
|
if (isRequestOptions(query)) {
|
|
34
34
|
return this.list({}, query);
|
|
35
35
|
}
|
|
36
|
-
return this.getAPIList('/exports', ExportsPage, { query, ...options });
|
|
36
|
+
return this._client.getAPIList('/exports', ExportsPage, { query, ...options });
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -11,14 +11,14 @@ export class ExternalAccounts extends APIResource {
|
|
|
11
11
|
* Create an External Account
|
|
12
12
|
*/
|
|
13
13
|
create(body: ExternalAccountCreateParams, options?: Core.RequestOptions): Core.APIPromise<ExternalAccount> {
|
|
14
|
-
return this.post('/external_accounts', { body, ...options });
|
|
14
|
+
return this._client.post('/external_accounts', { body, ...options });
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Retrieve an External Account
|
|
19
19
|
*/
|
|
20
20
|
retrieve(externalAccountId: string, options?: Core.RequestOptions): Core.APIPromise<ExternalAccount> {
|
|
21
|
-
return this.get(`/external_accounts/${externalAccountId}`, options);
|
|
21
|
+
return this._client.get(`/external_accounts/${externalAccountId}`, options);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/**
|
|
@@ -29,7 +29,7 @@ export class ExternalAccounts extends APIResource {
|
|
|
29
29
|
body: ExternalAccountUpdateParams,
|
|
30
30
|
options?: Core.RequestOptions,
|
|
31
31
|
): Core.APIPromise<ExternalAccount> {
|
|
32
|
-
return this.patch(`/external_accounts/${externalAccountId}`, { body, ...options });
|
|
32
|
+
return this._client.patch(`/external_accounts/${externalAccountId}`, { body, ...options });
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
@@ -47,7 +47,7 @@ export class ExternalAccounts extends APIResource {
|
|
|
47
47
|
if (isRequestOptions(query)) {
|
|
48
48
|
return this.list({}, query);
|
|
49
49
|
}
|
|
50
|
-
return this.getAPIList('/external_accounts', ExternalAccountsPage, { query, ...options });
|
|
50
|
+
return this._client.getAPIList('/external_accounts', ExternalAccountsPage, { query, ...options });
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
package/src/resources/files.ts
CHANGED
|
@@ -14,14 +14,14 @@ export class Files extends APIResource {
|
|
|
14
14
|
* upload, as well as the parameters for creating a file.
|
|
15
15
|
*/
|
|
16
16
|
create(body: FileCreateParams, options?: Core.RequestOptions): Core.APIPromise<File> {
|
|
17
|
-
return this.post('/files', multipartFormRequestOptions({ body, ...options }));
|
|
17
|
+
return this._client.post('/files', multipartFormRequestOptions({ body, ...options }));
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Retrieve a File
|
|
22
22
|
*/
|
|
23
23
|
retrieve(fileId: string, options?: Core.RequestOptions): Core.APIPromise<File> {
|
|
24
|
-
return this.get(`/files/${fileId}`, options);
|
|
24
|
+
return this._client.get(`/files/${fileId}`, options);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -36,7 +36,7 @@ export class Files extends APIResource {
|
|
|
36
36
|
if (isRequestOptions(query)) {
|
|
37
37
|
return this.list({}, query);
|
|
38
38
|
}
|
|
39
|
-
return this.getAPIList('/files', FilesPage, { query, ...options });
|
|
39
|
+
return this._client.getAPIList('/files', FilesPage, { query, ...options });
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
package/src/resources/groups.ts
CHANGED
|
@@ -9,7 +9,7 @@ export class Groups extends APIResource {
|
|
|
9
9
|
* Returns details for the currently authenticated Group.
|
|
10
10
|
*/
|
|
11
11
|
retrieveDetails(options?: Core.RequestOptions): Core.APIPromise<Group> {
|
|
12
|
-
return this.get('/groups/current', options);
|
|
12
|
+
return this._client.get('/groups/current', options);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -11,7 +11,7 @@ export class InboundACHTransfers extends APIResource {
|
|
|
11
11
|
* Retrieve an Inbound ACH Transfer
|
|
12
12
|
*/
|
|
13
13
|
retrieve(inboundACHTransferId: string, options?: Core.RequestOptions): Core.APIPromise<InboundACHTransfer> {
|
|
14
|
-
return this.get(`/inbound_ach_transfers/${inboundACHTransferId}`, options);
|
|
14
|
+
return this._client.get(`/inbound_ach_transfers/${inboundACHTransferId}`, options);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -29,14 +29,14 @@ export class InboundACHTransfers extends APIResource {
|
|
|
29
29
|
if (isRequestOptions(query)) {
|
|
30
30
|
return this.list({}, query);
|
|
31
31
|
}
|
|
32
|
-
return this.getAPIList('/inbound_ach_transfers', InboundACHTransfersPage, { query, ...options });
|
|
32
|
+
return this._client.getAPIList('/inbound_ach_transfers', InboundACHTransfersPage, { query, ...options });
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* Decline an Inbound ACH Transfer
|
|
37
37
|
*/
|
|
38
38
|
decline(inboundACHTransferId: string, options?: Core.RequestOptions): Core.APIPromise<InboundACHTransfer> {
|
|
39
|
-
return this.post(`/inbound_ach_transfers/${inboundACHTransferId}/decline`, options);
|
|
39
|
+
return this._client.post(`/inbound_ach_transfers/${inboundACHTransferId}/decline`, options);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -47,7 +47,7 @@ export class InboundACHTransfers extends APIResource {
|
|
|
47
47
|
body: InboundACHTransferNotificationOfChangeParams,
|
|
48
48
|
options?: Core.RequestOptions,
|
|
49
49
|
): Core.APIPromise<InboundACHTransfer> {
|
|
50
|
-
return this.post(`/inbound_ach_transfers/${inboundACHTransferId}/notification_of_change`, {
|
|
50
|
+
return this._client.post(`/inbound_ach_transfers/${inboundACHTransferId}/notification_of_change`, {
|
|
51
51
|
body,
|
|
52
52
|
...options,
|
|
53
53
|
});
|
|
@@ -61,7 +61,10 @@ export class InboundACHTransfers extends APIResource {
|
|
|
61
61
|
body: InboundACHTransferTransferReturnParams,
|
|
62
62
|
options?: Core.RequestOptions,
|
|
63
63
|
): Core.APIPromise<InboundACHTransfer> {
|
|
64
|
-
return this.post(`/inbound_ach_transfers/${inboundACHTransferId}/transfer_return`, {
|
|
64
|
+
return this._client.post(`/inbound_ach_transfers/${inboundACHTransferId}/transfer_return`, {
|
|
65
|
+
body,
|
|
66
|
+
...options,
|
|
67
|
+
});
|
|
65
68
|
}
|
|
66
69
|
}
|
|
67
70
|
|
|
@@ -14,7 +14,7 @@ export class InboundWireDrawdownRequests extends APIResource {
|
|
|
14
14
|
inboundWireDrawdownRequestId: string,
|
|
15
15
|
options?: Core.RequestOptions,
|
|
16
16
|
): Core.APIPromise<InboundWireDrawdownRequest> {
|
|
17
|
-
return this.get(`/inbound_wire_drawdown_requests/${inboundWireDrawdownRequestId}`, options);
|
|
17
|
+
return this._client.get(`/inbound_wire_drawdown_requests/${inboundWireDrawdownRequestId}`, options);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -34,7 +34,7 @@ export class InboundWireDrawdownRequests extends APIResource {
|
|
|
34
34
|
if (isRequestOptions(query)) {
|
|
35
35
|
return this.list({}, query);
|
|
36
36
|
}
|
|
37
|
-
return this.getAPIList('/inbound_wire_drawdown_requests', InboundWireDrawdownRequestsPage, {
|
|
37
|
+
return this._client.getAPIList('/inbound_wire_drawdown_requests', InboundWireDrawdownRequestsPage, {
|
|
38
38
|
query,
|
|
39
39
|
...options,
|
|
40
40
|
});
|
package/src/resources/index.ts
CHANGED
|
@@ -189,6 +189,19 @@ export {
|
|
|
189
189
|
PhysicalCards,
|
|
190
190
|
} from './physical-cards';
|
|
191
191
|
export { Program, ProgramListParams, ProgramsPage, Programs } from './programs';
|
|
192
|
+
export {
|
|
193
|
+
ProofOfAuthorizationRequest,
|
|
194
|
+
ProofOfAuthorizationRequestListParams,
|
|
195
|
+
ProofOfAuthorizationRequestsPage,
|
|
196
|
+
ProofOfAuthorizationRequests,
|
|
197
|
+
} from './proof-of-authorization-requests';
|
|
198
|
+
export {
|
|
199
|
+
ProofOfAuthorizationRequestSubmission,
|
|
200
|
+
ProofOfAuthorizationRequestSubmissionCreateParams,
|
|
201
|
+
ProofOfAuthorizationRequestSubmissionListParams,
|
|
202
|
+
ProofOfAuthorizationRequestSubmissionsPage,
|
|
203
|
+
ProofOfAuthorizationRequestSubmissions,
|
|
204
|
+
} from './proof-of-authorization-request-submissions';
|
|
192
205
|
export { RealTimeDecision, RealTimeDecisionActionParams, RealTimeDecisions } from './real-time-decisions';
|
|
193
206
|
export {
|
|
194
207
|
RealTimePaymentsTransfer,
|
|
@@ -11,7 +11,7 @@ export class OauthConnections extends APIResource {
|
|
|
11
11
|
* Retrieve an OAuth Connection
|
|
12
12
|
*/
|
|
13
13
|
retrieve(oauthConnectionId: string, options?: Core.RequestOptions): Core.APIPromise<OauthConnection> {
|
|
14
|
-
return this.get(`/oauth_connections/${oauthConnectionId}`, options);
|
|
14
|
+
return this._client.get(`/oauth_connections/${oauthConnectionId}`, options);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -29,7 +29,7 @@ export class OauthConnections extends APIResource {
|
|
|
29
29
|
if (isRequestOptions(query)) {
|
|
30
30
|
return this.list({}, query);
|
|
31
31
|
}
|
|
32
|
-
return this.getAPIList('/oauth_connections', OauthConnectionsPage, { query, ...options });
|
|
32
|
+
return this._client.getAPIList('/oauth_connections', OauthConnectionsPage, { query, ...options });
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -11,7 +11,7 @@ export class PendingTransactions extends APIResource {
|
|
|
11
11
|
* Retrieve a Pending Transaction
|
|
12
12
|
*/
|
|
13
13
|
retrieve(pendingTransactionId: string, options?: Core.RequestOptions): Core.APIPromise<PendingTransaction> {
|
|
14
|
-
return this.get(`/pending_transactions/${pendingTransactionId}`, options);
|
|
14
|
+
return this._client.get(`/pending_transactions/${pendingTransactionId}`, options);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -29,7 +29,7 @@ export class PendingTransactions extends APIResource {
|
|
|
29
29
|
if (isRequestOptions(query)) {
|
|
30
30
|
return this.list({}, query);
|
|
31
31
|
}
|
|
32
|
-
return this.getAPIList('/pending_transactions', PendingTransactionsPage, { query, ...options });
|
|
32
|
+
return this._client.getAPIList('/pending_transactions', PendingTransactionsPage, { query, ...options });
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -11,14 +11,14 @@ export class PhysicalCards extends APIResource {
|
|
|
11
11
|
* Create a Physical Card
|
|
12
12
|
*/
|
|
13
13
|
create(body: PhysicalCardCreateParams, options?: Core.RequestOptions): Core.APIPromise<PhysicalCard> {
|
|
14
|
-
return this.post('/physical_cards', { body, ...options });
|
|
14
|
+
return this._client.post('/physical_cards', { body, ...options });
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Retrieve a Physical Card
|
|
19
19
|
*/
|
|
20
20
|
retrieve(physicalCardId: string, options?: Core.RequestOptions): Core.APIPromise<PhysicalCard> {
|
|
21
|
-
return this.get(`/physical_cards/${physicalCardId}`, options);
|
|
21
|
+
return this._client.get(`/physical_cards/${physicalCardId}`, options);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/**
|
|
@@ -29,7 +29,7 @@ export class PhysicalCards extends APIResource {
|
|
|
29
29
|
body: PhysicalCardUpdateParams,
|
|
30
30
|
options?: Core.RequestOptions,
|
|
31
31
|
): Core.APIPromise<PhysicalCard> {
|
|
32
|
-
return this.patch(`/physical_cards/${physicalCardId}`, { body, ...options });
|
|
32
|
+
return this._client.patch(`/physical_cards/${physicalCardId}`, { body, ...options });
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
@@ -47,7 +47,7 @@ export class PhysicalCards extends APIResource {
|
|
|
47
47
|
if (isRequestOptions(query)) {
|
|
48
48
|
return this.list({}, query);
|
|
49
49
|
}
|
|
50
|
-
return this.getAPIList('/physical_cards', PhysicalCardsPage, { query, ...options });
|
|
50
|
+
return this._client.getAPIList('/physical_cards', PhysicalCardsPage, { query, ...options });
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -11,7 +11,7 @@ export class Programs extends APIResource {
|
|
|
11
11
|
* Retrieve a Program
|
|
12
12
|
*/
|
|
13
13
|
retrieve(programId: string, options?: Core.RequestOptions): Core.APIPromise<Program> {
|
|
14
|
-
return this.get(`/programs/${programId}`, options);
|
|
14
|
+
return this._client.get(`/programs/${programId}`, options);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -26,7 +26,7 @@ export class Programs extends APIResource {
|
|
|
26
26
|
if (isRequestOptions(query)) {
|
|
27
27
|
return this.list({}, query);
|
|
28
28
|
}
|
|
29
|
-
return this.getAPIList('/programs', ProgramsPage, { query, ...options });
|
|
29
|
+
return this._client.getAPIList('/programs', ProgramsPage, { query, ...options });
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import * as Core from "../core";
|
|
4
|
+
import { APIResource } from "../resource";
|
|
5
|
+
import { isRequestOptions } from "../core";
|
|
6
|
+
import * as ProofOfAuthorizationRequestSubmissionsAPI from "./proof-of-authorization-request-submissions";
|
|
7
|
+
import { Page, type PageParams } from "../pagination";
|
|
8
|
+
|
|
9
|
+
export class ProofOfAuthorizationRequestSubmissions extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Submit Proof of Authorization
|
|
12
|
+
*/
|
|
13
|
+
create(
|
|
14
|
+
body: ProofOfAuthorizationRequestSubmissionCreateParams,
|
|
15
|
+
options?: Core.RequestOptions,
|
|
16
|
+
): Core.APIPromise<ProofOfAuthorizationRequestSubmission> {
|
|
17
|
+
return this._client.post('/proof_of_authorization_request_submissions', { body, ...options });
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Retrieve a Proof of Authorization Request Submission
|
|
22
|
+
*/
|
|
23
|
+
retrieve(
|
|
24
|
+
proofOfAuthorizationRequestSubmissionId: string,
|
|
25
|
+
options?: Core.RequestOptions,
|
|
26
|
+
): Core.APIPromise<ProofOfAuthorizationRequestSubmission> {
|
|
27
|
+
return this._client.get(
|
|
28
|
+
`/proof_of_authorization_request_submissions/${proofOfAuthorizationRequestSubmissionId}`,
|
|
29
|
+
options,
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* List Proof of Authorization Request Submissions
|
|
35
|
+
*/
|
|
36
|
+
list(
|
|
37
|
+
query?: ProofOfAuthorizationRequestSubmissionListParams,
|
|
38
|
+
options?: Core.RequestOptions,
|
|
39
|
+
): Core.PagePromise<ProofOfAuthorizationRequestSubmissionsPage, ProofOfAuthorizationRequestSubmission>;
|
|
40
|
+
list(
|
|
41
|
+
options?: Core.RequestOptions,
|
|
42
|
+
): Core.PagePromise<ProofOfAuthorizationRequestSubmissionsPage, ProofOfAuthorizationRequestSubmission>;
|
|
43
|
+
list(
|
|
44
|
+
query: ProofOfAuthorizationRequestSubmissionListParams | Core.RequestOptions = {},
|
|
45
|
+
options?: Core.RequestOptions,
|
|
46
|
+
): Core.PagePromise<ProofOfAuthorizationRequestSubmissionsPage, ProofOfAuthorizationRequestSubmission> {
|
|
47
|
+
if (isRequestOptions(query)) {
|
|
48
|
+
return this.list({}, query);
|
|
49
|
+
}
|
|
50
|
+
return this._client.getAPIList(
|
|
51
|
+
'/proof_of_authorization_request_submissions',
|
|
52
|
+
ProofOfAuthorizationRequestSubmissionsPage,
|
|
53
|
+
{ query, ...options },
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export class ProofOfAuthorizationRequestSubmissionsPage extends Page<ProofOfAuthorizationRequestSubmission> {}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Information submitted in response to a proof of authorization request. Per
|
|
62
|
+
* Nacha's guidance on proof of authorization, the originator must ensure that the
|
|
63
|
+
* authorization complies with applicable legal requirements, is readily
|
|
64
|
+
* identifiable as an authorization, and has clear and readily understandable
|
|
65
|
+
* terms.
|
|
66
|
+
*/
|
|
67
|
+
export interface ProofOfAuthorizationRequestSubmission {
|
|
68
|
+
/**
|
|
69
|
+
* The Proof of Authorization Request Submission identifier.
|
|
70
|
+
*/
|
|
71
|
+
id: string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Terms of authorization.
|
|
75
|
+
*/
|
|
76
|
+
authorization_terms: string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Time of authorization.
|
|
80
|
+
*/
|
|
81
|
+
authorized_at: string;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Company of the authorizer.
|
|
85
|
+
*/
|
|
86
|
+
authorizer_company: string | null;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Email of the authorizer.
|
|
90
|
+
*/
|
|
91
|
+
authorizer_email: string | null;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* IP address of the authorizer.
|
|
95
|
+
*/
|
|
96
|
+
authorizer_ip_address: string | null;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Name of the authorizer.
|
|
100
|
+
*/
|
|
101
|
+
authorizer_name: string | null;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* The time the Proof of Authorization Request Submission was created.
|
|
105
|
+
*/
|
|
106
|
+
created_at: string;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* ID of the proof of authorization request.
|
|
110
|
+
*/
|
|
111
|
+
proof_of_authorization_request_id: string;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Status of the proof of authorization request submission.
|
|
115
|
+
*
|
|
116
|
+
* - `pending_review` - The proof of authorization request submission is pending
|
|
117
|
+
* review.
|
|
118
|
+
* - `rejected` - The proof of authorization request submission was rejected.
|
|
119
|
+
* - `pending_sending` - The proof of authorization request submission is pending
|
|
120
|
+
* sending.
|
|
121
|
+
* - `sent` - The proof of authorization request submission was sent.
|
|
122
|
+
*/
|
|
123
|
+
status: 'pending_review' | 'rejected' | 'pending_sending' | 'sent';
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* A constant representing the object's type. For this resource it will always be
|
|
127
|
+
* `proof_of_authorization_request_submission`.
|
|
128
|
+
*/
|
|
129
|
+
type: 'proof_of_authorization_request_submission';
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* The time the Proof of Authorization Request Submission was last updated.
|
|
133
|
+
*/
|
|
134
|
+
updated_at: string;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export interface ProofOfAuthorizationRequestSubmissionCreateParams {
|
|
138
|
+
/**
|
|
139
|
+
* Terms of authorization.
|
|
140
|
+
*/
|
|
141
|
+
authorization_terms: string;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Time of authorization.
|
|
145
|
+
*/
|
|
146
|
+
authorized_at: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Email of the authorizer.
|
|
150
|
+
*/
|
|
151
|
+
authorizer_email: string;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Name of the authorizer.
|
|
155
|
+
*/
|
|
156
|
+
authorizer_name: string;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* ID of the proof of authorization request.
|
|
160
|
+
*/
|
|
161
|
+
proof_of_authorization_request_id: string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Company of the authorizer.
|
|
165
|
+
*/
|
|
166
|
+
authorizer_company?: string;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* IP address of the authorizer.
|
|
170
|
+
*/
|
|
171
|
+
authorizer_ip_address?: string;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export interface ProofOfAuthorizationRequestSubmissionListParams extends PageParams {
|
|
175
|
+
/**
|
|
176
|
+
* ID of the proof of authorization request.
|
|
177
|
+
*/
|
|
178
|
+
proof_of_authorization_request_id?: string;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export namespace ProofOfAuthorizationRequestSubmissions {
|
|
182
|
+
export import ProofOfAuthorizationRequestSubmission = ProofOfAuthorizationRequestSubmissionsAPI.ProofOfAuthorizationRequestSubmission;
|
|
183
|
+
export import ProofOfAuthorizationRequestSubmissionsPage = ProofOfAuthorizationRequestSubmissionsAPI.ProofOfAuthorizationRequestSubmissionsPage;
|
|
184
|
+
export import ProofOfAuthorizationRequestSubmissionCreateParams = ProofOfAuthorizationRequestSubmissionsAPI.ProofOfAuthorizationRequestSubmissionCreateParams;
|
|
185
|
+
export import ProofOfAuthorizationRequestSubmissionListParams = ProofOfAuthorizationRequestSubmissionsAPI.ProofOfAuthorizationRequestSubmissionListParams;
|
|
186
|
+
}
|