@amos.com/node 0.1.34 → 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 +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/openapi/schema.ts +11 -2
- package/package.json +3 -3
package/openapi/schema.ts
CHANGED
|
@@ -1556,6 +1556,14 @@ export interface components {
|
|
|
1556
1556
|
LegalEntityDocumentType: "irs_cp_575";
|
|
1557
1557
|
/** @enum {string} */
|
|
1558
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";
|
|
1559
1567
|
/** @enum {string} */
|
|
1560
1568
|
PaymentLinkAmountType: "fixed" | "open";
|
|
1561
1569
|
/** @enum {string} */
|
|
@@ -1931,7 +1939,7 @@ export interface components {
|
|
|
1931
1939
|
};
|
|
1932
1940
|
CreatePaymentIntentInput: {
|
|
1933
1941
|
amount: number;
|
|
1934
|
-
capture_method?:
|
|
1942
|
+
capture_method?: components["schemas"]["PaymentIntentCaptureMethodType"];
|
|
1935
1943
|
/** Format: uuid */
|
|
1936
1944
|
customer_id?: string;
|
|
1937
1945
|
description?: string | null;
|
|
@@ -1969,7 +1977,7 @@ export interface components {
|
|
|
1969
1977
|
/** Format: uuid */
|
|
1970
1978
|
account_id?: string;
|
|
1971
1979
|
amount?: number;
|
|
1972
|
-
capture_method?:
|
|
1980
|
+
capture_method?: components["schemas"]["PaymentIntentCaptureMethodType"];
|
|
1973
1981
|
/** Format: uuid */
|
|
1974
1982
|
charge_id?: string;
|
|
1975
1983
|
currency?: string;
|
|
@@ -5217,6 +5225,7 @@ export const legalEntityEntityTypeValues: ReadonlyArray<FlattenedDeepRequired<co
|
|
|
5217
5225
|
export const legalEntityOwnershipTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityOwnershipType"]> = ["public", "private"];
|
|
5218
5226
|
export const legalEntityDocumentTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityDocumentType"]> = ["irs_cp_575"];
|
|
5219
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"];
|
|
5220
5229
|
export const paymentLinkAmountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentLinkAmountType"]> = ["fixed", "open"];
|
|
5221
5230
|
export const paymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentMethodType"]> = ["card", "bank_account", "googlepay", "applepay"];
|
|
5222
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"];
|
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"
|