@amos.com/node 0.1.67 → 0.1.69
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/dist/index.d.mts +76 -22
- package/dist/index.d.ts +76 -22
- package/dist/index.js +0 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -2
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +75 -21
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -155,7 +155,7 @@ interface paths {
|
|
|
155
155
|
put?: never;
|
|
156
156
|
/**
|
|
157
157
|
* Create an external account
|
|
158
|
-
* @description Creates an organization-scoped external account. X-Account-Id is ignored if sent.
|
|
158
|
+
* @description Creates an organization-scoped external account. X-Account-Id is ignored if sent.
|
|
159
159
|
*/
|
|
160
160
|
post: operations["CreateExternalAccount"];
|
|
161
161
|
delete?: never;
|
|
@@ -349,16 +349,17 @@ interface paths {
|
|
|
349
349
|
get?: never;
|
|
350
350
|
put?: never;
|
|
351
351
|
/**
|
|
352
|
-
* Start review or
|
|
352
|
+
* Start review or approve a legal entity application
|
|
353
353
|
* @description Call this twice.
|
|
354
354
|
*
|
|
355
|
-
* When the application is `submitted`, this
|
|
356
|
-
*
|
|
357
|
-
*
|
|
355
|
+
* When the application is `submitted`, this moves it to `under_review`.
|
|
356
|
+
* No legal entity is created. Run identity verification for each
|
|
357
|
+
* application principal while the application is `under_review`.
|
|
358
358
|
*
|
|
359
|
-
* When the application is `under_review`, this
|
|
360
|
-
* and moves the application to
|
|
361
|
-
*
|
|
359
|
+
* When the application is `under_review`, this creates the legal entity,
|
|
360
|
+
* merchants, accounts, and principals and moves the application to
|
|
361
|
+
* `approved`, only if every application principal has a successful
|
|
362
|
+
* identity verification.
|
|
362
363
|
*/
|
|
363
364
|
post: operations["ApproveLegalEntityApplication"];
|
|
364
365
|
delete?: never;
|
|
@@ -801,7 +802,10 @@ interface paths {
|
|
|
801
802
|
path?: never;
|
|
802
803
|
cookie?: never;
|
|
803
804
|
};
|
|
804
|
-
/**
|
|
805
|
+
/**
|
|
806
|
+
* List all processor transactions
|
|
807
|
+
* @description Lists organization-scoped processor transactions across all accounts in the organization. X-Account-Id is ignored if sent; use the account_id query parameter to filter to a single account.
|
|
808
|
+
*/
|
|
805
809
|
get: operations["ListProcessorTransactions"];
|
|
806
810
|
put?: never;
|
|
807
811
|
post?: never;
|
|
@@ -811,6 +815,26 @@ interface paths {
|
|
|
811
815
|
patch?: never;
|
|
812
816
|
trace?: never;
|
|
813
817
|
};
|
|
818
|
+
"/processor_transactions/{id}": {
|
|
819
|
+
parameters: {
|
|
820
|
+
query?: never;
|
|
821
|
+
header?: never;
|
|
822
|
+
path?: never;
|
|
823
|
+
cookie?: never;
|
|
824
|
+
};
|
|
825
|
+
/**
|
|
826
|
+
* Retrieve a processor transaction by ID
|
|
827
|
+
* @description Retrieves an organization-scoped processor transaction. X-Account-Id is ignored if sent. Returns 404 if the transaction belongs to another organization.
|
|
828
|
+
*/
|
|
829
|
+
get: operations["GetProcessorTransaction"];
|
|
830
|
+
put?: never;
|
|
831
|
+
post?: never;
|
|
832
|
+
delete?: never;
|
|
833
|
+
options?: never;
|
|
834
|
+
head?: never;
|
|
835
|
+
patch?: never;
|
|
836
|
+
trace?: never;
|
|
837
|
+
};
|
|
814
838
|
"/products": {
|
|
815
839
|
parameters: {
|
|
816
840
|
query?: never;
|
|
@@ -1341,10 +1365,8 @@ interface components {
|
|
|
1341
1365
|
account_type?: string;
|
|
1342
1366
|
bank_name?: string;
|
|
1343
1367
|
currency?: string;
|
|
1344
|
-
/** @description
|
|
1368
|
+
/** @description Bank account number. Stored encrypted at rest and not returned in API responses. */
|
|
1345
1369
|
account_number?: string;
|
|
1346
|
-
/** @description Vault-encrypted account number. Required on create when account_number is omitted; ignored for tokenization when account_number is present. */
|
|
1347
|
-
encrypted_account_number?: string;
|
|
1348
1370
|
routing_number?: string;
|
|
1349
1371
|
};
|
|
1350
1372
|
BankAccountProfile: {
|
|
@@ -1749,8 +1771,6 @@ interface components {
|
|
|
1749
1771
|
updated_at?: string;
|
|
1750
1772
|
};
|
|
1751
1773
|
/** @enum {string} */
|
|
1752
|
-
LegalEntityStateType: "pending" | "active";
|
|
1753
|
-
/** @enum {string} */
|
|
1754
1774
|
LegalEntityApplicationStateType: "pending" | "submitted" | "needs_information" | "under_review" | "approved" | "denied";
|
|
1755
1775
|
/** @enum {string} */
|
|
1756
1776
|
LegalEntityEntityType: "individual_sole_proprietorship" | "corporation" | "limited_liability_company" | "partnership" | "limited_partnership" | "general_partnership" | "tax_exempt_organization" | "government_agency";
|
|
@@ -1809,7 +1829,7 @@ interface components {
|
|
|
1809
1829
|
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
1810
1830
|
card_profile_attributes: components["schemas"]["CardProfileInput"];
|
|
1811
1831
|
};
|
|
1812
|
-
/** @description Confirm an embedded intent with a bank account. When ACH verification is required for the intent amount, include plaid credentials and omit bank_account_profile_attributes; routing and account numbers are filled server-side from Plaid Auth. Otherwise provide routing_number and
|
|
1832
|
+
/** @description Confirm an embedded intent with a bank account. When ACH verification is required for the intent amount, include plaid credentials and omit bank_account_profile_attributes; routing and account numbers are filled server-side from Plaid Auth. Otherwise provide routing_number and account_number on bank_account_profile_attributes. */
|
|
1813
1833
|
EmbedConfirmBankAccountPaymentMethodInput: {
|
|
1814
1834
|
/**
|
|
1815
1835
|
* @description discriminator enum property added by openapi-typescript
|
|
@@ -1996,7 +2016,6 @@ interface components {
|
|
|
1996
2016
|
business_postal_code?: string;
|
|
1997
2017
|
business_country?: string;
|
|
1998
2018
|
tax_id_last4?: string;
|
|
1999
|
-
state?: components["schemas"]["LegalEntityStateType"];
|
|
2000
2019
|
/** Format: date-time */
|
|
2001
2020
|
created_at?: string;
|
|
2002
2021
|
/** Format: date-time */
|
|
@@ -2007,7 +2026,12 @@ interface components {
|
|
|
2007
2026
|
id?: string;
|
|
2008
2027
|
legal_name?: string;
|
|
2009
2028
|
/** Format: uuid */
|
|
2010
|
-
|
|
2029
|
+
organization_id?: string;
|
|
2030
|
+
/**
|
|
2031
|
+
* Format: uuid
|
|
2032
|
+
* @description Set when the application is approved and the legal entity is created.
|
|
2033
|
+
*/
|
|
2034
|
+
legal_entity_id?: string | null;
|
|
2011
2035
|
entity_type?: components["schemas"]["LegalEntityEntityType"];
|
|
2012
2036
|
ownership_type?: components["schemas"]["LegalEntityOwnershipType"];
|
|
2013
2037
|
contact_email?: string;
|
|
@@ -2364,10 +2388,8 @@ interface components {
|
|
|
2364
2388
|
account_type?: string;
|
|
2365
2389
|
bank_name?: string;
|
|
2366
2390
|
currency?: string;
|
|
2367
|
-
/** @description
|
|
2391
|
+
/** @description Bank account number. Stored encrypted at rest and not returned in API responses. */
|
|
2368
2392
|
account_number?: string;
|
|
2369
|
-
/** @description Vault-encrypted account number. Required on create when account_number is omitted; ignored for tokenization when account_number is present. */
|
|
2370
|
-
encrypted_account_number?: string;
|
|
2371
2393
|
token?: string;
|
|
2372
2394
|
routing_number?: string;
|
|
2373
2395
|
};
|
|
@@ -4945,6 +4967,8 @@ interface operations {
|
|
|
4945
4967
|
page?: components["parameters"]["PageQuery"];
|
|
4946
4968
|
/** @description Number of results per page. */
|
|
4947
4969
|
per_page?: components["parameters"]["PerPageQuery"];
|
|
4970
|
+
/** @description The ID of the account to filter by */
|
|
4971
|
+
account_id?: components["parameters"]["AccountIdQuery"];
|
|
4948
4972
|
/** @description The ID of the payment intent to filter by */
|
|
4949
4973
|
payment_intent_id?: components["parameters"]["PaymentIntentIdQuery"];
|
|
4950
4974
|
/** @description The ID of the payment method to filter by */
|
|
@@ -4973,6 +4997,37 @@ interface operations {
|
|
|
4973
4997
|
};
|
|
4974
4998
|
};
|
|
4975
4999
|
};
|
|
5000
|
+
GetProcessorTransaction: {
|
|
5001
|
+
parameters: {
|
|
5002
|
+
query?: never;
|
|
5003
|
+
header?: never;
|
|
5004
|
+
path: {
|
|
5005
|
+
id: string;
|
|
5006
|
+
};
|
|
5007
|
+
cookie?: never;
|
|
5008
|
+
};
|
|
5009
|
+
requestBody?: never;
|
|
5010
|
+
responses: {
|
|
5011
|
+
/** @description A single processor transaction */
|
|
5012
|
+
200: {
|
|
5013
|
+
headers: {
|
|
5014
|
+
[name: string]: unknown;
|
|
5015
|
+
};
|
|
5016
|
+
content: {
|
|
5017
|
+
"application/json": components["schemas"]["ProcessorTransaction"];
|
|
5018
|
+
};
|
|
5019
|
+
};
|
|
5020
|
+
/** @description Processor transaction not found */
|
|
5021
|
+
404: {
|
|
5022
|
+
headers: {
|
|
5023
|
+
[name: string]: unknown;
|
|
5024
|
+
};
|
|
5025
|
+
content: {
|
|
5026
|
+
"application/json": components["schemas"]["Error"];
|
|
5027
|
+
};
|
|
5028
|
+
};
|
|
5029
|
+
};
|
|
5030
|
+
};
|
|
4976
5031
|
ListProducts: {
|
|
4977
5032
|
parameters: {
|
|
4978
5033
|
query?: {
|
|
@@ -6115,7 +6170,6 @@ declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequir
|
|
|
6115
6170
|
declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
|
|
6116
6171
|
declare const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]>;
|
|
6117
6172
|
declare const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]>;
|
|
6118
|
-
declare const legalEntityStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityStateType"]>;
|
|
6119
6173
|
declare const legalEntityApplicationStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityApplicationStateType"]>;
|
|
6120
6174
|
declare const legalEntityEntityTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityEntityType"]>;
|
|
6121
6175
|
declare const legalEntityOwnershipTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityOwnershipType"]>;
|
|
@@ -6195,4 +6249,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
6195
6249
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
6196
6250
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
6197
6251
|
|
|
6198
|
-
export { type $defs, AMOS_API_BASE_URL_PRODUCTION, AMOS_API_BASE_URL_SANDBOX, AMOS_API_VERSION, type PayApiClient, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, internationalBillingAddressOptionsModeValues, legalEntityApplicationStateTypeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues,
|
|
6252
|
+
export { type $defs, AMOS_API_BASE_URL_PRODUCTION, AMOS_API_BASE_URL_SANDBOX, AMOS_API_VERSION, type PayApiClient, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, internationalBillingAddressOptionsModeValues, legalEntityApplicationStateTypeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, organizationKindValues, originApplepayRegistrationStateTypeValues, type paths, paymentIntentCaptureMethodTypeValues, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, usOnlyBillingAddressOptionsModeValues, usStateTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
|
package/dist/index.d.ts
CHANGED
|
@@ -155,7 +155,7 @@ interface paths {
|
|
|
155
155
|
put?: never;
|
|
156
156
|
/**
|
|
157
157
|
* Create an external account
|
|
158
|
-
* @description Creates an organization-scoped external account. X-Account-Id is ignored if sent.
|
|
158
|
+
* @description Creates an organization-scoped external account. X-Account-Id is ignored if sent.
|
|
159
159
|
*/
|
|
160
160
|
post: operations["CreateExternalAccount"];
|
|
161
161
|
delete?: never;
|
|
@@ -349,16 +349,17 @@ interface paths {
|
|
|
349
349
|
get?: never;
|
|
350
350
|
put?: never;
|
|
351
351
|
/**
|
|
352
|
-
* Start review or
|
|
352
|
+
* Start review or approve a legal entity application
|
|
353
353
|
* @description Call this twice.
|
|
354
354
|
*
|
|
355
|
-
* When the application is `submitted`, this
|
|
356
|
-
*
|
|
357
|
-
*
|
|
355
|
+
* When the application is `submitted`, this moves it to `under_review`.
|
|
356
|
+
* No legal entity is created. Run identity verification for each
|
|
357
|
+
* application principal while the application is `under_review`.
|
|
358
358
|
*
|
|
359
|
-
* When the application is `under_review`, this
|
|
360
|
-
* and moves the application to
|
|
361
|
-
*
|
|
359
|
+
* When the application is `under_review`, this creates the legal entity,
|
|
360
|
+
* merchants, accounts, and principals and moves the application to
|
|
361
|
+
* `approved`, only if every application principal has a successful
|
|
362
|
+
* identity verification.
|
|
362
363
|
*/
|
|
363
364
|
post: operations["ApproveLegalEntityApplication"];
|
|
364
365
|
delete?: never;
|
|
@@ -801,7 +802,10 @@ interface paths {
|
|
|
801
802
|
path?: never;
|
|
802
803
|
cookie?: never;
|
|
803
804
|
};
|
|
804
|
-
/**
|
|
805
|
+
/**
|
|
806
|
+
* List all processor transactions
|
|
807
|
+
* @description Lists organization-scoped processor transactions across all accounts in the organization. X-Account-Id is ignored if sent; use the account_id query parameter to filter to a single account.
|
|
808
|
+
*/
|
|
805
809
|
get: operations["ListProcessorTransactions"];
|
|
806
810
|
put?: never;
|
|
807
811
|
post?: never;
|
|
@@ -811,6 +815,26 @@ interface paths {
|
|
|
811
815
|
patch?: never;
|
|
812
816
|
trace?: never;
|
|
813
817
|
};
|
|
818
|
+
"/processor_transactions/{id}": {
|
|
819
|
+
parameters: {
|
|
820
|
+
query?: never;
|
|
821
|
+
header?: never;
|
|
822
|
+
path?: never;
|
|
823
|
+
cookie?: never;
|
|
824
|
+
};
|
|
825
|
+
/**
|
|
826
|
+
* Retrieve a processor transaction by ID
|
|
827
|
+
* @description Retrieves an organization-scoped processor transaction. X-Account-Id is ignored if sent. Returns 404 if the transaction belongs to another organization.
|
|
828
|
+
*/
|
|
829
|
+
get: operations["GetProcessorTransaction"];
|
|
830
|
+
put?: never;
|
|
831
|
+
post?: never;
|
|
832
|
+
delete?: never;
|
|
833
|
+
options?: never;
|
|
834
|
+
head?: never;
|
|
835
|
+
patch?: never;
|
|
836
|
+
trace?: never;
|
|
837
|
+
};
|
|
814
838
|
"/products": {
|
|
815
839
|
parameters: {
|
|
816
840
|
query?: never;
|
|
@@ -1341,10 +1365,8 @@ interface components {
|
|
|
1341
1365
|
account_type?: string;
|
|
1342
1366
|
bank_name?: string;
|
|
1343
1367
|
currency?: string;
|
|
1344
|
-
/** @description
|
|
1368
|
+
/** @description Bank account number. Stored encrypted at rest and not returned in API responses. */
|
|
1345
1369
|
account_number?: string;
|
|
1346
|
-
/** @description Vault-encrypted account number. Required on create when account_number is omitted; ignored for tokenization when account_number is present. */
|
|
1347
|
-
encrypted_account_number?: string;
|
|
1348
1370
|
routing_number?: string;
|
|
1349
1371
|
};
|
|
1350
1372
|
BankAccountProfile: {
|
|
@@ -1749,8 +1771,6 @@ interface components {
|
|
|
1749
1771
|
updated_at?: string;
|
|
1750
1772
|
};
|
|
1751
1773
|
/** @enum {string} */
|
|
1752
|
-
LegalEntityStateType: "pending" | "active";
|
|
1753
|
-
/** @enum {string} */
|
|
1754
1774
|
LegalEntityApplicationStateType: "pending" | "submitted" | "needs_information" | "under_review" | "approved" | "denied";
|
|
1755
1775
|
/** @enum {string} */
|
|
1756
1776
|
LegalEntityEntityType: "individual_sole_proprietorship" | "corporation" | "limited_liability_company" | "partnership" | "limited_partnership" | "general_partnership" | "tax_exempt_organization" | "government_agency";
|
|
@@ -1809,7 +1829,7 @@ interface components {
|
|
|
1809
1829
|
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
1810
1830
|
card_profile_attributes: components["schemas"]["CardProfileInput"];
|
|
1811
1831
|
};
|
|
1812
|
-
/** @description Confirm an embedded intent with a bank account. When ACH verification is required for the intent amount, include plaid credentials and omit bank_account_profile_attributes; routing and account numbers are filled server-side from Plaid Auth. Otherwise provide routing_number and
|
|
1832
|
+
/** @description Confirm an embedded intent with a bank account. When ACH verification is required for the intent amount, include plaid credentials and omit bank_account_profile_attributes; routing and account numbers are filled server-side from Plaid Auth. Otherwise provide routing_number and account_number on bank_account_profile_attributes. */
|
|
1813
1833
|
EmbedConfirmBankAccountPaymentMethodInput: {
|
|
1814
1834
|
/**
|
|
1815
1835
|
* @description discriminator enum property added by openapi-typescript
|
|
@@ -1996,7 +2016,6 @@ interface components {
|
|
|
1996
2016
|
business_postal_code?: string;
|
|
1997
2017
|
business_country?: string;
|
|
1998
2018
|
tax_id_last4?: string;
|
|
1999
|
-
state?: components["schemas"]["LegalEntityStateType"];
|
|
2000
2019
|
/** Format: date-time */
|
|
2001
2020
|
created_at?: string;
|
|
2002
2021
|
/** Format: date-time */
|
|
@@ -2007,7 +2026,12 @@ interface components {
|
|
|
2007
2026
|
id?: string;
|
|
2008
2027
|
legal_name?: string;
|
|
2009
2028
|
/** Format: uuid */
|
|
2010
|
-
|
|
2029
|
+
organization_id?: string;
|
|
2030
|
+
/**
|
|
2031
|
+
* Format: uuid
|
|
2032
|
+
* @description Set when the application is approved and the legal entity is created.
|
|
2033
|
+
*/
|
|
2034
|
+
legal_entity_id?: string | null;
|
|
2011
2035
|
entity_type?: components["schemas"]["LegalEntityEntityType"];
|
|
2012
2036
|
ownership_type?: components["schemas"]["LegalEntityOwnershipType"];
|
|
2013
2037
|
contact_email?: string;
|
|
@@ -2364,10 +2388,8 @@ interface components {
|
|
|
2364
2388
|
account_type?: string;
|
|
2365
2389
|
bank_name?: string;
|
|
2366
2390
|
currency?: string;
|
|
2367
|
-
/** @description
|
|
2391
|
+
/** @description Bank account number. Stored encrypted at rest and not returned in API responses. */
|
|
2368
2392
|
account_number?: string;
|
|
2369
|
-
/** @description Vault-encrypted account number. Required on create when account_number is omitted; ignored for tokenization when account_number is present. */
|
|
2370
|
-
encrypted_account_number?: string;
|
|
2371
2393
|
token?: string;
|
|
2372
2394
|
routing_number?: string;
|
|
2373
2395
|
};
|
|
@@ -4945,6 +4967,8 @@ interface operations {
|
|
|
4945
4967
|
page?: components["parameters"]["PageQuery"];
|
|
4946
4968
|
/** @description Number of results per page. */
|
|
4947
4969
|
per_page?: components["parameters"]["PerPageQuery"];
|
|
4970
|
+
/** @description The ID of the account to filter by */
|
|
4971
|
+
account_id?: components["parameters"]["AccountIdQuery"];
|
|
4948
4972
|
/** @description The ID of the payment intent to filter by */
|
|
4949
4973
|
payment_intent_id?: components["parameters"]["PaymentIntentIdQuery"];
|
|
4950
4974
|
/** @description The ID of the payment method to filter by */
|
|
@@ -4973,6 +4997,37 @@ interface operations {
|
|
|
4973
4997
|
};
|
|
4974
4998
|
};
|
|
4975
4999
|
};
|
|
5000
|
+
GetProcessorTransaction: {
|
|
5001
|
+
parameters: {
|
|
5002
|
+
query?: never;
|
|
5003
|
+
header?: never;
|
|
5004
|
+
path: {
|
|
5005
|
+
id: string;
|
|
5006
|
+
};
|
|
5007
|
+
cookie?: never;
|
|
5008
|
+
};
|
|
5009
|
+
requestBody?: never;
|
|
5010
|
+
responses: {
|
|
5011
|
+
/** @description A single processor transaction */
|
|
5012
|
+
200: {
|
|
5013
|
+
headers: {
|
|
5014
|
+
[name: string]: unknown;
|
|
5015
|
+
};
|
|
5016
|
+
content: {
|
|
5017
|
+
"application/json": components["schemas"]["ProcessorTransaction"];
|
|
5018
|
+
};
|
|
5019
|
+
};
|
|
5020
|
+
/** @description Processor transaction not found */
|
|
5021
|
+
404: {
|
|
5022
|
+
headers: {
|
|
5023
|
+
[name: string]: unknown;
|
|
5024
|
+
};
|
|
5025
|
+
content: {
|
|
5026
|
+
"application/json": components["schemas"]["Error"];
|
|
5027
|
+
};
|
|
5028
|
+
};
|
|
5029
|
+
};
|
|
5030
|
+
};
|
|
4976
5031
|
ListProducts: {
|
|
4977
5032
|
parameters: {
|
|
4978
5033
|
query?: {
|
|
@@ -6115,7 +6170,6 @@ declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequir
|
|
|
6115
6170
|
declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
|
|
6116
6171
|
declare const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]>;
|
|
6117
6172
|
declare const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]>;
|
|
6118
|
-
declare const legalEntityStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityStateType"]>;
|
|
6119
6173
|
declare const legalEntityApplicationStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityApplicationStateType"]>;
|
|
6120
6174
|
declare const legalEntityEntityTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityEntityType"]>;
|
|
6121
6175
|
declare const legalEntityOwnershipTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityOwnershipType"]>;
|
|
@@ -6195,4 +6249,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
6195
6249
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
6196
6250
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
6197
6251
|
|
|
6198
|
-
export { type $defs, AMOS_API_BASE_URL_PRODUCTION, AMOS_API_BASE_URL_SANDBOX, AMOS_API_VERSION, type PayApiClient, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, internationalBillingAddressOptionsModeValues, legalEntityApplicationStateTypeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues,
|
|
6252
|
+
export { type $defs, AMOS_API_BASE_URL_PRODUCTION, AMOS_API_BASE_URL_SANDBOX, AMOS_API_VERSION, type PayApiClient, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, internationalBillingAddressOptionsModeValues, legalEntityApplicationStateTypeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, organizationKindValues, originApplepayRegistrationStateTypeValues, type paths, paymentIntentCaptureMethodTypeValues, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, usOnlyBillingAddressOptionsModeValues, usStateTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
|
package/dist/index.js
CHANGED
|
@@ -56,7 +56,6 @@ __export(index_exports, {
|
|
|
56
56
|
legalEntityDocumentTypeValues: () => legalEntityDocumentTypeValues,
|
|
57
57
|
legalEntityEntityTypeValues: () => legalEntityEntityTypeValues,
|
|
58
58
|
legalEntityOwnershipTypeValues: () => legalEntityOwnershipTypeValues,
|
|
59
|
-
legalEntityStateTypeValues: () => legalEntityStateTypeValues,
|
|
60
59
|
merchantBusinessCategoryTypeValues: () => merchantBusinessCategoryTypeValues,
|
|
61
60
|
organizationKindValues: () => organizationKindValues,
|
|
62
61
|
originApplepayRegistrationStateTypeValues: () => originApplepayRegistrationStateTypeValues,
|
|
@@ -89,7 +88,6 @@ var cardProfileFailure_reasonValues = ["authorization_failed", "avs_blocked", "b
|
|
|
89
88
|
var chargeAllowed_reverse_actionValues = ["void", "refund"];
|
|
90
89
|
var chargeStateValues = ["cancelled", "errored", "failed", "processing", "requires_capture", "requires_confirmation", "requires_review", "settlement_failed", "succeeded"];
|
|
91
90
|
var externalAccountTypeValues = ["external_card", "external_bank_account"];
|
|
92
|
-
var legalEntityStateTypeValues = ["pending", "active"];
|
|
93
91
|
var legalEntityApplicationStateTypeValues = ["pending", "submitted", "needs_information", "under_review", "approved", "denied"];
|
|
94
92
|
var legalEntityEntityTypeValues = ["individual_sole_proprietorship", "corporation", "limited_liability_company", "partnership", "limited_partnership", "general_partnership", "tax_exempt_organization", "government_agency"];
|
|
95
93
|
var legalEntityOwnershipTypeValues = ["public", "private"];
|
|
@@ -165,7 +163,6 @@ function createPayApiClient(options) {
|
|
|
165
163
|
legalEntityDocumentTypeValues,
|
|
166
164
|
legalEntityEntityTypeValues,
|
|
167
165
|
legalEntityOwnershipTypeValues,
|
|
168
|
-
legalEntityStateTypeValues,
|
|
169
166
|
merchantBusinessCategoryTypeValues,
|
|
170
167
|
organizationKindValues,
|
|
171
168
|
originApplepayRegistrationStateTypeValues,
|