@amos.com/node 0.1.30 → 0.1.32
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 +37 -15
- package/dist/index.d.ts +37 -15
- 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 +37 -15
- package/package.json +1 -1
package/openapi/schema.ts
CHANGED
|
@@ -1216,7 +1216,7 @@ export interface components {
|
|
|
1216
1216
|
account_type?: string;
|
|
1217
1217
|
bank_name?: string;
|
|
1218
1218
|
/** @enum {string|null} */
|
|
1219
|
-
failure_reason?: "activation_failed" | "processing_error" | "vault_failed" | null;
|
|
1219
|
+
failure_reason?: "activation_failed" | "processing_error" | "vault_failed" | "insufficient_funds" | "verification_failed" | null;
|
|
1220
1220
|
fingerprint?: string | null;
|
|
1221
1221
|
last4?: string;
|
|
1222
1222
|
routing_number?: string;
|
|
@@ -1561,6 +1561,7 @@ export interface components {
|
|
|
1561
1561
|
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
1562
1562
|
card_profile_attributes: components["schemas"]["CardProfileInput"];
|
|
1563
1563
|
};
|
|
1564
|
+
/** @description Confirm an embedded intent with a bank account. When ACH verification is required for the intent amount, include plaid credentials; routing and account numbers are filled server-side from Plaid Auth. Otherwise provide encrypted_account_number and routing_number on bank_account_profile_attributes. */
|
|
1564
1565
|
EmbedConfirmBankAccountPaymentMethodInput: {
|
|
1565
1566
|
/**
|
|
1566
1567
|
* @description discriminator enum property added by openapi-typescript
|
|
@@ -1568,6 +1569,7 @@ export interface components {
|
|
|
1568
1569
|
*/
|
|
1569
1570
|
type: "bank_account";
|
|
1570
1571
|
metadata?: components["schemas"]["Metadata"];
|
|
1572
|
+
plaid?: components["schemas"]["PlaidCredentialsInput"];
|
|
1571
1573
|
bank_account_profile_attributes: components["schemas"]["BankAccountProfileInput"];
|
|
1572
1574
|
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
1573
1575
|
};
|
|
@@ -1591,6 +1593,13 @@ export interface components {
|
|
|
1591
1593
|
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
1592
1594
|
card_profile_attributes: components["schemas"]["CardProfileInput"];
|
|
1593
1595
|
};
|
|
1596
|
+
/** @description One-time Plaid Link credentials used to source and verify a bank account when ACH verification is required. */
|
|
1597
|
+
PlaidCredentialsInput: {
|
|
1598
|
+
/** @description Temporary public_token returned by Plaid Link onSuccess. */
|
|
1599
|
+
public_token: string;
|
|
1600
|
+
/** @description Selected Plaid account_id from Link metadata. */
|
|
1601
|
+
account_id: string;
|
|
1602
|
+
};
|
|
1594
1603
|
AllowedCardPaymentMethodOptions: {
|
|
1595
1604
|
moto?: boolean;
|
|
1596
1605
|
};
|
|
@@ -1897,15 +1906,14 @@ export interface components {
|
|
|
1897
1906
|
CreatePaymentIntentRequest: {
|
|
1898
1907
|
payment_intent: components["schemas"]["CreatePaymentIntentInput"];
|
|
1899
1908
|
};
|
|
1900
|
-
|
|
1901
|
-
/** Format: uuid */
|
|
1902
|
-
payment_method_id?: string;
|
|
1903
|
-
payment_method: components["schemas"]["EmbedConfirmPaymentMethodInput"];
|
|
1904
|
-
} | {
|
|
1909
|
+
ConfirmPaymentIntentWithPaymentMethodIdInput: {
|
|
1905
1910
|
/** Format: uuid */
|
|
1906
1911
|
payment_method_id: string;
|
|
1907
|
-
payment_method?: components["schemas"]["EmbedConfirmPaymentMethodInput"];
|
|
1908
1912
|
};
|
|
1913
|
+
ConfirmPaymentIntentWithEmbeddedPaymentMethodInput: {
|
|
1914
|
+
payment_method: components["schemas"]["EmbedConfirmPaymentMethodInput"];
|
|
1915
|
+
};
|
|
1916
|
+
ConfirmPaymentIntentWithPaymentMethodInput: components["schemas"]["ConfirmPaymentIntentWithPaymentMethodIdInput"] | components["schemas"]["ConfirmPaymentIntentWithEmbeddedPaymentMethodInput"];
|
|
1909
1917
|
ConfirmPaymentIntentWithPaymentMethodRequest: {
|
|
1910
1918
|
payment_intent: components["schemas"]["ConfirmPaymentIntentWithPaymentMethodInput"];
|
|
1911
1919
|
};
|
|
@@ -1940,11 +1948,21 @@ export interface components {
|
|
|
1940
1948
|
/** @enum {string} */
|
|
1941
1949
|
state?: "requires_payment_method" | "requires_confirmation" | "requires_capture" | "processing_authorization" | "processing_capture" | "processing_sale" | "requires_review" | "succeeded" | "cancelled" | "errored_authorization" | "errored_capture" | "errored_sale";
|
|
1942
1950
|
statement_descriptor?: string;
|
|
1951
|
+
/** @description True when the intent amount meets or exceeds the configured ACH verification threshold. */
|
|
1952
|
+
requires_ach_verification?: boolean;
|
|
1953
|
+
ach_verification?: components["schemas"]["AchVerification"];
|
|
1943
1954
|
/** Format: date-time */
|
|
1944
1955
|
created_at?: string;
|
|
1945
1956
|
/** Format: date-time */
|
|
1946
1957
|
updated_at?: string;
|
|
1947
1958
|
};
|
|
1959
|
+
/** @description Instructions for the embed client to complete ACH verification via Plaid Link. */
|
|
1960
|
+
AchVerification: {
|
|
1961
|
+
/** @enum {string} */
|
|
1962
|
+
type: "plaid_auth";
|
|
1963
|
+
/** @description Short-lived Plaid Link token used to open Link in the embed client. */
|
|
1964
|
+
link_token: string;
|
|
1965
|
+
};
|
|
1948
1966
|
RecurringPayment: {
|
|
1949
1967
|
network_transaction_id?: string;
|
|
1950
1968
|
transaction_link_id?: string;
|
|
@@ -2228,15 +2246,14 @@ export interface components {
|
|
|
2228
2246
|
CreateSetupIntentRequest: {
|
|
2229
2247
|
setup_intent: components["schemas"]["CreateSetupIntentInput"];
|
|
2230
2248
|
};
|
|
2231
|
-
|
|
2232
|
-
/** Format: uuid */
|
|
2233
|
-
payment_method_id?: string;
|
|
2234
|
-
payment_method: components["schemas"]["EmbedConfirmPaymentMethodInput"];
|
|
2235
|
-
} | {
|
|
2249
|
+
ConfirmSetupIntentWithPaymentMethodIdInput: {
|
|
2236
2250
|
/** Format: uuid */
|
|
2237
2251
|
payment_method_id: string;
|
|
2238
|
-
payment_method?: components["schemas"]["EmbedConfirmPaymentMethodInput"];
|
|
2239
2252
|
};
|
|
2253
|
+
ConfirmSetupIntentWithEmbeddedPaymentMethodInput: {
|
|
2254
|
+
payment_method: components["schemas"]["EmbedConfirmPaymentMethodInput"];
|
|
2255
|
+
};
|
|
2256
|
+
ConfirmSetupIntentWithPaymentMethodInput: components["schemas"]["ConfirmSetupIntentWithPaymentMethodIdInput"] | components["schemas"]["ConfirmSetupIntentWithEmbeddedPaymentMethodInput"];
|
|
2240
2257
|
ConfirmSetupIntentWithPaymentMethodRequest: {
|
|
2241
2258
|
setup_intent: components["schemas"]["ConfirmSetupIntentWithPaymentMethodInput"];
|
|
2242
2259
|
};
|
|
@@ -3468,7 +3485,10 @@ export interface operations {
|
|
|
3468
3485
|
};
|
|
3469
3486
|
GetEmbedPaymentIntent: {
|
|
3470
3487
|
parameters: {
|
|
3471
|
-
query?:
|
|
3488
|
+
query?: {
|
|
3489
|
+
/** @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. */
|
|
3490
|
+
payment_method_type?: "bank_account";
|
|
3491
|
+
};
|
|
3472
3492
|
header?: never;
|
|
3473
3493
|
path: {
|
|
3474
3494
|
/** @description The ID of the payment intent to retrieve */
|
|
@@ -5125,7 +5145,8 @@ type ReadonlyArray<T> = [
|
|
|
5125
5145
|
] extends [
|
|
5126
5146
|
unknown[]
|
|
5127
5147
|
] ? Readonly<Exclude<T, undefined>> : Readonly<Exclude<T, undefined>[]>;
|
|
5128
|
-
export const
|
|
5148
|
+
export const pathsEmbedPayment_intentsIdGetParametersQueryPayment_method_typeValues: ReadonlyArray<FlattenedDeepRequired<paths>["/embed/payment_intents/{id}"]["get"]["parameters"]["query"]["payment_method_type"]> = ["bank_account"];
|
|
5149
|
+
export const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["BankAccountProfile"]["failure_reason"]> = ["activation_failed", "processing_error", "vault_failed", "insufficient_funds", "verification_failed"];
|
|
5129
5150
|
export const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["CardProfile"]["failure_reason"]> = ["authorization_failed", "avs_blocked", "brand_not_allowed", "brand_not_found", "cvc_blocked", "processing_error", "vault_failed"];
|
|
5130
5151
|
export const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]> = ["void", "refund"];
|
|
5131
5152
|
export const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]> = ["cancelled", "errored", "failed", "processing", "requires_capture", "requires_confirmation", "requires_review", "settlement_failed", "succeeded"];
|
|
@@ -5157,6 +5178,7 @@ export const transactionSourceTypeValues: ReadonlyArray<FlattenedDeepRequired<co
|
|
|
5157
5178
|
export const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WalletProviderType"]> = ["googlepay", "applepay"];
|
|
5158
5179
|
export const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WebhookEventType"]> = ["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", "void.created", "void.failed", "void.pending", "void.processing", "void.requires_review", "void.succeeded"];
|
|
5159
5180
|
export const paymentIntentStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntent"]["state"]> = ["requires_payment_method", "requires_confirmation", "requires_capture", "processing_authorization", "processing_capture", "processing_sale", "requires_review", "succeeded", "cancelled", "errored_authorization", "errored_capture", "errored_sale"];
|
|
5181
|
+
export const achVerificationTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["AchVerification"]["type"]> = ["plaid_auth"];
|
|
5160
5182
|
export const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]> = ["charge", "refund", "void"];
|
|
5161
5183
|
export const processorTransactionTransaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["transaction_type"]> = ["authorization", "authorization_reversal", "capture", "credit", "echeck_credit", "echeck_sale", "echeck_void", "sale", "void"];
|
|
5162
5184
|
export const refundAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Refund"]["allowed_reverse_action"]> = ["void"];
|