@amos.com/node 0.1.56 → 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 -14
- package/dist/index.d.ts +164 -14
- 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 -13
- 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;
|
|
@@ -1480,6 +1499,36 @@ export interface components {
|
|
|
1480
1499
|
/** Format: date-time */
|
|
1481
1500
|
updated_at?: string;
|
|
1482
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
|
+
};
|
|
1483
1532
|
CreateExternalAccountInput: {
|
|
1484
1533
|
metadata?: components["schemas"]["Metadata"];
|
|
1485
1534
|
external_billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
@@ -2090,8 +2139,6 @@ export interface components {
|
|
|
2090
2139
|
/** Format: uuid */
|
|
2091
2140
|
customer_id?: string;
|
|
2092
2141
|
description?: string;
|
|
2093
|
-
/** @description Null after a successful authorization, sale, or capture. */
|
|
2094
|
-
last_payment_error?: components["schemas"]["LastPaymentError"] | null;
|
|
2095
2142
|
metadata?: components["schemas"]["Metadata"];
|
|
2096
2143
|
recurring_payment?: components["schemas"]["RecurringPayment"];
|
|
2097
2144
|
/** Format: uuid */
|
|
@@ -2105,15 +2152,6 @@ export interface components {
|
|
|
2105
2152
|
/** Format: date-time */
|
|
2106
2153
|
updated_at?: string;
|
|
2107
2154
|
};
|
|
2108
|
-
/** @description Canonical post-confirm payment failure. Present after a processor decline, processing exception, or missing vault credential. */
|
|
2109
|
-
LastPaymentError: {
|
|
2110
|
-
/** @enum {string} */
|
|
2111
|
-
type: "card_error" | "processing_error";
|
|
2112
|
-
/** @enum {string} */
|
|
2113
|
-
code: "incorrect_number" | "incorrect_cvc" | "incorrect_postal_code" | "incorrect_pin" | "expired_card" | "insufficient_funds" | "card_declined" | "authentication_failure" | "processing_error" | "vault_token_not_found";
|
|
2114
|
-
/** @description Localized, payer-facing explanation of the failure. */
|
|
2115
|
-
message: string;
|
|
2116
|
-
};
|
|
2117
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. */
|
|
2118
2156
|
RecurringPayment: {
|
|
2119
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. */
|
|
@@ -2978,6 +3016,119 @@ export interface operations {
|
|
|
2978
3016
|
};
|
|
2979
3017
|
};
|
|
2980
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
|
+
};
|
|
2981
3132
|
ListExternalAccounts: {
|
|
2982
3133
|
parameters: {
|
|
2983
3134
|
query?: {
|
|
@@ -5480,6 +5631,7 @@ export const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDeep
|
|
|
5480
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"];
|
|
5481
5632
|
export const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]> = ["void", "refund"];
|
|
5482
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"];
|
|
5483
5635
|
export const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]> = ["external_card", "external_bank_account"];
|
|
5484
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"];
|
|
5485
5637
|
export const legalEntityOwnershipTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityOwnershipType"]> = ["public", "private"];
|
|
@@ -5513,8 +5665,6 @@ export const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<compo
|
|
|
5513
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"];
|
|
5514
5666
|
export const organizationKindValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Organization"]["kind"]> = ["direct", "payfac"];
|
|
5515
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"];
|
|
5516
|
-
export const lastPaymentErrorTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LastPaymentError"]["type"]> = ["card_error", "processing_error"];
|
|
5517
|
-
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"];
|
|
5518
5668
|
export const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]> = ["charge", "refund", "void"];
|
|
5519
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"];
|
|
5520
5670
|
export const refundAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Refund"]["allowed_reverse_action"]> = ["void"];
|