@amos.com/node 0.1.53 → 0.1.54
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 +15 -10
- package/dist/index.d.ts +15 -10
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +14 -9
- package/package.json +3 -3
package/openapi/schema.ts
CHANGED
|
@@ -1398,7 +1398,7 @@ export interface components {
|
|
|
1398
1398
|
/** Format: uuid */
|
|
1399
1399
|
processor_id?: string;
|
|
1400
1400
|
worldpay_mid?: string;
|
|
1401
|
-
/** @description ACH verification threshold in cents for this account, taken from the
|
|
1401
|
+
/** @description ACH verification threshold in cents for this account, taken from the organization. Amounts at or above this require Plaid verification when the render template enables it. Defaults to 20000 cents. */
|
|
1402
1402
|
ach_threshold?: number;
|
|
1403
1403
|
/** Format: date-time */
|
|
1404
1404
|
created_at?: string;
|
|
@@ -1415,8 +1415,6 @@ export interface components {
|
|
|
1415
1415
|
/** Format: uuid */
|
|
1416
1416
|
customer_id?: string;
|
|
1417
1417
|
description?: string | null;
|
|
1418
|
-
failure_code?: string | null;
|
|
1419
|
-
failure_reason?: string | null;
|
|
1420
1418
|
/** @enum {string|null} */
|
|
1421
1419
|
allowed_reverse_action?: "void" | "refund" | null;
|
|
1422
1420
|
metadata?: components["schemas"]["Metadata"];
|
|
@@ -1973,8 +1971,6 @@ export interface components {
|
|
|
1973
1971
|
Merchant: {
|
|
1974
1972
|
/** Format: uuid */
|
|
1975
1973
|
id?: string;
|
|
1976
|
-
/** @description ACH verification threshold in cents. Amounts at or above this require Plaid verification. */
|
|
1977
|
-
ach_threshold?: number;
|
|
1978
1974
|
active?: boolean;
|
|
1979
1975
|
/** Format: uuid */
|
|
1980
1976
|
organization_id?: string;
|
|
@@ -2096,6 +2092,8 @@ export interface components {
|
|
|
2096
2092
|
/** Format: uuid */
|
|
2097
2093
|
customer_id?: string;
|
|
2098
2094
|
description?: string;
|
|
2095
|
+
/** @description Null after a successful authorization, sale, or capture. */
|
|
2096
|
+
last_payment_error?: components["schemas"]["LastPaymentError"] | null;
|
|
2099
2097
|
metadata?: components["schemas"]["Metadata"];
|
|
2100
2098
|
recurring_payment?: components["schemas"]["RecurringPayment"];
|
|
2101
2099
|
/** Format: uuid */
|
|
@@ -2109,6 +2107,15 @@ export interface components {
|
|
|
2109
2107
|
/** Format: date-time */
|
|
2110
2108
|
updated_at?: string;
|
|
2111
2109
|
};
|
|
2110
|
+
/** @description Canonical post-confirm payment failure. Present after a processor decline, processing exception, or missing vault credential. */
|
|
2111
|
+
LastPaymentError: {
|
|
2112
|
+
/** @enum {string} */
|
|
2113
|
+
type: "card_error" | "processing_error";
|
|
2114
|
+
/** @enum {string} */
|
|
2115
|
+
code: "incorrect_number" | "incorrect_cvc" | "incorrect_postal_code" | "incorrect_pin" | "expired_card" | "insufficient_funds" | "card_declined" | "authentication_failure" | "processing_error" | "vault_token_not_found";
|
|
2116
|
+
/** @description Localized, payer-facing explanation of the failure. */
|
|
2117
|
+
message: string;
|
|
2118
|
+
};
|
|
2112
2119
|
/** @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. */
|
|
2113
2120
|
RecurringPayment: {
|
|
2114
2121
|
/** @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. */
|
|
@@ -2349,8 +2356,6 @@ export interface components {
|
|
|
2349
2356
|
/** Format: uuid */
|
|
2350
2357
|
customer_id?: string;
|
|
2351
2358
|
description?: string | null;
|
|
2352
|
-
failure_code?: string | null;
|
|
2353
|
-
failure_reason?: string | null;
|
|
2354
2359
|
metadata?: components["schemas"]["Metadata"];
|
|
2355
2360
|
/** Format: uuid */
|
|
2356
2361
|
original_transaction_id?: string;
|
|
@@ -2567,8 +2572,6 @@ export interface components {
|
|
|
2567
2572
|
/** Format: uuid */
|
|
2568
2573
|
customer_id?: string;
|
|
2569
2574
|
description?: string | null;
|
|
2570
|
-
failure_code?: string | null;
|
|
2571
|
-
failure_reason?: string | null;
|
|
2572
2575
|
metadata?: components["schemas"]["Metadata"];
|
|
2573
2576
|
/** Format: uuid */
|
|
2574
2577
|
original_transaction_id?: string;
|
|
@@ -5526,6 +5529,8 @@ export const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<compo
|
|
|
5526
5529
|
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", "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"];
|
|
5527
5530
|
export const organizationKindValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Organization"]["kind"]> = ["direct", "payfac"];
|
|
5528
5531
|
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"];
|
|
5532
|
+
export const lastPaymentErrorTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LastPaymentError"]["type"]> = ["card_error", "processing_error"];
|
|
5533
|
+
export const lastPaymentErrorCodeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LastPaymentError"]["code"]> = ["incorrect_number", "incorrect_cvc", "incorrect_postal_code", "incorrect_pin", "expired_card", "insufficient_funds", "card_declined", "authentication_failure", "processing_error", "vault_token_not_found"];
|
|
5529
5534
|
export const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]> = ["charge", "refund", "void"];
|
|
5530
5535
|
export const processorTransactionTransaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["transaction_type"]> = ["authorization", "authorization_reversal", "capture", "credit", "echeck_credit", "echeck_sale", "echeck_void", "sale", "void"];
|
|
5531
5536
|
export const refundAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Refund"]["allowed_reverse_action"]> = ["void"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amos.com/node",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.54",
|
|
4
4
|
"description": "Node.js client for the Amos Pay API.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"openapi-fetch": "0.17.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@biomejs/biome": "2.5.
|
|
53
|
+
"@biomejs/biome": "2.5.10",
|
|
54
54
|
"@changesets/cli": "2.31.1",
|
|
55
|
-
"@types/node": "26.
|
|
55
|
+
"@types/node": "26.3.0",
|
|
56
56
|
"openapi-typescript": "7.13.0",
|
|
57
57
|
"tsup": "8.5.1",
|
|
58
58
|
"typescript": "5.9.3"
|