@naturalpay/sdk 1.6.44 → 1.6.45

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.
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@naturalpay/sdk",
46
- "X-Fern-SDK-Version": "1.6.44",
47
- "User-Agent": "@naturalpay/sdk/1.6.44",
46
+ "X-Fern-SDK-Version": "1.6.45",
47
+ "User-Agent": "@naturalpay/sdk/1.6.45",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  "X-Instance-ID": options === null || options === void 0 ? void 0 : options.instanceId,
@@ -1,7 +1,9 @@
1
1
  import type * as Natural from "../../../index.js";
2
2
  export interface CardAgenticPaymentsResponseData {
3
+ /** Whether agent tokens are available on this card for you. False when you can't use the card (check saved_cards.use and the customer connection, which the proxy needs too) or agent payments aren't available in this environment (pay through the proxy). The other fields are then empty. */
3
4
  enabled: boolean;
4
5
  simulated: boolean;
6
+ /** The card's agent payment setup. Null until the owner sets it up, which happens when they approve a card session with requestAgentToken. */
5
7
  paymentMethod: Natural.CardAgenticPaymentsResponseDataPaymentMethod | null;
6
8
  mandates: Natural.CardAgenticPaymentsResponseDataMandatesItem[];
7
9
  }
@@ -28,6 +28,6 @@ export interface CreateCardSessionsRequest {
28
28
  purchase?: Natural.CreateCardSessionsRequestPurchase;
29
29
  /** Your own reference for the session, such as your checkout or task ID. Not unique: filter GET /card-sessions by it to find the session again. */
30
30
  reference?: string;
31
- /** Cards the user added only, for a USD purchase of at most $999,999.99. Set it when the checkout won't take the card through the proxy, for example when it collects the card in its own payment iframe. While approving, the user is also asked to approve agent payments on the card; agentToken.mandateId then says whether you can pay with an agent token. Defaults to false. */
31
+ /** Cards the user added only, for a USD purchase of at most $999,999.99. A backup for checkouts that don't send the raw card number in the HTTP request, for example ones that encrypt it in the browser, so the proxy can't swap it in. Paying through the proxy stays the default. On approval, Natural also tries to set up agent payments on the card. Most cards don't support them yet, so agentToken.mandateId is often null: then claim this session and try the proxy. Defaults to false. */
32
32
  requestAgentToken?: boolean;
33
33
  }
@@ -4,6 +4,6 @@
4
4
  export interface CreateCardSessionsResponseAgentToken {
5
5
  /** You set requestAgentToken when creating the session. */
6
6
  requested: boolean;
7
- /** Once the session is approved: the mandate (amd_) to pay with. Create an agentic purchase with it (POST /agentic-payments/purchases) and claim that purchase's credential. Null when you didn't ask, while the session waits for approval, and when the card couldn't take agent payments: then pay through the proxy (claim this session). */
7
+ /** Once the session is approved: the mandate (amd_) to pay with. Create an agentic purchase with it (POST /agentic-payments/purchases) and claim that purchase's credential. Null when you didn't ask, while the session waits for approval, and when the card couldn't take agent payments, which is common: then claim this session and try the proxy. */
8
8
  mandateId: string | null;
9
9
  }
@@ -4,6 +4,6 @@
4
4
  export interface GetCardSessionsResponseAgentToken {
5
5
  /** You set requestAgentToken when creating the session. */
6
6
  requested: boolean;
7
- /** Once the session is approved: the mandate (amd_) to pay with. Create an agentic purchase with it (POST /agentic-payments/purchases) and claim that purchase's credential. Null when you didn't ask, while the session waits for approval, and when the card couldn't take agent payments: then pay through the proxy (claim this session). */
7
+ /** Once the session is approved: the mandate (amd_) to pay with. Create an agentic purchase with it (POST /agentic-payments/purchases) and claim that purchase's credential. Null when you didn't ask, while the session waits for approval, and when the card couldn't take agent payments, which is common: then claim this session and try the proxy. */
8
8
  mandateId: string | null;
9
9
  }
@@ -4,6 +4,6 @@
4
4
  export interface ListCardSessionsResponseDataItemAgentToken {
5
5
  /** You set requestAgentToken when creating the session. */
6
6
  requested: boolean;
7
- /** Once the session is approved: the mandate (amd_) to pay with. Create an agentic purchase with it (POST /agentic-payments/purchases) and claim that purchase's credential. Null when you didn't ask, while the session waits for approval, and when the card couldn't take agent payments: then pay through the proxy (claim this session). */
7
+ /** Once the session is approved: the mandate (amd_) to pay with. Create an agentic purchase with it (POST /agentic-payments/purchases) and claim that purchase's credential. Null when you didn't ask, while the session waits for approval, and when the card couldn't take agent payments, which is common: then claim this session and try the proxy. */
8
8
  mandateId: string | null;
9
9
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.6.44";
1
+ export declare const SDK_VERSION = "1.6.45";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.6.44";
4
+ exports.SDK_VERSION = "1.6.45";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@naturalpay/sdk",
9
- "X-Fern-SDK-Version": "1.6.44",
10
- "User-Agent": "@naturalpay/sdk/1.6.44",
9
+ "X-Fern-SDK-Version": "1.6.45",
10
+ "User-Agent": "@naturalpay/sdk/1.6.45",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  "X-Instance-ID": options === null || options === void 0 ? void 0 : options.instanceId,
@@ -1,7 +1,9 @@
1
1
  import type * as Natural from "../../../index.mjs";
2
2
  export interface CardAgenticPaymentsResponseData {
3
+ /** Whether agent tokens are available on this card for you. False when you can't use the card (check saved_cards.use and the customer connection, which the proxy needs too) or agent payments aren't available in this environment (pay through the proxy). The other fields are then empty. */
3
4
  enabled: boolean;
4
5
  simulated: boolean;
6
+ /** The card's agent payment setup. Null until the owner sets it up, which happens when they approve a card session with requestAgentToken. */
5
7
  paymentMethod: Natural.CardAgenticPaymentsResponseDataPaymentMethod | null;
6
8
  mandates: Natural.CardAgenticPaymentsResponseDataMandatesItem[];
7
9
  }
@@ -28,6 +28,6 @@ export interface CreateCardSessionsRequest {
28
28
  purchase?: Natural.CreateCardSessionsRequestPurchase;
29
29
  /** Your own reference for the session, such as your checkout or task ID. Not unique: filter GET /card-sessions by it to find the session again. */
30
30
  reference?: string;
31
- /** Cards the user added only, for a USD purchase of at most $999,999.99. Set it when the checkout won't take the card through the proxy, for example when it collects the card in its own payment iframe. While approving, the user is also asked to approve agent payments on the card; agentToken.mandateId then says whether you can pay with an agent token. Defaults to false. */
31
+ /** Cards the user added only, for a USD purchase of at most $999,999.99. A backup for checkouts that don't send the raw card number in the HTTP request, for example ones that encrypt it in the browser, so the proxy can't swap it in. Paying through the proxy stays the default. On approval, Natural also tries to set up agent payments on the card. Most cards don't support them yet, so agentToken.mandateId is often null: then claim this session and try the proxy. Defaults to false. */
32
32
  requestAgentToken?: boolean;
33
33
  }
@@ -4,6 +4,6 @@
4
4
  export interface CreateCardSessionsResponseAgentToken {
5
5
  /** You set requestAgentToken when creating the session. */
6
6
  requested: boolean;
7
- /** Once the session is approved: the mandate (amd_) to pay with. Create an agentic purchase with it (POST /agentic-payments/purchases) and claim that purchase's credential. Null when you didn't ask, while the session waits for approval, and when the card couldn't take agent payments: then pay through the proxy (claim this session). */
7
+ /** Once the session is approved: the mandate (amd_) to pay with. Create an agentic purchase with it (POST /agentic-payments/purchases) and claim that purchase's credential. Null when you didn't ask, while the session waits for approval, and when the card couldn't take agent payments, which is common: then claim this session and try the proxy. */
8
8
  mandateId: string | null;
9
9
  }
@@ -4,6 +4,6 @@
4
4
  export interface GetCardSessionsResponseAgentToken {
5
5
  /** You set requestAgentToken when creating the session. */
6
6
  requested: boolean;
7
- /** Once the session is approved: the mandate (amd_) to pay with. Create an agentic purchase with it (POST /agentic-payments/purchases) and claim that purchase's credential. Null when you didn't ask, while the session waits for approval, and when the card couldn't take agent payments: then pay through the proxy (claim this session). */
7
+ /** Once the session is approved: the mandate (amd_) to pay with. Create an agentic purchase with it (POST /agentic-payments/purchases) and claim that purchase's credential. Null when you didn't ask, while the session waits for approval, and when the card couldn't take agent payments, which is common: then claim this session and try the proxy. */
8
8
  mandateId: string | null;
9
9
  }
@@ -4,6 +4,6 @@
4
4
  export interface ListCardSessionsResponseDataItemAgentToken {
5
5
  /** You set requestAgentToken when creating the session. */
6
6
  requested: boolean;
7
- /** Once the session is approved: the mandate (amd_) to pay with. Create an agentic purchase with it (POST /agentic-payments/purchases) and claim that purchase's credential. Null when you didn't ask, while the session waits for approval, and when the card couldn't take agent payments: then pay through the proxy (claim this session). */
7
+ /** Once the session is approved: the mandate (amd_) to pay with. Create an agentic purchase with it (POST /agentic-payments/purchases) and claim that purchase's credential. Null when you didn't ask, while the session waits for approval, and when the card couldn't take agent payments, which is common: then claim this session and try the proxy. */
8
8
  mandateId: string | null;
9
9
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.6.44";
1
+ export declare const SDK_VERSION = "1.6.45";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.6.44";
1
+ export const SDK_VERSION = "1.6.45";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalpay/sdk",
3
- "version": "1.6.44",
3
+ "version": "1.6.45",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",