@amos.com/node 0.1.23 → 0.1.24
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 +71 -5
- package/dist/index.d.ts +71 -5
- 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 +71 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1318,6 +1318,7 @@ interface components {
|
|
|
1318
1318
|
merchant_id?: string;
|
|
1319
1319
|
/** Format: uuid */
|
|
1320
1320
|
processor_id?: string;
|
|
1321
|
+
worldpay_mid?: string;
|
|
1321
1322
|
/** Format: date-time */
|
|
1322
1323
|
created_at?: string;
|
|
1323
1324
|
/** Format: date-time */
|
|
@@ -1483,6 +1484,10 @@ interface components {
|
|
|
1483
1484
|
document_type?: components["schemas"]["LegalEntityDocumentType"];
|
|
1484
1485
|
/** Format: uuid */
|
|
1485
1486
|
file_upload_id?: string;
|
|
1487
|
+
file_name?: string;
|
|
1488
|
+
byte_size?: number;
|
|
1489
|
+
/** Format: date-time */
|
|
1490
|
+
created_at?: string;
|
|
1486
1491
|
};
|
|
1487
1492
|
CreateLegalEntityApplicationPrincipalInput: {
|
|
1488
1493
|
/** Format: uuid */
|
|
@@ -1555,7 +1560,7 @@ interface components {
|
|
|
1555
1560
|
/** @enum {string} */
|
|
1556
1561
|
PaymentLinkAmountType: "fixed" | "open";
|
|
1557
1562
|
/** @enum {string} */
|
|
1558
|
-
PaymentMethodType: "card" | "bank_account" | "googlepay";
|
|
1563
|
+
PaymentMethodType: "card" | "bank_account" | "googlepay" | "applepay";
|
|
1559
1564
|
/** @description Payment method details used when confirming an embedded intent with a new payment method. */
|
|
1560
1565
|
EmbedConfirmPaymentMethodInput: components["schemas"]["EmbedConfirmCardPaymentMethodInput"] | components["schemas"]["EmbedConfirmBankAccountPaymentMethodInput"] | components["schemas"]["EmbedConfirmGooglePayPaymentMethodInput"] | components["schemas"]["EmbedConfirmApplePayPaymentMethodInput"];
|
|
1561
1566
|
EmbedConfirmCardPaymentMethodInput: {
|
|
@@ -1605,6 +1610,8 @@ interface components {
|
|
|
1605
1610
|
AllowedBankAccountPaymentMethodOptions: Record<string, never>;
|
|
1606
1611
|
/** @description No configurable options for Google Pay payment methods. */
|
|
1607
1612
|
AllowedGooglePayPaymentMethodOptions: Record<string, never>;
|
|
1613
|
+
/** @description No configurable options for Apple Pay payment methods. */
|
|
1614
|
+
AllowedApplePayPaymentMethodOptions: Record<string, never>;
|
|
1608
1615
|
AllowedCardPaymentMethodInput: {
|
|
1609
1616
|
/**
|
|
1610
1617
|
* @description discriminator enum property added by openapi-typescript
|
|
@@ -1629,8 +1636,16 @@ interface components {
|
|
|
1629
1636
|
type: "googlepay";
|
|
1630
1637
|
options?: components["schemas"]["AllowedGooglePayPaymentMethodOptions"];
|
|
1631
1638
|
};
|
|
1639
|
+
AllowedApplePayPaymentMethodInput: {
|
|
1640
|
+
/**
|
|
1641
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1642
|
+
* @enum {string}
|
|
1643
|
+
*/
|
|
1644
|
+
type: "applepay";
|
|
1645
|
+
options?: components["schemas"]["AllowedApplePayPaymentMethodOptions"];
|
|
1646
|
+
};
|
|
1632
1647
|
/** @description Payment method allowed on a render template, payment link, or merchant application. */
|
|
1633
|
-
AllowedPaymentMethodInput: components["schemas"]["AllowedCardPaymentMethodInput"] | components["schemas"]["AllowedBankAccountPaymentMethodInput"] | components["schemas"]["AllowedGooglePayPaymentMethodInput"];
|
|
1648
|
+
AllowedPaymentMethodInput: components["schemas"]["AllowedCardPaymentMethodInput"] | components["schemas"]["AllowedBankAccountPaymentMethodInput"] | components["schemas"]["AllowedGooglePayPaymentMethodInput"] | components["schemas"]["AllowedApplePayPaymentMethodInput"];
|
|
1634
1649
|
AllowedCardPaymentMethod: {
|
|
1635
1650
|
/**
|
|
1636
1651
|
* @description discriminator enum property added by openapi-typescript
|
|
@@ -1655,8 +1670,16 @@ interface components {
|
|
|
1655
1670
|
type: "googlepay";
|
|
1656
1671
|
options: components["schemas"]["AllowedGooglePayPaymentMethodOptions"];
|
|
1657
1672
|
};
|
|
1673
|
+
AllowedApplePayPaymentMethod: {
|
|
1674
|
+
/**
|
|
1675
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1676
|
+
* @enum {string}
|
|
1677
|
+
*/
|
|
1678
|
+
type: "applepay";
|
|
1679
|
+
options: components["schemas"]["AllowedApplePayPaymentMethodOptions"];
|
|
1680
|
+
};
|
|
1658
1681
|
/** @description Allowed payment method returned in API responses and render token JWT payloads. */
|
|
1659
|
-
AllowedPaymentMethod: components["schemas"]["AllowedCardPaymentMethod"] | components["schemas"]["AllowedBankAccountPaymentMethod"] | components["schemas"]["AllowedGooglePayPaymentMethod"];
|
|
1682
|
+
AllowedPaymentMethod: components["schemas"]["AllowedCardPaymentMethod"] | components["schemas"]["AllowedBankAccountPaymentMethod"] | components["schemas"]["AllowedGooglePayPaymentMethod"] | components["schemas"]["AllowedApplePayPaymentMethod"];
|
|
1660
1683
|
/** @enum {string} */
|
|
1661
1684
|
PayoutDirectionType: "credit" | "debit";
|
|
1662
1685
|
/** @enum {string} */
|
|
@@ -1705,7 +1728,11 @@ interface components {
|
|
|
1705
1728
|
LegalEntity: {
|
|
1706
1729
|
/** Format: uuid */
|
|
1707
1730
|
id?: string;
|
|
1731
|
+
/** Format: uuid */
|
|
1732
|
+
organization_id?: string;
|
|
1708
1733
|
legal_name?: string;
|
|
1734
|
+
/** Format: uuid */
|
|
1735
|
+
parent_legal_entity_id?: string | null;
|
|
1709
1736
|
entity_type?: components["schemas"]["LegalEntityEntityType"];
|
|
1710
1737
|
ownership_type?: components["schemas"]["LegalEntityOwnershipType"];
|
|
1711
1738
|
contact_email?: string;
|
|
@@ -1717,6 +1744,8 @@ interface components {
|
|
|
1717
1744
|
business_postal_code?: string;
|
|
1718
1745
|
business_country?: string;
|
|
1719
1746
|
tax_id_last4?: string;
|
|
1747
|
+
/** Format: date-time */
|
|
1748
|
+
created_at?: string;
|
|
1720
1749
|
};
|
|
1721
1750
|
LegalEntityApplication: {
|
|
1722
1751
|
/** Format: uuid */
|
|
@@ -1736,6 +1765,17 @@ interface components {
|
|
|
1736
1765
|
business_country?: string;
|
|
1737
1766
|
state?: string;
|
|
1738
1767
|
tax_id_last4?: string;
|
|
1768
|
+
/** Format: date-time */
|
|
1769
|
+
approved_at?: string | null;
|
|
1770
|
+
/** Format: date-time */
|
|
1771
|
+
denied_at?: string | null;
|
|
1772
|
+
/** Format: date-time */
|
|
1773
|
+
needs_information_at?: string | null;
|
|
1774
|
+
decision_reason?: string | null;
|
|
1775
|
+
/** Format: date-time */
|
|
1776
|
+
created_at?: string;
|
|
1777
|
+
/** Format: date-time */
|
|
1778
|
+
updated_at?: string;
|
|
1739
1779
|
requirements?: components["schemas"]["LegalEntityApplicationRequirement"][];
|
|
1740
1780
|
};
|
|
1741
1781
|
CreateMerchantApplicationInput: {
|
|
@@ -1802,16 +1842,40 @@ interface components {
|
|
|
1802
1842
|
Merchant: {
|
|
1803
1843
|
/** Format: uuid */
|
|
1804
1844
|
id?: string;
|
|
1845
|
+
active?: boolean;
|
|
1805
1846
|
/** Format: uuid */
|
|
1806
1847
|
organization_id?: string;
|
|
1807
1848
|
/** Format: uuid */
|
|
1808
1849
|
legal_entity_id?: string;
|
|
1809
1850
|
annual_credit_card_sales_volume?: number;
|
|
1810
1851
|
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
1852
|
+
business_category?: components["schemas"]["MerchantBusinessCategoryType"];
|
|
1853
|
+
business_description?: string;
|
|
1854
|
+
city?: string;
|
|
1855
|
+
country_code?: string;
|
|
1856
|
+
customer_service_number?: string;
|
|
1811
1857
|
has_accepted_credit_cards?: boolean;
|
|
1812
1858
|
dba_name?: string;
|
|
1813
|
-
|
|
1859
|
+
echeck_billing_descriptor?: string;
|
|
1860
|
+
echeck_company_name?: string;
|
|
1861
|
+
echeck_enabled?: boolean;
|
|
1862
|
+
hard_coded_billing_descriptor?: string;
|
|
1863
|
+
max_transaction_amount?: number;
|
|
1864
|
+
/** Format: uuid */
|
|
1865
|
+
merchant_application_id?: string;
|
|
1814
1866
|
mcc?: string;
|
|
1867
|
+
naics_code?: string;
|
|
1868
|
+
postal_code?: string;
|
|
1869
|
+
primary_contact_email_address?: string;
|
|
1870
|
+
primary_contact_first_name?: string;
|
|
1871
|
+
primary_contact_last_name?: string;
|
|
1872
|
+
primary_contact_phone?: string;
|
|
1873
|
+
purchase_currency?: string;
|
|
1874
|
+
settlement_currency?: string;
|
|
1875
|
+
street_address1?: string;
|
|
1876
|
+
street_address2?: string;
|
|
1877
|
+
sub_merchant_id?: string;
|
|
1878
|
+
website_url?: string;
|
|
1815
1879
|
/** Format: date-time */
|
|
1816
1880
|
created_at?: string;
|
|
1817
1881
|
/** Format: date-time */
|
|
@@ -5066,9 +5130,11 @@ declare const embedConfirmApplePayPaymentMethodInputTypeValues: ReadonlyArray<Fl
|
|
|
5066
5130
|
declare const allowedCardPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AllowedCardPaymentMethodInput"]["type"]>;
|
|
5067
5131
|
declare const allowedBankAccountPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AllowedBankAccountPaymentMethodInput"]["type"]>;
|
|
5068
5132
|
declare const allowedGooglePayPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AllowedGooglePayPaymentMethodInput"]["type"]>;
|
|
5133
|
+
declare const allowedApplePayPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AllowedApplePayPaymentMethodInput"]["type"]>;
|
|
5069
5134
|
declare const allowedCardPaymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AllowedCardPaymentMethod"]["type"]>;
|
|
5070
5135
|
declare const allowedBankAccountPaymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AllowedBankAccountPaymentMethod"]["type"]>;
|
|
5071
5136
|
declare const allowedGooglePayPaymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AllowedGooglePayPaymentMethod"]["type"]>;
|
|
5137
|
+
declare const allowedApplePayPaymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AllowedApplePayPaymentMethod"]["type"]>;
|
|
5072
5138
|
declare const payoutDirectionTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PayoutDirectionType"]>;
|
|
5073
5139
|
declare const payoutStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PayoutStateType"]>;
|
|
5074
5140
|
declare const refundStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["RefundStateType"]>;
|
|
@@ -5125,4 +5191,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
5125
5191
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
5126
5192
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
5127
5193
|
|
|
5128
|
-
export { type $defs, PAY_API_BASE_URL_PRODUCTION, PAY_API_BASE_URL_SANDBOX, PAY_API_VERSION, type PayApiClient, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, 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 };
|
|
5194
|
+
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, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1318,6 +1318,7 @@ interface components {
|
|
|
1318
1318
|
merchant_id?: string;
|
|
1319
1319
|
/** Format: uuid */
|
|
1320
1320
|
processor_id?: string;
|
|
1321
|
+
worldpay_mid?: string;
|
|
1321
1322
|
/** Format: date-time */
|
|
1322
1323
|
created_at?: string;
|
|
1323
1324
|
/** Format: date-time */
|
|
@@ -1483,6 +1484,10 @@ interface components {
|
|
|
1483
1484
|
document_type?: components["schemas"]["LegalEntityDocumentType"];
|
|
1484
1485
|
/** Format: uuid */
|
|
1485
1486
|
file_upload_id?: string;
|
|
1487
|
+
file_name?: string;
|
|
1488
|
+
byte_size?: number;
|
|
1489
|
+
/** Format: date-time */
|
|
1490
|
+
created_at?: string;
|
|
1486
1491
|
};
|
|
1487
1492
|
CreateLegalEntityApplicationPrincipalInput: {
|
|
1488
1493
|
/** Format: uuid */
|
|
@@ -1555,7 +1560,7 @@ interface components {
|
|
|
1555
1560
|
/** @enum {string} */
|
|
1556
1561
|
PaymentLinkAmountType: "fixed" | "open";
|
|
1557
1562
|
/** @enum {string} */
|
|
1558
|
-
PaymentMethodType: "card" | "bank_account" | "googlepay";
|
|
1563
|
+
PaymentMethodType: "card" | "bank_account" | "googlepay" | "applepay";
|
|
1559
1564
|
/** @description Payment method details used when confirming an embedded intent with a new payment method. */
|
|
1560
1565
|
EmbedConfirmPaymentMethodInput: components["schemas"]["EmbedConfirmCardPaymentMethodInput"] | components["schemas"]["EmbedConfirmBankAccountPaymentMethodInput"] | components["schemas"]["EmbedConfirmGooglePayPaymentMethodInput"] | components["schemas"]["EmbedConfirmApplePayPaymentMethodInput"];
|
|
1561
1566
|
EmbedConfirmCardPaymentMethodInput: {
|
|
@@ -1605,6 +1610,8 @@ interface components {
|
|
|
1605
1610
|
AllowedBankAccountPaymentMethodOptions: Record<string, never>;
|
|
1606
1611
|
/** @description No configurable options for Google Pay payment methods. */
|
|
1607
1612
|
AllowedGooglePayPaymentMethodOptions: Record<string, never>;
|
|
1613
|
+
/** @description No configurable options for Apple Pay payment methods. */
|
|
1614
|
+
AllowedApplePayPaymentMethodOptions: Record<string, never>;
|
|
1608
1615
|
AllowedCardPaymentMethodInput: {
|
|
1609
1616
|
/**
|
|
1610
1617
|
* @description discriminator enum property added by openapi-typescript
|
|
@@ -1629,8 +1636,16 @@ interface components {
|
|
|
1629
1636
|
type: "googlepay";
|
|
1630
1637
|
options?: components["schemas"]["AllowedGooglePayPaymentMethodOptions"];
|
|
1631
1638
|
};
|
|
1639
|
+
AllowedApplePayPaymentMethodInput: {
|
|
1640
|
+
/**
|
|
1641
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1642
|
+
* @enum {string}
|
|
1643
|
+
*/
|
|
1644
|
+
type: "applepay";
|
|
1645
|
+
options?: components["schemas"]["AllowedApplePayPaymentMethodOptions"];
|
|
1646
|
+
};
|
|
1632
1647
|
/** @description Payment method allowed on a render template, payment link, or merchant application. */
|
|
1633
|
-
AllowedPaymentMethodInput: components["schemas"]["AllowedCardPaymentMethodInput"] | components["schemas"]["AllowedBankAccountPaymentMethodInput"] | components["schemas"]["AllowedGooglePayPaymentMethodInput"];
|
|
1648
|
+
AllowedPaymentMethodInput: components["schemas"]["AllowedCardPaymentMethodInput"] | components["schemas"]["AllowedBankAccountPaymentMethodInput"] | components["schemas"]["AllowedGooglePayPaymentMethodInput"] | components["schemas"]["AllowedApplePayPaymentMethodInput"];
|
|
1634
1649
|
AllowedCardPaymentMethod: {
|
|
1635
1650
|
/**
|
|
1636
1651
|
* @description discriminator enum property added by openapi-typescript
|
|
@@ -1655,8 +1670,16 @@ interface components {
|
|
|
1655
1670
|
type: "googlepay";
|
|
1656
1671
|
options: components["schemas"]["AllowedGooglePayPaymentMethodOptions"];
|
|
1657
1672
|
};
|
|
1673
|
+
AllowedApplePayPaymentMethod: {
|
|
1674
|
+
/**
|
|
1675
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1676
|
+
* @enum {string}
|
|
1677
|
+
*/
|
|
1678
|
+
type: "applepay";
|
|
1679
|
+
options: components["schemas"]["AllowedApplePayPaymentMethodOptions"];
|
|
1680
|
+
};
|
|
1658
1681
|
/** @description Allowed payment method returned in API responses and render token JWT payloads. */
|
|
1659
|
-
AllowedPaymentMethod: components["schemas"]["AllowedCardPaymentMethod"] | components["schemas"]["AllowedBankAccountPaymentMethod"] | components["schemas"]["AllowedGooglePayPaymentMethod"];
|
|
1682
|
+
AllowedPaymentMethod: components["schemas"]["AllowedCardPaymentMethod"] | components["schemas"]["AllowedBankAccountPaymentMethod"] | components["schemas"]["AllowedGooglePayPaymentMethod"] | components["schemas"]["AllowedApplePayPaymentMethod"];
|
|
1660
1683
|
/** @enum {string} */
|
|
1661
1684
|
PayoutDirectionType: "credit" | "debit";
|
|
1662
1685
|
/** @enum {string} */
|
|
@@ -1705,7 +1728,11 @@ interface components {
|
|
|
1705
1728
|
LegalEntity: {
|
|
1706
1729
|
/** Format: uuid */
|
|
1707
1730
|
id?: string;
|
|
1731
|
+
/** Format: uuid */
|
|
1732
|
+
organization_id?: string;
|
|
1708
1733
|
legal_name?: string;
|
|
1734
|
+
/** Format: uuid */
|
|
1735
|
+
parent_legal_entity_id?: string | null;
|
|
1709
1736
|
entity_type?: components["schemas"]["LegalEntityEntityType"];
|
|
1710
1737
|
ownership_type?: components["schemas"]["LegalEntityOwnershipType"];
|
|
1711
1738
|
contact_email?: string;
|
|
@@ -1717,6 +1744,8 @@ interface components {
|
|
|
1717
1744
|
business_postal_code?: string;
|
|
1718
1745
|
business_country?: string;
|
|
1719
1746
|
tax_id_last4?: string;
|
|
1747
|
+
/** Format: date-time */
|
|
1748
|
+
created_at?: string;
|
|
1720
1749
|
};
|
|
1721
1750
|
LegalEntityApplication: {
|
|
1722
1751
|
/** Format: uuid */
|
|
@@ -1736,6 +1765,17 @@ interface components {
|
|
|
1736
1765
|
business_country?: string;
|
|
1737
1766
|
state?: string;
|
|
1738
1767
|
tax_id_last4?: string;
|
|
1768
|
+
/** Format: date-time */
|
|
1769
|
+
approved_at?: string | null;
|
|
1770
|
+
/** Format: date-time */
|
|
1771
|
+
denied_at?: string | null;
|
|
1772
|
+
/** Format: date-time */
|
|
1773
|
+
needs_information_at?: string | null;
|
|
1774
|
+
decision_reason?: string | null;
|
|
1775
|
+
/** Format: date-time */
|
|
1776
|
+
created_at?: string;
|
|
1777
|
+
/** Format: date-time */
|
|
1778
|
+
updated_at?: string;
|
|
1739
1779
|
requirements?: components["schemas"]["LegalEntityApplicationRequirement"][];
|
|
1740
1780
|
};
|
|
1741
1781
|
CreateMerchantApplicationInput: {
|
|
@@ -1802,16 +1842,40 @@ interface components {
|
|
|
1802
1842
|
Merchant: {
|
|
1803
1843
|
/** Format: uuid */
|
|
1804
1844
|
id?: string;
|
|
1845
|
+
active?: boolean;
|
|
1805
1846
|
/** Format: uuid */
|
|
1806
1847
|
organization_id?: string;
|
|
1807
1848
|
/** Format: uuid */
|
|
1808
1849
|
legal_entity_id?: string;
|
|
1809
1850
|
annual_credit_card_sales_volume?: number;
|
|
1810
1851
|
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
1852
|
+
business_category?: components["schemas"]["MerchantBusinessCategoryType"];
|
|
1853
|
+
business_description?: string;
|
|
1854
|
+
city?: string;
|
|
1855
|
+
country_code?: string;
|
|
1856
|
+
customer_service_number?: string;
|
|
1811
1857
|
has_accepted_credit_cards?: boolean;
|
|
1812
1858
|
dba_name?: string;
|
|
1813
|
-
|
|
1859
|
+
echeck_billing_descriptor?: string;
|
|
1860
|
+
echeck_company_name?: string;
|
|
1861
|
+
echeck_enabled?: boolean;
|
|
1862
|
+
hard_coded_billing_descriptor?: string;
|
|
1863
|
+
max_transaction_amount?: number;
|
|
1864
|
+
/** Format: uuid */
|
|
1865
|
+
merchant_application_id?: string;
|
|
1814
1866
|
mcc?: string;
|
|
1867
|
+
naics_code?: string;
|
|
1868
|
+
postal_code?: string;
|
|
1869
|
+
primary_contact_email_address?: string;
|
|
1870
|
+
primary_contact_first_name?: string;
|
|
1871
|
+
primary_contact_last_name?: string;
|
|
1872
|
+
primary_contact_phone?: string;
|
|
1873
|
+
purchase_currency?: string;
|
|
1874
|
+
settlement_currency?: string;
|
|
1875
|
+
street_address1?: string;
|
|
1876
|
+
street_address2?: string;
|
|
1877
|
+
sub_merchant_id?: string;
|
|
1878
|
+
website_url?: string;
|
|
1815
1879
|
/** Format: date-time */
|
|
1816
1880
|
created_at?: string;
|
|
1817
1881
|
/** Format: date-time */
|
|
@@ -5066,9 +5130,11 @@ declare const embedConfirmApplePayPaymentMethodInputTypeValues: ReadonlyArray<Fl
|
|
|
5066
5130
|
declare const allowedCardPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AllowedCardPaymentMethodInput"]["type"]>;
|
|
5067
5131
|
declare const allowedBankAccountPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AllowedBankAccountPaymentMethodInput"]["type"]>;
|
|
5068
5132
|
declare const allowedGooglePayPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AllowedGooglePayPaymentMethodInput"]["type"]>;
|
|
5133
|
+
declare const allowedApplePayPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AllowedApplePayPaymentMethodInput"]["type"]>;
|
|
5069
5134
|
declare const allowedCardPaymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AllowedCardPaymentMethod"]["type"]>;
|
|
5070
5135
|
declare const allowedBankAccountPaymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AllowedBankAccountPaymentMethod"]["type"]>;
|
|
5071
5136
|
declare const allowedGooglePayPaymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AllowedGooglePayPaymentMethod"]["type"]>;
|
|
5137
|
+
declare const allowedApplePayPaymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AllowedApplePayPaymentMethod"]["type"]>;
|
|
5072
5138
|
declare const payoutDirectionTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PayoutDirectionType"]>;
|
|
5073
5139
|
declare const payoutStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PayoutStateType"]>;
|
|
5074
5140
|
declare const refundStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["RefundStateType"]>;
|
|
@@ -5125,4 +5191,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
5125
5191
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
5126
5192
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
5127
5193
|
|
|
5128
|
-
export { type $defs, PAY_API_BASE_URL_PRODUCTION, PAY_API_BASE_URL_SANDBOX, PAY_API_VERSION, type PayApiClient, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, 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 };
|
|
5194
|
+
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, 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 };
|
package/dist/index.js
CHANGED
|
@@ -33,6 +33,8 @@ __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
|
+
allowedApplePayPaymentMethodInputTypeValues: () => allowedApplePayPaymentMethodInputTypeValues,
|
|
37
|
+
allowedApplePayPaymentMethodTypeValues: () => allowedApplePayPaymentMethodTypeValues,
|
|
36
38
|
allowedBankAccountPaymentMethodInputTypeValues: () => allowedBankAccountPaymentMethodInputTypeValues,
|
|
37
39
|
allowedBankAccountPaymentMethodTypeValues: () => allowedBankAccountPaymentMethodTypeValues,
|
|
38
40
|
allowedCardPaymentMethodInputTypeValues: () => allowedCardPaymentMethodInputTypeValues,
|
|
@@ -80,7 +82,7 @@ var legalEntityOwnershipTypeValues = ["public", "private"];
|
|
|
80
82
|
var legalEntityDocumentTypeValues = ["irs_cp_575"];
|
|
81
83
|
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"];
|
|
82
84
|
var paymentLinkAmountTypeValues = ["fixed", "open"];
|
|
83
|
-
var paymentMethodTypeValues = ["card", "bank_account", "googlepay"];
|
|
85
|
+
var paymentMethodTypeValues = ["card", "bank_account", "googlepay", "applepay"];
|
|
84
86
|
var embedConfirmCardPaymentMethodInputTypeValues = ["card"];
|
|
85
87
|
var embedConfirmBankAccountPaymentMethodInputTypeValues = ["bank_account"];
|
|
86
88
|
var embedConfirmGooglePayPaymentMethodInputTypeValues = ["googlepay"];
|
|
@@ -88,9 +90,11 @@ var embedConfirmApplePayPaymentMethodInputTypeValues = ["applepay"];
|
|
|
88
90
|
var allowedCardPaymentMethodInputTypeValues = ["card"];
|
|
89
91
|
var allowedBankAccountPaymentMethodInputTypeValues = ["bank_account"];
|
|
90
92
|
var allowedGooglePayPaymentMethodInputTypeValues = ["googlepay"];
|
|
93
|
+
var allowedApplePayPaymentMethodInputTypeValues = ["applepay"];
|
|
91
94
|
var allowedCardPaymentMethodTypeValues = ["card"];
|
|
92
95
|
var allowedBankAccountPaymentMethodTypeValues = ["bank_account"];
|
|
93
96
|
var allowedGooglePayPaymentMethodTypeValues = ["googlepay"];
|
|
97
|
+
var allowedApplePayPaymentMethodTypeValues = ["applepay"];
|
|
94
98
|
var payoutDirectionTypeValues = ["credit", "debit"];
|
|
95
99
|
var payoutStateTypeValues = ["pending", "processing", "succeeded", "failed", "errored", "accepted", "rejected"];
|
|
96
100
|
var refundStateTypeValues = ["pending", "processing", "requires_review", "succeeded", "cancelled", "failed"];
|
|
@@ -118,6 +122,8 @@ function createPayApiClient(options) {
|
|
|
118
122
|
PAY_API_BASE_URL_PRODUCTION,
|
|
119
123
|
PAY_API_BASE_URL_SANDBOX,
|
|
120
124
|
PAY_API_VERSION,
|
|
125
|
+
allowedApplePayPaymentMethodInputTypeValues,
|
|
126
|
+
allowedApplePayPaymentMethodTypeValues,
|
|
121
127
|
allowedBankAccountPaymentMethodInputTypeValues,
|
|
122
128
|
allowedBankAccountPaymentMethodTypeValues,
|
|
123
129
|
allowedCardPaymentMethodInputTypeValues,
|