@amos.com/node 0.1.32 → 0.1.34

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
@@ -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 */
@@ -1261,10 +1262,20 @@ export interface components {
1261
1262
  exp_year?: number;
1262
1263
  moto?: boolean;
1263
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. */
1266
+ ApplePayCardProfileInput: {
1267
+ wallet_brand?: string;
1268
+ /** @description Display last4 from the Apple Pay payment method. */
1269
+ wallet_last4?: string;
1270
+ /** @description The unmodified JSON-encoded PKPaymentToken. */
1271
+ wallet_payload: string;
1272
+ wallet_provider?: components["schemas"]["WalletProviderType"];
1273
+ };
1264
1274
  GooglePayCardProfileInput: {
1265
1275
  wallet_brand?: string;
1266
1276
  wallet_last4?: string;
1267
- wallet_payload?: string;
1277
+ /** @description The unmodified Google Pay payment token payload. */
1278
+ wallet_payload: string;
1268
1279
  wallet_provider?: components["schemas"]["WalletProviderType"];
1269
1280
  };
1270
1281
  CardProfile: {
@@ -1549,6 +1560,31 @@ export interface components {
1549
1560
  PaymentLinkAmountType: "fixed" | "open";
1550
1561
  /** @enum {string} */
1551
1562
  PaymentMethodType: "card" | "bank_account" | "googlepay" | "applepay";
1563
+ /**
1564
+ * @description US state code (50 states; excludes DC and territories).
1565
+ * @enum {string}
1566
+ */
1567
+ 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";
1568
+ /** @description Restrict billing addresses to selected US states. */
1569
+ UsOnlyBillingAddressOptions: {
1570
+ /**
1571
+ * @description discriminator enum property added by openapi-typescript
1572
+ * @enum {string}
1573
+ */
1574
+ mode: "us_only";
1575
+ allowed_states: components["schemas"]["UsStateType"][];
1576
+ };
1577
+ /** @description Restrict billing addresses to selected countries. */
1578
+ InternationalBillingAddressOptions: {
1579
+ /**
1580
+ * @description discriminator enum property added by openapi-typescript
1581
+ * @enum {string}
1582
+ */
1583
+ mode: "international";
1584
+ allowed_countries: string[];
1585
+ };
1586
+ /** @description Billing address collection restrictions for a render template. */
1587
+ BillingAddressOptions: components["schemas"]["UsOnlyBillingAddressOptions"] | components["schemas"]["InternationalBillingAddressOptions"];
1552
1588
  /** @description Payment method details used when confirming an embedded intent with a new payment method. */
1553
1589
  EmbedConfirmPaymentMethodInput: components["schemas"]["EmbedConfirmCardPaymentMethodInput"] | components["schemas"]["EmbedConfirmBankAccountPaymentMethodInput"] | components["schemas"]["EmbedConfirmGooglePayPaymentMethodInput"] | components["schemas"]["EmbedConfirmApplePayPaymentMethodInput"];
1554
1590
  EmbedConfirmCardPaymentMethodInput: {
@@ -1591,7 +1627,7 @@ export interface components {
1591
1627
  type: "applepay";
1592
1628
  metadata?: components["schemas"]["Metadata"];
1593
1629
  billing_address_attributes?: components["schemas"]["BillingAddressInput"];
1594
- card_profile_attributes: components["schemas"]["CardProfileInput"];
1630
+ card_profile_attributes: components["schemas"]["ApplePayCardProfileInput"];
1595
1631
  };
1596
1632
  /** @description One-time Plaid Link credentials used to source and verify a bank account when ACH verification is required. */
1597
1633
  PlaidCredentialsInput: {
@@ -1963,8 +1999,13 @@ export interface components {
1963
1999
  /** @description Short-lived Plaid Link token used to open Link in the embed client. */
1964
2000
  link_token: string;
1965
2001
  };
2002
+ /** @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. */
1966
2003
  RecurringPayment: {
2004
+ /** @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. */
2005
+ initial?: boolean;
2006
+ /** @description Network transaction id from the initial recurring charge, used for subsequent merchant-initiated payments. */
1967
2007
  network_transaction_id?: string;
2008
+ /** @description Processor transaction link id for subsequent recurring payments where supported. */
1968
2009
  transaction_link_id?: string;
1969
2010
  };
1970
2011
  CreatePaymentLinkInput: {
@@ -2224,6 +2265,7 @@ export interface components {
2224
2265
  };
2225
2266
  CreateRenderTemplateInput: {
2226
2267
  allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
2268
+ billing_address_options: components["schemas"]["BillingAddressOptions"];
2227
2269
  currency?: string;
2228
2270
  origin_ids?: string[];
2229
2271
  };
@@ -2236,6 +2278,7 @@ export interface components {
2236
2278
  /** Format: uuid */
2237
2279
  organization_id?: string;
2238
2280
  allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
2281
+ billing_address_options: components["schemas"]["BillingAddressOptions"];
2239
2282
  currency?: string;
2240
2283
  };
2241
2284
  CreateSetupIntentInput: {
@@ -2469,13 +2512,32 @@ export interface components {
2469
2512
  /** Format: date-time */
2470
2513
  updated_at?: string;
2471
2514
  };
2515
+ /** @description Body POSTed to a webhook endpoint for an event delivery. */
2516
+ WebhookEventPayload: {
2517
+ /**
2518
+ * Format: uuid
2519
+ * @description Stable event id for this delivery. Identical across retries of the same event; use for idempotent handling.
2520
+ */
2521
+ id: string;
2522
+ /**
2523
+ * Format: uuid
2524
+ * @description Id of the webhook endpoint that received this delivery.
2525
+ */
2526
+ webhook_id: string;
2527
+ event: components["schemas"]["WebhookEventType"];
2528
+ /** @description Event-specific payload keyed by resource descriptor. */
2529
+ data: {
2530
+ [key: string]: unknown;
2531
+ };
2532
+ metadata?: components["schemas"]["Metadata"];
2533
+ };
2472
2534
  WebhookRequest: {
2473
2535
  id?: string;
2474
2536
  /** Format: uuid */
2475
2537
  webhook_endpoint_id?: string;
2476
2538
  /** Format: date-time */
2477
2539
  expires_at?: string;
2478
- request_body?: Record<string, never>;
2540
+ request_body?: components["schemas"]["WebhookEventPayload"];
2479
2541
  /** Format: date-time */
2480
2542
  created_at?: string;
2481
2543
  /** Format: date-time */
@@ -5157,6 +5219,9 @@ export const legalEntityDocumentTypeValues: ReadonlyArray<FlattenedDeepRequired<
5157
5219
  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"];
5158
5220
  export const paymentLinkAmountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentLinkAmountType"]> = ["fixed", "open"];
5159
5221
  export const paymentMethodTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["PaymentMethodType"]> = ["card", "bank_account", "googlepay", "applepay"];
5222
+ 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"];
5223
+ export const usOnlyBillingAddressOptionsModeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["UsOnlyBillingAddressOptions"]["mode"]> = ["us_only"];
5224
+ export const internationalBillingAddressOptionsModeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["InternationalBillingAddressOptions"]["mode"]> = ["international"];
5160
5225
  export const embedConfirmCardPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["EmbedConfirmCardPaymentMethodInput"]["type"]> = ["card"];
5161
5226
  export const embedConfirmBankAccountPaymentMethodInputTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["EmbedConfirmBankAccountPaymentMethodInput"]["type"]> = ["bank_account"];
5162
5227
  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.32",
3
+ "version": "0.1.34",
4
4
  "description": "Node.js client for the Amos Pay API.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",