@naturalpay/sdk 1.6.49 → 1.6.50

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.
Files changed (74) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/cardSessions/client/Client.d.ts +1 -0
  3. package/dist/cjs/api/resources/cardSessions/client/Client.js +1 -0
  4. package/dist/cjs/api/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.ts +4 -1
  5. package/dist/cjs/api/resources/cardSessions/types/CreateCardSessionsResponse.d.ts +3 -1
  6. package/dist/cjs/api/resources/cardSessions/types/GetCardSessionsResponse.d.ts +3 -1
  7. package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.ts +3 -1
  8. package/dist/cjs/api/types/CardPaymentRelationships.d.ts +2 -0
  9. package/dist/cjs/api/types/CardPaymentRelationshipsTransaction.d.ts +8 -0
  10. package/dist/cjs/api/types/CardPaymentRelationshipsTransaction.js +3 -0
  11. package/dist/cjs/api/types/CardPaymentRelationshipsTransactionData.d.ts +10 -0
  12. package/dist/cjs/api/types/CardPaymentRelationshipsTransactionData.js +3 -0
  13. package/dist/cjs/api/types/CardPaymentRelationshipsTransactionDataType.d.ts +5 -0
  14. package/dist/cjs/api/types/CardPaymentRelationshipsTransactionDataType.js +8 -0
  15. package/dist/cjs/api/types/index.d.ts +3 -0
  16. package/dist/cjs/api/types/index.js +3 -0
  17. package/dist/cjs/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.ts +1 -0
  18. package/dist/cjs/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.js +1 -0
  19. package/dist/cjs/serialization/resources/cardSessions/types/CreateCardSessionsResponse.d.ts +1 -0
  20. package/dist/cjs/serialization/resources/cardSessions/types/CreateCardSessionsResponse.js +1 -0
  21. package/dist/cjs/serialization/resources/cardSessions/types/GetCardSessionsResponse.d.ts +1 -0
  22. package/dist/cjs/serialization/resources/cardSessions/types/GetCardSessionsResponse.js +1 -0
  23. package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.ts +1 -0
  24. package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.js +1 -0
  25. package/dist/cjs/serialization/types/CardPaymentRelationships.d.ts +2 -0
  26. package/dist/cjs/serialization/types/CardPaymentRelationships.js +2 -0
  27. package/dist/cjs/serialization/types/CardPaymentRelationshipsTransaction.d.ts +10 -0
  28. package/dist/cjs/serialization/types/CardPaymentRelationshipsTransaction.js +42 -0
  29. package/dist/cjs/serialization/types/CardPaymentRelationshipsTransactionData.d.ts +11 -0
  30. package/dist/cjs/serialization/types/CardPaymentRelationshipsTransactionData.js +43 -0
  31. package/dist/cjs/serialization/types/CardPaymentRelationshipsTransactionDataType.d.ts +7 -0
  32. package/dist/cjs/serialization/types/CardPaymentRelationshipsTransactionDataType.js +39 -0
  33. package/dist/cjs/serialization/types/index.d.ts +3 -0
  34. package/dist/cjs/serialization/types/index.js +3 -0
  35. package/dist/cjs/version.d.ts +1 -1
  36. package/dist/cjs/version.js +1 -1
  37. package/dist/esm/BaseClient.mjs +2 -2
  38. package/dist/esm/api/resources/cardSessions/client/Client.d.mts +1 -0
  39. package/dist/esm/api/resources/cardSessions/client/Client.mjs +1 -0
  40. package/dist/esm/api/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.mts +4 -1
  41. package/dist/esm/api/resources/cardSessions/types/CreateCardSessionsResponse.d.mts +3 -1
  42. package/dist/esm/api/resources/cardSessions/types/GetCardSessionsResponse.d.mts +3 -1
  43. package/dist/esm/api/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.mts +3 -1
  44. package/dist/esm/api/types/CardPaymentRelationships.d.mts +2 -0
  45. package/dist/esm/api/types/CardPaymentRelationshipsTransaction.d.mts +8 -0
  46. package/dist/esm/api/types/CardPaymentRelationshipsTransaction.mjs +2 -0
  47. package/dist/esm/api/types/CardPaymentRelationshipsTransactionData.d.mts +10 -0
  48. package/dist/esm/api/types/CardPaymentRelationshipsTransactionData.mjs +2 -0
  49. package/dist/esm/api/types/CardPaymentRelationshipsTransactionDataType.d.mts +5 -0
  50. package/dist/esm/api/types/CardPaymentRelationshipsTransactionDataType.mjs +5 -0
  51. package/dist/esm/api/types/index.d.mts +3 -0
  52. package/dist/esm/api/types/index.mjs +3 -0
  53. package/dist/esm/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.mts +1 -0
  54. package/dist/esm/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.mjs +1 -0
  55. package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsResponse.d.mts +1 -0
  56. package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsResponse.mjs +1 -0
  57. package/dist/esm/serialization/resources/cardSessions/types/GetCardSessionsResponse.d.mts +1 -0
  58. package/dist/esm/serialization/resources/cardSessions/types/GetCardSessionsResponse.mjs +1 -0
  59. package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.mts +1 -0
  60. package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.mjs +1 -0
  61. package/dist/esm/serialization/types/CardPaymentRelationships.d.mts +2 -0
  62. package/dist/esm/serialization/types/CardPaymentRelationships.mjs +2 -0
  63. package/dist/esm/serialization/types/CardPaymentRelationshipsTransaction.d.mts +10 -0
  64. package/dist/esm/serialization/types/CardPaymentRelationshipsTransaction.mjs +6 -0
  65. package/dist/esm/serialization/types/CardPaymentRelationshipsTransactionData.d.mts +11 -0
  66. package/dist/esm/serialization/types/CardPaymentRelationshipsTransactionData.mjs +7 -0
  67. package/dist/esm/serialization/types/CardPaymentRelationshipsTransactionDataType.d.mts +7 -0
  68. package/dist/esm/serialization/types/CardPaymentRelationshipsTransactionDataType.mjs +3 -0
  69. package/dist/esm/serialization/types/index.d.mts +3 -0
  70. package/dist/esm/serialization/types/index.mjs +3 -0
  71. package/dist/esm/version.d.mts +1 -1
  72. package/dist/esm/version.mjs +1 -1
  73. package/package.json +1 -1
  74. package/reference.md +1 -0
@@ -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.49",
47
- "User-Agent": "@naturalpay/sdk/1.6.49",
46
+ "X-Fern-SDK-Version": "1.6.50",
47
+ "User-Agent": "@naturalpay/sdk/1.6.50",
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,
@@ -65,6 +65,7 @@ export declare class CardSessionsClient {
65
65
  * cardId: "eac_01a0e642ed4873d685273ce0e7d1ccab",
66
66
  * allowedHosts: ["api.stripe.com"],
67
67
  * ttlSeconds: 600,
68
+ * claimWindowSeconds: 3600,
68
69
  * purchase: {
69
70
  * merchantName: "Blue Bottle Coffee",
70
71
  * amount: 2450,
@@ -206,6 +206,7 @@ class CardSessionsClient {
206
206
  * cardId: "eac_01a0e642ed4873d685273ce0e7d1ccab",
207
207
  * allowedHosts: ["api.stripe.com"],
208
208
  * ttlSeconds: 600,
209
+ * claimWindowSeconds: 3600,
209
210
  * purchase: {
210
211
  * merchantName: "Blue Bottle Coffee",
211
212
  * amount: 2450,
@@ -5,6 +5,7 @@ import type * as Natural from "../../../../index.js";
5
5
  * cardId: "eac_01a0e642ed4873d685273ce0e7d1ccab",
6
6
  * allowedHosts: ["api.stripe.com"],
7
7
  * ttlSeconds: 600,
8
+ * claimWindowSeconds: 3600,
8
9
  * purchase: {
9
10
  * merchantName: "Blue Bottle Coffee",
10
11
  * amount: 2450,
@@ -21,10 +22,12 @@ export interface CreateCardSessionsRequest {
21
22
  cardId: string;
22
23
  /** Customer party to act for (pty_*). Omit to act as your own party. To act for another party, pass the ID of a party that has authorized you to act on its behalf. */
23
24
  customerPartyId?: string;
24
- /** Exact hostnames allowed to receive the real card, such as the payment processor's API host the merchant's checkout sends the card to. Required: there is no default. */
25
+ /** Exact hostnames allowed to receive the real card, such as the payment processor's API host the merchant's checkout sends the card to. Required: there is no default. When the card fields are an iframe from checkoutshopper-live.adyen.com or flex.cybersource.com, list that host, and for CyberSource also the merchant host that serves the payment page. */
25
26
  allowedHosts: string[];
26
27
  /** How long the stand-in card and proxy login stay valid once claimed. Defaults to 600. */
27
28
  ttlSeconds?: number;
29
+ /** 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
+ claimWindowSeconds?: number;
28
31
  /** What the agent is buying. Required for a card the user added (eac_): the user approves this exact purchase. */
29
32
  purchase?: Natural.CreateCardSessionsRequestPurchase;
30
33
  /** 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. */
@@ -9,7 +9,9 @@ export interface CreateCardSessionsResponse {
9
9
  allowedHosts: string[];
10
10
  /** The reference you created the session with. Null when you didn't set one. */
11
11
  reference: string | null;
12
- /** A pending session must be approved, and an approved one claimed, before this. */
12
+ /** A pending session must be approved before this, 10 minutes after creation. After it, an unapproved session is expired. */
13
+ approvalExpiresAt: string;
14
+ /** An approved session must be claimed before this: creation plus claimWindowSeconds. After it, an unclaimed session is expired. */
13
15
  claimExpiresAt: string;
14
16
  claimedAt: string | null;
15
17
  /** When the claimed proxy login stops working. */
@@ -9,7 +9,9 @@ export interface GetCardSessionsResponse {
9
9
  allowedHosts: string[];
10
10
  /** The reference you created the session with. Null when you didn't set one. */
11
11
  reference: string | null;
12
- /** A pending session must be approved, and an approved one claimed, before this. */
12
+ /** A pending session must be approved before this, 10 minutes after creation. After it, an unapproved session is expired. */
13
+ approvalExpiresAt: string;
14
+ /** An approved session must be claimed before this: creation plus claimWindowSeconds. After it, an unclaimed session is expired. */
13
15
  claimExpiresAt: string;
14
16
  claimedAt: string | null;
15
17
  /** When the claimed proxy login stops working. */
@@ -9,7 +9,9 @@ export interface ListCardSessionsResponseDataItem {
9
9
  allowedHosts: string[];
10
10
  /** The reference you created the session with. Null when you didn't set one. */
11
11
  reference: string | null;
12
- /** A pending session must be approved, and an approved one claimed, before this. */
12
+ /** A pending session must be approved before this, 10 minutes after creation. After it, an unapproved session is expired. */
13
+ approvalExpiresAt: string;
14
+ /** An approved session must be claimed before this: creation plus claimWindowSeconds. After it, an unclaimed session is expired. */
13
15
  claimExpiresAt: string;
14
16
  claimedAt: string | null;
15
17
  /** When the claimed proxy login stops working. */
@@ -4,4 +4,6 @@ export interface CardPaymentRelationships {
4
4
  paymentIntent: Natural.CardPaymentRelationshipsPaymentIntent;
5
5
  /** Up to 25 newest refund references, including pending and failed refunds. List refunds by cardPaymentId for the full history. */
6
6
  refunds: Natural.CardPaymentRelationshipsRefunds;
7
+ /** The same payment in GET /transactions. Null until the payment first changes status. */
8
+ transaction: Natural.CardPaymentRelationshipsTransaction;
7
9
  }
@@ -0,0 +1,8 @@
1
+ import type * as Natural from "../index.js";
2
+ /**
3
+ * The same payment in GET /transactions. Null until the payment first changes status.
4
+ */
5
+ export interface CardPaymentRelationshipsTransaction {
6
+ /** Related resource identifier. */
7
+ data: Natural.CardPaymentRelationshipsTransactionData | null;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type * as Natural from "../index.js";
2
+ /**
3
+ * Related resource identifier.
4
+ */
5
+ export interface CardPaymentRelationshipsTransactionData {
6
+ /** Resource type. Always `transaction`. */
7
+ type: Natural.CardPaymentRelationshipsTransactionDataType;
8
+ /** Transaction ID (txn_*). */
9
+ id: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /** Resource type. Always `transaction`. */
2
+ export declare const CardPaymentRelationshipsTransactionDataType: {
3
+ readonly Transaction: "transaction";
4
+ };
5
+ export type CardPaymentRelationshipsTransactionDataType = (typeof CardPaymentRelationshipsTransactionDataType)[keyof typeof CardPaymentRelationshipsTransactionDataType];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CardPaymentRelationshipsTransactionDataType = void 0;
5
+ /** Resource type. Always `transaction`. */
6
+ exports.CardPaymentRelationshipsTransactionDataType = {
7
+ Transaction: "transaction",
8
+ };
@@ -32,6 +32,9 @@ export * from "./CardPaymentRelationshipsPaymentIntentDataType.js";
32
32
  export * from "./CardPaymentRelationshipsRefunds.js";
33
33
  export * from "./CardPaymentRelationshipsRefundsDataItem.js";
34
34
  export * from "./CardPaymentRelationshipsRefundsDataItemType.js";
35
+ export * from "./CardPaymentRelationshipsTransaction.js";
36
+ export * from "./CardPaymentRelationshipsTransactionData.js";
37
+ export * from "./CardPaymentRelationshipsTransactionDataType.js";
35
38
  export * from "./CardPaymentType.js";
36
39
  export * from "./ComplianceSessionStatusResponse.js";
37
40
  export * from "./ComplianceSessionStatusResponseData.js";
@@ -48,6 +48,9 @@ __exportStar(require("./CardPaymentRelationshipsPaymentIntentDataType.js"), expo
48
48
  __exportStar(require("./CardPaymentRelationshipsRefunds.js"), exports);
49
49
  __exportStar(require("./CardPaymentRelationshipsRefundsDataItem.js"), exports);
50
50
  __exportStar(require("./CardPaymentRelationshipsRefundsDataItemType.js"), exports);
51
+ __exportStar(require("./CardPaymentRelationshipsTransaction.js"), exports);
52
+ __exportStar(require("./CardPaymentRelationshipsTransactionData.js"), exports);
53
+ __exportStar(require("./CardPaymentRelationshipsTransactionDataType.js"), exports);
51
54
  __exportStar(require("./CardPaymentType.js"), exports);
52
55
  __exportStar(require("./ComplianceSessionStatusResponse.js"), exports);
53
56
  __exportStar(require("./ComplianceSessionStatusResponseData.js"), exports);
@@ -9,6 +9,7 @@ export declare namespace CreateCardSessionsRequest {
9
9
  customerPartyId?: string | null;
10
10
  allowedHosts: string[];
11
11
  ttlSeconds?: number | null;
12
+ claimWindowSeconds?: number | null;
12
13
  purchase?: CreateCardSessionsRequestPurchase.Raw | null;
13
14
  reference?: string | null;
14
15
  returnUrl?: string | null;
@@ -42,6 +42,7 @@ exports.CreateCardSessionsRequest = core.serialization.object({
42
42
  customerPartyId: core.serialization.string().optional(),
43
43
  allowedHosts: core.serialization.list(core.serialization.string()),
44
44
  ttlSeconds: core.serialization.number().optional(),
45
+ claimWindowSeconds: core.serialization.number().optional(),
45
46
  purchase: CreateCardSessionsRequestPurchase_js_1.CreateCardSessionsRequestPurchase.optional(),
46
47
  reference: core.serialization.string().optional(),
47
48
  returnUrl: core.serialization.string().optional(),
@@ -14,6 +14,7 @@ export declare namespace CreateCardSessionsResponse {
14
14
  status: CreateCardSessionsResponseStatus.Raw;
15
15
  allowedHosts: string[];
16
16
  reference?: string | null;
17
+ approvalExpiresAt: string;
17
18
  claimExpiresAt: string;
18
19
  claimedAt?: string | null;
19
20
  credentialExpiresAt?: string | null;
@@ -47,6 +47,7 @@ exports.CreateCardSessionsResponse = core.serialization.object({
47
47
  status: CreateCardSessionsResponseStatus_js_1.CreateCardSessionsResponseStatus,
48
48
  allowedHosts: core.serialization.list(core.serialization.string()),
49
49
  reference: core.serialization.string().nullable(),
50
+ approvalExpiresAt: core.serialization.string(),
50
51
  claimExpiresAt: core.serialization.string(),
51
52
  claimedAt: core.serialization.string().nullable(),
52
53
  credentialExpiresAt: core.serialization.string().nullable(),
@@ -14,6 +14,7 @@ export declare namespace GetCardSessionsResponse {
14
14
  status: GetCardSessionsResponseStatus.Raw;
15
15
  allowedHosts: string[];
16
16
  reference?: string | null;
17
+ approvalExpiresAt: string;
17
18
  claimExpiresAt: string;
18
19
  claimedAt?: string | null;
19
20
  credentialExpiresAt?: string | null;
@@ -47,6 +47,7 @@ exports.GetCardSessionsResponse = core.serialization.object({
47
47
  status: GetCardSessionsResponseStatus_js_1.GetCardSessionsResponseStatus,
48
48
  allowedHosts: core.serialization.list(core.serialization.string()),
49
49
  reference: core.serialization.string().nullable(),
50
+ approvalExpiresAt: core.serialization.string(),
50
51
  claimExpiresAt: core.serialization.string(),
51
52
  claimedAt: core.serialization.string().nullable(),
52
53
  credentialExpiresAt: core.serialization.string().nullable(),
@@ -14,6 +14,7 @@ export declare namespace ListCardSessionsResponseDataItem {
14
14
  status: ListCardSessionsResponseDataItemStatus.Raw;
15
15
  allowedHosts: string[];
16
16
  reference?: string | null;
17
+ approvalExpiresAt: string;
17
18
  claimExpiresAt: string;
18
19
  claimedAt?: string | null;
19
20
  credentialExpiresAt?: string | null;
@@ -47,6 +47,7 @@ exports.ListCardSessionsResponseDataItem = core.serialization.object({
47
47
  status: ListCardSessionsResponseDataItemStatus_js_1.ListCardSessionsResponseDataItemStatus,
48
48
  allowedHosts: core.serialization.list(core.serialization.string()),
49
49
  reference: core.serialization.string().nullable(),
50
+ approvalExpiresAt: core.serialization.string(),
50
51
  claimExpiresAt: core.serialization.string(),
51
52
  claimedAt: core.serialization.string().nullable(),
52
53
  credentialExpiresAt: core.serialization.string().nullable(),
@@ -3,10 +3,12 @@ import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
4
  import { CardPaymentRelationshipsPaymentIntent } from "./CardPaymentRelationshipsPaymentIntent.js";
5
5
  import { CardPaymentRelationshipsRefunds } from "./CardPaymentRelationshipsRefunds.js";
6
+ import { CardPaymentRelationshipsTransaction } from "./CardPaymentRelationshipsTransaction.js";
6
7
  export declare const CardPaymentRelationships: core.serialization.ObjectSchema<serializers.CardPaymentRelationships.Raw, Natural.CardPaymentRelationships>;
7
8
  export declare namespace CardPaymentRelationships {
8
9
  interface Raw {
9
10
  paymentIntent: CardPaymentRelationshipsPaymentIntent.Raw;
10
11
  refunds: CardPaymentRelationshipsRefunds.Raw;
12
+ transaction: CardPaymentRelationshipsTransaction.Raw;
11
13
  }
12
14
  }
@@ -38,7 +38,9 @@ exports.CardPaymentRelationships = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  const CardPaymentRelationshipsPaymentIntent_js_1 = require("./CardPaymentRelationshipsPaymentIntent.js");
40
40
  const CardPaymentRelationshipsRefunds_js_1 = require("./CardPaymentRelationshipsRefunds.js");
41
+ const CardPaymentRelationshipsTransaction_js_1 = require("./CardPaymentRelationshipsTransaction.js");
41
42
  exports.CardPaymentRelationships = core.serialization.object({
42
43
  paymentIntent: CardPaymentRelationshipsPaymentIntent_js_1.CardPaymentRelationshipsPaymentIntent,
43
44
  refunds: CardPaymentRelationshipsRefunds_js_1.CardPaymentRelationshipsRefunds,
45
+ transaction: CardPaymentRelationshipsTransaction_js_1.CardPaymentRelationshipsTransaction,
44
46
  });
@@ -0,0 +1,10 @@
1
+ import type * as Natural from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ import { CardPaymentRelationshipsTransactionData } from "./CardPaymentRelationshipsTransactionData.js";
5
+ export declare const CardPaymentRelationshipsTransaction: core.serialization.ObjectSchema<serializers.CardPaymentRelationshipsTransaction.Raw, Natural.CardPaymentRelationshipsTransaction>;
6
+ export declare namespace CardPaymentRelationshipsTransaction {
7
+ interface Raw {
8
+ data?: CardPaymentRelationshipsTransactionData.Raw | null;
9
+ }
10
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.CardPaymentRelationshipsTransaction = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const CardPaymentRelationshipsTransactionData_js_1 = require("./CardPaymentRelationshipsTransactionData.js");
40
+ exports.CardPaymentRelationshipsTransaction = core.serialization.object({
41
+ data: CardPaymentRelationshipsTransactionData_js_1.CardPaymentRelationshipsTransactionData.nullable(),
42
+ });
@@ -0,0 +1,11 @@
1
+ import type * as Natural from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ import { CardPaymentRelationshipsTransactionDataType } from "./CardPaymentRelationshipsTransactionDataType.js";
5
+ export declare const CardPaymentRelationshipsTransactionData: core.serialization.ObjectSchema<serializers.CardPaymentRelationshipsTransactionData.Raw, Natural.CardPaymentRelationshipsTransactionData>;
6
+ export declare namespace CardPaymentRelationshipsTransactionData {
7
+ interface Raw {
8
+ type: CardPaymentRelationshipsTransactionDataType.Raw;
9
+ id: string;
10
+ }
11
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.CardPaymentRelationshipsTransactionData = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const CardPaymentRelationshipsTransactionDataType_js_1 = require("./CardPaymentRelationshipsTransactionDataType.js");
40
+ exports.CardPaymentRelationshipsTransactionData = core.serialization.object({
41
+ type: CardPaymentRelationshipsTransactionDataType_js_1.CardPaymentRelationshipsTransactionDataType,
42
+ id: core.serialization.string(),
43
+ });
@@ -0,0 +1,7 @@
1
+ import type * as Natural from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const CardPaymentRelationshipsTransactionDataType: core.serialization.Schema<serializers.CardPaymentRelationshipsTransactionDataType.Raw, Natural.CardPaymentRelationshipsTransactionDataType>;
5
+ export declare namespace CardPaymentRelationshipsTransactionDataType {
6
+ type Raw = "transaction";
7
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.CardPaymentRelationshipsTransactionDataType = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.CardPaymentRelationshipsTransactionDataType = core.serialization.enum_(["transaction"]);
@@ -32,6 +32,9 @@ export * from "./CardPaymentRelationshipsPaymentIntentDataType.js";
32
32
  export * from "./CardPaymentRelationshipsRefunds.js";
33
33
  export * from "./CardPaymentRelationshipsRefundsDataItem.js";
34
34
  export * from "./CardPaymentRelationshipsRefundsDataItemType.js";
35
+ export * from "./CardPaymentRelationshipsTransaction.js";
36
+ export * from "./CardPaymentRelationshipsTransactionData.js";
37
+ export * from "./CardPaymentRelationshipsTransactionDataType.js";
35
38
  export * from "./CardPaymentType.js";
36
39
  export * from "./ComplianceSessionStatusResponse.js";
37
40
  export * from "./ComplianceSessionStatusResponseData.js";
@@ -48,6 +48,9 @@ __exportStar(require("./CardPaymentRelationshipsPaymentIntentDataType.js"), expo
48
48
  __exportStar(require("./CardPaymentRelationshipsRefunds.js"), exports);
49
49
  __exportStar(require("./CardPaymentRelationshipsRefundsDataItem.js"), exports);
50
50
  __exportStar(require("./CardPaymentRelationshipsRefundsDataItemType.js"), exports);
51
+ __exportStar(require("./CardPaymentRelationshipsTransaction.js"), exports);
52
+ __exportStar(require("./CardPaymentRelationshipsTransactionData.js"), exports);
53
+ __exportStar(require("./CardPaymentRelationshipsTransactionDataType.js"), exports);
51
54
  __exportStar(require("./CardPaymentType.js"), exports);
52
55
  __exportStar(require("./ComplianceSessionStatusResponse.js"), exports);
53
56
  __exportStar(require("./ComplianceSessionStatusResponseData.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.6.49";
1
+ export declare const SDK_VERSION = "1.6.50";
@@ -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.49";
4
+ exports.SDK_VERSION = "1.6.50";
@@ -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.49",
10
- "User-Agent": "@naturalpay/sdk/1.6.49",
9
+ "X-Fern-SDK-Version": "1.6.50",
10
+ "User-Agent": "@naturalpay/sdk/1.6.50",
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,
@@ -65,6 +65,7 @@ export declare class CardSessionsClient {
65
65
  * cardId: "eac_01a0e642ed4873d685273ce0e7d1ccab",
66
66
  * allowedHosts: ["api.stripe.com"],
67
67
  * ttlSeconds: 600,
68
+ * claimWindowSeconds: 3600,
68
69
  * purchase: {
69
70
  * merchantName: "Blue Bottle Coffee",
70
71
  * amount: 2450,
@@ -170,6 +170,7 @@ export class CardSessionsClient {
170
170
  * cardId: "eac_01a0e642ed4873d685273ce0e7d1ccab",
171
171
  * allowedHosts: ["api.stripe.com"],
172
172
  * ttlSeconds: 600,
173
+ * claimWindowSeconds: 3600,
173
174
  * purchase: {
174
175
  * merchantName: "Blue Bottle Coffee",
175
176
  * amount: 2450,
@@ -5,6 +5,7 @@ import type * as Natural from "../../../../index.mjs";
5
5
  * cardId: "eac_01a0e642ed4873d685273ce0e7d1ccab",
6
6
  * allowedHosts: ["api.stripe.com"],
7
7
  * ttlSeconds: 600,
8
+ * claimWindowSeconds: 3600,
8
9
  * purchase: {
9
10
  * merchantName: "Blue Bottle Coffee",
10
11
  * amount: 2450,
@@ -21,10 +22,12 @@ export interface CreateCardSessionsRequest {
21
22
  cardId: string;
22
23
  /** Customer party to act for (pty_*). Omit to act as your own party. To act for another party, pass the ID of a party that has authorized you to act on its behalf. */
23
24
  customerPartyId?: string;
24
- /** Exact hostnames allowed to receive the real card, such as the payment processor's API host the merchant's checkout sends the card to. Required: there is no default. */
25
+ /** Exact hostnames allowed to receive the real card, such as the payment processor's API host the merchant's checkout sends the card to. Required: there is no default. When the card fields are an iframe from checkoutshopper-live.adyen.com or flex.cybersource.com, list that host, and for CyberSource also the merchant host that serves the payment page. */
25
26
  allowedHosts: string[];
26
27
  /** How long the stand-in card and proxy login stay valid once claimed. Defaults to 600. */
27
28
  ttlSeconds?: number;
29
+ /** 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
+ claimWindowSeconds?: number;
28
31
  /** What the agent is buying. Required for a card the user added (eac_): the user approves this exact purchase. */
29
32
  purchase?: Natural.CreateCardSessionsRequestPurchase;
30
33
  /** 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. */
@@ -9,7 +9,9 @@ export interface CreateCardSessionsResponse {
9
9
  allowedHosts: string[];
10
10
  /** The reference you created the session with. Null when you didn't set one. */
11
11
  reference: string | null;
12
- /** A pending session must be approved, and an approved one claimed, before this. */
12
+ /** A pending session must be approved before this, 10 minutes after creation. After it, an unapproved session is expired. */
13
+ approvalExpiresAt: string;
14
+ /** An approved session must be claimed before this: creation plus claimWindowSeconds. After it, an unclaimed session is expired. */
13
15
  claimExpiresAt: string;
14
16
  claimedAt: string | null;
15
17
  /** When the claimed proxy login stops working. */
@@ -9,7 +9,9 @@ export interface GetCardSessionsResponse {
9
9
  allowedHosts: string[];
10
10
  /** The reference you created the session with. Null when you didn't set one. */
11
11
  reference: string | null;
12
- /** A pending session must be approved, and an approved one claimed, before this. */
12
+ /** A pending session must be approved before this, 10 minutes after creation. After it, an unapproved session is expired. */
13
+ approvalExpiresAt: string;
14
+ /** An approved session must be claimed before this: creation plus claimWindowSeconds. After it, an unclaimed session is expired. */
13
15
  claimExpiresAt: string;
14
16
  claimedAt: string | null;
15
17
  /** When the claimed proxy login stops working. */
@@ -9,7 +9,9 @@ export interface ListCardSessionsResponseDataItem {
9
9
  allowedHosts: string[];
10
10
  /** The reference you created the session with. Null when you didn't set one. */
11
11
  reference: string | null;
12
- /** A pending session must be approved, and an approved one claimed, before this. */
12
+ /** A pending session must be approved before this, 10 minutes after creation. After it, an unapproved session is expired. */
13
+ approvalExpiresAt: string;
14
+ /** An approved session must be claimed before this: creation plus claimWindowSeconds. After it, an unclaimed session is expired. */
13
15
  claimExpiresAt: string;
14
16
  claimedAt: string | null;
15
17
  /** When the claimed proxy login stops working. */
@@ -4,4 +4,6 @@ export interface CardPaymentRelationships {
4
4
  paymentIntent: Natural.CardPaymentRelationshipsPaymentIntent;
5
5
  /** Up to 25 newest refund references, including pending and failed refunds. List refunds by cardPaymentId for the full history. */
6
6
  refunds: Natural.CardPaymentRelationshipsRefunds;
7
+ /** The same payment in GET /transactions. Null until the payment first changes status. */
8
+ transaction: Natural.CardPaymentRelationshipsTransaction;
7
9
  }
@@ -0,0 +1,8 @@
1
+ import type * as Natural from "../index.mjs";
2
+ /**
3
+ * The same payment in GET /transactions. Null until the payment first changes status.
4
+ */
5
+ export interface CardPaymentRelationshipsTransaction {
6
+ /** Related resource identifier. */
7
+ data: Natural.CardPaymentRelationshipsTransactionData | null;
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ import type * as Natural from "../index.mjs";
2
+ /**
3
+ * Related resource identifier.
4
+ */
5
+ export interface CardPaymentRelationshipsTransactionData {
6
+ /** Resource type. Always `transaction`. */
7
+ type: Natural.CardPaymentRelationshipsTransactionDataType;
8
+ /** Transaction ID (txn_*). */
9
+ id: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,5 @@
1
+ /** Resource type. Always `transaction`. */
2
+ export declare const CardPaymentRelationshipsTransactionDataType: {
3
+ readonly Transaction: "transaction";
4
+ };
5
+ export type CardPaymentRelationshipsTransactionDataType = (typeof CardPaymentRelationshipsTransactionDataType)[keyof typeof CardPaymentRelationshipsTransactionDataType];
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** Resource type. Always `transaction`. */
3
+ export const CardPaymentRelationshipsTransactionDataType = {
4
+ Transaction: "transaction",
5
+ };
@@ -32,6 +32,9 @@ export * from "./CardPaymentRelationshipsPaymentIntentDataType.mjs";
32
32
  export * from "./CardPaymentRelationshipsRefunds.mjs";
33
33
  export * from "./CardPaymentRelationshipsRefundsDataItem.mjs";
34
34
  export * from "./CardPaymentRelationshipsRefundsDataItemType.mjs";
35
+ export * from "./CardPaymentRelationshipsTransaction.mjs";
36
+ export * from "./CardPaymentRelationshipsTransactionData.mjs";
37
+ export * from "./CardPaymentRelationshipsTransactionDataType.mjs";
35
38
  export * from "./CardPaymentType.mjs";
36
39
  export * from "./ComplianceSessionStatusResponse.mjs";
37
40
  export * from "./ComplianceSessionStatusResponseData.mjs";
@@ -32,6 +32,9 @@ export * from "./CardPaymentRelationshipsPaymentIntentDataType.mjs";
32
32
  export * from "./CardPaymentRelationshipsRefunds.mjs";
33
33
  export * from "./CardPaymentRelationshipsRefundsDataItem.mjs";
34
34
  export * from "./CardPaymentRelationshipsRefundsDataItemType.mjs";
35
+ export * from "./CardPaymentRelationshipsTransaction.mjs";
36
+ export * from "./CardPaymentRelationshipsTransactionData.mjs";
37
+ export * from "./CardPaymentRelationshipsTransactionDataType.mjs";
35
38
  export * from "./CardPaymentType.mjs";
36
39
  export * from "./ComplianceSessionStatusResponse.mjs";
37
40
  export * from "./ComplianceSessionStatusResponseData.mjs";
@@ -9,6 +9,7 @@ export declare namespace CreateCardSessionsRequest {
9
9
  customerPartyId?: string | null;
10
10
  allowedHosts: string[];
11
11
  ttlSeconds?: number | null;
12
+ claimWindowSeconds?: number | null;
12
13
  purchase?: CreateCardSessionsRequestPurchase.Raw | null;
13
14
  reference?: string | null;
14
15
  returnUrl?: string | null;
@@ -6,6 +6,7 @@ export const CreateCardSessionsRequest = core.serialization.object({
6
6
  customerPartyId: core.serialization.string().optional(),
7
7
  allowedHosts: core.serialization.list(core.serialization.string()),
8
8
  ttlSeconds: core.serialization.number().optional(),
9
+ claimWindowSeconds: core.serialization.number().optional(),
9
10
  purchase: CreateCardSessionsRequestPurchase.optional(),
10
11
  reference: core.serialization.string().optional(),
11
12
  returnUrl: core.serialization.string().optional(),
@@ -14,6 +14,7 @@ export declare namespace CreateCardSessionsResponse {
14
14
  status: CreateCardSessionsResponseStatus.Raw;
15
15
  allowedHosts: string[];
16
16
  reference?: string | null;
17
+ approvalExpiresAt: string;
17
18
  claimExpiresAt: string;
18
19
  claimedAt?: string | null;
19
20
  credentialExpiresAt?: string | null;
@@ -11,6 +11,7 @@ export const CreateCardSessionsResponse = core.serialization.object({
11
11
  status: CreateCardSessionsResponseStatus,
12
12
  allowedHosts: core.serialization.list(core.serialization.string()),
13
13
  reference: core.serialization.string().nullable(),
14
+ approvalExpiresAt: core.serialization.string(),
14
15
  claimExpiresAt: core.serialization.string(),
15
16
  claimedAt: core.serialization.string().nullable(),
16
17
  credentialExpiresAt: core.serialization.string().nullable(),
@@ -14,6 +14,7 @@ export declare namespace GetCardSessionsResponse {
14
14
  status: GetCardSessionsResponseStatus.Raw;
15
15
  allowedHosts: string[];
16
16
  reference?: string | null;
17
+ approvalExpiresAt: string;
17
18
  claimExpiresAt: string;
18
19
  claimedAt?: string | null;
19
20
  credentialExpiresAt?: string | null;
@@ -11,6 +11,7 @@ export const GetCardSessionsResponse = core.serialization.object({
11
11
  status: GetCardSessionsResponseStatus,
12
12
  allowedHosts: core.serialization.list(core.serialization.string()),
13
13
  reference: core.serialization.string().nullable(),
14
+ approvalExpiresAt: core.serialization.string(),
14
15
  claimExpiresAt: core.serialization.string(),
15
16
  claimedAt: core.serialization.string().nullable(),
16
17
  credentialExpiresAt: core.serialization.string().nullable(),
@@ -14,6 +14,7 @@ export declare namespace ListCardSessionsResponseDataItem {
14
14
  status: ListCardSessionsResponseDataItemStatus.Raw;
15
15
  allowedHosts: string[];
16
16
  reference?: string | null;
17
+ approvalExpiresAt: string;
17
18
  claimExpiresAt: string;
18
19
  claimedAt?: string | null;
19
20
  credentialExpiresAt?: string | null;
@@ -11,6 +11,7 @@ export const ListCardSessionsResponseDataItem = core.serialization.object({
11
11
  status: ListCardSessionsResponseDataItemStatus,
12
12
  allowedHosts: core.serialization.list(core.serialization.string()),
13
13
  reference: core.serialization.string().nullable(),
14
+ approvalExpiresAt: core.serialization.string(),
14
15
  claimExpiresAt: core.serialization.string(),
15
16
  claimedAt: core.serialization.string().nullable(),
16
17
  credentialExpiresAt: core.serialization.string().nullable(),
@@ -3,10 +3,12 @@ import * as core from "../../core/index.mjs";
3
3
  import type * as serializers from "../index.mjs";
4
4
  import { CardPaymentRelationshipsPaymentIntent } from "./CardPaymentRelationshipsPaymentIntent.mjs";
5
5
  import { CardPaymentRelationshipsRefunds } from "./CardPaymentRelationshipsRefunds.mjs";
6
+ import { CardPaymentRelationshipsTransaction } from "./CardPaymentRelationshipsTransaction.mjs";
6
7
  export declare const CardPaymentRelationships: core.serialization.ObjectSchema<serializers.CardPaymentRelationships.Raw, Natural.CardPaymentRelationships>;
7
8
  export declare namespace CardPaymentRelationships {
8
9
  interface Raw {
9
10
  paymentIntent: CardPaymentRelationshipsPaymentIntent.Raw;
10
11
  refunds: CardPaymentRelationshipsRefunds.Raw;
12
+ transaction: CardPaymentRelationshipsTransaction.Raw;
11
13
  }
12
14
  }
@@ -2,7 +2,9 @@
2
2
  import * as core from "../../core/index.mjs";
3
3
  import { CardPaymentRelationshipsPaymentIntent } from "./CardPaymentRelationshipsPaymentIntent.mjs";
4
4
  import { CardPaymentRelationshipsRefunds } from "./CardPaymentRelationshipsRefunds.mjs";
5
+ import { CardPaymentRelationshipsTransaction } from "./CardPaymentRelationshipsTransaction.mjs";
5
6
  export const CardPaymentRelationships = core.serialization.object({
6
7
  paymentIntent: CardPaymentRelationshipsPaymentIntent,
7
8
  refunds: CardPaymentRelationshipsRefunds,
9
+ transaction: CardPaymentRelationshipsTransaction,
8
10
  });
@@ -0,0 +1,10 @@
1
+ import type * as Natural from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ import { CardPaymentRelationshipsTransactionData } from "./CardPaymentRelationshipsTransactionData.mjs";
5
+ export declare const CardPaymentRelationshipsTransaction: core.serialization.ObjectSchema<serializers.CardPaymentRelationshipsTransaction.Raw, Natural.CardPaymentRelationshipsTransaction>;
6
+ export declare namespace CardPaymentRelationshipsTransaction {
7
+ interface Raw {
8
+ data?: CardPaymentRelationshipsTransactionData.Raw | null;
9
+ }
10
+ }
@@ -0,0 +1,6 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ import { CardPaymentRelationshipsTransactionData } from "./CardPaymentRelationshipsTransactionData.mjs";
4
+ export const CardPaymentRelationshipsTransaction = core.serialization.object({
5
+ data: CardPaymentRelationshipsTransactionData.nullable(),
6
+ });
@@ -0,0 +1,11 @@
1
+ import type * as Natural from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ import { CardPaymentRelationshipsTransactionDataType } from "./CardPaymentRelationshipsTransactionDataType.mjs";
5
+ export declare const CardPaymentRelationshipsTransactionData: core.serialization.ObjectSchema<serializers.CardPaymentRelationshipsTransactionData.Raw, Natural.CardPaymentRelationshipsTransactionData>;
6
+ export declare namespace CardPaymentRelationshipsTransactionData {
7
+ interface Raw {
8
+ type: CardPaymentRelationshipsTransactionDataType.Raw;
9
+ id: string;
10
+ }
11
+ }
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ import { CardPaymentRelationshipsTransactionDataType } from "./CardPaymentRelationshipsTransactionDataType.mjs";
4
+ export const CardPaymentRelationshipsTransactionData = core.serialization.object({
5
+ type: CardPaymentRelationshipsTransactionDataType,
6
+ id: core.serialization.string(),
7
+ });
@@ -0,0 +1,7 @@
1
+ import type * as Natural from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ export declare const CardPaymentRelationshipsTransactionDataType: core.serialization.Schema<serializers.CardPaymentRelationshipsTransactionDataType.Raw, Natural.CardPaymentRelationshipsTransactionDataType>;
5
+ export declare namespace CardPaymentRelationshipsTransactionDataType {
6
+ type Raw = "transaction";
7
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ export const CardPaymentRelationshipsTransactionDataType = core.serialization.enum_(["transaction"]);
@@ -32,6 +32,9 @@ export * from "./CardPaymentRelationshipsPaymentIntentDataType.mjs";
32
32
  export * from "./CardPaymentRelationshipsRefunds.mjs";
33
33
  export * from "./CardPaymentRelationshipsRefundsDataItem.mjs";
34
34
  export * from "./CardPaymentRelationshipsRefundsDataItemType.mjs";
35
+ export * from "./CardPaymentRelationshipsTransaction.mjs";
36
+ export * from "./CardPaymentRelationshipsTransactionData.mjs";
37
+ export * from "./CardPaymentRelationshipsTransactionDataType.mjs";
35
38
  export * from "./CardPaymentType.mjs";
36
39
  export * from "./ComplianceSessionStatusResponse.mjs";
37
40
  export * from "./ComplianceSessionStatusResponseData.mjs";
@@ -32,6 +32,9 @@ export * from "./CardPaymentRelationshipsPaymentIntentDataType.mjs";
32
32
  export * from "./CardPaymentRelationshipsRefunds.mjs";
33
33
  export * from "./CardPaymentRelationshipsRefundsDataItem.mjs";
34
34
  export * from "./CardPaymentRelationshipsRefundsDataItemType.mjs";
35
+ export * from "./CardPaymentRelationshipsTransaction.mjs";
36
+ export * from "./CardPaymentRelationshipsTransactionData.mjs";
37
+ export * from "./CardPaymentRelationshipsTransactionDataType.mjs";
35
38
  export * from "./CardPaymentType.mjs";
36
39
  export * from "./ComplianceSessionStatusResponse.mjs";
37
40
  export * from "./ComplianceSessionStatusResponseData.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.6.49";
1
+ export declare const SDK_VERSION = "1.6.50";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.6.49";
1
+ export const SDK_VERSION = "1.6.50";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalpay/sdk",
3
- "version": "1.6.49",
3
+ "version": "1.6.50",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -8880,6 +8880,7 @@ await client.cardSessions.create({
8880
8880
  cardId: "eac_01a0e642ed4873d685273ce0e7d1ccab",
8881
8881
  allowedHosts: ["api.stripe.com"],
8882
8882
  ttlSeconds: 600,
8883
+ claimWindowSeconds: 3600,
8883
8884
  purchase: {
8884
8885
  merchantName: "Blue Bottle Coffee",
8885
8886
  amount: 2450,