@amos.com/node 0.1.34 → 0.1.36

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/openapi/schema.ts CHANGED
@@ -1262,21 +1262,15 @@ export interface components {
1262
1262
  exp_year?: number;
1263
1263
  moto?: boolean;
1264
1264
  };
1265
- /** @description Apple Pay card profile for embed confirm. Clients must send the raw PKPaymentToken as wallet_payload; Vault decrypts it and returns the cryptogram. Encrypted PAN and client-supplied cryptogram are not supported. */
1265
+ /** @description Apple Pay card profile for embed confirm. Clients only send wallet_payload (the raw JSON-encoded PKPaymentToken). Brand, last4, expiration, pan_type, wallet_provider, and cryptogram are set from the Vault response. Encrypted PAN and client-supplied cryptogram are not supported. */
1266
1266
  ApplePayCardProfileInput: {
1267
- wallet_brand?: string;
1268
- /** @description Display last4 from the Apple Pay payment method. */
1269
- wallet_last4?: string;
1270
1267
  /** @description The unmodified JSON-encoded PKPaymentToken. */
1271
1268
  wallet_payload: string;
1272
- wallet_provider?: components["schemas"]["WalletProviderType"];
1273
1269
  };
1270
+ /** @description Google Pay card profile for embed confirm. Clients only send wallet_payload. Brand, last4, expiration, pan_type, wallet_provider, and cryptogram are set from the Vault response. Encrypted PAN is not supported. */
1274
1271
  GooglePayCardProfileInput: {
1275
- wallet_brand?: string;
1276
- wallet_last4?: string;
1277
1272
  /** @description The unmodified Google Pay payment token payload. */
1278
1273
  wallet_payload: string;
1279
- wallet_provider?: components["schemas"]["WalletProviderType"];
1280
1274
  };
1281
1275
  CardProfile: {
1282
1276
  avs_check?: string;
@@ -1556,6 +1550,14 @@ export interface components {
1556
1550
  LegalEntityDocumentType: "irs_cp_575";
1557
1551
  /** @enum {string} */
1558
1552
  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";
1553
+ /**
1554
+ * @description How funds are captured after payment confirmation.
1555
+ * `automatic` performs a sale (authorize and capture together).
1556
+ * `automatic_async` authorizes then captures asynchronously.
1557
+ * `manual` authorizes only; capture must be requested separately.
1558
+ * @enum {string}
1559
+ */
1560
+ PaymentIntentCaptureMethodType: "automatic" | "automatic_async" | "manual";
1559
1561
  /** @enum {string} */
1560
1562
  PaymentLinkAmountType: "fixed" | "open";
1561
1563
  /** @enum {string} */
@@ -1931,7 +1933,7 @@ export interface components {
1931
1933
  };
1932
1934
  CreatePaymentIntentInput: {
1933
1935
  amount: number;
1934
- capture_method?: string;
1936
+ capture_method?: components["schemas"]["PaymentIntentCaptureMethodType"];
1935
1937
  /** Format: uuid */
1936
1938
  customer_id?: string;
1937
1939
  description?: string | null;
@@ -1969,7 +1971,7 @@ export interface components {
1969
1971
  /** Format: uuid */
1970
1972
  account_id?: string;
1971
1973
  amount?: number;
1972
- capture_method?: string;
1974
+ capture_method?: components["schemas"]["PaymentIntentCaptureMethodType"];
1973
1975
  /** Format: uuid */
1974
1976
  charge_id?: string;
1975
1977
  currency?: string;
@@ -5217,6 +5219,7 @@ export const legalEntityEntityTypeValues: ReadonlyArray<FlattenedDeepRequired<co
5217
5219
  export const legalEntityOwnershipTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityOwnershipType"]> = ["public", "private"];
5218
5220
  export const legalEntityDocumentTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["LegalEntityDocumentType"]> = ["irs_cp_575"];
5219
5221
  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"];
5222
+ export const paymentIntentCaptureMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentIntentCaptureMethodType"]> = ["automatic", "automatic_async", "manual"];
5220
5223
  export const paymentLinkAmountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentLinkAmountType"]> = ["fixed", "open"];
5221
5224
  export const paymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentMethodType"]> = ["card", "bank_account", "googlepay", "applepay"];
5222
5225
  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.34",
3
+ "version": "0.1.36",
4
4
  "description": "Node.js client for the Amos Pay API.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -20,6 +20,7 @@
20
20
  "scripts": {
21
21
  "biome": "biome check --write",
22
22
  "build": "tsup",
23
+ "watch": "tsup --watch",
23
24
  "typecheck": "tsc --noEmit",
24
25
  "generate": "git -C ../openapi pull && rm -rf openapi/schema.ts && openapi-typescript ../openapi/amos/openapi.public.yaml --output openapi/schema.ts --enum-values",
25
26
  "prepack": "npm run build",
@@ -47,9 +48,9 @@
47
48
  "openapi-fetch": "0.17.0"
48
49
  },
49
50
  "devDependencies": {
50
- "@biomejs/biome": "2.5.5",
51
+ "@biomejs/biome": "2.5.7",
51
52
  "@changesets/cli": "2.31.1",
52
- "@types/node": "26.1.1",
53
+ "@types/node": "26.1.2",
53
54
  "openapi-typescript": "7.13.0",
54
55
  "tsup": "8.5.1",
55
56
  "typescript": "5.9.3"