@amos.com/node 0.1.34 → 0.1.35
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 +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +11 -2
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1559,6 +1559,14 @@ interface components {
|
|
|
1559
1559
|
LegalEntityDocumentType: "irs_cp_575";
|
|
1560
1560
|
/** @enum {string} */
|
|
1561
1561
|
MerchantBusinessCategoryType: "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";
|
|
1562
|
+
/**
|
|
1563
|
+
* @description How funds are captured after payment confirmation.
|
|
1564
|
+
* `automatic` performs a sale (authorize and capture together).
|
|
1565
|
+
* `automatic_async` authorizes then captures asynchronously.
|
|
1566
|
+
* `manual` authorizes only; capture must be requested separately.
|
|
1567
|
+
* @enum {string}
|
|
1568
|
+
*/
|
|
1569
|
+
PaymentIntentCaptureMethodType: "automatic" | "automatic_async" | "manual";
|
|
1562
1570
|
/** @enum {string} */
|
|
1563
1571
|
PaymentLinkAmountType: "fixed" | "open";
|
|
1564
1572
|
/** @enum {string} */
|
|
@@ -1934,7 +1942,7 @@ interface components {
|
|
|
1934
1942
|
};
|
|
1935
1943
|
CreatePaymentIntentInput: {
|
|
1936
1944
|
amount: number;
|
|
1937
|
-
capture_method?:
|
|
1945
|
+
capture_method?: components["schemas"]["PaymentIntentCaptureMethodType"];
|
|
1938
1946
|
/** Format: uuid */
|
|
1939
1947
|
customer_id?: string;
|
|
1940
1948
|
description?: string | null;
|
|
@@ -1972,7 +1980,7 @@ interface components {
|
|
|
1972
1980
|
/** Format: uuid */
|
|
1973
1981
|
account_id?: string;
|
|
1974
1982
|
amount?: number;
|
|
1975
|
-
capture_method?:
|
|
1983
|
+
capture_method?: components["schemas"]["PaymentIntentCaptureMethodType"];
|
|
1976
1984
|
/** Format: uuid */
|
|
1977
1985
|
charge_id?: string;
|
|
1978
1986
|
currency?: string;
|
|
@@ -5220,6 +5228,7 @@ declare const legalEntityEntityTypeValues: ReadonlyArray<FlattenedDeepRequired<c
|
|
|
5220
5228
|
declare const legalEntityOwnershipTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityOwnershipType"]>;
|
|
5221
5229
|
declare const legalEntityDocumentTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityDocumentType"]>;
|
|
5222
5230
|
declare const merchantBusinessCategoryTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["MerchantBusinessCategoryType"]>;
|
|
5231
|
+
declare const paymentIntentCaptureMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntentCaptureMethodType"]>;
|
|
5223
5232
|
declare const paymentLinkAmountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentLinkAmountType"]>;
|
|
5224
5233
|
declare const paymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentMethodType"]>;
|
|
5225
5234
|
declare const usStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["UsStateType"]>;
|
|
@@ -5294,4 +5303,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
5294
5303
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
5295
5304
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
5296
5305
|
|
|
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 };
|
|
5306
|
+
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, 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
|
@@ -1559,6 +1559,14 @@ interface components {
|
|
|
1559
1559
|
LegalEntityDocumentType: "irs_cp_575";
|
|
1560
1560
|
/** @enum {string} */
|
|
1561
1561
|
MerchantBusinessCategoryType: "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";
|
|
1562
|
+
/**
|
|
1563
|
+
* @description How funds are captured after payment confirmation.
|
|
1564
|
+
* `automatic` performs a sale (authorize and capture together).
|
|
1565
|
+
* `automatic_async` authorizes then captures asynchronously.
|
|
1566
|
+
* `manual` authorizes only; capture must be requested separately.
|
|
1567
|
+
* @enum {string}
|
|
1568
|
+
*/
|
|
1569
|
+
PaymentIntentCaptureMethodType: "automatic" | "automatic_async" | "manual";
|
|
1562
1570
|
/** @enum {string} */
|
|
1563
1571
|
PaymentLinkAmountType: "fixed" | "open";
|
|
1564
1572
|
/** @enum {string} */
|
|
@@ -1934,7 +1942,7 @@ interface components {
|
|
|
1934
1942
|
};
|
|
1935
1943
|
CreatePaymentIntentInput: {
|
|
1936
1944
|
amount: number;
|
|
1937
|
-
capture_method?:
|
|
1945
|
+
capture_method?: components["schemas"]["PaymentIntentCaptureMethodType"];
|
|
1938
1946
|
/** Format: uuid */
|
|
1939
1947
|
customer_id?: string;
|
|
1940
1948
|
description?: string | null;
|
|
@@ -1972,7 +1980,7 @@ interface components {
|
|
|
1972
1980
|
/** Format: uuid */
|
|
1973
1981
|
account_id?: string;
|
|
1974
1982
|
amount?: number;
|
|
1975
|
-
capture_method?:
|
|
1983
|
+
capture_method?: components["schemas"]["PaymentIntentCaptureMethodType"];
|
|
1976
1984
|
/** Format: uuid */
|
|
1977
1985
|
charge_id?: string;
|
|
1978
1986
|
currency?: string;
|
|
@@ -5220,6 +5228,7 @@ declare const legalEntityEntityTypeValues: ReadonlyArray<FlattenedDeepRequired<c
|
|
|
5220
5228
|
declare const legalEntityOwnershipTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityOwnershipType"]>;
|
|
5221
5229
|
declare const legalEntityDocumentTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityDocumentType"]>;
|
|
5222
5230
|
declare const merchantBusinessCategoryTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["MerchantBusinessCategoryType"]>;
|
|
5231
|
+
declare const paymentIntentCaptureMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntentCaptureMethodType"]>;
|
|
5223
5232
|
declare const paymentLinkAmountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentLinkAmountType"]>;
|
|
5224
5233
|
declare const paymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentMethodType"]>;
|
|
5225
5234
|
declare const usStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["UsStateType"]>;
|
|
@@ -5294,4 +5303,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
5294
5303
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
5295
5304
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
5296
5305
|
|
|
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 };
|
|
5306
|
+
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, 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
|
@@ -58,6 +58,7 @@ __export(index_exports, {
|
|
|
58
58
|
legalEntityOwnershipTypeValues: () => legalEntityOwnershipTypeValues,
|
|
59
59
|
merchantBusinessCategoryTypeValues: () => merchantBusinessCategoryTypeValues,
|
|
60
60
|
pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues: () => pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues,
|
|
61
|
+
paymentIntentCaptureMethodTypeValues: () => paymentIntentCaptureMethodTypeValues,
|
|
61
62
|
paymentIntentStateValues: () => paymentIntentStateValues,
|
|
62
63
|
paymentLinkAmountTypeValues: () => paymentLinkAmountTypeValues,
|
|
63
64
|
paymentMethodTypeValues: () => paymentMethodTypeValues,
|
|
@@ -91,6 +92,7 @@ var legalEntityEntityTypeValues = ["individual_sole_proprietorship", "corporatio
|
|
|
91
92
|
var legalEntityOwnershipTypeValues = ["public", "private"];
|
|
92
93
|
var legalEntityDocumentTypeValues = ["irs_cp_575"];
|
|
93
94
|
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"];
|
|
95
|
+
var paymentIntentCaptureMethodTypeValues = ["automatic", "automatic_async", "manual"];
|
|
94
96
|
var paymentLinkAmountTypeValues = ["fixed", "open"];
|
|
95
97
|
var paymentMethodTypeValues = ["card", "bank_account", "googlepay", "applepay"];
|
|
96
98
|
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"];
|
|
@@ -161,6 +163,7 @@ function createPayApiClient(options) {
|
|
|
161
163
|
legalEntityOwnershipTypeValues,
|
|
162
164
|
merchantBusinessCategoryTypeValues,
|
|
163
165
|
pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues,
|
|
166
|
+
paymentIntentCaptureMethodTypeValues,
|
|
164
167
|
paymentIntentStateValues,
|
|
165
168
|
paymentLinkAmountTypeValues,
|
|
166
169
|
paymentMethodTypeValues,
|