@amos.com/node 0.1.55 → 0.1.57
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 +164 -16
- package/dist/index.d.ts +164 -16
- package/dist/index.js +3 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -4
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +163 -15
- package/package.json +1 -1
package/openapi/schema.ts
CHANGED
|
@@ -110,6 +110,25 @@ export interface paths {
|
|
|
110
110
|
patch?: never;
|
|
111
111
|
trace?: never;
|
|
112
112
|
};
|
|
113
|
+
"/dunning_configuration": {
|
|
114
|
+
parameters: {
|
|
115
|
+
query?: never;
|
|
116
|
+
header?: never;
|
|
117
|
+
path?: never;
|
|
118
|
+
cookie?: never;
|
|
119
|
+
};
|
|
120
|
+
/** Retrieve the current organization's dunning configuration */
|
|
121
|
+
get: operations["GetDunningConfiguration"];
|
|
122
|
+
put?: never;
|
|
123
|
+
/** Create the current organization's dunning configuration */
|
|
124
|
+
post: operations["CreateDunningConfiguration"];
|
|
125
|
+
delete?: never;
|
|
126
|
+
options?: never;
|
|
127
|
+
head?: never;
|
|
128
|
+
/** Update the current organization's dunning configuration */
|
|
129
|
+
patch: operations["UpdateDunningConfiguration"];
|
|
130
|
+
trace?: never;
|
|
131
|
+
};
|
|
113
132
|
"/external_accounts": {
|
|
114
133
|
parameters: {
|
|
115
134
|
query?: never;
|
|
@@ -1398,8 +1417,6 @@ export interface components {
|
|
|
1398
1417
|
/** Format: uuid */
|
|
1399
1418
|
processor_id?: string;
|
|
1400
1419
|
worldpay_mid?: string;
|
|
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
|
-
ach_threshold?: number;
|
|
1403
1420
|
/** Format: date-time */
|
|
1404
1421
|
created_at?: string;
|
|
1405
1422
|
/** Format: date-time */
|
|
@@ -1482,6 +1499,36 @@ export interface components {
|
|
|
1482
1499
|
/** Format: date-time */
|
|
1483
1500
|
updated_at?: string;
|
|
1484
1501
|
};
|
|
1502
|
+
/** @enum {string} */
|
|
1503
|
+
DunningConfigurationExhaustedActionType: "cancel" | "pause" | "none";
|
|
1504
|
+
CreateDunningConfigurationInput: {
|
|
1505
|
+
/** @description Days after a failed collection to retry, in ascending order. */
|
|
1506
|
+
retry_days: number[];
|
|
1507
|
+
exhausted_action?: components["schemas"]["DunningConfigurationExhaustedActionType"];
|
|
1508
|
+
enabled?: boolean;
|
|
1509
|
+
};
|
|
1510
|
+
CreateDunningConfigurationRequest: {
|
|
1511
|
+
dunning_configuration: components["schemas"]["CreateDunningConfigurationInput"];
|
|
1512
|
+
};
|
|
1513
|
+
UpdateDunningConfigurationInput: {
|
|
1514
|
+
retry_days?: number[];
|
|
1515
|
+
exhausted_action?: components["schemas"]["DunningConfigurationExhaustedActionType"];
|
|
1516
|
+
enabled?: boolean;
|
|
1517
|
+
};
|
|
1518
|
+
UpdateDunningConfigurationRequest: {
|
|
1519
|
+
dunning_configuration: components["schemas"]["UpdateDunningConfigurationInput"];
|
|
1520
|
+
};
|
|
1521
|
+
DunningConfiguration: {
|
|
1522
|
+
/** Format: uuid */
|
|
1523
|
+
id?: string;
|
|
1524
|
+
retry_days?: number[];
|
|
1525
|
+
exhausted_action?: components["schemas"]["DunningConfigurationExhaustedActionType"];
|
|
1526
|
+
enabled?: boolean;
|
|
1527
|
+
/** Format: date-time */
|
|
1528
|
+
created_at?: string;
|
|
1529
|
+
/** Format: date-time */
|
|
1530
|
+
updated_at?: string;
|
|
1531
|
+
};
|
|
1485
1532
|
CreateExternalAccountInput: {
|
|
1486
1533
|
metadata?: components["schemas"]["Metadata"];
|
|
1487
1534
|
external_billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
@@ -2092,8 +2139,6 @@ export interface components {
|
|
|
2092
2139
|
/** Format: uuid */
|
|
2093
2140
|
customer_id?: string;
|
|
2094
2141
|
description?: string;
|
|
2095
|
-
/** @description Null after a successful authorization, sale, or capture. */
|
|
2096
|
-
last_payment_error?: components["schemas"]["LastPaymentError"] | null;
|
|
2097
2142
|
metadata?: components["schemas"]["Metadata"];
|
|
2098
2143
|
recurring_payment?: components["schemas"]["RecurringPayment"];
|
|
2099
2144
|
/** Format: uuid */
|
|
@@ -2107,15 +2152,6 @@ export interface components {
|
|
|
2107
2152
|
/** Format: date-time */
|
|
2108
2153
|
updated_at?: string;
|
|
2109
2154
|
};
|
|
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
|
-
};
|
|
2119
2155
|
/** @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. */
|
|
2120
2156
|
RecurringPayment: {
|
|
2121
2157
|
/** @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. */
|
|
@@ -2980,6 +3016,119 @@ export interface operations {
|
|
|
2980
3016
|
};
|
|
2981
3017
|
};
|
|
2982
3018
|
};
|
|
3019
|
+
GetDunningConfiguration: {
|
|
3020
|
+
parameters: {
|
|
3021
|
+
query?: never;
|
|
3022
|
+
header?: never;
|
|
3023
|
+
path?: never;
|
|
3024
|
+
cookie?: never;
|
|
3025
|
+
};
|
|
3026
|
+
requestBody?: never;
|
|
3027
|
+
responses: {
|
|
3028
|
+
/** @description The organization's dunning configuration */
|
|
3029
|
+
200: {
|
|
3030
|
+
headers: {
|
|
3031
|
+
[name: string]: unknown;
|
|
3032
|
+
};
|
|
3033
|
+
content: {
|
|
3034
|
+
"application/json": components["schemas"]["DunningConfiguration"];
|
|
3035
|
+
};
|
|
3036
|
+
};
|
|
3037
|
+
/** @description Dunning configuration not found */
|
|
3038
|
+
404: {
|
|
3039
|
+
headers: {
|
|
3040
|
+
[name: string]: unknown;
|
|
3041
|
+
};
|
|
3042
|
+
content: {
|
|
3043
|
+
"application/json": components["schemas"]["Error"];
|
|
3044
|
+
};
|
|
3045
|
+
};
|
|
3046
|
+
};
|
|
3047
|
+
};
|
|
3048
|
+
CreateDunningConfiguration: {
|
|
3049
|
+
parameters: {
|
|
3050
|
+
query?: never;
|
|
3051
|
+
header?: never;
|
|
3052
|
+
path?: never;
|
|
3053
|
+
cookie?: never;
|
|
3054
|
+
};
|
|
3055
|
+
requestBody: {
|
|
3056
|
+
content: {
|
|
3057
|
+
"application/json": components["schemas"]["CreateDunningConfigurationRequest"];
|
|
3058
|
+
};
|
|
3059
|
+
};
|
|
3060
|
+
responses: {
|
|
3061
|
+
/** @description Dunning configuration created successfully */
|
|
3062
|
+
201: {
|
|
3063
|
+
headers: {
|
|
3064
|
+
[name: string]: unknown;
|
|
3065
|
+
};
|
|
3066
|
+
content: {
|
|
3067
|
+
"application/json": components["schemas"]["DunningConfiguration"];
|
|
3068
|
+
};
|
|
3069
|
+
};
|
|
3070
|
+
/** @description Dunning configuration already exists */
|
|
3071
|
+
409: {
|
|
3072
|
+
headers: {
|
|
3073
|
+
[name: string]: unknown;
|
|
3074
|
+
};
|
|
3075
|
+
content: {
|
|
3076
|
+
"application/json": components["schemas"]["Error"];
|
|
3077
|
+
};
|
|
3078
|
+
};
|
|
3079
|
+
/** @description Unprocessable entity */
|
|
3080
|
+
422: {
|
|
3081
|
+
headers: {
|
|
3082
|
+
[name: string]: unknown;
|
|
3083
|
+
};
|
|
3084
|
+
content: {
|
|
3085
|
+
"application/json": components["schemas"]["Error"];
|
|
3086
|
+
};
|
|
3087
|
+
};
|
|
3088
|
+
};
|
|
3089
|
+
};
|
|
3090
|
+
UpdateDunningConfiguration: {
|
|
3091
|
+
parameters: {
|
|
3092
|
+
query?: never;
|
|
3093
|
+
header?: never;
|
|
3094
|
+
path?: never;
|
|
3095
|
+
cookie?: never;
|
|
3096
|
+
};
|
|
3097
|
+
requestBody: {
|
|
3098
|
+
content: {
|
|
3099
|
+
"application/json": components["schemas"]["UpdateDunningConfigurationRequest"];
|
|
3100
|
+
};
|
|
3101
|
+
};
|
|
3102
|
+
responses: {
|
|
3103
|
+
/** @description Dunning configuration updated successfully */
|
|
3104
|
+
200: {
|
|
3105
|
+
headers: {
|
|
3106
|
+
[name: string]: unknown;
|
|
3107
|
+
};
|
|
3108
|
+
content: {
|
|
3109
|
+
"application/json": components["schemas"]["DunningConfiguration"];
|
|
3110
|
+
};
|
|
3111
|
+
};
|
|
3112
|
+
/** @description Dunning configuration not found */
|
|
3113
|
+
404: {
|
|
3114
|
+
headers: {
|
|
3115
|
+
[name: string]: unknown;
|
|
3116
|
+
};
|
|
3117
|
+
content: {
|
|
3118
|
+
"application/json": components["schemas"]["Error"];
|
|
3119
|
+
};
|
|
3120
|
+
};
|
|
3121
|
+
/** @description Unprocessable entity */
|
|
3122
|
+
422: {
|
|
3123
|
+
headers: {
|
|
3124
|
+
[name: string]: unknown;
|
|
3125
|
+
};
|
|
3126
|
+
content: {
|
|
3127
|
+
"application/json": components["schemas"]["Error"];
|
|
3128
|
+
};
|
|
3129
|
+
};
|
|
3130
|
+
};
|
|
3131
|
+
};
|
|
2983
3132
|
ListExternalAccounts: {
|
|
2984
3133
|
parameters: {
|
|
2985
3134
|
query?: {
|
|
@@ -5482,6 +5631,7 @@ export const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDeep
|
|
|
5482
5631
|
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"];
|
|
5483
5632
|
export const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]> = ["void", "refund"];
|
|
5484
5633
|
export const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]> = ["cancelled", "errored", "failed", "processing", "requires_capture", "requires_confirmation", "requires_review", "settlement_failed", "succeeded"];
|
|
5634
|
+
export const dunningConfigurationExhaustedActionTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["DunningConfigurationExhaustedActionType"]> = ["cancel", "pause", "none"];
|
|
5485
5635
|
export const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]> = ["external_card", "external_bank_account"];
|
|
5486
5636
|
export const legalEntityEntityTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityEntityType"]> = ["individual_sole_proprietorship", "corporation", "limited_liability_company", "partnership", "limited_partnership", "general_partnership", "tax_exempt_organization", "government_agency"];
|
|
5487
5637
|
export const legalEntityOwnershipTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityOwnershipType"]> = ["public", "private"];
|
|
@@ -5515,8 +5665,6 @@ export const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<compo
|
|
|
5515
5665
|
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"];
|
|
5516
5666
|
export const organizationKindValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Organization"]["kind"]> = ["direct", "payfac"];
|
|
5517
5667
|
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"];
|
|
5518
|
-
export const lastPaymentErrorTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LastPaymentError"]["type"]> = ["card_error", "processing_error"];
|
|
5519
|
-
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"];
|
|
5520
5668
|
export const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]> = ["charge", "refund", "void"];
|
|
5521
5669
|
export const processorTransactionTransaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["transaction_type"]> = ["authorization", "authorization_reversal", "capture", "credit", "echeck_credit", "echeck_sale", "echeck_void", "sale", "void"];
|
|
5522
5670
|
export const refundAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Refund"]["allowed_reverse_action"]> = ["void"];
|