@amos.com/node 0.1.32 → 0.1.34
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 +69 -4
- package/dist/index.d.ts +69 -4
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +68 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1189,6 +1189,7 @@ interface components {
|
|
|
1189
1189
|
/** @description Decoded JWT payload for render token responses. */
|
|
1190
1190
|
RenderTokenJwt: {
|
|
1191
1191
|
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
1192
|
+
billing_address_options?: components["schemas"]["BillingAddressOptions"];
|
|
1192
1193
|
env?: string;
|
|
1193
1194
|
origins?: string[];
|
|
1194
1195
|
/** Format: uuid */
|
|
@@ -1264,10 +1265,20 @@ interface components {
|
|
|
1264
1265
|
exp_year?: number;
|
|
1265
1266
|
moto?: boolean;
|
|
1266
1267
|
};
|
|
1268
|
+
/** @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. */
|
|
1269
|
+
ApplePayCardProfileInput: {
|
|
1270
|
+
wallet_brand?: string;
|
|
1271
|
+
/** @description Display last4 from the Apple Pay payment method. */
|
|
1272
|
+
wallet_last4?: string;
|
|
1273
|
+
/** @description The unmodified JSON-encoded PKPaymentToken. */
|
|
1274
|
+
wallet_payload: string;
|
|
1275
|
+
wallet_provider?: components["schemas"]["WalletProviderType"];
|
|
1276
|
+
};
|
|
1267
1277
|
GooglePayCardProfileInput: {
|
|
1268
1278
|
wallet_brand?: string;
|
|
1269
1279
|
wallet_last4?: string;
|
|
1270
|
-
|
|
1280
|
+
/** @description The unmodified Google Pay payment token payload. */
|
|
1281
|
+
wallet_payload: string;
|
|
1271
1282
|
wallet_provider?: components["schemas"]["WalletProviderType"];
|
|
1272
1283
|
};
|
|
1273
1284
|
CardProfile: {
|
|
@@ -1552,6 +1563,31 @@ interface components {
|
|
|
1552
1563
|
PaymentLinkAmountType: "fixed" | "open";
|
|
1553
1564
|
/** @enum {string} */
|
|
1554
1565
|
PaymentMethodType: "card" | "bank_account" | "googlepay" | "applepay";
|
|
1566
|
+
/**
|
|
1567
|
+
* @description US state code (50 states; excludes DC and territories).
|
|
1568
|
+
* @enum {string}
|
|
1569
|
+
*/
|
|
1570
|
+
UsStateType: "AK" | "AL" | "AR" | "AZ" | "CA" | "CO" | "CT" | "DE" | "FL" | "GA" | "HI" | "IA" | "ID" | "IL" | "IN" | "KS" | "KY" | "LA" | "MA" | "MD" | "ME" | "MI" | "MN" | "MO" | "MS" | "MT" | "NC" | "ND" | "NE" | "NH" | "NJ" | "NM" | "NV" | "NY" | "OH" | "OK" | "OR" | "PA" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VA" | "VT" | "WA" | "WI" | "WV" | "WY";
|
|
1571
|
+
/** @description Restrict billing addresses to selected US states. */
|
|
1572
|
+
UsOnlyBillingAddressOptions: {
|
|
1573
|
+
/**
|
|
1574
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1575
|
+
* @enum {string}
|
|
1576
|
+
*/
|
|
1577
|
+
mode: "us_only";
|
|
1578
|
+
allowed_states: components["schemas"]["UsStateType"][];
|
|
1579
|
+
};
|
|
1580
|
+
/** @description Restrict billing addresses to selected countries. */
|
|
1581
|
+
InternationalBillingAddressOptions: {
|
|
1582
|
+
/**
|
|
1583
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1584
|
+
* @enum {string}
|
|
1585
|
+
*/
|
|
1586
|
+
mode: "international";
|
|
1587
|
+
allowed_countries: string[];
|
|
1588
|
+
};
|
|
1589
|
+
/** @description Billing address collection restrictions for a render template. */
|
|
1590
|
+
BillingAddressOptions: components["schemas"]["UsOnlyBillingAddressOptions"] | components["schemas"]["InternationalBillingAddressOptions"];
|
|
1555
1591
|
/** @description Payment method details used when confirming an embedded intent with a new payment method. */
|
|
1556
1592
|
EmbedConfirmPaymentMethodInput: components["schemas"]["EmbedConfirmCardPaymentMethodInput"] | components["schemas"]["EmbedConfirmBankAccountPaymentMethodInput"] | components["schemas"]["EmbedConfirmGooglePayPaymentMethodInput"] | components["schemas"]["EmbedConfirmApplePayPaymentMethodInput"];
|
|
1557
1593
|
EmbedConfirmCardPaymentMethodInput: {
|
|
@@ -1594,7 +1630,7 @@ interface components {
|
|
|
1594
1630
|
type: "applepay";
|
|
1595
1631
|
metadata?: components["schemas"]["Metadata"];
|
|
1596
1632
|
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
1597
|
-
card_profile_attributes: components["schemas"]["
|
|
1633
|
+
card_profile_attributes: components["schemas"]["ApplePayCardProfileInput"];
|
|
1598
1634
|
};
|
|
1599
1635
|
/** @description One-time Plaid Link credentials used to source and verify a bank account when ACH verification is required. */
|
|
1600
1636
|
PlaidCredentialsInput: {
|
|
@@ -1966,8 +2002,13 @@ interface components {
|
|
|
1966
2002
|
/** @description Short-lived Plaid Link token used to open Link in the embed client. */
|
|
1967
2003
|
link_token: string;
|
|
1968
2004
|
};
|
|
2005
|
+
/** @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. */
|
|
1969
2006
|
RecurringPayment: {
|
|
2007
|
+
/** @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. */
|
|
2008
|
+
initial?: boolean;
|
|
2009
|
+
/** @description Network transaction id from the initial recurring charge, used for subsequent merchant-initiated payments. */
|
|
1970
2010
|
network_transaction_id?: string;
|
|
2011
|
+
/** @description Processor transaction link id for subsequent recurring payments where supported. */
|
|
1971
2012
|
transaction_link_id?: string;
|
|
1972
2013
|
};
|
|
1973
2014
|
CreatePaymentLinkInput: {
|
|
@@ -2227,6 +2268,7 @@ interface components {
|
|
|
2227
2268
|
};
|
|
2228
2269
|
CreateRenderTemplateInput: {
|
|
2229
2270
|
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
|
|
2271
|
+
billing_address_options: components["schemas"]["BillingAddressOptions"];
|
|
2230
2272
|
currency?: string;
|
|
2231
2273
|
origin_ids?: string[];
|
|
2232
2274
|
};
|
|
@@ -2239,6 +2281,7 @@ interface components {
|
|
|
2239
2281
|
/** Format: uuid */
|
|
2240
2282
|
organization_id?: string;
|
|
2241
2283
|
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
2284
|
+
billing_address_options: components["schemas"]["BillingAddressOptions"];
|
|
2242
2285
|
currency?: string;
|
|
2243
2286
|
};
|
|
2244
2287
|
CreateSetupIntentInput: {
|
|
@@ -2472,13 +2515,32 @@ interface components {
|
|
|
2472
2515
|
/** Format: date-time */
|
|
2473
2516
|
updated_at?: string;
|
|
2474
2517
|
};
|
|
2518
|
+
/** @description Body POSTed to a webhook endpoint for an event delivery. */
|
|
2519
|
+
WebhookEventPayload: {
|
|
2520
|
+
/**
|
|
2521
|
+
* Format: uuid
|
|
2522
|
+
* @description Stable event id for this delivery. Identical across retries of the same event; use for idempotent handling.
|
|
2523
|
+
*/
|
|
2524
|
+
id: string;
|
|
2525
|
+
/**
|
|
2526
|
+
* Format: uuid
|
|
2527
|
+
* @description Id of the webhook endpoint that received this delivery.
|
|
2528
|
+
*/
|
|
2529
|
+
webhook_id: string;
|
|
2530
|
+
event: components["schemas"]["WebhookEventType"];
|
|
2531
|
+
/** @description Event-specific payload keyed by resource descriptor. */
|
|
2532
|
+
data: {
|
|
2533
|
+
[key: string]: unknown;
|
|
2534
|
+
};
|
|
2535
|
+
metadata?: components["schemas"]["Metadata"];
|
|
2536
|
+
};
|
|
2475
2537
|
WebhookRequest: {
|
|
2476
2538
|
id?: string;
|
|
2477
2539
|
/** Format: uuid */
|
|
2478
2540
|
webhook_endpoint_id?: string;
|
|
2479
2541
|
/** Format: date-time */
|
|
2480
2542
|
expires_at?: string;
|
|
2481
|
-
request_body?:
|
|
2543
|
+
request_body?: components["schemas"]["WebhookEventPayload"];
|
|
2482
2544
|
/** Format: date-time */
|
|
2483
2545
|
created_at?: string;
|
|
2484
2546
|
/** Format: date-time */
|
|
@@ -5160,6 +5222,9 @@ declare const legalEntityDocumentTypeValues: ReadonlyArray<FlattenedDeepRequired
|
|
|
5160
5222
|
declare const merchantBusinessCategoryTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["MerchantBusinessCategoryType"]>;
|
|
5161
5223
|
declare const paymentLinkAmountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentLinkAmountType"]>;
|
|
5162
5224
|
declare const paymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentMethodType"]>;
|
|
5225
|
+
declare const usStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["UsStateType"]>;
|
|
5226
|
+
declare const usOnlyBillingAddressOptionsModeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["UsOnlyBillingAddressOptions"]["mode"]>;
|
|
5227
|
+
declare const internationalBillingAddressOptionsModeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["InternationalBillingAddressOptions"]["mode"]>;
|
|
5163
5228
|
declare const embedConfirmCardPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["EmbedConfirmCardPaymentMethodInput"]["type"]>;
|
|
5164
5229
|
declare const embedConfirmBankAccountPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["EmbedConfirmBankAccountPaymentMethodInput"]["type"]>;
|
|
5165
5230
|
declare const embedConfirmGooglePayPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["EmbedConfirmGooglePayPaymentMethodInput"]["type"]>;
|
|
@@ -5229,4 +5294,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
5229
5294
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
5230
5295
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
5231
5296
|
|
|
5232
|
-
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 };
|
|
5297
|
+
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, internationalBillingAddressOptionsModeValues, 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, usOnlyBillingAddressOptionsModeValues, usStateTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
|
package/dist/index.d.ts
CHANGED
|
@@ -1189,6 +1189,7 @@ interface components {
|
|
|
1189
1189
|
/** @description Decoded JWT payload for render token responses. */
|
|
1190
1190
|
RenderTokenJwt: {
|
|
1191
1191
|
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
1192
|
+
billing_address_options?: components["schemas"]["BillingAddressOptions"];
|
|
1192
1193
|
env?: string;
|
|
1193
1194
|
origins?: string[];
|
|
1194
1195
|
/** Format: uuid */
|
|
@@ -1264,10 +1265,20 @@ interface components {
|
|
|
1264
1265
|
exp_year?: number;
|
|
1265
1266
|
moto?: boolean;
|
|
1266
1267
|
};
|
|
1268
|
+
/** @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. */
|
|
1269
|
+
ApplePayCardProfileInput: {
|
|
1270
|
+
wallet_brand?: string;
|
|
1271
|
+
/** @description Display last4 from the Apple Pay payment method. */
|
|
1272
|
+
wallet_last4?: string;
|
|
1273
|
+
/** @description The unmodified JSON-encoded PKPaymentToken. */
|
|
1274
|
+
wallet_payload: string;
|
|
1275
|
+
wallet_provider?: components["schemas"]["WalletProviderType"];
|
|
1276
|
+
};
|
|
1267
1277
|
GooglePayCardProfileInput: {
|
|
1268
1278
|
wallet_brand?: string;
|
|
1269
1279
|
wallet_last4?: string;
|
|
1270
|
-
|
|
1280
|
+
/** @description The unmodified Google Pay payment token payload. */
|
|
1281
|
+
wallet_payload: string;
|
|
1271
1282
|
wallet_provider?: components["schemas"]["WalletProviderType"];
|
|
1272
1283
|
};
|
|
1273
1284
|
CardProfile: {
|
|
@@ -1552,6 +1563,31 @@ interface components {
|
|
|
1552
1563
|
PaymentLinkAmountType: "fixed" | "open";
|
|
1553
1564
|
/** @enum {string} */
|
|
1554
1565
|
PaymentMethodType: "card" | "bank_account" | "googlepay" | "applepay";
|
|
1566
|
+
/**
|
|
1567
|
+
* @description US state code (50 states; excludes DC and territories).
|
|
1568
|
+
* @enum {string}
|
|
1569
|
+
*/
|
|
1570
|
+
UsStateType: "AK" | "AL" | "AR" | "AZ" | "CA" | "CO" | "CT" | "DE" | "FL" | "GA" | "HI" | "IA" | "ID" | "IL" | "IN" | "KS" | "KY" | "LA" | "MA" | "MD" | "ME" | "MI" | "MN" | "MO" | "MS" | "MT" | "NC" | "ND" | "NE" | "NH" | "NJ" | "NM" | "NV" | "NY" | "OH" | "OK" | "OR" | "PA" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VA" | "VT" | "WA" | "WI" | "WV" | "WY";
|
|
1571
|
+
/** @description Restrict billing addresses to selected US states. */
|
|
1572
|
+
UsOnlyBillingAddressOptions: {
|
|
1573
|
+
/**
|
|
1574
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1575
|
+
* @enum {string}
|
|
1576
|
+
*/
|
|
1577
|
+
mode: "us_only";
|
|
1578
|
+
allowed_states: components["schemas"]["UsStateType"][];
|
|
1579
|
+
};
|
|
1580
|
+
/** @description Restrict billing addresses to selected countries. */
|
|
1581
|
+
InternationalBillingAddressOptions: {
|
|
1582
|
+
/**
|
|
1583
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1584
|
+
* @enum {string}
|
|
1585
|
+
*/
|
|
1586
|
+
mode: "international";
|
|
1587
|
+
allowed_countries: string[];
|
|
1588
|
+
};
|
|
1589
|
+
/** @description Billing address collection restrictions for a render template. */
|
|
1590
|
+
BillingAddressOptions: components["schemas"]["UsOnlyBillingAddressOptions"] | components["schemas"]["InternationalBillingAddressOptions"];
|
|
1555
1591
|
/** @description Payment method details used when confirming an embedded intent with a new payment method. */
|
|
1556
1592
|
EmbedConfirmPaymentMethodInput: components["schemas"]["EmbedConfirmCardPaymentMethodInput"] | components["schemas"]["EmbedConfirmBankAccountPaymentMethodInput"] | components["schemas"]["EmbedConfirmGooglePayPaymentMethodInput"] | components["schemas"]["EmbedConfirmApplePayPaymentMethodInput"];
|
|
1557
1593
|
EmbedConfirmCardPaymentMethodInput: {
|
|
@@ -1594,7 +1630,7 @@ interface components {
|
|
|
1594
1630
|
type: "applepay";
|
|
1595
1631
|
metadata?: components["schemas"]["Metadata"];
|
|
1596
1632
|
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
1597
|
-
card_profile_attributes: components["schemas"]["
|
|
1633
|
+
card_profile_attributes: components["schemas"]["ApplePayCardProfileInput"];
|
|
1598
1634
|
};
|
|
1599
1635
|
/** @description One-time Plaid Link credentials used to source and verify a bank account when ACH verification is required. */
|
|
1600
1636
|
PlaidCredentialsInput: {
|
|
@@ -1966,8 +2002,13 @@ interface components {
|
|
|
1966
2002
|
/** @description Short-lived Plaid Link token used to open Link in the embed client. */
|
|
1967
2003
|
link_token: string;
|
|
1968
2004
|
};
|
|
2005
|
+
/** @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. */
|
|
1969
2006
|
RecurringPayment: {
|
|
2007
|
+
/** @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. */
|
|
2008
|
+
initial?: boolean;
|
|
2009
|
+
/** @description Network transaction id from the initial recurring charge, used for subsequent merchant-initiated payments. */
|
|
1970
2010
|
network_transaction_id?: string;
|
|
2011
|
+
/** @description Processor transaction link id for subsequent recurring payments where supported. */
|
|
1971
2012
|
transaction_link_id?: string;
|
|
1972
2013
|
};
|
|
1973
2014
|
CreatePaymentLinkInput: {
|
|
@@ -2227,6 +2268,7 @@ interface components {
|
|
|
2227
2268
|
};
|
|
2228
2269
|
CreateRenderTemplateInput: {
|
|
2229
2270
|
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
|
|
2271
|
+
billing_address_options: components["schemas"]["BillingAddressOptions"];
|
|
2230
2272
|
currency?: string;
|
|
2231
2273
|
origin_ids?: string[];
|
|
2232
2274
|
};
|
|
@@ -2239,6 +2281,7 @@ interface components {
|
|
|
2239
2281
|
/** Format: uuid */
|
|
2240
2282
|
organization_id?: string;
|
|
2241
2283
|
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
2284
|
+
billing_address_options: components["schemas"]["BillingAddressOptions"];
|
|
2242
2285
|
currency?: string;
|
|
2243
2286
|
};
|
|
2244
2287
|
CreateSetupIntentInput: {
|
|
@@ -2472,13 +2515,32 @@ interface components {
|
|
|
2472
2515
|
/** Format: date-time */
|
|
2473
2516
|
updated_at?: string;
|
|
2474
2517
|
};
|
|
2518
|
+
/** @description Body POSTed to a webhook endpoint for an event delivery. */
|
|
2519
|
+
WebhookEventPayload: {
|
|
2520
|
+
/**
|
|
2521
|
+
* Format: uuid
|
|
2522
|
+
* @description Stable event id for this delivery. Identical across retries of the same event; use for idempotent handling.
|
|
2523
|
+
*/
|
|
2524
|
+
id: string;
|
|
2525
|
+
/**
|
|
2526
|
+
* Format: uuid
|
|
2527
|
+
* @description Id of the webhook endpoint that received this delivery.
|
|
2528
|
+
*/
|
|
2529
|
+
webhook_id: string;
|
|
2530
|
+
event: components["schemas"]["WebhookEventType"];
|
|
2531
|
+
/** @description Event-specific payload keyed by resource descriptor. */
|
|
2532
|
+
data: {
|
|
2533
|
+
[key: string]: unknown;
|
|
2534
|
+
};
|
|
2535
|
+
metadata?: components["schemas"]["Metadata"];
|
|
2536
|
+
};
|
|
2475
2537
|
WebhookRequest: {
|
|
2476
2538
|
id?: string;
|
|
2477
2539
|
/** Format: uuid */
|
|
2478
2540
|
webhook_endpoint_id?: string;
|
|
2479
2541
|
/** Format: date-time */
|
|
2480
2542
|
expires_at?: string;
|
|
2481
|
-
request_body?:
|
|
2543
|
+
request_body?: components["schemas"]["WebhookEventPayload"];
|
|
2482
2544
|
/** Format: date-time */
|
|
2483
2545
|
created_at?: string;
|
|
2484
2546
|
/** Format: date-time */
|
|
@@ -5160,6 +5222,9 @@ declare const legalEntityDocumentTypeValues: ReadonlyArray<FlattenedDeepRequired
|
|
|
5160
5222
|
declare const merchantBusinessCategoryTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["MerchantBusinessCategoryType"]>;
|
|
5161
5223
|
declare const paymentLinkAmountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentLinkAmountType"]>;
|
|
5162
5224
|
declare const paymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentMethodType"]>;
|
|
5225
|
+
declare const usStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["UsStateType"]>;
|
|
5226
|
+
declare const usOnlyBillingAddressOptionsModeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["UsOnlyBillingAddressOptions"]["mode"]>;
|
|
5227
|
+
declare const internationalBillingAddressOptionsModeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["InternationalBillingAddressOptions"]["mode"]>;
|
|
5163
5228
|
declare const embedConfirmCardPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["EmbedConfirmCardPaymentMethodInput"]["type"]>;
|
|
5164
5229
|
declare const embedConfirmBankAccountPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["EmbedConfirmBankAccountPaymentMethodInput"]["type"]>;
|
|
5165
5230
|
declare const embedConfirmGooglePayPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["EmbedConfirmGooglePayPaymentMethodInput"]["type"]>;
|
|
@@ -5229,4 +5294,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
5229
5294
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
5230
5295
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
5231
5296
|
|
|
5232
|
-
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 };
|
|
5297
|
+
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, internationalBillingAddressOptionsModeValues, 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, usOnlyBillingAddressOptionsModeValues, usStateTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
|
package/dist/index.js
CHANGED
|
@@ -52,6 +52,7 @@ __export(index_exports, {
|
|
|
52
52
|
embedConfirmCardPaymentMethodInputTypeValues: () => embedConfirmCardPaymentMethodInputTypeValues,
|
|
53
53
|
embedConfirmGooglePayPaymentMethodInputTypeValues: () => embedConfirmGooglePayPaymentMethodInputTypeValues,
|
|
54
54
|
externalAccountTypeValues: () => externalAccountTypeValues,
|
|
55
|
+
internationalBillingAddressOptionsModeValues: () => internationalBillingAddressOptionsModeValues,
|
|
55
56
|
legalEntityDocumentTypeValues: () => legalEntityDocumentTypeValues,
|
|
56
57
|
legalEntityEntityTypeValues: () => legalEntityEntityTypeValues,
|
|
57
58
|
legalEntityOwnershipTypeValues: () => legalEntityOwnershipTypeValues,
|
|
@@ -71,6 +72,8 @@ __export(index_exports, {
|
|
|
71
72
|
subscriptionPlanTypeValues: () => subscriptionPlanTypeValues,
|
|
72
73
|
subscriptionStateValues: () => subscriptionStateValues,
|
|
73
74
|
transactionSourceTypeValues: () => transactionSourceTypeValues,
|
|
75
|
+
usOnlyBillingAddressOptionsModeValues: () => usOnlyBillingAddressOptionsModeValues,
|
|
76
|
+
usStateTypeValues: () => usStateTypeValues,
|
|
74
77
|
walletProviderTypeValues: () => walletProviderTypeValues,
|
|
75
78
|
webhookEventTypeValues: () => webhookEventTypeValues
|
|
76
79
|
});
|
|
@@ -90,6 +93,9 @@ var legalEntityDocumentTypeValues = ["irs_cp_575"];
|
|
|
90
93
|
var merchantBusinessCategoryTypeValues = ["business_association", "charity", "church", "county", "federal", "fraternal_org", "government", "higher_education", "k12", "labor_union", "local", "ministry", "pac", "parachurch", "party", "preschool", "social_club", "social_welfare", "state", "tribal", "vendor", "veterans_org"];
|
|
91
94
|
var paymentLinkAmountTypeValues = ["fixed", "open"];
|
|
92
95
|
var paymentMethodTypeValues = ["card", "bank_account", "googlepay", "applepay"];
|
|
96
|
+
var usStateTypeValues = ["AK", "AL", "AR", "AZ", "CA", "CO", "CT", "DE", "FL", "GA", "HI", "IA", "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MI", "MN", "MO", "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VT", "WA", "WI", "WV", "WY"];
|
|
97
|
+
var usOnlyBillingAddressOptionsModeValues = ["us_only"];
|
|
98
|
+
var internationalBillingAddressOptionsModeValues = ["international"];
|
|
93
99
|
var embedConfirmCardPaymentMethodInputTypeValues = ["card"];
|
|
94
100
|
var embedConfirmBankAccountPaymentMethodInputTypeValues = ["bank_account"];
|
|
95
101
|
var embedConfirmGooglePayPaymentMethodInputTypeValues = ["googlepay"];
|
|
@@ -149,6 +155,7 @@ function createPayApiClient(options) {
|
|
|
149
155
|
embedConfirmCardPaymentMethodInputTypeValues,
|
|
150
156
|
embedConfirmGooglePayPaymentMethodInputTypeValues,
|
|
151
157
|
externalAccountTypeValues,
|
|
158
|
+
internationalBillingAddressOptionsModeValues,
|
|
152
159
|
legalEntityDocumentTypeValues,
|
|
153
160
|
legalEntityEntityTypeValues,
|
|
154
161
|
legalEntityOwnershipTypeValues,
|
|
@@ -168,6 +175,8 @@ function createPayApiClient(options) {
|
|
|
168
175
|
subscriptionPlanTypeValues,
|
|
169
176
|
subscriptionStateValues,
|
|
170
177
|
transactionSourceTypeValues,
|
|
178
|
+
usOnlyBillingAddressOptionsModeValues,
|
|
179
|
+
usStateTypeValues,
|
|
171
180
|
walletProviderTypeValues,
|
|
172
181
|
webhookEventTypeValues
|
|
173
182
|
});
|