@naturalpay/sdk 1.6.51 → 1.6.52

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.51",
47
- "User-Agent": "@naturalpay/sdk/1.6.51",
46
+ "X-Fern-SDK-Version": "1.6.52",
47
+ "User-Agent": "@naturalpay/sdk/1.6.52",
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,
@@ -27,7 +27,7 @@ export interface CreateCardSessionsRequest {
27
27
  allowedHosts: string[];
28
28
  /** How long the stand-in card and proxy login stay valid once claimed. Defaults to 600. */
29
29
  ttlSeconds?: number;
30
- /** How long after creation you can claim the session, from 600 (10 minutes) to 86400 (24 hours). Defaults to 600. The user still has to approve within 10 minutes; a longer window only gives you more time to claim and pay after they do. Sets claimExpiresAt. */
30
+ /** How long you have to claim the session once the user approves it, from 600 (10 minutes) to 86400 (24 hours). Defaults to 600. Natural holds the card's encrypted security code for this long after approval, so pick the shortest window that fits. */
31
31
  claimWindowSeconds?: number;
32
32
  /** What the agent will do with the card, shown to the user on the approval page. Required for a card the user added (eac_). The user approves what you describe here; merchantName, amount and description aren't enforced, while allowedHosts is. */
33
33
  purchase?: Natural.CreateCardSessionsRequestPurchase;
@@ -11,9 +11,9 @@ export interface CreateCardSessionsResponse {
11
11
  reference: string | null;
12
12
  /** The purchase you created the session with, as the user saw it. Null for an agent card session opened without one. */
13
13
  purchase: Natural.CreateCardSessionsResponsePurchase | null;
14
- /** A pending session must be approved before this, 10 minutes after creation. After it, an unapproved session is expired. */
14
+ /** A pending session must be approved before this, 24 hours after creation. After it, an unapproved session is expired. */
15
15
  approvalExpiresAt: string;
16
- /** An approved session must be claimed before this: creation plus claimWindowSeconds. After it, an unclaimed session is expired. */
16
+ /** An approved session must be claimed before this: approval plus claimWindowSeconds. Until the user approves, it's the latest that could be: approvalExpiresAt plus claimWindowSeconds. After it, an unclaimed session is expired. */
17
17
  claimExpiresAt: string;
18
18
  claimedAt: string | null;
19
19
  /** When the claimed proxy login stops working. */
@@ -11,9 +11,9 @@ export interface GetCardSessionsResponse {
11
11
  reference: string | null;
12
12
  /** The purchase you created the session with, as the user saw it. Null for an agent card session opened without one. */
13
13
  purchase: Natural.GetCardSessionsResponsePurchase | null;
14
- /** A pending session must be approved before this, 10 minutes after creation. After it, an unapproved session is expired. */
14
+ /** A pending session must be approved before this, 24 hours after creation. After it, an unapproved session is expired. */
15
15
  approvalExpiresAt: string;
16
- /** An approved session must be claimed before this: creation plus claimWindowSeconds. After it, an unclaimed session is expired. */
16
+ /** An approved session must be claimed before this: approval plus claimWindowSeconds. Until the user approves, it's the latest that could be: approvalExpiresAt plus claimWindowSeconds. After it, an unclaimed session is expired. */
17
17
  claimExpiresAt: string;
18
18
  claimedAt: string | null;
19
19
  /** When the claimed proxy login stops working. */
@@ -11,9 +11,9 @@ export interface ListCardSessionsResponseDataItem {
11
11
  reference: string | null;
12
12
  /** The purchase you created the session with, as the user saw it. Null for an agent card session opened without one. */
13
13
  purchase: Natural.ListCardSessionsResponseDataItemPurchase | null;
14
- /** A pending session must be approved before this, 10 minutes after creation. After it, an unapproved session is expired. */
14
+ /** A pending session must be approved before this, 24 hours after creation. After it, an unapproved session is expired. */
15
15
  approvalExpiresAt: string;
16
- /** An approved session must be claimed before this: creation plus claimWindowSeconds. After it, an unclaimed session is expired. */
16
+ /** An approved session must be claimed before this: approval plus claimWindowSeconds. Until the user approves, it's the latest that could be: approvalExpiresAt plus claimWindowSeconds. After it, an unclaimed session is expired. */
17
17
  claimExpiresAt: string;
18
18
  claimedAt: string | null;
19
19
  /** When the claimed proxy login stops working. */
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.6.51";
1
+ export declare const SDK_VERSION = "1.6.52";
@@ -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.51";
4
+ exports.SDK_VERSION = "1.6.52";
@@ -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.51",
10
- "User-Agent": "@naturalpay/sdk/1.6.51",
9
+ "X-Fern-SDK-Version": "1.6.52",
10
+ "User-Agent": "@naturalpay/sdk/1.6.52",
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,
@@ -27,7 +27,7 @@ export interface CreateCardSessionsRequest {
27
27
  allowedHosts: string[];
28
28
  /** How long the stand-in card and proxy login stay valid once claimed. Defaults to 600. */
29
29
  ttlSeconds?: number;
30
- /** How long after creation you can claim the session, from 600 (10 minutes) to 86400 (24 hours). Defaults to 600. The user still has to approve within 10 minutes; a longer window only gives you more time to claim and pay after they do. Sets claimExpiresAt. */
30
+ /** How long you have to claim the session once the user approves it, from 600 (10 minutes) to 86400 (24 hours). Defaults to 600. Natural holds the card's encrypted security code for this long after approval, so pick the shortest window that fits. */
31
31
  claimWindowSeconds?: number;
32
32
  /** What the agent will do with the card, shown to the user on the approval page. Required for a card the user added (eac_). The user approves what you describe here; merchantName, amount and description aren't enforced, while allowedHosts is. */
33
33
  purchase?: Natural.CreateCardSessionsRequestPurchase;
@@ -11,9 +11,9 @@ export interface CreateCardSessionsResponse {
11
11
  reference: string | null;
12
12
  /** The purchase you created the session with, as the user saw it. Null for an agent card session opened without one. */
13
13
  purchase: Natural.CreateCardSessionsResponsePurchase | null;
14
- /** A pending session must be approved before this, 10 minutes after creation. After it, an unapproved session is expired. */
14
+ /** A pending session must be approved before this, 24 hours after creation. After it, an unapproved session is expired. */
15
15
  approvalExpiresAt: string;
16
- /** An approved session must be claimed before this: creation plus claimWindowSeconds. After it, an unclaimed session is expired. */
16
+ /** An approved session must be claimed before this: approval plus claimWindowSeconds. Until the user approves, it's the latest that could be: approvalExpiresAt plus claimWindowSeconds. After it, an unclaimed session is expired. */
17
17
  claimExpiresAt: string;
18
18
  claimedAt: string | null;
19
19
  /** When the claimed proxy login stops working. */
@@ -11,9 +11,9 @@ export interface GetCardSessionsResponse {
11
11
  reference: string | null;
12
12
  /** The purchase you created the session with, as the user saw it. Null for an agent card session opened without one. */
13
13
  purchase: Natural.GetCardSessionsResponsePurchase | null;
14
- /** A pending session must be approved before this, 10 minutes after creation. After it, an unapproved session is expired. */
14
+ /** A pending session must be approved before this, 24 hours after creation. After it, an unapproved session is expired. */
15
15
  approvalExpiresAt: string;
16
- /** An approved session must be claimed before this: creation plus claimWindowSeconds. After it, an unclaimed session is expired. */
16
+ /** An approved session must be claimed before this: approval plus claimWindowSeconds. Until the user approves, it's the latest that could be: approvalExpiresAt plus claimWindowSeconds. After it, an unclaimed session is expired. */
17
17
  claimExpiresAt: string;
18
18
  claimedAt: string | null;
19
19
  /** When the claimed proxy login stops working. */
@@ -11,9 +11,9 @@ export interface ListCardSessionsResponseDataItem {
11
11
  reference: string | null;
12
12
  /** The purchase you created the session with, as the user saw it. Null for an agent card session opened without one. */
13
13
  purchase: Natural.ListCardSessionsResponseDataItemPurchase | null;
14
- /** A pending session must be approved before this, 10 minutes after creation. After it, an unapproved session is expired. */
14
+ /** A pending session must be approved before this, 24 hours after creation. After it, an unapproved session is expired. */
15
15
  approvalExpiresAt: string;
16
- /** An approved session must be claimed before this: creation plus claimWindowSeconds. After it, an unclaimed session is expired. */
16
+ /** An approved session must be claimed before this: approval plus claimWindowSeconds. Until the user approves, it's the latest that could be: approvalExpiresAt plus claimWindowSeconds. After it, an unclaimed session is expired. */
17
17
  claimExpiresAt: string;
18
18
  claimedAt: string | null;
19
19
  /** When the claimed proxy login stops working. */
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.6.51";
1
+ export declare const SDK_VERSION = "1.6.52";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.6.51";
1
+ export const SDK_VERSION = "1.6.52";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalpay/sdk",
3
- "version": "1.6.51",
3
+ "version": "1.6.52",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",