@amos.com/node 0.1.34 → 0.1.36
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 +14 -11
- package/dist/index.d.ts +14 -11
- 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 +13 -10
- package/package.json +4 -3
package/dist/index.d.mts
CHANGED
|
@@ -1265,21 +1265,15 @@ interface components {
|
|
|
1265
1265
|
exp_year?: number;
|
|
1266
1266
|
moto?: boolean;
|
|
1267
1267
|
};
|
|
1268
|
-
/** @description Apple Pay card profile for embed confirm. Clients
|
|
1268
|
+
/** @description Apple Pay card profile for embed confirm. Clients only send wallet_payload (the raw JSON-encoded PKPaymentToken). Brand, last4, expiration, pan_type, wallet_provider, and cryptogram are set from the Vault response. Encrypted PAN and client-supplied cryptogram are not supported. */
|
|
1269
1269
|
ApplePayCardProfileInput: {
|
|
1270
|
-
wallet_brand?: string;
|
|
1271
|
-
/** @description Display last4 from the Apple Pay payment method. */
|
|
1272
|
-
wallet_last4?: string;
|
|
1273
1270
|
/** @description The unmodified JSON-encoded PKPaymentToken. */
|
|
1274
1271
|
wallet_payload: string;
|
|
1275
|
-
wallet_provider?: components["schemas"]["WalletProviderType"];
|
|
1276
1272
|
};
|
|
1273
|
+
/** @description Google Pay card profile for embed confirm. Clients only send wallet_payload. Brand, last4, expiration, pan_type, wallet_provider, and cryptogram are set from the Vault response. Encrypted PAN is not supported. */
|
|
1277
1274
|
GooglePayCardProfileInput: {
|
|
1278
|
-
wallet_brand?: string;
|
|
1279
|
-
wallet_last4?: string;
|
|
1280
1275
|
/** @description The unmodified Google Pay payment token payload. */
|
|
1281
1276
|
wallet_payload: string;
|
|
1282
|
-
wallet_provider?: components["schemas"]["WalletProviderType"];
|
|
1283
1277
|
};
|
|
1284
1278
|
CardProfile: {
|
|
1285
1279
|
avs_check?: string;
|
|
@@ -1559,6 +1553,14 @@ interface components {
|
|
|
1559
1553
|
LegalEntityDocumentType: "irs_cp_575";
|
|
1560
1554
|
/** @enum {string} */
|
|
1561
1555
|
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";
|
|
1556
|
+
/**
|
|
1557
|
+
* @description How funds are captured after payment confirmation.
|
|
1558
|
+
* `automatic` performs a sale (authorize and capture together).
|
|
1559
|
+
* `automatic_async` authorizes then captures asynchronously.
|
|
1560
|
+
* `manual` authorizes only; capture must be requested separately.
|
|
1561
|
+
* @enum {string}
|
|
1562
|
+
*/
|
|
1563
|
+
PaymentIntentCaptureMethodType: "automatic" | "automatic_async" | "manual";
|
|
1562
1564
|
/** @enum {string} */
|
|
1563
1565
|
PaymentLinkAmountType: "fixed" | "open";
|
|
1564
1566
|
/** @enum {string} */
|
|
@@ -1934,7 +1936,7 @@ interface components {
|
|
|
1934
1936
|
};
|
|
1935
1937
|
CreatePaymentIntentInput: {
|
|
1936
1938
|
amount: number;
|
|
1937
|
-
capture_method?:
|
|
1939
|
+
capture_method?: components["schemas"]["PaymentIntentCaptureMethodType"];
|
|
1938
1940
|
/** Format: uuid */
|
|
1939
1941
|
customer_id?: string;
|
|
1940
1942
|
description?: string | null;
|
|
@@ -1972,7 +1974,7 @@ interface components {
|
|
|
1972
1974
|
/** Format: uuid */
|
|
1973
1975
|
account_id?: string;
|
|
1974
1976
|
amount?: number;
|
|
1975
|
-
capture_method?:
|
|
1977
|
+
capture_method?: components["schemas"]["PaymentIntentCaptureMethodType"];
|
|
1976
1978
|
/** Format: uuid */
|
|
1977
1979
|
charge_id?: string;
|
|
1978
1980
|
currency?: string;
|
|
@@ -5220,6 +5222,7 @@ declare const legalEntityEntityTypeValues: ReadonlyArray<FlattenedDeepRequired<c
|
|
|
5220
5222
|
declare const legalEntityOwnershipTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityOwnershipType"]>;
|
|
5221
5223
|
declare const legalEntityDocumentTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityDocumentType"]>;
|
|
5222
5224
|
declare const merchantBusinessCategoryTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["MerchantBusinessCategoryType"]>;
|
|
5225
|
+
declare const paymentIntentCaptureMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntentCaptureMethodType"]>;
|
|
5223
5226
|
declare const paymentLinkAmountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentLinkAmountType"]>;
|
|
5224
5227
|
declare const paymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentMethodType"]>;
|
|
5225
5228
|
declare const usStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["UsStateType"]>;
|
|
@@ -5294,4 +5297,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
5294
5297
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
5295
5298
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
5296
5299
|
|
|
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 };
|
|
5300
|
+
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
|
@@ -1265,21 +1265,15 @@ interface components {
|
|
|
1265
1265
|
exp_year?: number;
|
|
1266
1266
|
moto?: boolean;
|
|
1267
1267
|
};
|
|
1268
|
-
/** @description Apple Pay card profile for embed confirm. Clients
|
|
1268
|
+
/** @description Apple Pay card profile for embed confirm. Clients only send wallet_payload (the raw JSON-encoded PKPaymentToken). Brand, last4, expiration, pan_type, wallet_provider, and cryptogram are set from the Vault response. Encrypted PAN and client-supplied cryptogram are not supported. */
|
|
1269
1269
|
ApplePayCardProfileInput: {
|
|
1270
|
-
wallet_brand?: string;
|
|
1271
|
-
/** @description Display last4 from the Apple Pay payment method. */
|
|
1272
|
-
wallet_last4?: string;
|
|
1273
1270
|
/** @description The unmodified JSON-encoded PKPaymentToken. */
|
|
1274
1271
|
wallet_payload: string;
|
|
1275
|
-
wallet_provider?: components["schemas"]["WalletProviderType"];
|
|
1276
1272
|
};
|
|
1273
|
+
/** @description Google Pay card profile for embed confirm. Clients only send wallet_payload. Brand, last4, expiration, pan_type, wallet_provider, and cryptogram are set from the Vault response. Encrypted PAN is not supported. */
|
|
1277
1274
|
GooglePayCardProfileInput: {
|
|
1278
|
-
wallet_brand?: string;
|
|
1279
|
-
wallet_last4?: string;
|
|
1280
1275
|
/** @description The unmodified Google Pay payment token payload. */
|
|
1281
1276
|
wallet_payload: string;
|
|
1282
|
-
wallet_provider?: components["schemas"]["WalletProviderType"];
|
|
1283
1277
|
};
|
|
1284
1278
|
CardProfile: {
|
|
1285
1279
|
avs_check?: string;
|
|
@@ -1559,6 +1553,14 @@ interface components {
|
|
|
1559
1553
|
LegalEntityDocumentType: "irs_cp_575";
|
|
1560
1554
|
/** @enum {string} */
|
|
1561
1555
|
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";
|
|
1556
|
+
/**
|
|
1557
|
+
* @description How funds are captured after payment confirmation.
|
|
1558
|
+
* `automatic` performs a sale (authorize and capture together).
|
|
1559
|
+
* `automatic_async` authorizes then captures asynchronously.
|
|
1560
|
+
* `manual` authorizes only; capture must be requested separately.
|
|
1561
|
+
* @enum {string}
|
|
1562
|
+
*/
|
|
1563
|
+
PaymentIntentCaptureMethodType: "automatic" | "automatic_async" | "manual";
|
|
1562
1564
|
/** @enum {string} */
|
|
1563
1565
|
PaymentLinkAmountType: "fixed" | "open";
|
|
1564
1566
|
/** @enum {string} */
|
|
@@ -1934,7 +1936,7 @@ interface components {
|
|
|
1934
1936
|
};
|
|
1935
1937
|
CreatePaymentIntentInput: {
|
|
1936
1938
|
amount: number;
|
|
1937
|
-
capture_method?:
|
|
1939
|
+
capture_method?: components["schemas"]["PaymentIntentCaptureMethodType"];
|
|
1938
1940
|
/** Format: uuid */
|
|
1939
1941
|
customer_id?: string;
|
|
1940
1942
|
description?: string | null;
|
|
@@ -1972,7 +1974,7 @@ interface components {
|
|
|
1972
1974
|
/** Format: uuid */
|
|
1973
1975
|
account_id?: string;
|
|
1974
1976
|
amount?: number;
|
|
1975
|
-
capture_method?:
|
|
1977
|
+
capture_method?: components["schemas"]["PaymentIntentCaptureMethodType"];
|
|
1976
1978
|
/** Format: uuid */
|
|
1977
1979
|
charge_id?: string;
|
|
1978
1980
|
currency?: string;
|
|
@@ -5220,6 +5222,7 @@ declare const legalEntityEntityTypeValues: ReadonlyArray<FlattenedDeepRequired<c
|
|
|
5220
5222
|
declare const legalEntityOwnershipTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityOwnershipType"]>;
|
|
5221
5223
|
declare const legalEntityDocumentTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityDocumentType"]>;
|
|
5222
5224
|
declare const merchantBusinessCategoryTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["MerchantBusinessCategoryType"]>;
|
|
5225
|
+
declare const paymentIntentCaptureMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntentCaptureMethodType"]>;
|
|
5223
5226
|
declare const paymentLinkAmountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentLinkAmountType"]>;
|
|
5224
5227
|
declare const paymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentMethodType"]>;
|
|
5225
5228
|
declare const usStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["UsStateType"]>;
|
|
@@ -5294,4 +5297,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
5294
5297
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
5295
5298
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
5296
5299
|
|
|
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 };
|
|
5300
|
+
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,
|