@amos.com/node 0.1.26 → 0.1.27
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/LICENSE +21 -0
- package/dist/index.d.mts +13 -131
- package/dist/index.d.ts +13 -131
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +13 -131
- package/package.json +4 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Amos
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.mts
CHANGED
|
@@ -490,23 +490,6 @@ interface paths {
|
|
|
490
490
|
patch?: never;
|
|
491
491
|
trace?: never;
|
|
492
492
|
};
|
|
493
|
-
"/embed/payment_intents/{id}/confirm": {
|
|
494
|
-
parameters: {
|
|
495
|
-
query?: never;
|
|
496
|
-
header?: never;
|
|
497
|
-
path?: never;
|
|
498
|
-
cookie?: never;
|
|
499
|
-
};
|
|
500
|
-
get?: never;
|
|
501
|
-
put?: never;
|
|
502
|
-
/** Confirm a payment intent */
|
|
503
|
-
post: operations["ConfirmEmbedPaymentIntent"];
|
|
504
|
-
delete?: never;
|
|
505
|
-
options?: never;
|
|
506
|
-
head?: never;
|
|
507
|
-
patch?: never;
|
|
508
|
-
trace?: never;
|
|
509
|
-
};
|
|
510
493
|
"/embed/payment_intents/{id}/confirm_with_payment_method": {
|
|
511
494
|
parameters: {
|
|
512
495
|
query?: never;
|
|
@@ -871,23 +854,6 @@ interface paths {
|
|
|
871
854
|
patch?: never;
|
|
872
855
|
trace?: never;
|
|
873
856
|
};
|
|
874
|
-
"/embed/setup_intents/{id}/confirm": {
|
|
875
|
-
parameters: {
|
|
876
|
-
query?: never;
|
|
877
|
-
header?: never;
|
|
878
|
-
path?: never;
|
|
879
|
-
cookie?: never;
|
|
880
|
-
};
|
|
881
|
-
get?: never;
|
|
882
|
-
put?: never;
|
|
883
|
-
/** Confirm a setup intent */
|
|
884
|
-
post: operations["ConfirmSetupIntent"];
|
|
885
|
-
delete?: never;
|
|
886
|
-
options?: never;
|
|
887
|
-
head?: never;
|
|
888
|
-
patch?: never;
|
|
889
|
-
trace?: never;
|
|
890
|
-
};
|
|
891
857
|
"/embed/setup_intents/{id}/confirm_with_payment_method": {
|
|
892
858
|
parameters: {
|
|
893
859
|
query?: never;
|
|
@@ -1909,22 +1875,14 @@ interface components {
|
|
|
1909
1875
|
CreatePaymentIntentRequest: {
|
|
1910
1876
|
payment_intent: components["schemas"]["CreatePaymentIntentInput"];
|
|
1911
1877
|
};
|
|
1912
|
-
|
|
1913
|
-
moto?: boolean;
|
|
1878
|
+
ConfirmPaymentIntentWithPaymentMethodInput: {
|
|
1914
1879
|
/** Format: uuid */
|
|
1915
1880
|
payment_method_id?: string;
|
|
1916
|
-
payment_method?: {
|
|
1917
|
-
metadata?: components["schemas"]["Metadata"];
|
|
1918
|
-
bank_account_profile_attributes?: components["schemas"]["BankAccountProfileInput"];
|
|
1919
|
-
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
1920
|
-
card_profile_attributes?: components["schemas"]["CardProfileInput"];
|
|
1921
|
-
};
|
|
1922
|
-
};
|
|
1923
|
-
ConfirmPaymentIntentRequest: {
|
|
1924
|
-
payment_intent: components["schemas"]["ConfirmPaymentIntentInput"];
|
|
1925
|
-
};
|
|
1926
|
-
ConfirmPaymentIntentWithPaymentMethodInput: {
|
|
1927
1881
|
payment_method: components["schemas"]["EmbedConfirmPaymentMethodInput"];
|
|
1882
|
+
} | {
|
|
1883
|
+
/** Format: uuid */
|
|
1884
|
+
payment_method_id: string;
|
|
1885
|
+
payment_method?: components["schemas"]["EmbedConfirmPaymentMethodInput"];
|
|
1928
1886
|
};
|
|
1929
1887
|
ConfirmPaymentIntentWithPaymentMethodRequest: {
|
|
1930
1888
|
payment_intent: components["schemas"]["ConfirmPaymentIntentWithPaymentMethodInput"];
|
|
@@ -1967,6 +1925,7 @@ interface components {
|
|
|
1967
1925
|
};
|
|
1968
1926
|
RecurringPayment: {
|
|
1969
1927
|
network_transaction_id?: string;
|
|
1928
|
+
transaction_link_id?: string;
|
|
1970
1929
|
};
|
|
1971
1930
|
CreatePaymentLinkInput: {
|
|
1972
1931
|
slug?: string;
|
|
@@ -2104,6 +2063,7 @@ interface components {
|
|
|
2104
2063
|
processor_transaction_id?: string;
|
|
2105
2064
|
processor_reference?: string;
|
|
2106
2065
|
network_transaction_id?: string;
|
|
2066
|
+
transaction_link_id?: string;
|
|
2107
2067
|
/** @enum {string} */
|
|
2108
2068
|
transaction_type?: "authorization" | "authorization_reversal" | "capture" | "credit" | "echeck_credit" | "echeck_sale" | "echeck_void" | "sale" | "void";
|
|
2109
2069
|
/** Format: date-time */
|
|
@@ -2220,20 +2180,14 @@ interface components {
|
|
|
2220
2180
|
CreateSetupIntentRequest: {
|
|
2221
2181
|
setup_intent: components["schemas"]["CreateSetupIntentInput"];
|
|
2222
2182
|
};
|
|
2223
|
-
ConfirmSetupIntentInput: {
|
|
2224
|
-
moto?: boolean;
|
|
2225
|
-
payment_method?: {
|
|
2226
|
-
metadata?: components["schemas"]["Metadata"];
|
|
2227
|
-
bank_account_profile_attributes?: components["schemas"]["BankAccountProfileInput"];
|
|
2228
|
-
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
2229
|
-
card_profile_attributes?: components["schemas"]["CardProfileInput"];
|
|
2230
|
-
};
|
|
2231
|
-
};
|
|
2232
|
-
ConfirmSetupIntentRequest: {
|
|
2233
|
-
setup_intent: components["schemas"]["ConfirmSetupIntentInput"];
|
|
2234
|
-
};
|
|
2235
2183
|
ConfirmSetupIntentWithPaymentMethodInput: {
|
|
2184
|
+
/** Format: uuid */
|
|
2185
|
+
payment_method_id?: string;
|
|
2236
2186
|
payment_method: components["schemas"]["EmbedConfirmPaymentMethodInput"];
|
|
2187
|
+
} | {
|
|
2188
|
+
/** Format: uuid */
|
|
2189
|
+
payment_method_id: string;
|
|
2190
|
+
payment_method?: components["schemas"]["EmbedConfirmPaymentMethodInput"];
|
|
2237
2191
|
};
|
|
2238
2192
|
ConfirmSetupIntentWithPaymentMethodRequest: {
|
|
2239
2193
|
setup_intent: components["schemas"]["ConfirmSetupIntentWithPaymentMethodInput"];
|
|
@@ -3485,42 +3439,6 @@ interface operations {
|
|
|
3485
3439
|
};
|
|
3486
3440
|
};
|
|
3487
3441
|
};
|
|
3488
|
-
ConfirmEmbedPaymentIntent: {
|
|
3489
|
-
parameters: {
|
|
3490
|
-
query?: never;
|
|
3491
|
-
header?: never;
|
|
3492
|
-
path: {
|
|
3493
|
-
/** @description The ID of the payment intent to confirm */
|
|
3494
|
-
id: string;
|
|
3495
|
-
};
|
|
3496
|
-
cookie?: never;
|
|
3497
|
-
};
|
|
3498
|
-
requestBody: {
|
|
3499
|
-
content: {
|
|
3500
|
-
"application/json": components["schemas"]["ConfirmPaymentIntentRequest"];
|
|
3501
|
-
};
|
|
3502
|
-
};
|
|
3503
|
-
responses: {
|
|
3504
|
-
/** @description Successful confirmation of payment intent */
|
|
3505
|
-
202: {
|
|
3506
|
-
headers: {
|
|
3507
|
-
[name: string]: unknown;
|
|
3508
|
-
};
|
|
3509
|
-
content: {
|
|
3510
|
-
"application/json": components["schemas"]["PaymentIntent"];
|
|
3511
|
-
};
|
|
3512
|
-
};
|
|
3513
|
-
/** @description Unprocessable entity */
|
|
3514
|
-
422: {
|
|
3515
|
-
headers: {
|
|
3516
|
-
[name: string]: unknown;
|
|
3517
|
-
};
|
|
3518
|
-
content: {
|
|
3519
|
-
"application/json": components["schemas"]["Error"];
|
|
3520
|
-
};
|
|
3521
|
-
};
|
|
3522
|
-
};
|
|
3523
|
-
};
|
|
3524
3442
|
ConfirmEmbedPaymentIntentWithPaymentMethod: {
|
|
3525
3443
|
parameters: {
|
|
3526
3444
|
query?: never;
|
|
@@ -4371,42 +4289,6 @@ interface operations {
|
|
|
4371
4289
|
};
|
|
4372
4290
|
};
|
|
4373
4291
|
};
|
|
4374
|
-
ConfirmSetupIntent: {
|
|
4375
|
-
parameters: {
|
|
4376
|
-
query?: never;
|
|
4377
|
-
header?: never;
|
|
4378
|
-
path: {
|
|
4379
|
-
/** @description The ID of the setup intent to confirm */
|
|
4380
|
-
id: string;
|
|
4381
|
-
};
|
|
4382
|
-
cookie?: never;
|
|
4383
|
-
};
|
|
4384
|
-
requestBody: {
|
|
4385
|
-
content: {
|
|
4386
|
-
"application/json": components["schemas"]["ConfirmSetupIntentRequest"];
|
|
4387
|
-
};
|
|
4388
|
-
};
|
|
4389
|
-
responses: {
|
|
4390
|
-
/** @description Successful confirmation of setup intent */
|
|
4391
|
-
202: {
|
|
4392
|
-
headers: {
|
|
4393
|
-
[name: string]: unknown;
|
|
4394
|
-
};
|
|
4395
|
-
content: {
|
|
4396
|
-
"application/json": components["schemas"]["SetupIntent"];
|
|
4397
|
-
};
|
|
4398
|
-
};
|
|
4399
|
-
/** @description Unprocessable entity */
|
|
4400
|
-
422: {
|
|
4401
|
-
headers: {
|
|
4402
|
-
[name: string]: unknown;
|
|
4403
|
-
};
|
|
4404
|
-
content: {
|
|
4405
|
-
"application/json": components["schemas"]["Error"];
|
|
4406
|
-
};
|
|
4407
|
-
};
|
|
4408
|
-
};
|
|
4409
|
-
};
|
|
4410
4292
|
ConfirmSetupIntentWithPaymentMethod: {
|
|
4411
4293
|
parameters: {
|
|
4412
4294
|
query?: never;
|
package/dist/index.d.ts
CHANGED
|
@@ -490,23 +490,6 @@ interface paths {
|
|
|
490
490
|
patch?: never;
|
|
491
491
|
trace?: never;
|
|
492
492
|
};
|
|
493
|
-
"/embed/payment_intents/{id}/confirm": {
|
|
494
|
-
parameters: {
|
|
495
|
-
query?: never;
|
|
496
|
-
header?: never;
|
|
497
|
-
path?: never;
|
|
498
|
-
cookie?: never;
|
|
499
|
-
};
|
|
500
|
-
get?: never;
|
|
501
|
-
put?: never;
|
|
502
|
-
/** Confirm a payment intent */
|
|
503
|
-
post: operations["ConfirmEmbedPaymentIntent"];
|
|
504
|
-
delete?: never;
|
|
505
|
-
options?: never;
|
|
506
|
-
head?: never;
|
|
507
|
-
patch?: never;
|
|
508
|
-
trace?: never;
|
|
509
|
-
};
|
|
510
493
|
"/embed/payment_intents/{id}/confirm_with_payment_method": {
|
|
511
494
|
parameters: {
|
|
512
495
|
query?: never;
|
|
@@ -871,23 +854,6 @@ interface paths {
|
|
|
871
854
|
patch?: never;
|
|
872
855
|
trace?: never;
|
|
873
856
|
};
|
|
874
|
-
"/embed/setup_intents/{id}/confirm": {
|
|
875
|
-
parameters: {
|
|
876
|
-
query?: never;
|
|
877
|
-
header?: never;
|
|
878
|
-
path?: never;
|
|
879
|
-
cookie?: never;
|
|
880
|
-
};
|
|
881
|
-
get?: never;
|
|
882
|
-
put?: never;
|
|
883
|
-
/** Confirm a setup intent */
|
|
884
|
-
post: operations["ConfirmSetupIntent"];
|
|
885
|
-
delete?: never;
|
|
886
|
-
options?: never;
|
|
887
|
-
head?: never;
|
|
888
|
-
patch?: never;
|
|
889
|
-
trace?: never;
|
|
890
|
-
};
|
|
891
857
|
"/embed/setup_intents/{id}/confirm_with_payment_method": {
|
|
892
858
|
parameters: {
|
|
893
859
|
query?: never;
|
|
@@ -1909,22 +1875,14 @@ interface components {
|
|
|
1909
1875
|
CreatePaymentIntentRequest: {
|
|
1910
1876
|
payment_intent: components["schemas"]["CreatePaymentIntentInput"];
|
|
1911
1877
|
};
|
|
1912
|
-
|
|
1913
|
-
moto?: boolean;
|
|
1878
|
+
ConfirmPaymentIntentWithPaymentMethodInput: {
|
|
1914
1879
|
/** Format: uuid */
|
|
1915
1880
|
payment_method_id?: string;
|
|
1916
|
-
payment_method?: {
|
|
1917
|
-
metadata?: components["schemas"]["Metadata"];
|
|
1918
|
-
bank_account_profile_attributes?: components["schemas"]["BankAccountProfileInput"];
|
|
1919
|
-
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
1920
|
-
card_profile_attributes?: components["schemas"]["CardProfileInput"];
|
|
1921
|
-
};
|
|
1922
|
-
};
|
|
1923
|
-
ConfirmPaymentIntentRequest: {
|
|
1924
|
-
payment_intent: components["schemas"]["ConfirmPaymentIntentInput"];
|
|
1925
|
-
};
|
|
1926
|
-
ConfirmPaymentIntentWithPaymentMethodInput: {
|
|
1927
1881
|
payment_method: components["schemas"]["EmbedConfirmPaymentMethodInput"];
|
|
1882
|
+
} | {
|
|
1883
|
+
/** Format: uuid */
|
|
1884
|
+
payment_method_id: string;
|
|
1885
|
+
payment_method?: components["schemas"]["EmbedConfirmPaymentMethodInput"];
|
|
1928
1886
|
};
|
|
1929
1887
|
ConfirmPaymentIntentWithPaymentMethodRequest: {
|
|
1930
1888
|
payment_intent: components["schemas"]["ConfirmPaymentIntentWithPaymentMethodInput"];
|
|
@@ -1967,6 +1925,7 @@ interface components {
|
|
|
1967
1925
|
};
|
|
1968
1926
|
RecurringPayment: {
|
|
1969
1927
|
network_transaction_id?: string;
|
|
1928
|
+
transaction_link_id?: string;
|
|
1970
1929
|
};
|
|
1971
1930
|
CreatePaymentLinkInput: {
|
|
1972
1931
|
slug?: string;
|
|
@@ -2104,6 +2063,7 @@ interface components {
|
|
|
2104
2063
|
processor_transaction_id?: string;
|
|
2105
2064
|
processor_reference?: string;
|
|
2106
2065
|
network_transaction_id?: string;
|
|
2066
|
+
transaction_link_id?: string;
|
|
2107
2067
|
/** @enum {string} */
|
|
2108
2068
|
transaction_type?: "authorization" | "authorization_reversal" | "capture" | "credit" | "echeck_credit" | "echeck_sale" | "echeck_void" | "sale" | "void";
|
|
2109
2069
|
/** Format: date-time */
|
|
@@ -2220,20 +2180,14 @@ interface components {
|
|
|
2220
2180
|
CreateSetupIntentRequest: {
|
|
2221
2181
|
setup_intent: components["schemas"]["CreateSetupIntentInput"];
|
|
2222
2182
|
};
|
|
2223
|
-
ConfirmSetupIntentInput: {
|
|
2224
|
-
moto?: boolean;
|
|
2225
|
-
payment_method?: {
|
|
2226
|
-
metadata?: components["schemas"]["Metadata"];
|
|
2227
|
-
bank_account_profile_attributes?: components["schemas"]["BankAccountProfileInput"];
|
|
2228
|
-
billing_address_attributes?: components["schemas"]["BillingAddressInput"];
|
|
2229
|
-
card_profile_attributes?: components["schemas"]["CardProfileInput"];
|
|
2230
|
-
};
|
|
2231
|
-
};
|
|
2232
|
-
ConfirmSetupIntentRequest: {
|
|
2233
|
-
setup_intent: components["schemas"]["ConfirmSetupIntentInput"];
|
|
2234
|
-
};
|
|
2235
2183
|
ConfirmSetupIntentWithPaymentMethodInput: {
|
|
2184
|
+
/** Format: uuid */
|
|
2185
|
+
payment_method_id?: string;
|
|
2236
2186
|
payment_method: components["schemas"]["EmbedConfirmPaymentMethodInput"];
|
|
2187
|
+
} | {
|
|
2188
|
+
/** Format: uuid */
|
|
2189
|
+
payment_method_id: string;
|
|
2190
|
+
payment_method?: components["schemas"]["EmbedConfirmPaymentMethodInput"];
|
|
2237
2191
|
};
|
|
2238
2192
|
ConfirmSetupIntentWithPaymentMethodRequest: {
|
|
2239
2193
|
setup_intent: components["schemas"]["ConfirmSetupIntentWithPaymentMethodInput"];
|
|
@@ -3485,42 +3439,6 @@ interface operations {
|
|
|
3485
3439
|
};
|
|
3486
3440
|
};
|
|
3487
3441
|
};
|
|
3488
|
-
ConfirmEmbedPaymentIntent: {
|
|
3489
|
-
parameters: {
|
|
3490
|
-
query?: never;
|
|
3491
|
-
header?: never;
|
|
3492
|
-
path: {
|
|
3493
|
-
/** @description The ID of the payment intent to confirm */
|
|
3494
|
-
id: string;
|
|
3495
|
-
};
|
|
3496
|
-
cookie?: never;
|
|
3497
|
-
};
|
|
3498
|
-
requestBody: {
|
|
3499
|
-
content: {
|
|
3500
|
-
"application/json": components["schemas"]["ConfirmPaymentIntentRequest"];
|
|
3501
|
-
};
|
|
3502
|
-
};
|
|
3503
|
-
responses: {
|
|
3504
|
-
/** @description Successful confirmation of payment intent */
|
|
3505
|
-
202: {
|
|
3506
|
-
headers: {
|
|
3507
|
-
[name: string]: unknown;
|
|
3508
|
-
};
|
|
3509
|
-
content: {
|
|
3510
|
-
"application/json": components["schemas"]["PaymentIntent"];
|
|
3511
|
-
};
|
|
3512
|
-
};
|
|
3513
|
-
/** @description Unprocessable entity */
|
|
3514
|
-
422: {
|
|
3515
|
-
headers: {
|
|
3516
|
-
[name: string]: unknown;
|
|
3517
|
-
};
|
|
3518
|
-
content: {
|
|
3519
|
-
"application/json": components["schemas"]["Error"];
|
|
3520
|
-
};
|
|
3521
|
-
};
|
|
3522
|
-
};
|
|
3523
|
-
};
|
|
3524
3442
|
ConfirmEmbedPaymentIntentWithPaymentMethod: {
|
|
3525
3443
|
parameters: {
|
|
3526
3444
|
query?: never;
|
|
@@ -4371,42 +4289,6 @@ interface operations {
|
|
|
4371
4289
|
};
|
|
4372
4290
|
};
|
|
4373
4291
|
};
|
|
4374
|
-
ConfirmSetupIntent: {
|
|
4375
|
-
parameters: {
|
|
4376
|
-
query?: never;
|
|
4377
|
-
header?: never;
|
|
4378
|
-
path: {
|
|
4379
|
-
/** @description The ID of the setup intent to confirm */
|
|
4380
|
-
id: string;
|
|
4381
|
-
};
|
|
4382
|
-
cookie?: never;
|
|
4383
|
-
};
|
|
4384
|
-
requestBody: {
|
|
4385
|
-
content: {
|
|
4386
|
-
"application/json": components["schemas"]["ConfirmSetupIntentRequest"];
|
|
4387
|
-
};
|
|
4388
|
-
};
|
|
4389
|
-
responses: {
|
|
4390
|
-
/** @description Successful confirmation of setup intent */
|
|
4391
|
-
202: {
|
|
4392
|
-
headers: {
|
|
4393
|
-
[name: string]: unknown;
|
|
4394
|
-
};
|
|
4395
|
-
content: {
|
|
4396
|
-
"application/json": components["schemas"]["SetupIntent"];
|
|
4397
|
-
};
|
|
4398
|
-
};
|
|
4399
|
-
/** @description Unprocessable entity */
|
|
4400
|
-
422: {
|
|
4401
|
-
headers: {
|
|
4402
|
-
[name: string]: unknown;
|
|
4403
|
-
};
|
|
4404
|
-
content: {
|
|
4405
|
-
"application/json": components["schemas"]["Error"];
|
|
4406
|
-
};
|
|
4407
|
-
};
|
|
4408
|
-
};
|
|
4409
|
-
};
|
|
4410
4292
|
ConfirmSetupIntentWithPaymentMethod: {
|
|
4411
4293
|
parameters: {
|
|
4412
4294
|
query?: never;
|