@amos.com/node 0.1.43 → 0.1.45
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 +46 -22
- package/dist/index.d.ts +46 -22
- package/dist/index.js +0 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -4
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +45 -21
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1275,6 +1275,28 @@ interface components {
|
|
|
1275
1275
|
/** Format: date-time */
|
|
1276
1276
|
updated_at?: string;
|
|
1277
1277
|
};
|
|
1278
|
+
MailingAddressInput: {
|
|
1279
|
+
address_line1?: string;
|
|
1280
|
+
address_line2?: string | null;
|
|
1281
|
+
city?: string;
|
|
1282
|
+
country?: string;
|
|
1283
|
+
name?: string;
|
|
1284
|
+
postal_code?: string;
|
|
1285
|
+
state?: string;
|
|
1286
|
+
};
|
|
1287
|
+
MailingAddress: {
|
|
1288
|
+
address_line1?: string;
|
|
1289
|
+
address_line2?: string | null;
|
|
1290
|
+
city?: string;
|
|
1291
|
+
country?: string;
|
|
1292
|
+
name?: string;
|
|
1293
|
+
postal_code?: string;
|
|
1294
|
+
state?: string;
|
|
1295
|
+
/** Format: date-time */
|
|
1296
|
+
created_at?: string;
|
|
1297
|
+
/** Format: date-time */
|
|
1298
|
+
updated_at?: string;
|
|
1299
|
+
};
|
|
1278
1300
|
CardProfileInput: {
|
|
1279
1301
|
card_holder_name?: string;
|
|
1280
1302
|
cvc?: string;
|
|
@@ -1379,6 +1401,7 @@ interface components {
|
|
|
1379
1401
|
name?: string;
|
|
1380
1402
|
email?: string;
|
|
1381
1403
|
phone?: string;
|
|
1404
|
+
mailing_address_attributes?: components["schemas"]["MailingAddressInput"];
|
|
1382
1405
|
metadata?: components["schemas"]["Metadata"];
|
|
1383
1406
|
};
|
|
1384
1407
|
CreateCustomerRequest: {
|
|
@@ -1390,6 +1413,7 @@ interface components {
|
|
|
1390
1413
|
/** Format: uuid */
|
|
1391
1414
|
payment_method_id?: string;
|
|
1392
1415
|
phone?: string;
|
|
1416
|
+
mailing_address_attributes?: components["schemas"]["MailingAddressInput"];
|
|
1393
1417
|
metadata?: components["schemas"]["Metadata"];
|
|
1394
1418
|
};
|
|
1395
1419
|
UpdateCustomerRequest: {
|
|
@@ -1409,6 +1433,7 @@ interface components {
|
|
|
1409
1433
|
payment_method_id?: string;
|
|
1410
1434
|
phone?: string;
|
|
1411
1435
|
type?: string;
|
|
1436
|
+
mailing_address?: components["schemas"]["MailingAddress"];
|
|
1412
1437
|
/** Format: date-time */
|
|
1413
1438
|
created_at?: string;
|
|
1414
1439
|
/** Format: date-time */
|
|
@@ -1900,6 +1925,8 @@ interface components {
|
|
|
1900
1925
|
Merchant: {
|
|
1901
1926
|
/** Format: uuid */
|
|
1902
1927
|
id?: string;
|
|
1928
|
+
/** @description ACH verification threshold in cents. Amounts at or above this require Plaid verification. */
|
|
1929
|
+
ach_threshold?: number;
|
|
1903
1930
|
active?: boolean;
|
|
1904
1931
|
/** Format: uuid */
|
|
1905
1932
|
organization_id?: string;
|
|
@@ -1930,6 +1957,7 @@ interface components {
|
|
|
1930
1957
|
primary_contact_phone?: string;
|
|
1931
1958
|
purchase_currency?: string;
|
|
1932
1959
|
settlement_currency?: string;
|
|
1960
|
+
state_province?: string;
|
|
1933
1961
|
street_address1?: string;
|
|
1934
1962
|
street_address2?: string;
|
|
1935
1963
|
sub_merchant_id?: string;
|
|
@@ -2028,21 +2056,11 @@ interface components {
|
|
|
2028
2056
|
/** @enum {string} */
|
|
2029
2057
|
state?: "requires_payment_method" | "requires_confirmation" | "requires_capture" | "processing_authorization" | "processing_capture" | "processing_sale" | "requires_review" | "succeeded" | "cancelled" | "errored_authorization" | "errored_capture" | "errored_sale";
|
|
2030
2058
|
statement_descriptor?: string;
|
|
2031
|
-
/** @description True when the intent amount meets or exceeds the configured ACH verification threshold. */
|
|
2032
|
-
requires_ach_verification?: boolean;
|
|
2033
|
-
ach_verification?: components["schemas"]["AchVerification"];
|
|
2034
2059
|
/** Format: date-time */
|
|
2035
2060
|
created_at?: string;
|
|
2036
2061
|
/** Format: date-time */
|
|
2037
2062
|
updated_at?: string;
|
|
2038
2063
|
};
|
|
2039
|
-
/** @description Instructions for the embed client to complete ACH verification via Plaid Link. */
|
|
2040
|
-
AchVerification: {
|
|
2041
|
-
/** @enum {string} */
|
|
2042
|
-
type: "plaid_auth";
|
|
2043
|
-
/** @description Short-lived Plaid Link token used to open Link in the embed client. */
|
|
2044
|
-
link_token: string;
|
|
2045
|
-
};
|
|
2046
2064
|
/** @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. */
|
|
2047
2065
|
RecurringPayment: {
|
|
2048
2066
|
/** @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. */
|
|
@@ -2593,7 +2611,7 @@ interface components {
|
|
|
2593
2611
|
XIdempotencyHeader: string;
|
|
2594
2612
|
/** @description The ID of the customer to filter by */
|
|
2595
2613
|
CustomerIdQuery: string;
|
|
2596
|
-
/** @description
|
|
2614
|
+
/** @description Exact email match (case-insensitive). For substring search, use `q`. */
|
|
2597
2615
|
EmailQuery: string;
|
|
2598
2616
|
/** @description The external account ID to filter by */
|
|
2599
2617
|
ExternalAccountIdQuery: string;
|
|
@@ -2615,8 +2633,14 @@ interface components {
|
|
|
2615
2633
|
PayoutStateQuery: components["schemas"]["PayoutStateType"];
|
|
2616
2634
|
/** @description Number of results per page. */
|
|
2617
2635
|
PerPageQuery: number;
|
|
2618
|
-
/** @description
|
|
2636
|
+
/** @description Exact phone match (normalized to E.164 when possible). For substring search, use `q`. */
|
|
2619
2637
|
PhoneQuery: string;
|
|
2638
|
+
/** @description Exact name match (case-insensitive). For substring search, use `q`. */
|
|
2639
|
+
NameQuery: string;
|
|
2640
|
+
/** @description Exact customer type match (e.g. RegisteredCustomer, GuestCustomer). */
|
|
2641
|
+
CustomerTypeQuery: string;
|
|
2642
|
+
/** @description Substring search across name, email, and phone (case-insensitive). */
|
|
2643
|
+
QQuery: string;
|
|
2620
2644
|
/** @description The ID of the webhook request to filter by */
|
|
2621
2645
|
WebhookRequestIdQuery: string;
|
|
2622
2646
|
};
|
|
@@ -2788,11 +2812,16 @@ interface operations {
|
|
|
2788
2812
|
page?: components["parameters"]["PageQuery"];
|
|
2789
2813
|
/** @description Number of results per page. */
|
|
2790
2814
|
per_page?: components["parameters"]["PerPageQuery"];
|
|
2791
|
-
/** @description
|
|
2815
|
+
/** @description Exact email match (case-insensitive). For substring search, use `q`. */
|
|
2792
2816
|
email?: components["parameters"]["EmailQuery"];
|
|
2793
|
-
/** @description
|
|
2817
|
+
/** @description Exact phone match (normalized to E.164 when possible). For substring search, use `q`. */
|
|
2794
2818
|
phone?: components["parameters"]["PhoneQuery"];
|
|
2795
|
-
|
|
2819
|
+
/** @description Exact name match (case-insensitive). For substring search, use `q`. */
|
|
2820
|
+
name?: components["parameters"]["NameQuery"];
|
|
2821
|
+
/** @description Exact customer type match (e.g. RegisteredCustomer, GuestCustomer). */
|
|
2822
|
+
type?: components["parameters"]["CustomerTypeQuery"];
|
|
2823
|
+
/** @description Substring search across name, email, and phone (case-insensitive). */
|
|
2824
|
+
q?: components["parameters"]["QQuery"];
|
|
2796
2825
|
};
|
|
2797
2826
|
header?: never;
|
|
2798
2827
|
path?: never;
|
|
@@ -3644,10 +3673,7 @@ interface operations {
|
|
|
3644
3673
|
};
|
|
3645
3674
|
GetEmbedPaymentIntent: {
|
|
3646
3675
|
parameters: {
|
|
3647
|
-
query?:
|
|
3648
|
-
/** @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. */
|
|
3649
|
-
payment_method_type?: "bank_account";
|
|
3650
|
-
};
|
|
3676
|
+
query?: never;
|
|
3651
3677
|
header?: never;
|
|
3652
3678
|
path: {
|
|
3653
3679
|
/** @description The ID of the payment intent to retrieve */
|
|
@@ -5304,7 +5330,6 @@ type ReadonlyArray<T> = [
|
|
|
5304
5330
|
] extends [
|
|
5305
5331
|
unknown[]
|
|
5306
5332
|
] ? Readonly<Exclude<T, undefined>> : Readonly<Exclude<T, undefined>[]>;
|
|
5307
|
-
declare const pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues: ReadonlyArray<FlattenedDeepRequired<paths>["/embed/payment_intents/{id}"]["get"]["parameters"]["query"]["payment_method_type"]>;
|
|
5308
5333
|
declare const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["BankAccountProfile"]["failure_reason"]>;
|
|
5309
5334
|
declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["CardProfile"]["failure_reason"]>;
|
|
5310
5335
|
declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
|
|
@@ -5342,7 +5367,6 @@ declare const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<comp
|
|
|
5342
5367
|
declare const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WebhookEventType"]>;
|
|
5343
5368
|
declare const organizationKindValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Organization"]["kind"]>;
|
|
5344
5369
|
declare const paymentIntentStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntent"]["state"]>;
|
|
5345
|
-
declare const achVerificationTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AchVerification"]["type"]>;
|
|
5346
5370
|
declare const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]>;
|
|
5347
5371
|
declare const processorTransactionTransaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["transaction_type"]>;
|
|
5348
5372
|
declare const refundAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Refund"]["allowed_reverse_action"]>;
|
|
@@ -5388,4 +5412,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
5388
5412
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
5389
5413
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
5390
5414
|
|
|
5391
|
-
export { type $defs, AMOS_API_BASE_URL_PRODUCTION, AMOS_API_BASE_URL_SANDBOX, AMOS_API_VERSION, type PayApiClient,
|
|
5415
|
+
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, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, organizationKindValues, 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
|
@@ -1275,6 +1275,28 @@ interface components {
|
|
|
1275
1275
|
/** Format: date-time */
|
|
1276
1276
|
updated_at?: string;
|
|
1277
1277
|
};
|
|
1278
|
+
MailingAddressInput: {
|
|
1279
|
+
address_line1?: string;
|
|
1280
|
+
address_line2?: string | null;
|
|
1281
|
+
city?: string;
|
|
1282
|
+
country?: string;
|
|
1283
|
+
name?: string;
|
|
1284
|
+
postal_code?: string;
|
|
1285
|
+
state?: string;
|
|
1286
|
+
};
|
|
1287
|
+
MailingAddress: {
|
|
1288
|
+
address_line1?: string;
|
|
1289
|
+
address_line2?: string | null;
|
|
1290
|
+
city?: string;
|
|
1291
|
+
country?: string;
|
|
1292
|
+
name?: string;
|
|
1293
|
+
postal_code?: string;
|
|
1294
|
+
state?: string;
|
|
1295
|
+
/** Format: date-time */
|
|
1296
|
+
created_at?: string;
|
|
1297
|
+
/** Format: date-time */
|
|
1298
|
+
updated_at?: string;
|
|
1299
|
+
};
|
|
1278
1300
|
CardProfileInput: {
|
|
1279
1301
|
card_holder_name?: string;
|
|
1280
1302
|
cvc?: string;
|
|
@@ -1379,6 +1401,7 @@ interface components {
|
|
|
1379
1401
|
name?: string;
|
|
1380
1402
|
email?: string;
|
|
1381
1403
|
phone?: string;
|
|
1404
|
+
mailing_address_attributes?: components["schemas"]["MailingAddressInput"];
|
|
1382
1405
|
metadata?: components["schemas"]["Metadata"];
|
|
1383
1406
|
};
|
|
1384
1407
|
CreateCustomerRequest: {
|
|
@@ -1390,6 +1413,7 @@ interface components {
|
|
|
1390
1413
|
/** Format: uuid */
|
|
1391
1414
|
payment_method_id?: string;
|
|
1392
1415
|
phone?: string;
|
|
1416
|
+
mailing_address_attributes?: components["schemas"]["MailingAddressInput"];
|
|
1393
1417
|
metadata?: components["schemas"]["Metadata"];
|
|
1394
1418
|
};
|
|
1395
1419
|
UpdateCustomerRequest: {
|
|
@@ -1409,6 +1433,7 @@ interface components {
|
|
|
1409
1433
|
payment_method_id?: string;
|
|
1410
1434
|
phone?: string;
|
|
1411
1435
|
type?: string;
|
|
1436
|
+
mailing_address?: components["schemas"]["MailingAddress"];
|
|
1412
1437
|
/** Format: date-time */
|
|
1413
1438
|
created_at?: string;
|
|
1414
1439
|
/** Format: date-time */
|
|
@@ -1900,6 +1925,8 @@ interface components {
|
|
|
1900
1925
|
Merchant: {
|
|
1901
1926
|
/** Format: uuid */
|
|
1902
1927
|
id?: string;
|
|
1928
|
+
/** @description ACH verification threshold in cents. Amounts at or above this require Plaid verification. */
|
|
1929
|
+
ach_threshold?: number;
|
|
1903
1930
|
active?: boolean;
|
|
1904
1931
|
/** Format: uuid */
|
|
1905
1932
|
organization_id?: string;
|
|
@@ -1930,6 +1957,7 @@ interface components {
|
|
|
1930
1957
|
primary_contact_phone?: string;
|
|
1931
1958
|
purchase_currency?: string;
|
|
1932
1959
|
settlement_currency?: string;
|
|
1960
|
+
state_province?: string;
|
|
1933
1961
|
street_address1?: string;
|
|
1934
1962
|
street_address2?: string;
|
|
1935
1963
|
sub_merchant_id?: string;
|
|
@@ -2028,21 +2056,11 @@ interface components {
|
|
|
2028
2056
|
/** @enum {string} */
|
|
2029
2057
|
state?: "requires_payment_method" | "requires_confirmation" | "requires_capture" | "processing_authorization" | "processing_capture" | "processing_sale" | "requires_review" | "succeeded" | "cancelled" | "errored_authorization" | "errored_capture" | "errored_sale";
|
|
2030
2058
|
statement_descriptor?: string;
|
|
2031
|
-
/** @description True when the intent amount meets or exceeds the configured ACH verification threshold. */
|
|
2032
|
-
requires_ach_verification?: boolean;
|
|
2033
|
-
ach_verification?: components["schemas"]["AchVerification"];
|
|
2034
2059
|
/** Format: date-time */
|
|
2035
2060
|
created_at?: string;
|
|
2036
2061
|
/** Format: date-time */
|
|
2037
2062
|
updated_at?: string;
|
|
2038
2063
|
};
|
|
2039
|
-
/** @description Instructions for the embed client to complete ACH verification via Plaid Link. */
|
|
2040
|
-
AchVerification: {
|
|
2041
|
-
/** @enum {string} */
|
|
2042
|
-
type: "plaid_auth";
|
|
2043
|
-
/** @description Short-lived Plaid Link token used to open Link in the embed client. */
|
|
2044
|
-
link_token: string;
|
|
2045
|
-
};
|
|
2046
2064
|
/** @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. */
|
|
2047
2065
|
RecurringPayment: {
|
|
2048
2066
|
/** @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. */
|
|
@@ -2593,7 +2611,7 @@ interface components {
|
|
|
2593
2611
|
XIdempotencyHeader: string;
|
|
2594
2612
|
/** @description The ID of the customer to filter by */
|
|
2595
2613
|
CustomerIdQuery: string;
|
|
2596
|
-
/** @description
|
|
2614
|
+
/** @description Exact email match (case-insensitive). For substring search, use `q`. */
|
|
2597
2615
|
EmailQuery: string;
|
|
2598
2616
|
/** @description The external account ID to filter by */
|
|
2599
2617
|
ExternalAccountIdQuery: string;
|
|
@@ -2615,8 +2633,14 @@ interface components {
|
|
|
2615
2633
|
PayoutStateQuery: components["schemas"]["PayoutStateType"];
|
|
2616
2634
|
/** @description Number of results per page. */
|
|
2617
2635
|
PerPageQuery: number;
|
|
2618
|
-
/** @description
|
|
2636
|
+
/** @description Exact phone match (normalized to E.164 when possible). For substring search, use `q`. */
|
|
2619
2637
|
PhoneQuery: string;
|
|
2638
|
+
/** @description Exact name match (case-insensitive). For substring search, use `q`. */
|
|
2639
|
+
NameQuery: string;
|
|
2640
|
+
/** @description Exact customer type match (e.g. RegisteredCustomer, GuestCustomer). */
|
|
2641
|
+
CustomerTypeQuery: string;
|
|
2642
|
+
/** @description Substring search across name, email, and phone (case-insensitive). */
|
|
2643
|
+
QQuery: string;
|
|
2620
2644
|
/** @description The ID of the webhook request to filter by */
|
|
2621
2645
|
WebhookRequestIdQuery: string;
|
|
2622
2646
|
};
|
|
@@ -2788,11 +2812,16 @@ interface operations {
|
|
|
2788
2812
|
page?: components["parameters"]["PageQuery"];
|
|
2789
2813
|
/** @description Number of results per page. */
|
|
2790
2814
|
per_page?: components["parameters"]["PerPageQuery"];
|
|
2791
|
-
/** @description
|
|
2815
|
+
/** @description Exact email match (case-insensitive). For substring search, use `q`. */
|
|
2792
2816
|
email?: components["parameters"]["EmailQuery"];
|
|
2793
|
-
/** @description
|
|
2817
|
+
/** @description Exact phone match (normalized to E.164 when possible). For substring search, use `q`. */
|
|
2794
2818
|
phone?: components["parameters"]["PhoneQuery"];
|
|
2795
|
-
|
|
2819
|
+
/** @description Exact name match (case-insensitive). For substring search, use `q`. */
|
|
2820
|
+
name?: components["parameters"]["NameQuery"];
|
|
2821
|
+
/** @description Exact customer type match (e.g. RegisteredCustomer, GuestCustomer). */
|
|
2822
|
+
type?: components["parameters"]["CustomerTypeQuery"];
|
|
2823
|
+
/** @description Substring search across name, email, and phone (case-insensitive). */
|
|
2824
|
+
q?: components["parameters"]["QQuery"];
|
|
2796
2825
|
};
|
|
2797
2826
|
header?: never;
|
|
2798
2827
|
path?: never;
|
|
@@ -3644,10 +3673,7 @@ interface operations {
|
|
|
3644
3673
|
};
|
|
3645
3674
|
GetEmbedPaymentIntent: {
|
|
3646
3675
|
parameters: {
|
|
3647
|
-
query?:
|
|
3648
|
-
/** @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. */
|
|
3649
|
-
payment_method_type?: "bank_account";
|
|
3650
|
-
};
|
|
3676
|
+
query?: never;
|
|
3651
3677
|
header?: never;
|
|
3652
3678
|
path: {
|
|
3653
3679
|
/** @description The ID of the payment intent to retrieve */
|
|
@@ -5304,7 +5330,6 @@ type ReadonlyArray<T> = [
|
|
|
5304
5330
|
] extends [
|
|
5305
5331
|
unknown[]
|
|
5306
5332
|
] ? Readonly<Exclude<T, undefined>> : Readonly<Exclude<T, undefined>[]>;
|
|
5307
|
-
declare const pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues: ReadonlyArray<FlattenedDeepRequired<paths>["/embed/payment_intents/{id}"]["get"]["parameters"]["query"]["payment_method_type"]>;
|
|
5308
5333
|
declare const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["BankAccountProfile"]["failure_reason"]>;
|
|
5309
5334
|
declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["CardProfile"]["failure_reason"]>;
|
|
5310
5335
|
declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
|
|
@@ -5342,7 +5367,6 @@ declare const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<comp
|
|
|
5342
5367
|
declare const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WebhookEventType"]>;
|
|
5343
5368
|
declare const organizationKindValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Organization"]["kind"]>;
|
|
5344
5369
|
declare const paymentIntentStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntent"]["state"]>;
|
|
5345
|
-
declare const achVerificationTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AchVerification"]["type"]>;
|
|
5346
5370
|
declare const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]>;
|
|
5347
5371
|
declare const processorTransactionTransaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["transaction_type"]>;
|
|
5348
5372
|
declare const refundAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Refund"]["allowed_reverse_action"]>;
|
|
@@ -5388,4 +5412,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
5388
5412
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
5389
5413
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
5390
5414
|
|
|
5391
|
-
export { type $defs, AMOS_API_BASE_URL_PRODUCTION, AMOS_API_BASE_URL_SANDBOX, AMOS_API_VERSION, type PayApiClient,
|
|
5415
|
+
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, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, organizationKindValues, 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
|
@@ -33,7 +33,6 @@ __export(index_exports, {
|
|
|
33
33
|
AMOS_API_BASE_URL_PRODUCTION: () => AMOS_API_BASE_URL_PRODUCTION,
|
|
34
34
|
AMOS_API_BASE_URL_SANDBOX: () => AMOS_API_BASE_URL_SANDBOX,
|
|
35
35
|
AMOS_API_VERSION: () => AMOS_API_VERSION,
|
|
36
|
-
achVerificationTypeValues: () => achVerificationTypeValues,
|
|
37
36
|
allowedApplePayPaymentMethodInputTypeValues: () => allowedApplePayPaymentMethodInputTypeValues,
|
|
38
37
|
allowedApplePayPaymentMethodTypeValues: () => allowedApplePayPaymentMethodTypeValues,
|
|
39
38
|
allowedBankAccountPaymentMethodInputTypeValues: () => allowedBankAccountPaymentMethodInputTypeValues,
|
|
@@ -58,7 +57,6 @@ __export(index_exports, {
|
|
|
58
57
|
legalEntityOwnershipTypeValues: () => legalEntityOwnershipTypeValues,
|
|
59
58
|
merchantBusinessCategoryTypeValues: () => merchantBusinessCategoryTypeValues,
|
|
60
59
|
organizationKindValues: () => organizationKindValues,
|
|
61
|
-
pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues: () => pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues,
|
|
62
60
|
paymentIntentCaptureMethodTypeValues: () => paymentIntentCaptureMethodTypeValues,
|
|
63
61
|
paymentIntentStateValues: () => paymentIntentStateValues,
|
|
64
62
|
paymentLinkAmountTypeValues: () => paymentLinkAmountTypeValues,
|
|
@@ -83,7 +81,6 @@ module.exports = __toCommonJS(index_exports);
|
|
|
83
81
|
var import_openapi_fetch = __toESM(require("openapi-fetch"));
|
|
84
82
|
|
|
85
83
|
// openapi/schema.ts
|
|
86
|
-
var pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues = ["bank_account"];
|
|
87
84
|
var bankAccountProfileFailure_reasonValues = ["activation_failed", "processing_error", "vault_failed", "insufficient_funds", "verification_failed"];
|
|
88
85
|
var cardProfileFailure_reasonValues = ["authorization_failed", "avs_blocked", "brand_not_allowed", "brand_not_found", "cvc_blocked", "processing_error", "vault_failed"];
|
|
89
86
|
var chargeAllowed_reverse_actionValues = ["void", "refund"];
|
|
@@ -121,7 +118,6 @@ var walletProviderTypeValues = ["googlepay", "applepay"];
|
|
|
121
118
|
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", "setup_intent.cancelled", "setup_intent.created", "setup_intent.errored", "setup_intent.failed", "setup_intent.requires_confirmation", "setup_intent.requires_payment_method", "setup_intent.requires_review", "setup_intent.succeeded", "setup_intent.verifying", "void.created", "void.failed", "void.pending", "void.processing", "void.requires_review", "void.succeeded"];
|
|
122
119
|
var organizationKindValues = ["direct", "payfac"];
|
|
123
120
|
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"];
|
|
124
|
-
var achVerificationTypeValues = ["plaid_auth"];
|
|
125
121
|
var processorTransactionPayment_transaction_typeValues = ["charge", "refund", "void"];
|
|
126
122
|
var processorTransactionTransaction_typeValues = ["authorization", "authorization_reversal", "capture", "credit", "echeck_credit", "echeck_sale", "echeck_void", "sale", "void"];
|
|
127
123
|
var refundAllowed_reverse_actionValues = ["void"];
|
|
@@ -140,7 +136,6 @@ function createPayApiClient(options) {
|
|
|
140
136
|
AMOS_API_BASE_URL_PRODUCTION,
|
|
141
137
|
AMOS_API_BASE_URL_SANDBOX,
|
|
142
138
|
AMOS_API_VERSION,
|
|
143
|
-
achVerificationTypeValues,
|
|
144
139
|
allowedApplePayPaymentMethodInputTypeValues,
|
|
145
140
|
allowedApplePayPaymentMethodTypeValues,
|
|
146
141
|
allowedBankAccountPaymentMethodInputTypeValues,
|
|
@@ -165,7 +160,6 @@ function createPayApiClient(options) {
|
|
|
165
160
|
legalEntityOwnershipTypeValues,
|
|
166
161
|
merchantBusinessCategoryTypeValues,
|
|
167
162
|
organizationKindValues,
|
|
168
|
-
pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues,
|
|
169
163
|
paymentIntentCaptureMethodTypeValues,
|
|
170
164
|
paymentIntentStateValues,
|
|
171
165
|
paymentLinkAmountTypeValues,
|