@amos.com/node 0.1.33 → 0.1.35
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 +43 -3
- package/dist/index.d.ts +43 -3
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -0
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +42 -2
- package/package.json +3 -3
package/openapi/schema.ts
CHANGED
|
@@ -1186,6 +1186,7 @@ export interface components {
|
|
|
1186
1186
|
/** @description Decoded JWT payload for render token responses. */
|
|
1187
1187
|
RenderTokenJwt: {
|
|
1188
1188
|
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
1189
|
+
billing_address_options?: components["schemas"]["BillingAddressOptions"];
|
|
1189
1190
|
env?: string;
|
|
1190
1191
|
origins?: string[];
|
|
1191
1192
|
/** Format: uuid */
|
|
@@ -1555,10 +1556,43 @@ export interface components {
|
|
|
1555
1556
|
LegalEntityDocumentType: "irs_cp_575";
|
|
1556
1557
|
/** @enum {string} */
|
|
1557
1558
|
MerchantBusinessCategoryType: "business_association" | "charity" | "church" | "county" | "federal" | "fraternal_org" | "government" | "higher_education" | "k12" | "labor_union" | "local" | "ministry" | "pac" | "parachurch" | "party" | "preschool" | "social_club" | "social_welfare" | "state" | "tribal" | "vendor" | "veterans_org";
|
|
1559
|
+
/**
|
|
1560
|
+
* @description How funds are captured after payment confirmation.
|
|
1561
|
+
* `automatic` performs a sale (authorize and capture together).
|
|
1562
|
+
* `automatic_async` authorizes then captures asynchronously.
|
|
1563
|
+
* `manual` authorizes only; capture must be requested separately.
|
|
1564
|
+
* @enum {string}
|
|
1565
|
+
*/
|
|
1566
|
+
PaymentIntentCaptureMethodType: "automatic" | "automatic_async" | "manual";
|
|
1558
1567
|
/** @enum {string} */
|
|
1559
1568
|
PaymentLinkAmountType: "fixed" | "open";
|
|
1560
1569
|
/** @enum {string} */
|
|
1561
1570
|
PaymentMethodType: "card" | "bank_account" | "googlepay" | "applepay";
|
|
1571
|
+
/**
|
|
1572
|
+
* @description US state code (50 states; excludes DC and territories).
|
|
1573
|
+
* @enum {string}
|
|
1574
|
+
*/
|
|
1575
|
+
UsStateType: "AK" | "AL" | "AR" | "AZ" | "CA" | "CO" | "CT" | "DE" | "FL" | "GA" | "HI" | "IA" | "ID" | "IL" | "IN" | "KS" | "KY" | "LA" | "MA" | "MD" | "ME" | "MI" | "MN" | "MO" | "MS" | "MT" | "NC" | "ND" | "NE" | "NH" | "NJ" | "NM" | "NV" | "NY" | "OH" | "OK" | "OR" | "PA" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VA" | "VT" | "WA" | "WI" | "WV" | "WY";
|
|
1576
|
+
/** @description Restrict billing addresses to selected US states. */
|
|
1577
|
+
UsOnlyBillingAddressOptions: {
|
|
1578
|
+
/**
|
|
1579
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1580
|
+
* @enum {string}
|
|
1581
|
+
*/
|
|
1582
|
+
mode: "us_only";
|
|
1583
|
+
allowed_states: components["schemas"]["UsStateType"][];
|
|
1584
|
+
};
|
|
1585
|
+
/** @description Restrict billing addresses to selected countries. */
|
|
1586
|
+
InternationalBillingAddressOptions: {
|
|
1587
|
+
/**
|
|
1588
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1589
|
+
* @enum {string}
|
|
1590
|
+
*/
|
|
1591
|
+
mode: "international";
|
|
1592
|
+
allowed_countries: string[];
|
|
1593
|
+
};
|
|
1594
|
+
/** @description Billing address collection restrictions for a render template. */
|
|
1595
|
+
BillingAddressOptions: components["schemas"]["UsOnlyBillingAddressOptions"] | components["schemas"]["InternationalBillingAddressOptions"];
|
|
1562
1596
|
/** @description Payment method details used when confirming an embedded intent with a new payment method. */
|
|
1563
1597
|
EmbedConfirmPaymentMethodInput: components["schemas"]["EmbedConfirmCardPaymentMethodInput"] | components["schemas"]["EmbedConfirmBankAccountPaymentMethodInput"] | components["schemas"]["EmbedConfirmGooglePayPaymentMethodInput"] | components["schemas"]["EmbedConfirmApplePayPaymentMethodInput"];
|
|
1564
1598
|
EmbedConfirmCardPaymentMethodInput: {
|
|
@@ -1905,7 +1939,7 @@ export interface components {
|
|
|
1905
1939
|
};
|
|
1906
1940
|
CreatePaymentIntentInput: {
|
|
1907
1941
|
amount: number;
|
|
1908
|
-
capture_method?:
|
|
1942
|
+
capture_method?: components["schemas"]["PaymentIntentCaptureMethodType"];
|
|
1909
1943
|
/** Format: uuid */
|
|
1910
1944
|
customer_id?: string;
|
|
1911
1945
|
description?: string | null;
|
|
@@ -1943,7 +1977,7 @@ export interface components {
|
|
|
1943
1977
|
/** Format: uuid */
|
|
1944
1978
|
account_id?: string;
|
|
1945
1979
|
amount?: number;
|
|
1946
|
-
capture_method?:
|
|
1980
|
+
capture_method?: components["schemas"]["PaymentIntentCaptureMethodType"];
|
|
1947
1981
|
/** Format: uuid */
|
|
1948
1982
|
charge_id?: string;
|
|
1949
1983
|
currency?: string;
|
|
@@ -2239,6 +2273,7 @@ export interface components {
|
|
|
2239
2273
|
};
|
|
2240
2274
|
CreateRenderTemplateInput: {
|
|
2241
2275
|
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
|
|
2276
|
+
billing_address_options: components["schemas"]["BillingAddressOptions"];
|
|
2242
2277
|
currency?: string;
|
|
2243
2278
|
origin_ids?: string[];
|
|
2244
2279
|
};
|
|
@@ -2251,6 +2286,7 @@ export interface components {
|
|
|
2251
2286
|
/** Format: uuid */
|
|
2252
2287
|
organization_id?: string;
|
|
2253
2288
|
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
2289
|
+
billing_address_options: components["schemas"]["BillingAddressOptions"];
|
|
2254
2290
|
currency?: string;
|
|
2255
2291
|
};
|
|
2256
2292
|
CreateSetupIntentInput: {
|
|
@@ -5189,8 +5225,12 @@ export const legalEntityEntityTypeValues: ReadonlyArray<FlattenedDeepRequired<co
|
|
|
5189
5225
|
export const legalEntityOwnershipTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityOwnershipType"]> = ["public", "private"];
|
|
5190
5226
|
export const legalEntityDocumentTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityDocumentType"]> = ["irs_cp_575"];
|
|
5191
5227
|
export const merchantBusinessCategoryTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["MerchantBusinessCategoryType"]> = ["business_association", "charity", "church", "county", "federal", "fraternal_org", "government", "higher_education", "k12", "labor_union", "local", "ministry", "pac", "parachurch", "party", "preschool", "social_club", "social_welfare", "state", "tribal", "vendor", "veterans_org"];
|
|
5228
|
+
export const paymentIntentCaptureMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntentCaptureMethodType"]> = ["automatic", "automatic_async", "manual"];
|
|
5192
5229
|
export const paymentLinkAmountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentLinkAmountType"]> = ["fixed", "open"];
|
|
5193
5230
|
export const paymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentMethodType"]> = ["card", "bank_account", "googlepay", "applepay"];
|
|
5231
|
+
export const usStateTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["UsStateType"]> = ["AK", "AL", "AR", "AZ", "CA", "CO", "CT", "DE", "FL", "GA", "HI", "IA", "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MI", "MN", "MO", "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VT", "WA", "WI", "WV", "WY"];
|
|
5232
|
+
export const usOnlyBillingAddressOptionsModeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["UsOnlyBillingAddressOptions"]["mode"]> = ["us_only"];
|
|
5233
|
+
export const internationalBillingAddressOptionsModeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["InternationalBillingAddressOptions"]["mode"]> = ["international"];
|
|
5194
5234
|
export const embedConfirmCardPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["EmbedConfirmCardPaymentMethodInput"]["type"]> = ["card"];
|
|
5195
5235
|
export const embedConfirmBankAccountPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["EmbedConfirmBankAccountPaymentMethodInput"]["type"]> = ["bank_account"];
|
|
5196
5236
|
export const embedConfirmGooglePayPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["EmbedConfirmGooglePayPaymentMethodInput"]["type"]> = ["googlepay"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amos.com/node",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.35",
|
|
4
4
|
"description": "Node.js client for the Amos Pay API.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"openapi-fetch": "0.17.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@biomejs/biome": "2.5.
|
|
50
|
+
"@biomejs/biome": "2.5.7",
|
|
51
51
|
"@changesets/cli": "2.31.1",
|
|
52
|
-
"@types/node": "26.1.
|
|
52
|
+
"@types/node": "26.1.2",
|
|
53
53
|
"openapi-typescript": "7.13.0",
|
|
54
54
|
"tsup": "8.5.1",
|
|
55
55
|
"typescript": "5.9.3"
|