@amos.com/node 0.1.56 → 0.1.58
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 +244 -14
- package/dist/index.d.ts +244 -14
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +243 -13
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -113,6 +113,25 @@ interface paths {
|
|
|
113
113
|
patch?: never;
|
|
114
114
|
trace?: never;
|
|
115
115
|
};
|
|
116
|
+
"/dunning_configuration": {
|
|
117
|
+
parameters: {
|
|
118
|
+
query?: never;
|
|
119
|
+
header?: never;
|
|
120
|
+
path?: never;
|
|
121
|
+
cookie?: never;
|
|
122
|
+
};
|
|
123
|
+
/** Retrieve the current organization's dunning configuration */
|
|
124
|
+
get: operations["GetDunningConfiguration"];
|
|
125
|
+
put?: never;
|
|
126
|
+
/** Create the current organization's dunning configuration */
|
|
127
|
+
post: operations["CreateDunningConfiguration"];
|
|
128
|
+
delete?: never;
|
|
129
|
+
options?: never;
|
|
130
|
+
head?: never;
|
|
131
|
+
/** Update the current organization's dunning configuration */
|
|
132
|
+
patch: operations["UpdateDunningConfiguration"];
|
|
133
|
+
trace?: never;
|
|
134
|
+
};
|
|
116
135
|
"/external_accounts": {
|
|
117
136
|
parameters: {
|
|
118
137
|
query?: never;
|
|
@@ -491,6 +510,26 @@ interface paths {
|
|
|
491
510
|
patch?: never;
|
|
492
511
|
trace?: never;
|
|
493
512
|
};
|
|
513
|
+
"/origins/{id}": {
|
|
514
|
+
parameters: {
|
|
515
|
+
query?: never;
|
|
516
|
+
header?: never;
|
|
517
|
+
path?: never;
|
|
518
|
+
cookie?: never;
|
|
519
|
+
};
|
|
520
|
+
get?: never;
|
|
521
|
+
put?: never;
|
|
522
|
+
post?: never;
|
|
523
|
+
/**
|
|
524
|
+
* Delete an origin by ID
|
|
525
|
+
* @description Unregisters the origin host with Apple Pay when it is registered, then deletes the origin. Returns 409 if a render template still uses it. Does not delete the origin if Apple Pay unregistration fails.
|
|
526
|
+
*/
|
|
527
|
+
delete: operations["DeleteOrigin"];
|
|
528
|
+
options?: never;
|
|
529
|
+
head?: never;
|
|
530
|
+
patch?: never;
|
|
531
|
+
trace?: never;
|
|
532
|
+
};
|
|
494
533
|
"/embed/payment_intents/{id}": {
|
|
495
534
|
parameters: {
|
|
496
535
|
query?: never;
|
|
@@ -1483,6 +1522,36 @@ interface components {
|
|
|
1483
1522
|
/** Format: date-time */
|
|
1484
1523
|
updated_at?: string;
|
|
1485
1524
|
};
|
|
1525
|
+
/** @enum {string} */
|
|
1526
|
+
DunningConfigurationExhaustedActionType: "cancel" | "pause" | "none";
|
|
1527
|
+
CreateDunningConfigurationInput: {
|
|
1528
|
+
/** @description Days after a failed collection to retry, in ascending order. */
|
|
1529
|
+
retry_days: number[];
|
|
1530
|
+
exhausted_action?: components["schemas"]["DunningConfigurationExhaustedActionType"];
|
|
1531
|
+
enabled?: boolean;
|
|
1532
|
+
};
|
|
1533
|
+
CreateDunningConfigurationRequest: {
|
|
1534
|
+
dunning_configuration: components["schemas"]["CreateDunningConfigurationInput"];
|
|
1535
|
+
};
|
|
1536
|
+
UpdateDunningConfigurationInput: {
|
|
1537
|
+
retry_days?: number[];
|
|
1538
|
+
exhausted_action?: components["schemas"]["DunningConfigurationExhaustedActionType"];
|
|
1539
|
+
enabled?: boolean;
|
|
1540
|
+
};
|
|
1541
|
+
UpdateDunningConfigurationRequest: {
|
|
1542
|
+
dunning_configuration: components["schemas"]["UpdateDunningConfigurationInput"];
|
|
1543
|
+
};
|
|
1544
|
+
DunningConfiguration: {
|
|
1545
|
+
/** Format: uuid */
|
|
1546
|
+
id?: string;
|
|
1547
|
+
retry_days?: number[];
|
|
1548
|
+
exhausted_action?: components["schemas"]["DunningConfigurationExhaustedActionType"];
|
|
1549
|
+
enabled?: boolean;
|
|
1550
|
+
/** Format: date-time */
|
|
1551
|
+
created_at?: string;
|
|
1552
|
+
/** Format: date-time */
|
|
1553
|
+
updated_at?: string;
|
|
1554
|
+
};
|
|
1486
1555
|
CreateExternalAccountInput: {
|
|
1487
1556
|
metadata?: components["schemas"]["Metadata"];
|
|
1488
1557
|
external_billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
@@ -2037,10 +2106,21 @@ interface components {
|
|
|
2037
2106
|
CreateOriginRequest: {
|
|
2038
2107
|
origin: components["schemas"]["CreateOriginInput"];
|
|
2039
2108
|
};
|
|
2109
|
+
/** @enum {string} */
|
|
2110
|
+
OriginApplepayRegistrationStateType: "pending" | "skipped" | "registered" | "failed";
|
|
2040
2111
|
Origin: {
|
|
2041
2112
|
/** Format: uuid */
|
|
2042
2113
|
id?: string;
|
|
2043
2114
|
value?: string;
|
|
2115
|
+
/** @description Apple Pay merchant-domain registration status for this origin host. Null until registration is enabled. */
|
|
2116
|
+
applepay_registration_state?: components["schemas"]["OriginApplepayRegistrationStateType"] | null;
|
|
2117
|
+
/** @description Last Apple Pay registration or unregistration error, if any */
|
|
2118
|
+
applepay_registration_error?: string | null;
|
|
2119
|
+
/**
|
|
2120
|
+
* Format: date-time
|
|
2121
|
+
* @description When this origin host was last registered with Apple Pay
|
|
2122
|
+
*/
|
|
2123
|
+
applepay_registered_at?: string | null;
|
|
2044
2124
|
/** Format: date-time */
|
|
2045
2125
|
created_at?: string;
|
|
2046
2126
|
/** Format: date-time */
|
|
@@ -2093,8 +2173,6 @@ interface components {
|
|
|
2093
2173
|
/** Format: uuid */
|
|
2094
2174
|
customer_id?: string;
|
|
2095
2175
|
description?: string;
|
|
2096
|
-
/** @description Null after a successful authorization, sale, or capture. */
|
|
2097
|
-
last_payment_error?: components["schemas"]["LastPaymentError"] | null;
|
|
2098
2176
|
metadata?: components["schemas"]["Metadata"];
|
|
2099
2177
|
recurring_payment?: components["schemas"]["RecurringPayment"];
|
|
2100
2178
|
/** Format: uuid */
|
|
@@ -2108,15 +2186,6 @@ interface components {
|
|
|
2108
2186
|
/** Format: date-time */
|
|
2109
2187
|
updated_at?: string;
|
|
2110
2188
|
};
|
|
2111
|
-
/** @description Canonical post-confirm payment failure. Present after a processor decline, processing exception, or missing vault credential. */
|
|
2112
|
-
LastPaymentError: {
|
|
2113
|
-
/** @enum {string} */
|
|
2114
|
-
type: "card_error" | "processing_error";
|
|
2115
|
-
/** @enum {string} */
|
|
2116
|
-
code: "incorrect_number" | "incorrect_cvc" | "incorrect_postal_code" | "incorrect_pin" | "expired_card" | "insufficient_funds" | "card_declined" | "authentication_failure" | "processing_error" | "vault_token_not_found";
|
|
2117
|
-
/** @description Localized, payer-facing explanation of the failure. */
|
|
2118
|
-
message: string;
|
|
2119
|
-
};
|
|
2120
2189
|
/** @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. */
|
|
2121
2190
|
RecurringPayment: {
|
|
2122
2191
|
/** @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. */
|
|
@@ -2981,6 +3050,119 @@ interface operations {
|
|
|
2981
3050
|
};
|
|
2982
3051
|
};
|
|
2983
3052
|
};
|
|
3053
|
+
GetDunningConfiguration: {
|
|
3054
|
+
parameters: {
|
|
3055
|
+
query?: never;
|
|
3056
|
+
header?: never;
|
|
3057
|
+
path?: never;
|
|
3058
|
+
cookie?: never;
|
|
3059
|
+
};
|
|
3060
|
+
requestBody?: never;
|
|
3061
|
+
responses: {
|
|
3062
|
+
/** @description The organization's dunning configuration */
|
|
3063
|
+
200: {
|
|
3064
|
+
headers: {
|
|
3065
|
+
[name: string]: unknown;
|
|
3066
|
+
};
|
|
3067
|
+
content: {
|
|
3068
|
+
"application/json": components["schemas"]["DunningConfiguration"];
|
|
3069
|
+
};
|
|
3070
|
+
};
|
|
3071
|
+
/** @description Dunning configuration not found */
|
|
3072
|
+
404: {
|
|
3073
|
+
headers: {
|
|
3074
|
+
[name: string]: unknown;
|
|
3075
|
+
};
|
|
3076
|
+
content: {
|
|
3077
|
+
"application/json": components["schemas"]["Error"];
|
|
3078
|
+
};
|
|
3079
|
+
};
|
|
3080
|
+
};
|
|
3081
|
+
};
|
|
3082
|
+
CreateDunningConfiguration: {
|
|
3083
|
+
parameters: {
|
|
3084
|
+
query?: never;
|
|
3085
|
+
header?: never;
|
|
3086
|
+
path?: never;
|
|
3087
|
+
cookie?: never;
|
|
3088
|
+
};
|
|
3089
|
+
requestBody: {
|
|
3090
|
+
content: {
|
|
3091
|
+
"application/json": components["schemas"]["CreateDunningConfigurationRequest"];
|
|
3092
|
+
};
|
|
3093
|
+
};
|
|
3094
|
+
responses: {
|
|
3095
|
+
/** @description Dunning configuration created successfully */
|
|
3096
|
+
201: {
|
|
3097
|
+
headers: {
|
|
3098
|
+
[name: string]: unknown;
|
|
3099
|
+
};
|
|
3100
|
+
content: {
|
|
3101
|
+
"application/json": components["schemas"]["DunningConfiguration"];
|
|
3102
|
+
};
|
|
3103
|
+
};
|
|
3104
|
+
/** @description Dunning configuration already exists */
|
|
3105
|
+
409: {
|
|
3106
|
+
headers: {
|
|
3107
|
+
[name: string]: unknown;
|
|
3108
|
+
};
|
|
3109
|
+
content: {
|
|
3110
|
+
"application/json": components["schemas"]["Error"];
|
|
3111
|
+
};
|
|
3112
|
+
};
|
|
3113
|
+
/** @description Unprocessable entity */
|
|
3114
|
+
422: {
|
|
3115
|
+
headers: {
|
|
3116
|
+
[name: string]: unknown;
|
|
3117
|
+
};
|
|
3118
|
+
content: {
|
|
3119
|
+
"application/json": components["schemas"]["Error"];
|
|
3120
|
+
};
|
|
3121
|
+
};
|
|
3122
|
+
};
|
|
3123
|
+
};
|
|
3124
|
+
UpdateDunningConfiguration: {
|
|
3125
|
+
parameters: {
|
|
3126
|
+
query?: never;
|
|
3127
|
+
header?: never;
|
|
3128
|
+
path?: never;
|
|
3129
|
+
cookie?: never;
|
|
3130
|
+
};
|
|
3131
|
+
requestBody: {
|
|
3132
|
+
content: {
|
|
3133
|
+
"application/json": components["schemas"]["UpdateDunningConfigurationRequest"];
|
|
3134
|
+
};
|
|
3135
|
+
};
|
|
3136
|
+
responses: {
|
|
3137
|
+
/** @description Dunning configuration updated successfully */
|
|
3138
|
+
200: {
|
|
3139
|
+
headers: {
|
|
3140
|
+
[name: string]: unknown;
|
|
3141
|
+
};
|
|
3142
|
+
content: {
|
|
3143
|
+
"application/json": components["schemas"]["DunningConfiguration"];
|
|
3144
|
+
};
|
|
3145
|
+
};
|
|
3146
|
+
/** @description Dunning configuration not found */
|
|
3147
|
+
404: {
|
|
3148
|
+
headers: {
|
|
3149
|
+
[name: string]: unknown;
|
|
3150
|
+
};
|
|
3151
|
+
content: {
|
|
3152
|
+
"application/json": components["schemas"]["Error"];
|
|
3153
|
+
};
|
|
3154
|
+
};
|
|
3155
|
+
/** @description Unprocessable entity */
|
|
3156
|
+
422: {
|
|
3157
|
+
headers: {
|
|
3158
|
+
[name: string]: unknown;
|
|
3159
|
+
};
|
|
3160
|
+
content: {
|
|
3161
|
+
"application/json": components["schemas"]["Error"];
|
|
3162
|
+
};
|
|
3163
|
+
};
|
|
3164
|
+
};
|
|
3165
|
+
};
|
|
2984
3166
|
ListExternalAccounts: {
|
|
2985
3167
|
parameters: {
|
|
2986
3168
|
query?: {
|
|
@@ -3730,6 +3912,54 @@ interface operations {
|
|
|
3730
3912
|
};
|
|
3731
3913
|
};
|
|
3732
3914
|
};
|
|
3915
|
+
DeleteOrigin: {
|
|
3916
|
+
parameters: {
|
|
3917
|
+
query?: never;
|
|
3918
|
+
header?: never;
|
|
3919
|
+
path: {
|
|
3920
|
+
/** @description The ID of the origin to delete */
|
|
3921
|
+
id: string;
|
|
3922
|
+
};
|
|
3923
|
+
cookie?: never;
|
|
3924
|
+
};
|
|
3925
|
+
requestBody?: never;
|
|
3926
|
+
responses: {
|
|
3927
|
+
/** @description Origin deleted successfully */
|
|
3928
|
+
204: {
|
|
3929
|
+
headers: {
|
|
3930
|
+
[name: string]: unknown;
|
|
3931
|
+
};
|
|
3932
|
+
content?: never;
|
|
3933
|
+
};
|
|
3934
|
+
/** @description Origin not found */
|
|
3935
|
+
404: {
|
|
3936
|
+
headers: {
|
|
3937
|
+
[name: string]: unknown;
|
|
3938
|
+
};
|
|
3939
|
+
content: {
|
|
3940
|
+
"application/json": components["schemas"]["Error"];
|
|
3941
|
+
};
|
|
3942
|
+
};
|
|
3943
|
+
/** @description Origin is in use by a render template */
|
|
3944
|
+
409: {
|
|
3945
|
+
headers: {
|
|
3946
|
+
[name: string]: unknown;
|
|
3947
|
+
};
|
|
3948
|
+
content: {
|
|
3949
|
+
"application/json": components["schemas"]["Error"];
|
|
3950
|
+
};
|
|
3951
|
+
};
|
|
3952
|
+
/** @description Apple Pay unregister failed; the origin was not deleted */
|
|
3953
|
+
422: {
|
|
3954
|
+
headers: {
|
|
3955
|
+
[name: string]: unknown;
|
|
3956
|
+
};
|
|
3957
|
+
content: {
|
|
3958
|
+
"application/json": components["schemas"]["Error"];
|
|
3959
|
+
};
|
|
3960
|
+
};
|
|
3961
|
+
};
|
|
3962
|
+
};
|
|
3733
3963
|
GetEmbedPaymentIntent: {
|
|
3734
3964
|
parameters: {
|
|
3735
3965
|
query?: never;
|
|
@@ -5483,6 +5713,7 @@ declare const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDee
|
|
|
5483
5713
|
declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["CardProfile"]["failure_reason"]>;
|
|
5484
5714
|
declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
|
|
5485
5715
|
declare const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]>;
|
|
5716
|
+
declare const dunningConfigurationExhaustedActionTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["DunningConfigurationExhaustedActionType"]>;
|
|
5486
5717
|
declare const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]>;
|
|
5487
5718
|
declare const legalEntityEntityTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityEntityType"]>;
|
|
5488
5719
|
declare const legalEntityOwnershipTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityOwnershipType"]>;
|
|
@@ -5515,9 +5746,8 @@ declare const transactionSourceTypeValues: ReadonlyArray<FlattenedDeepRequired<c
|
|
|
5515
5746
|
declare const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WalletProviderType"]>;
|
|
5516
5747
|
declare const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WebhookEventType"]>;
|
|
5517
5748
|
declare const organizationKindValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Organization"]["kind"]>;
|
|
5749
|
+
declare const originApplepayRegistrationStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["OriginApplepayRegistrationStateType"]>;
|
|
5518
5750
|
declare const paymentIntentStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntent"]["state"]>;
|
|
5519
|
-
declare const lastPaymentErrorTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LastPaymentError"]["type"]>;
|
|
5520
|
-
declare const lastPaymentErrorCodeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LastPaymentError"]["code"]>;
|
|
5521
5751
|
declare const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]>;
|
|
5522
5752
|
declare const processorTransactionTransaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["transaction_type"]>;
|
|
5523
5753
|
declare const refundAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Refund"]["allowed_reverse_action"]>;
|
|
@@ -5563,4 +5793,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
5563
5793
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
5564
5794
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
5565
5795
|
|
|
5566
|
-
export { type $defs, AMOS_API_BASE_URL_PRODUCTION, AMOS_API_BASE_URL_SANDBOX, AMOS_API_VERSION, type PayApiClient, 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,
|
|
5796
|
+
export { type $defs, AMOS_API_BASE_URL_PRODUCTION, AMOS_API_BASE_URL_SANDBOX, AMOS_API_VERSION, type PayApiClient, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, dunningConfigurationExhaustedActionTypeValues, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, internationalBillingAddressOptionsModeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, organizationKindValues, originApplepayRegistrationStateTypeValues, type paths, 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
|
@@ -113,6 +113,25 @@ interface paths {
|
|
|
113
113
|
patch?: never;
|
|
114
114
|
trace?: never;
|
|
115
115
|
};
|
|
116
|
+
"/dunning_configuration": {
|
|
117
|
+
parameters: {
|
|
118
|
+
query?: never;
|
|
119
|
+
header?: never;
|
|
120
|
+
path?: never;
|
|
121
|
+
cookie?: never;
|
|
122
|
+
};
|
|
123
|
+
/** Retrieve the current organization's dunning configuration */
|
|
124
|
+
get: operations["GetDunningConfiguration"];
|
|
125
|
+
put?: never;
|
|
126
|
+
/** Create the current organization's dunning configuration */
|
|
127
|
+
post: operations["CreateDunningConfiguration"];
|
|
128
|
+
delete?: never;
|
|
129
|
+
options?: never;
|
|
130
|
+
head?: never;
|
|
131
|
+
/** Update the current organization's dunning configuration */
|
|
132
|
+
patch: operations["UpdateDunningConfiguration"];
|
|
133
|
+
trace?: never;
|
|
134
|
+
};
|
|
116
135
|
"/external_accounts": {
|
|
117
136
|
parameters: {
|
|
118
137
|
query?: never;
|
|
@@ -491,6 +510,26 @@ interface paths {
|
|
|
491
510
|
patch?: never;
|
|
492
511
|
trace?: never;
|
|
493
512
|
};
|
|
513
|
+
"/origins/{id}": {
|
|
514
|
+
parameters: {
|
|
515
|
+
query?: never;
|
|
516
|
+
header?: never;
|
|
517
|
+
path?: never;
|
|
518
|
+
cookie?: never;
|
|
519
|
+
};
|
|
520
|
+
get?: never;
|
|
521
|
+
put?: never;
|
|
522
|
+
post?: never;
|
|
523
|
+
/**
|
|
524
|
+
* Delete an origin by ID
|
|
525
|
+
* @description Unregisters the origin host with Apple Pay when it is registered, then deletes the origin. Returns 409 if a render template still uses it. Does not delete the origin if Apple Pay unregistration fails.
|
|
526
|
+
*/
|
|
527
|
+
delete: operations["DeleteOrigin"];
|
|
528
|
+
options?: never;
|
|
529
|
+
head?: never;
|
|
530
|
+
patch?: never;
|
|
531
|
+
trace?: never;
|
|
532
|
+
};
|
|
494
533
|
"/embed/payment_intents/{id}": {
|
|
495
534
|
parameters: {
|
|
496
535
|
query?: never;
|
|
@@ -1483,6 +1522,36 @@ interface components {
|
|
|
1483
1522
|
/** Format: date-time */
|
|
1484
1523
|
updated_at?: string;
|
|
1485
1524
|
};
|
|
1525
|
+
/** @enum {string} */
|
|
1526
|
+
DunningConfigurationExhaustedActionType: "cancel" | "pause" | "none";
|
|
1527
|
+
CreateDunningConfigurationInput: {
|
|
1528
|
+
/** @description Days after a failed collection to retry, in ascending order. */
|
|
1529
|
+
retry_days: number[];
|
|
1530
|
+
exhausted_action?: components["schemas"]["DunningConfigurationExhaustedActionType"];
|
|
1531
|
+
enabled?: boolean;
|
|
1532
|
+
};
|
|
1533
|
+
CreateDunningConfigurationRequest: {
|
|
1534
|
+
dunning_configuration: components["schemas"]["CreateDunningConfigurationInput"];
|
|
1535
|
+
};
|
|
1536
|
+
UpdateDunningConfigurationInput: {
|
|
1537
|
+
retry_days?: number[];
|
|
1538
|
+
exhausted_action?: components["schemas"]["DunningConfigurationExhaustedActionType"];
|
|
1539
|
+
enabled?: boolean;
|
|
1540
|
+
};
|
|
1541
|
+
UpdateDunningConfigurationRequest: {
|
|
1542
|
+
dunning_configuration: components["schemas"]["UpdateDunningConfigurationInput"];
|
|
1543
|
+
};
|
|
1544
|
+
DunningConfiguration: {
|
|
1545
|
+
/** Format: uuid */
|
|
1546
|
+
id?: string;
|
|
1547
|
+
retry_days?: number[];
|
|
1548
|
+
exhausted_action?: components["schemas"]["DunningConfigurationExhaustedActionType"];
|
|
1549
|
+
enabled?: boolean;
|
|
1550
|
+
/** Format: date-time */
|
|
1551
|
+
created_at?: string;
|
|
1552
|
+
/** Format: date-time */
|
|
1553
|
+
updated_at?: string;
|
|
1554
|
+
};
|
|
1486
1555
|
CreateExternalAccountInput: {
|
|
1487
1556
|
metadata?: components["schemas"]["Metadata"];
|
|
1488
1557
|
external_billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
@@ -2037,10 +2106,21 @@ interface components {
|
|
|
2037
2106
|
CreateOriginRequest: {
|
|
2038
2107
|
origin: components["schemas"]["CreateOriginInput"];
|
|
2039
2108
|
};
|
|
2109
|
+
/** @enum {string} */
|
|
2110
|
+
OriginApplepayRegistrationStateType: "pending" | "skipped" | "registered" | "failed";
|
|
2040
2111
|
Origin: {
|
|
2041
2112
|
/** Format: uuid */
|
|
2042
2113
|
id?: string;
|
|
2043
2114
|
value?: string;
|
|
2115
|
+
/** @description Apple Pay merchant-domain registration status for this origin host. Null until registration is enabled. */
|
|
2116
|
+
applepay_registration_state?: components["schemas"]["OriginApplepayRegistrationStateType"] | null;
|
|
2117
|
+
/** @description Last Apple Pay registration or unregistration error, if any */
|
|
2118
|
+
applepay_registration_error?: string | null;
|
|
2119
|
+
/**
|
|
2120
|
+
* Format: date-time
|
|
2121
|
+
* @description When this origin host was last registered with Apple Pay
|
|
2122
|
+
*/
|
|
2123
|
+
applepay_registered_at?: string | null;
|
|
2044
2124
|
/** Format: date-time */
|
|
2045
2125
|
created_at?: string;
|
|
2046
2126
|
/** Format: date-time */
|
|
@@ -2093,8 +2173,6 @@ interface components {
|
|
|
2093
2173
|
/** Format: uuid */
|
|
2094
2174
|
customer_id?: string;
|
|
2095
2175
|
description?: string;
|
|
2096
|
-
/** @description Null after a successful authorization, sale, or capture. */
|
|
2097
|
-
last_payment_error?: components["schemas"]["LastPaymentError"] | null;
|
|
2098
2176
|
metadata?: components["schemas"]["Metadata"];
|
|
2099
2177
|
recurring_payment?: components["schemas"]["RecurringPayment"];
|
|
2100
2178
|
/** Format: uuid */
|
|
@@ -2108,15 +2186,6 @@ interface components {
|
|
|
2108
2186
|
/** Format: date-time */
|
|
2109
2187
|
updated_at?: string;
|
|
2110
2188
|
};
|
|
2111
|
-
/** @description Canonical post-confirm payment failure. Present after a processor decline, processing exception, or missing vault credential. */
|
|
2112
|
-
LastPaymentError: {
|
|
2113
|
-
/** @enum {string} */
|
|
2114
|
-
type: "card_error" | "processing_error";
|
|
2115
|
-
/** @enum {string} */
|
|
2116
|
-
code: "incorrect_number" | "incorrect_cvc" | "incorrect_postal_code" | "incorrect_pin" | "expired_card" | "insufficient_funds" | "card_declined" | "authentication_failure" | "processing_error" | "vault_token_not_found";
|
|
2117
|
-
/** @description Localized, payer-facing explanation of the failure. */
|
|
2118
|
-
message: string;
|
|
2119
|
-
};
|
|
2120
2189
|
/** @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. */
|
|
2121
2190
|
RecurringPayment: {
|
|
2122
2191
|
/** @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. */
|
|
@@ -2981,6 +3050,119 @@ interface operations {
|
|
|
2981
3050
|
};
|
|
2982
3051
|
};
|
|
2983
3052
|
};
|
|
3053
|
+
GetDunningConfiguration: {
|
|
3054
|
+
parameters: {
|
|
3055
|
+
query?: never;
|
|
3056
|
+
header?: never;
|
|
3057
|
+
path?: never;
|
|
3058
|
+
cookie?: never;
|
|
3059
|
+
};
|
|
3060
|
+
requestBody?: never;
|
|
3061
|
+
responses: {
|
|
3062
|
+
/** @description The organization's dunning configuration */
|
|
3063
|
+
200: {
|
|
3064
|
+
headers: {
|
|
3065
|
+
[name: string]: unknown;
|
|
3066
|
+
};
|
|
3067
|
+
content: {
|
|
3068
|
+
"application/json": components["schemas"]["DunningConfiguration"];
|
|
3069
|
+
};
|
|
3070
|
+
};
|
|
3071
|
+
/** @description Dunning configuration not found */
|
|
3072
|
+
404: {
|
|
3073
|
+
headers: {
|
|
3074
|
+
[name: string]: unknown;
|
|
3075
|
+
};
|
|
3076
|
+
content: {
|
|
3077
|
+
"application/json": components["schemas"]["Error"];
|
|
3078
|
+
};
|
|
3079
|
+
};
|
|
3080
|
+
};
|
|
3081
|
+
};
|
|
3082
|
+
CreateDunningConfiguration: {
|
|
3083
|
+
parameters: {
|
|
3084
|
+
query?: never;
|
|
3085
|
+
header?: never;
|
|
3086
|
+
path?: never;
|
|
3087
|
+
cookie?: never;
|
|
3088
|
+
};
|
|
3089
|
+
requestBody: {
|
|
3090
|
+
content: {
|
|
3091
|
+
"application/json": components["schemas"]["CreateDunningConfigurationRequest"];
|
|
3092
|
+
};
|
|
3093
|
+
};
|
|
3094
|
+
responses: {
|
|
3095
|
+
/** @description Dunning configuration created successfully */
|
|
3096
|
+
201: {
|
|
3097
|
+
headers: {
|
|
3098
|
+
[name: string]: unknown;
|
|
3099
|
+
};
|
|
3100
|
+
content: {
|
|
3101
|
+
"application/json": components["schemas"]["DunningConfiguration"];
|
|
3102
|
+
};
|
|
3103
|
+
};
|
|
3104
|
+
/** @description Dunning configuration already exists */
|
|
3105
|
+
409: {
|
|
3106
|
+
headers: {
|
|
3107
|
+
[name: string]: unknown;
|
|
3108
|
+
};
|
|
3109
|
+
content: {
|
|
3110
|
+
"application/json": components["schemas"]["Error"];
|
|
3111
|
+
};
|
|
3112
|
+
};
|
|
3113
|
+
/** @description Unprocessable entity */
|
|
3114
|
+
422: {
|
|
3115
|
+
headers: {
|
|
3116
|
+
[name: string]: unknown;
|
|
3117
|
+
};
|
|
3118
|
+
content: {
|
|
3119
|
+
"application/json": components["schemas"]["Error"];
|
|
3120
|
+
};
|
|
3121
|
+
};
|
|
3122
|
+
};
|
|
3123
|
+
};
|
|
3124
|
+
UpdateDunningConfiguration: {
|
|
3125
|
+
parameters: {
|
|
3126
|
+
query?: never;
|
|
3127
|
+
header?: never;
|
|
3128
|
+
path?: never;
|
|
3129
|
+
cookie?: never;
|
|
3130
|
+
};
|
|
3131
|
+
requestBody: {
|
|
3132
|
+
content: {
|
|
3133
|
+
"application/json": components["schemas"]["UpdateDunningConfigurationRequest"];
|
|
3134
|
+
};
|
|
3135
|
+
};
|
|
3136
|
+
responses: {
|
|
3137
|
+
/** @description Dunning configuration updated successfully */
|
|
3138
|
+
200: {
|
|
3139
|
+
headers: {
|
|
3140
|
+
[name: string]: unknown;
|
|
3141
|
+
};
|
|
3142
|
+
content: {
|
|
3143
|
+
"application/json": components["schemas"]["DunningConfiguration"];
|
|
3144
|
+
};
|
|
3145
|
+
};
|
|
3146
|
+
/** @description Dunning configuration not found */
|
|
3147
|
+
404: {
|
|
3148
|
+
headers: {
|
|
3149
|
+
[name: string]: unknown;
|
|
3150
|
+
};
|
|
3151
|
+
content: {
|
|
3152
|
+
"application/json": components["schemas"]["Error"];
|
|
3153
|
+
};
|
|
3154
|
+
};
|
|
3155
|
+
/** @description Unprocessable entity */
|
|
3156
|
+
422: {
|
|
3157
|
+
headers: {
|
|
3158
|
+
[name: string]: unknown;
|
|
3159
|
+
};
|
|
3160
|
+
content: {
|
|
3161
|
+
"application/json": components["schemas"]["Error"];
|
|
3162
|
+
};
|
|
3163
|
+
};
|
|
3164
|
+
};
|
|
3165
|
+
};
|
|
2984
3166
|
ListExternalAccounts: {
|
|
2985
3167
|
parameters: {
|
|
2986
3168
|
query?: {
|
|
@@ -3730,6 +3912,54 @@ interface operations {
|
|
|
3730
3912
|
};
|
|
3731
3913
|
};
|
|
3732
3914
|
};
|
|
3915
|
+
DeleteOrigin: {
|
|
3916
|
+
parameters: {
|
|
3917
|
+
query?: never;
|
|
3918
|
+
header?: never;
|
|
3919
|
+
path: {
|
|
3920
|
+
/** @description The ID of the origin to delete */
|
|
3921
|
+
id: string;
|
|
3922
|
+
};
|
|
3923
|
+
cookie?: never;
|
|
3924
|
+
};
|
|
3925
|
+
requestBody?: never;
|
|
3926
|
+
responses: {
|
|
3927
|
+
/** @description Origin deleted successfully */
|
|
3928
|
+
204: {
|
|
3929
|
+
headers: {
|
|
3930
|
+
[name: string]: unknown;
|
|
3931
|
+
};
|
|
3932
|
+
content?: never;
|
|
3933
|
+
};
|
|
3934
|
+
/** @description Origin not found */
|
|
3935
|
+
404: {
|
|
3936
|
+
headers: {
|
|
3937
|
+
[name: string]: unknown;
|
|
3938
|
+
};
|
|
3939
|
+
content: {
|
|
3940
|
+
"application/json": components["schemas"]["Error"];
|
|
3941
|
+
};
|
|
3942
|
+
};
|
|
3943
|
+
/** @description Origin is in use by a render template */
|
|
3944
|
+
409: {
|
|
3945
|
+
headers: {
|
|
3946
|
+
[name: string]: unknown;
|
|
3947
|
+
};
|
|
3948
|
+
content: {
|
|
3949
|
+
"application/json": components["schemas"]["Error"];
|
|
3950
|
+
};
|
|
3951
|
+
};
|
|
3952
|
+
/** @description Apple Pay unregister failed; the origin was not deleted */
|
|
3953
|
+
422: {
|
|
3954
|
+
headers: {
|
|
3955
|
+
[name: string]: unknown;
|
|
3956
|
+
};
|
|
3957
|
+
content: {
|
|
3958
|
+
"application/json": components["schemas"]["Error"];
|
|
3959
|
+
};
|
|
3960
|
+
};
|
|
3961
|
+
};
|
|
3962
|
+
};
|
|
3733
3963
|
GetEmbedPaymentIntent: {
|
|
3734
3964
|
parameters: {
|
|
3735
3965
|
query?: never;
|
|
@@ -5483,6 +5713,7 @@ declare const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDee
|
|
|
5483
5713
|
declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["CardProfile"]["failure_reason"]>;
|
|
5484
5714
|
declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
|
|
5485
5715
|
declare const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]>;
|
|
5716
|
+
declare const dunningConfigurationExhaustedActionTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["DunningConfigurationExhaustedActionType"]>;
|
|
5486
5717
|
declare const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]>;
|
|
5487
5718
|
declare const legalEntityEntityTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityEntityType"]>;
|
|
5488
5719
|
declare const legalEntityOwnershipTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityOwnershipType"]>;
|
|
@@ -5515,9 +5746,8 @@ declare const transactionSourceTypeValues: ReadonlyArray<FlattenedDeepRequired<c
|
|
|
5515
5746
|
declare const walletProviderTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WalletProviderType"]>;
|
|
5516
5747
|
declare const webhookEventTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["WebhookEventType"]>;
|
|
5517
5748
|
declare const organizationKindValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Organization"]["kind"]>;
|
|
5749
|
+
declare const originApplepayRegistrationStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["OriginApplepayRegistrationStateType"]>;
|
|
5518
5750
|
declare const paymentIntentStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntent"]["state"]>;
|
|
5519
|
-
declare const lastPaymentErrorTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LastPaymentError"]["type"]>;
|
|
5520
|
-
declare const lastPaymentErrorCodeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LastPaymentError"]["code"]>;
|
|
5521
5751
|
declare const processorTransactionPayment_transaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["payment_transaction_type"]>;
|
|
5522
5752
|
declare const processorTransactionTransaction_typeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ProcessorTransaction"]["transaction_type"]>;
|
|
5523
5753
|
declare const refundAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Refund"]["allowed_reverse_action"]>;
|
|
@@ -5563,4 +5793,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
|
|
|
5563
5793
|
/** A configured Amos Pay API client returned by {@link createPayApiClient}. */
|
|
5564
5794
|
type PayApiClient = ReturnType<typeof createPayApiClient>;
|
|
5565
5795
|
|
|
5566
|
-
export { type $defs, AMOS_API_BASE_URL_PRODUCTION, AMOS_API_BASE_URL_SANDBOX, AMOS_API_VERSION, type PayApiClient, 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,
|
|
5796
|
+
export { type $defs, AMOS_API_BASE_URL_PRODUCTION, AMOS_API_BASE_URL_SANDBOX, AMOS_API_VERSION, type PayApiClient, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, dunningConfigurationExhaustedActionTypeValues, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, internationalBillingAddressOptionsModeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, organizationKindValues, originApplepayRegistrationStateTypeValues, type paths, 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 };
|