@amos.com/node 0.1.31 → 0.1.33
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 +64 -6
- package/dist/index.d.ts +64 -6
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +64 -6
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1219,7 +1219,7 @@ interface components {
|
|
|
1219
1219
|
account_type?: string;
|
|
1220
1220
|
bank_name?: string;
|
|
1221
1221
|
/** @enum {string|null} */
|
|
1222
|
-
failure_reason?: "activation_failed" | "processing_error" | "vault_failed" | null;
|
|
1222
|
+
failure_reason?: "activation_failed" | "processing_error" | "vault_failed" | "insufficient_funds" | "verification_failed" | null;
|
|
1223
1223
|
fingerprint?: string | null;
|
|
1224
1224
|
last4?: string;
|
|
1225
1225
|
routing_number?: string;
|
|
@@ -1264,10 +1264,20 @@ interface components {
|
|
|
1264
1264
|
exp_year?: number;
|
|
1265
1265
|
moto?: boolean;
|
|
1266
1266
|
};
|
|
1267
|
+
/** @description Apple Pay card profile for embed confirm. Clients must send the raw PKPaymentToken as wallet_payload; Vault decrypts it and returns the cryptogram. Encrypted PAN and client-supplied cryptogram are not supported. */
|
|
1268
|
+
ApplePayCardProfileInput: {
|
|
1269
|
+
wallet_brand?: string;
|
|
1270
|
+
/** @description Display last4 from the Apple Pay payment method. */
|
|
1271
|
+
wallet_last4?: string;
|
|
1272
|
+
/** @description The unmodified JSON-encoded PKPaymentToken. */
|
|
1273
|
+
wallet_payload: string;
|
|
1274
|
+
wallet_provider?: components["schemas"]["WalletProviderType"];
|
|
1275
|
+
};
|
|
1267
1276
|
GooglePayCardProfileInput: {
|
|
1268
1277
|
wallet_brand?: string;
|
|
1269
1278
|
wallet_last4?: string;
|
|
1270
|
-
|
|
1279
|
+
/** @description The unmodified Google Pay payment token payload. */
|
|
1280
|
+
wallet_payload: string;
|
|
1271
1281
|
wallet_provider?: components["schemas"]["WalletProviderType"];
|
|
1272
1282
|
};
|
|
1273
1283
|
CardProfile: {
|
|
@@ -1564,6 +1574,7 @@ interface components {
|
|
|
1564
1574
|
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
1565
1575
|
card_profile_attributes: components["schemas"]["CardProfileInput"];
|
|
1566
1576
|
};
|
|
1577
|
+
/** @description Confirm an embedded intent with a bank account. When ACH verification is required for the intent amount, include plaid credentials; routing and account numbers are filled server-side from Plaid Auth. Otherwise provide encrypted_account_number and routing_number on bank_account_profile_attributes. */
|
|
1567
1578
|
EmbedConfirmBankAccountPaymentMethodInput: {
|
|
1568
1579
|
/**
|
|
1569
1580
|
* @description discriminator enum property added by openapi-typescript
|
|
@@ -1571,6 +1582,7 @@ interface components {
|
|
|
1571
1582
|
*/
|
|
1572
1583
|
type: "bank_account";
|
|
1573
1584
|
metadata?: components["schemas"]["Metadata"];
|
|
1585
|
+
plaid?: components["schemas"]["PlaidCredentialsInput"];
|
|
1574
1586
|
bank_account_profile_attributes: components["schemas"]["BankAccountProfileInput"];
|
|
1575
1587
|
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
1576
1588
|
};
|
|
@@ -1592,7 +1604,14 @@ interface components {
|
|
|
1592
1604
|
type: "applepay";
|
|
1593
1605
|
metadata?: components["schemas"]["Metadata"];
|
|
1594
1606
|
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
1595
|
-
card_profile_attributes: components["schemas"]["
|
|
1607
|
+
card_profile_attributes: components["schemas"]["ApplePayCardProfileInput"];
|
|
1608
|
+
};
|
|
1609
|
+
/** @description One-time Plaid Link credentials used to source and verify a bank account when ACH verification is required. */
|
|
1610
|
+
PlaidCredentialsInput: {
|
|
1611
|
+
/** @description Temporary public_token returned by Plaid Link onSuccess. */
|
|
1612
|
+
public_token: string;
|
|
1613
|
+
/** @description Selected Plaid account_id from Link metadata. */
|
|
1614
|
+
account_id: string;
|
|
1596
1615
|
};
|
|
1597
1616
|
AllowedCardPaymentMethodOptions: {
|
|
1598
1617
|
moto?: boolean;
|
|
@@ -1942,13 +1961,28 @@ interface components {
|
|
|
1942
1961
|
/** @enum {string} */
|
|
1943
1962
|
state?: "requires_payment_method" | "requires_confirmation" | "requires_capture" | "processing_authorization" | "processing_capture" | "processing_sale" | "requires_review" | "succeeded" | "cancelled" | "errored_authorization" | "errored_capture" | "errored_sale";
|
|
1944
1963
|
statement_descriptor?: string;
|
|
1964
|
+
/** @description True when the intent amount meets or exceeds the configured ACH verification threshold. */
|
|
1965
|
+
requires_ach_verification?: boolean;
|
|
1966
|
+
ach_verification?: components["schemas"]["AchVerification"];
|
|
1945
1967
|
/** Format: date-time */
|
|
1946
1968
|
created_at?: string;
|
|
1947
1969
|
/** Format: date-time */
|
|
1948
1970
|
updated_at?: string;
|
|
1949
1971
|
};
|
|
1972
|
+
/** @description Instructions for the embed client to complete ACH verification via Plaid Link. */
|
|
1973
|
+
AchVerification: {
|
|
1974
|
+
/** @enum {string} */
|
|
1975
|
+
type: "plaid_auth";
|
|
1976
|
+
/** @description Short-lived Plaid Link token used to open Link in the embed client. */
|
|
1977
|
+
link_token: string;
|
|
1978
|
+
};
|
|
1979
|
+
/** @description How this payment intent relates to a recurring series. Use `initial` for the first charge that establishes the series. Use `network_transaction_id` and/or `transaction_link_id` for subsequent merchant-initiated charges. Do not combine `initial` with network identifiers on the same request. */
|
|
1950
1980
|
RecurringPayment: {
|
|
1981
|
+
/** @description When true, marks the first payment in a recurring series so the processor can treat it as an initial recurring / credential-on-file setup transaction. */
|
|
1982
|
+
initial?: boolean;
|
|
1983
|
+
/** @description Network transaction id from the initial recurring charge, used for subsequent merchant-initiated payments. */
|
|
1951
1984
|
network_transaction_id?: string;
|
|
1985
|
+
/** @description Processor transaction link id for subsequent recurring payments where supported. */
|
|
1952
1986
|
transaction_link_id?: string;
|
|
1953
1987
|
};
|
|
1954
1988
|
CreatePaymentLinkInput: {
|
|
@@ -2453,13 +2487,32 @@ interface components {
|
|
|
2453
2487
|
/** Format: date-time */
|
|
2454
2488
|
updated_at?: string;
|
|
2455
2489
|
};
|
|
2490
|
+
/** @description Body POSTed to a webhook endpoint for an event delivery. */
|
|
2491
|
+
WebhookEventPayload: {
|
|
2492
|
+
/**
|
|
2493
|
+
* Format: uuid
|
|
2494
|
+
* @description Stable event id for this delivery. Identical across retries of the same event; use for idempotent handling.
|
|
2495
|
+
*/
|
|
2496
|
+
id: string;
|
|
2497
|
+
/**
|
|
2498
|
+
* Format: uuid
|
|
2499
|
+
* @description Id of the webhook endpoint that received this delivery.
|
|
2500
|
+
*/
|
|
2501
|
+
webhook_id: string;
|
|
2502
|
+
event: components["schemas"]["WebhookEventType"];
|
|
2503
|
+
/** @description Event-specific payload keyed by resource descriptor. */
|
|
2504
|
+
data: {
|
|
2505
|
+
[key: string]: unknown;
|
|
2506
|
+
};
|
|
2507
|
+
metadata?: components["schemas"]["Metadata"];
|
|
2508
|
+
};
|
|
2456
2509
|
WebhookRequest: {
|
|
2457
2510
|
id?: string;
|
|
2458
2511
|
/** Format: uuid */
|
|
2459
2512
|
webhook_endpoint_id?: string;
|
|
2460
2513
|
/** Format: date-time */
|
|
2461
2514
|
expires_at?: string;
|
|
2462
|
-
request_body?:
|
|
2515
|
+
request_body?: components["schemas"]["WebhookEventPayload"];
|
|
2463
2516
|
/** Format: date-time */
|
|
2464
2517
|
created_at?: string;
|
|
2465
2518
|
/** Format: date-time */
|
|
@@ -3469,7 +3522,10 @@ interface operations {
|
|
|
3469
3522
|
};
|
|
3470
3523
|
GetEmbedPaymentIntent: {
|
|
3471
3524
|
parameters: {
|
|
3472
|
-
query?:
|
|
3525
|
+
query?: {
|
|
3526
|
+
/** @description When set to bank_account and ACH verification is required for the intent amount, the response includes ach_verification.link_token for Plaid Link. */
|
|
3527
|
+
payment_method_type?: "bank_account";
|
|
3528
|
+
};
|
|
3473
3529
|
header?: never;
|
|
3474
3530
|
path: {
|
|
3475
3531
|
/** @description The ID of the payment intent to retrieve */
|
|
@@ -5126,6 +5182,7 @@ type ReadonlyArray<T> = [
|
|
|
5126
5182
|
] extends [
|
|
5127
5183
|
unknown[]
|
|
5128
5184
|
] ? Readonly<Exclude<T, undefined>> : Readonly<Exclude<T, undefined>[]>;
|
|
5185
|
+
declare const pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues: ReadonlyArray<FlattenedDeepRequired<paths>["/embed/payment_intents/{id}"]["get"]["parameters"]["query"]["payment_method_type"]>;
|
|
5129
5186
|
declare const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["BankAccountProfile"]["failure_reason"]>;
|
|
5130
5187
|
declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["CardProfile"]["failure_reason"]>;
|
|
5131
5188
|
declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
|
|
@@ -5158,6 +5215,7 @@ declare const transactionSourceTypeValues: ReadonlyArray<FlattenedDeepRequired<c
|
|
|
5158
5215
|
declare const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WalletProviderType"]>;
|
|
5159
5216
|
declare const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WebhookEventType"]>;
|
|
5160
5217
|
declare const paymentIntentStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntent"]["state"]>;
|
|
5218
|
+
declare const achVerificationTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AchVerification"]["type"]>;
|
|
5161
5219
|
declare const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]>;
|
|
5162
5220
|
declare const processorTransactionTransaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["transaction_type"]>;
|
|
5163
5221
|
declare const refundAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Refund"]["allowed_reverse_action"]>;
|
|
@@ -5205,4 +5263,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
5205
5263
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
5206
5264
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
5207
5265
|
|
|
5208
|
-
export { type $defs, PAY_API_BASE_URL_PRODUCTION, PAY_API_BASE_URL_SANDBOX, PAY_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, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, type paths, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
|
|
5266
|
+
export { type $defs, PAY_API_BASE_URL_PRODUCTION, PAY_API_BASE_URL_SANDBOX, PAY_API_VERSION, type PayApiClient, achVerificationTypeValues, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, type paths, pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
|
package/dist/index.d.ts
CHANGED
|
@@ -1219,7 +1219,7 @@ interface components {
|
|
|
1219
1219
|
account_type?: string;
|
|
1220
1220
|
bank_name?: string;
|
|
1221
1221
|
/** @enum {string|null} */
|
|
1222
|
-
failure_reason?: "activation_failed" | "processing_error" | "vault_failed" | null;
|
|
1222
|
+
failure_reason?: "activation_failed" | "processing_error" | "vault_failed" | "insufficient_funds" | "verification_failed" | null;
|
|
1223
1223
|
fingerprint?: string | null;
|
|
1224
1224
|
last4?: string;
|
|
1225
1225
|
routing_number?: string;
|
|
@@ -1264,10 +1264,20 @@ interface components {
|
|
|
1264
1264
|
exp_year?: number;
|
|
1265
1265
|
moto?: boolean;
|
|
1266
1266
|
};
|
|
1267
|
+
/** @description Apple Pay card profile for embed confirm. Clients must send the raw PKPaymentToken as wallet_payload; Vault decrypts it and returns the cryptogram. Encrypted PAN and client-supplied cryptogram are not supported. */
|
|
1268
|
+
ApplePayCardProfileInput: {
|
|
1269
|
+
wallet_brand?: string;
|
|
1270
|
+
/** @description Display last4 from the Apple Pay payment method. */
|
|
1271
|
+
wallet_last4?: string;
|
|
1272
|
+
/** @description The unmodified JSON-encoded PKPaymentToken. */
|
|
1273
|
+
wallet_payload: string;
|
|
1274
|
+
wallet_provider?: components["schemas"]["WalletProviderType"];
|
|
1275
|
+
};
|
|
1267
1276
|
GooglePayCardProfileInput: {
|
|
1268
1277
|
wallet_brand?: string;
|
|
1269
1278
|
wallet_last4?: string;
|
|
1270
|
-
|
|
1279
|
+
/** @description The unmodified Google Pay payment token payload. */
|
|
1280
|
+
wallet_payload: string;
|
|
1271
1281
|
wallet_provider?: components["schemas"]["WalletProviderType"];
|
|
1272
1282
|
};
|
|
1273
1283
|
CardProfile: {
|
|
@@ -1564,6 +1574,7 @@ interface components {
|
|
|
1564
1574
|
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
1565
1575
|
card_profile_attributes: components["schemas"]["CardProfileInput"];
|
|
1566
1576
|
};
|
|
1577
|
+
/** @description Confirm an embedded intent with a bank account. When ACH verification is required for the intent amount, include plaid credentials; routing and account numbers are filled server-side from Plaid Auth. Otherwise provide encrypted_account_number and routing_number on bank_account_profile_attributes. */
|
|
1567
1578
|
EmbedConfirmBankAccountPaymentMethodInput: {
|
|
1568
1579
|
/**
|
|
1569
1580
|
* @description discriminator enum property added by openapi-typescript
|
|
@@ -1571,6 +1582,7 @@ interface components {
|
|
|
1571
1582
|
*/
|
|
1572
1583
|
type: "bank_account";
|
|
1573
1584
|
metadata?: components["schemas"]["Metadata"];
|
|
1585
|
+
plaid?: components["schemas"]["PlaidCredentialsInput"];
|
|
1574
1586
|
bank_account_profile_attributes: components["schemas"]["BankAccountProfileInput"];
|
|
1575
1587
|
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
1576
1588
|
};
|
|
@@ -1592,7 +1604,14 @@ interface components {
|
|
|
1592
1604
|
type: "applepay";
|
|
1593
1605
|
metadata?: components["schemas"]["Metadata"];
|
|
1594
1606
|
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
1595
|
-
card_profile_attributes: components["schemas"]["
|
|
1607
|
+
card_profile_attributes: components["schemas"]["ApplePayCardProfileInput"];
|
|
1608
|
+
};
|
|
1609
|
+
/** @description One-time Plaid Link credentials used to source and verify a bank account when ACH verification is required. */
|
|
1610
|
+
PlaidCredentialsInput: {
|
|
1611
|
+
/** @description Temporary public_token returned by Plaid Link onSuccess. */
|
|
1612
|
+
public_token: string;
|
|
1613
|
+
/** @description Selected Plaid account_id from Link metadata. */
|
|
1614
|
+
account_id: string;
|
|
1596
1615
|
};
|
|
1597
1616
|
AllowedCardPaymentMethodOptions: {
|
|
1598
1617
|
moto?: boolean;
|
|
@@ -1942,13 +1961,28 @@ interface components {
|
|
|
1942
1961
|
/** @enum {string} */
|
|
1943
1962
|
state?: "requires_payment_method" | "requires_confirmation" | "requires_capture" | "processing_authorization" | "processing_capture" | "processing_sale" | "requires_review" | "succeeded" | "cancelled" | "errored_authorization" | "errored_capture" | "errored_sale";
|
|
1944
1963
|
statement_descriptor?: string;
|
|
1964
|
+
/** @description True when the intent amount meets or exceeds the configured ACH verification threshold. */
|
|
1965
|
+
requires_ach_verification?: boolean;
|
|
1966
|
+
ach_verification?: components["schemas"]["AchVerification"];
|
|
1945
1967
|
/** Format: date-time */
|
|
1946
1968
|
created_at?: string;
|
|
1947
1969
|
/** Format: date-time */
|
|
1948
1970
|
updated_at?: string;
|
|
1949
1971
|
};
|
|
1972
|
+
/** @description Instructions for the embed client to complete ACH verification via Plaid Link. */
|
|
1973
|
+
AchVerification: {
|
|
1974
|
+
/** @enum {string} */
|
|
1975
|
+
type: "plaid_auth";
|
|
1976
|
+
/** @description Short-lived Plaid Link token used to open Link in the embed client. */
|
|
1977
|
+
link_token: string;
|
|
1978
|
+
};
|
|
1979
|
+
/** @description How this payment intent relates to a recurring series. Use `initial` for the first charge that establishes the series. Use `network_transaction_id` and/or `transaction_link_id` for subsequent merchant-initiated charges. Do not combine `initial` with network identifiers on the same request. */
|
|
1950
1980
|
RecurringPayment: {
|
|
1981
|
+
/** @description When true, marks the first payment in a recurring series so the processor can treat it as an initial recurring / credential-on-file setup transaction. */
|
|
1982
|
+
initial?: boolean;
|
|
1983
|
+
/** @description Network transaction id from the initial recurring charge, used for subsequent merchant-initiated payments. */
|
|
1951
1984
|
network_transaction_id?: string;
|
|
1985
|
+
/** @description Processor transaction link id for subsequent recurring payments where supported. */
|
|
1952
1986
|
transaction_link_id?: string;
|
|
1953
1987
|
};
|
|
1954
1988
|
CreatePaymentLinkInput: {
|
|
@@ -2453,13 +2487,32 @@ interface components {
|
|
|
2453
2487
|
/** Format: date-time */
|
|
2454
2488
|
updated_at?: string;
|
|
2455
2489
|
};
|
|
2490
|
+
/** @description Body POSTed to a webhook endpoint for an event delivery. */
|
|
2491
|
+
WebhookEventPayload: {
|
|
2492
|
+
/**
|
|
2493
|
+
* Format: uuid
|
|
2494
|
+
* @description Stable event id for this delivery. Identical across retries of the same event; use for idempotent handling.
|
|
2495
|
+
*/
|
|
2496
|
+
id: string;
|
|
2497
|
+
/**
|
|
2498
|
+
* Format: uuid
|
|
2499
|
+
* @description Id of the webhook endpoint that received this delivery.
|
|
2500
|
+
*/
|
|
2501
|
+
webhook_id: string;
|
|
2502
|
+
event: components["schemas"]["WebhookEventType"];
|
|
2503
|
+
/** @description Event-specific payload keyed by resource descriptor. */
|
|
2504
|
+
data: {
|
|
2505
|
+
[key: string]: unknown;
|
|
2506
|
+
};
|
|
2507
|
+
metadata?: components["schemas"]["Metadata"];
|
|
2508
|
+
};
|
|
2456
2509
|
WebhookRequest: {
|
|
2457
2510
|
id?: string;
|
|
2458
2511
|
/** Format: uuid */
|
|
2459
2512
|
webhook_endpoint_id?: string;
|
|
2460
2513
|
/** Format: date-time */
|
|
2461
2514
|
expires_at?: string;
|
|
2462
|
-
request_body?:
|
|
2515
|
+
request_body?: components["schemas"]["WebhookEventPayload"];
|
|
2463
2516
|
/** Format: date-time */
|
|
2464
2517
|
created_at?: string;
|
|
2465
2518
|
/** Format: date-time */
|
|
@@ -3469,7 +3522,10 @@ interface operations {
|
|
|
3469
3522
|
};
|
|
3470
3523
|
GetEmbedPaymentIntent: {
|
|
3471
3524
|
parameters: {
|
|
3472
|
-
query?:
|
|
3525
|
+
query?: {
|
|
3526
|
+
/** @description When set to bank_account and ACH verification is required for the intent amount, the response includes ach_verification.link_token for Plaid Link. */
|
|
3527
|
+
payment_method_type?: "bank_account";
|
|
3528
|
+
};
|
|
3473
3529
|
header?: never;
|
|
3474
3530
|
path: {
|
|
3475
3531
|
/** @description The ID of the payment intent to retrieve */
|
|
@@ -5126,6 +5182,7 @@ type ReadonlyArray<T> = [
|
|
|
5126
5182
|
] extends [
|
|
5127
5183
|
unknown[]
|
|
5128
5184
|
] ? Readonly<Exclude<T, undefined>> : Readonly<Exclude<T, undefined>[]>;
|
|
5185
|
+
declare const pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues: ReadonlyArray<FlattenedDeepRequired<paths>["/embed/payment_intents/{id}"]["get"]["parameters"]["query"]["payment_method_type"]>;
|
|
5129
5186
|
declare const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["BankAccountProfile"]["failure_reason"]>;
|
|
5130
5187
|
declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["CardProfile"]["failure_reason"]>;
|
|
5131
5188
|
declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
|
|
@@ -5158,6 +5215,7 @@ declare const transactionSourceTypeValues: ReadonlyArray<FlattenedDeepRequired<c
|
|
|
5158
5215
|
declare const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WalletProviderType"]>;
|
|
5159
5216
|
declare const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WebhookEventType"]>;
|
|
5160
5217
|
declare const paymentIntentStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntent"]["state"]>;
|
|
5218
|
+
declare const achVerificationTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AchVerification"]["type"]>;
|
|
5161
5219
|
declare const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]>;
|
|
5162
5220
|
declare const processorTransactionTransaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["transaction_type"]>;
|
|
5163
5221
|
declare const refundAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Refund"]["allowed_reverse_action"]>;
|
|
@@ -5205,4 +5263,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
5205
5263
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
5206
5264
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
5207
5265
|
|
|
5208
|
-
export { type $defs, PAY_API_BASE_URL_PRODUCTION, PAY_API_BASE_URL_SANDBOX, PAY_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, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, type paths, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
|
|
5266
|
+
export { type $defs, PAY_API_BASE_URL_PRODUCTION, PAY_API_BASE_URL_SANDBOX, PAY_API_VERSION, type PayApiClient, achVerificationTypeValues, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, type paths, pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
|
package/dist/index.js
CHANGED
|
@@ -33,6 +33,7 @@ __export(index_exports, {
|
|
|
33
33
|
PAY_API_BASE_URL_PRODUCTION: () => PAY_API_BASE_URL_PRODUCTION,
|
|
34
34
|
PAY_API_BASE_URL_SANDBOX: () => PAY_API_BASE_URL_SANDBOX,
|
|
35
35
|
PAY_API_VERSION: () => PAY_API_VERSION,
|
|
36
|
+
achVerificationTypeValues: () => achVerificationTypeValues,
|
|
36
37
|
allowedApplePayPaymentMethodInputTypeValues: () => allowedApplePayPaymentMethodInputTypeValues,
|
|
37
38
|
allowedApplePayPaymentMethodTypeValues: () => allowedApplePayPaymentMethodTypeValues,
|
|
38
39
|
allowedBankAccountPaymentMethodInputTypeValues: () => allowedBankAccountPaymentMethodInputTypeValues,
|
|
@@ -55,6 +56,7 @@ __export(index_exports, {
|
|
|
55
56
|
legalEntityEntityTypeValues: () => legalEntityEntityTypeValues,
|
|
56
57
|
legalEntityOwnershipTypeValues: () => legalEntityOwnershipTypeValues,
|
|
57
58
|
merchantBusinessCategoryTypeValues: () => merchantBusinessCategoryTypeValues,
|
|
59
|
+
pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues: () => pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues,
|
|
58
60
|
paymentIntentStateValues: () => paymentIntentStateValues,
|
|
59
61
|
paymentLinkAmountTypeValues: () => paymentLinkAmountTypeValues,
|
|
60
62
|
paymentMethodTypeValues: () => paymentMethodTypeValues,
|
|
@@ -76,7 +78,8 @@ module.exports = __toCommonJS(index_exports);
|
|
|
76
78
|
var import_openapi_fetch = __toESM(require("openapi-fetch"));
|
|
77
79
|
|
|
78
80
|
// openapi/schema.ts
|
|
79
|
-
var
|
|
81
|
+
var pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues = ["bank_account"];
|
|
82
|
+
var bankAccountProfileFailure_reasonValues = ["activation_failed", "processing_error", "vault_failed", "insufficient_funds", "verification_failed"];
|
|
80
83
|
var cardProfileFailure_reasonValues = ["authorization_failed", "avs_blocked", "brand_not_allowed", "brand_not_found", "cvc_blocked", "processing_error", "vault_failed"];
|
|
81
84
|
var chargeAllowed_reverse_actionValues = ["void", "refund"];
|
|
82
85
|
var chargeStateValues = ["cancelled", "errored", "failed", "processing", "requires_capture", "requires_confirmation", "requires_review", "settlement_failed", "succeeded"];
|
|
@@ -108,6 +111,7 @@ var transactionSourceTypeValues = ["api", "dashboard", "iframe", "system", "subs
|
|
|
108
111
|
var walletProviderTypeValues = ["googlepay", "applepay"];
|
|
109
112
|
var webhookEventTypeValues = ["charge.cancelled", "charge.created", "charge.errored", "charge.failed", "charge.processing", "charge.requires_capture", "charge.requires_confirmation", "charge.requires_review", "charge.settlement_failed", "charge.succeeded", "customer.created", "customer.updated", "legal_entity.created", "legal_entity.updated", "legal_entity_principal.created", "legal_entity_principal.updated", "legal_entity_application.approved", "legal_entity_application.denied", "legal_entity_application.needs_information", "legal_entity_application.pending", "legal_entity_application.submitted", "merchant.created", "merchant.updated", "payment_intent.cancelled", "payment_intent.created", "payment_intent.errored_authorization", "payment_intent.errored_capture", "payment_intent.errored_sale", "payment_intent.processing_authorization", "payment_intent.processing_capture", "payment_intent.processing_sale", "payment_intent.requires_capture", "payment_intent.requires_confirmation", "payment_intent.requires_payment_method", "payment_intent.requires_review", "payment_intent.succeeded", "processor_transaction.completed", "reconciliation.created", "refund.cancelled", "refund.created", "refund.failed", "refund.pending", "refund.processing", "refund.requires_review", "refund.succeeded", "void.created", "void.failed", "void.pending", "void.processing", "void.requires_review", "void.succeeded"];
|
|
110
113
|
var paymentIntentStateValues = ["requires_payment_method", "requires_confirmation", "requires_capture", "processing_authorization", "processing_capture", "processing_sale", "requires_review", "succeeded", "cancelled", "errored_authorization", "errored_capture", "errored_sale"];
|
|
114
|
+
var achVerificationTypeValues = ["plaid_auth"];
|
|
111
115
|
var processorTransactionPayment_transaction_typeValues = ["charge", "refund", "void"];
|
|
112
116
|
var processorTransactionTransaction_typeValues = ["authorization", "authorization_reversal", "capture", "credit", "echeck_credit", "echeck_sale", "echeck_void", "sale", "void"];
|
|
113
117
|
var refundAllowed_reverse_actionValues = ["void"];
|
|
@@ -126,6 +130,7 @@ function createPayApiClient(options) {
|
|
|
126
130
|
PAY_API_BASE_URL_PRODUCTION,
|
|
127
131
|
PAY_API_BASE_URL_SANDBOX,
|
|
128
132
|
PAY_API_VERSION,
|
|
133
|
+
achVerificationTypeValues,
|
|
129
134
|
allowedApplePayPaymentMethodInputTypeValues,
|
|
130
135
|
allowedApplePayPaymentMethodTypeValues,
|
|
131
136
|
allowedBankAccountPaymentMethodInputTypeValues,
|
|
@@ -148,6 +153,7 @@ function createPayApiClient(options) {
|
|
|
148
153
|
legalEntityEntityTypeValues,
|
|
149
154
|
legalEntityOwnershipTypeValues,
|
|
150
155
|
merchantBusinessCategoryTypeValues,
|
|
156
|
+
pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues,
|
|
151
157
|
paymentIntentStateValues,
|
|
152
158
|
paymentLinkAmountTypeValues,
|
|
153
159
|
paymentMethodTypeValues,
|