@amos.com/node 0.1.32 → 0.1.33

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
@@ -1261,10 +1261,20 @@ export interface components {
1261
1261
  exp_year?: number;
1262
1262
  moto?: boolean;
1263
1263
  };
1264
+ /** @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
+ ApplePayCardProfileInput: {
1266
+ wallet_brand?: string;
1267
+ /** @description Display last4 from the Apple Pay payment method. */
1268
+ wallet_last4?: string;
1269
+ /** @description The unmodified JSON-encoded PKPaymentToken. */
1270
+ wallet_payload: string;
1271
+ wallet_provider?: components["schemas"]["WalletProviderType"];
1272
+ };
1264
1273
  GooglePayCardProfileInput: {
1265
1274
  wallet_brand?: string;
1266
1275
  wallet_last4?: string;
1267
- wallet_payload?: string;
1276
+ /** @description The unmodified Google Pay payment token payload. */
1277
+ wallet_payload: string;
1268
1278
  wallet_provider?: components["schemas"]["WalletProviderType"];
1269
1279
  };
1270
1280
  CardProfile: {
@@ -1591,7 +1601,7 @@ export interface components {
1591
1601
  type: "applepay";
1592
1602
  metadata?: components["schemas"]["Metadata"];
1593
1603
  billing_address_attributes?: components["schemas"]["BillingAddressInput"];
1594
- card_profile_attributes: components["schemas"]["CardProfileInput"];
1604
+ card_profile_attributes: components["schemas"]["ApplePayCardProfileInput"];
1595
1605
  };
1596
1606
  /** @description One-time Plaid Link credentials used to source and verify a bank account when ACH verification is required. */
1597
1607
  PlaidCredentialsInput: {
@@ -1963,8 +1973,13 @@ export interface components {
1963
1973
  /** @description Short-lived Plaid Link token used to open Link in the embed client. */
1964
1974
  link_token: string;
1965
1975
  };
1976
+ /** @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
1977
  RecurringPayment: {
1978
+ /** @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. */
1979
+ initial?: boolean;
1980
+ /** @description Network transaction id from the initial recurring charge, used for subsequent merchant-initiated payments. */
1967
1981
  network_transaction_id?: string;
1982
+ /** @description Processor transaction link id for subsequent recurring payments where supported. */
1968
1983
  transaction_link_id?: string;
1969
1984
  };
1970
1985
  CreatePaymentLinkInput: {
@@ -2469,13 +2484,32 @@ export interface components {
2469
2484
  /** Format: date-time */
2470
2485
  updated_at?: string;
2471
2486
  };
2487
+ /** @description Body POSTed to a webhook endpoint for an event delivery. */
2488
+ WebhookEventPayload: {
2489
+ /**
2490
+ * Format: uuid
2491
+ * @description Stable event id for this delivery. Identical across retries of the same event; use for idempotent handling.
2492
+ */
2493
+ id: string;
2494
+ /**
2495
+ * Format: uuid
2496
+ * @description Id of the webhook endpoint that received this delivery.
2497
+ */
2498
+ webhook_id: string;
2499
+ event: components["schemas"]["WebhookEventType"];
2500
+ /** @description Event-specific payload keyed by resource descriptor. */
2501
+ data: {
2502
+ [key: string]: unknown;
2503
+ };
2504
+ metadata?: components["schemas"]["Metadata"];
2505
+ };
2472
2506
  WebhookRequest: {
2473
2507
  id?: string;
2474
2508
  /** Format: uuid */
2475
2509
  webhook_endpoint_id?: string;
2476
2510
  /** Format: date-time */
2477
2511
  expires_at?: string;
2478
- request_body?: Record<string, never>;
2512
+ request_body?: components["schemas"]["WebhookEventPayload"];
2479
2513
  /** Format: date-time */
2480
2514
  created_at?: string;
2481
2515
  /** Format: date-time */
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.33",
4
4
  "description": "Node.js client for the Amos Pay API.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",