@naturalpay/sdk 1.6.49 → 1.6.51

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 (112) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/cardSessions/client/Client.d.ts +3 -1
  3. package/dist/cjs/api/resources/cardSessions/client/Client.js +3 -1
  4. package/dist/cjs/api/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.ts +8 -4
  5. package/dist/cjs/api/resources/cardSessions/types/CreateCardSessionsRequestPurchase.d.ts +5 -3
  6. package/dist/cjs/api/resources/cardSessions/types/CreateCardSessionsResponse.d.ts +5 -1
  7. package/dist/cjs/api/resources/cardSessions/types/CreateCardSessionsResponsePurchase.d.ts +8 -0
  8. package/dist/cjs/api/resources/cardSessions/types/CreateCardSessionsResponsePurchase.js +3 -0
  9. package/dist/cjs/api/resources/cardSessions/types/GetCardSessionsResponse.d.ts +5 -1
  10. package/dist/cjs/api/resources/cardSessions/types/GetCardSessionsResponsePurchase.d.ts +8 -0
  11. package/dist/cjs/api/resources/cardSessions/types/GetCardSessionsResponsePurchase.js +3 -0
  12. package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.ts +5 -1
  13. package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsResponseDataItemPurchase.d.ts +8 -0
  14. package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsResponseDataItemPurchase.js +3 -0
  15. package/dist/cjs/api/resources/cardSessions/types/index.d.ts +3 -0
  16. package/dist/cjs/api/resources/cardSessions/types/index.js +3 -0
  17. package/dist/cjs/api/types/CardPaymentRelationships.d.ts +2 -0
  18. package/dist/cjs/api/types/CardPaymentRelationshipsTransaction.d.ts +8 -0
  19. package/dist/cjs/api/types/CardPaymentRelationshipsTransaction.js +3 -0
  20. package/dist/cjs/api/types/CardPaymentRelationshipsTransactionData.d.ts +10 -0
  21. package/dist/cjs/api/types/CardPaymentRelationshipsTransactionData.js +3 -0
  22. package/dist/cjs/api/types/CardPaymentRelationshipsTransactionDataType.d.ts +5 -0
  23. package/dist/cjs/api/types/CardPaymentRelationshipsTransactionDataType.js +8 -0
  24. package/dist/cjs/api/types/index.d.ts +3 -0
  25. package/dist/cjs/api/types/index.js +3 -0
  26. package/dist/cjs/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.ts +1 -0
  27. package/dist/cjs/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.js +1 -0
  28. package/dist/cjs/serialization/resources/cardSessions/types/CreateCardSessionsRequestPurchase.d.ts +1 -0
  29. package/dist/cjs/serialization/resources/cardSessions/types/CreateCardSessionsRequestPurchase.js +1 -0
  30. package/dist/cjs/serialization/resources/cardSessions/types/CreateCardSessionsResponse.d.ts +3 -0
  31. package/dist/cjs/serialization/resources/cardSessions/types/CreateCardSessionsResponse.js +3 -0
  32. package/dist/cjs/serialization/resources/cardSessions/types/CreateCardSessionsResponsePurchase.d.ts +12 -0
  33. package/dist/cjs/serialization/resources/cardSessions/types/CreateCardSessionsResponsePurchase.js +44 -0
  34. package/dist/cjs/serialization/resources/cardSessions/types/GetCardSessionsResponse.d.ts +3 -0
  35. package/dist/cjs/serialization/resources/cardSessions/types/GetCardSessionsResponse.js +3 -0
  36. package/dist/cjs/serialization/resources/cardSessions/types/GetCardSessionsResponsePurchase.d.ts +12 -0
  37. package/dist/cjs/serialization/resources/cardSessions/types/GetCardSessionsResponsePurchase.js +44 -0
  38. package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.ts +3 -0
  39. package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.js +3 -0
  40. package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItemPurchase.d.ts +12 -0
  41. package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItemPurchase.js +44 -0
  42. package/dist/cjs/serialization/resources/cardSessions/types/index.d.ts +3 -0
  43. package/dist/cjs/serialization/resources/cardSessions/types/index.js +3 -0
  44. package/dist/cjs/serialization/types/CardPaymentRelationships.d.ts +2 -0
  45. package/dist/cjs/serialization/types/CardPaymentRelationships.js +2 -0
  46. package/dist/cjs/serialization/types/CardPaymentRelationshipsTransaction.d.ts +10 -0
  47. package/dist/cjs/serialization/types/CardPaymentRelationshipsTransaction.js +42 -0
  48. package/dist/cjs/serialization/types/CardPaymentRelationshipsTransactionData.d.ts +11 -0
  49. package/dist/cjs/serialization/types/CardPaymentRelationshipsTransactionData.js +43 -0
  50. package/dist/cjs/serialization/types/CardPaymentRelationshipsTransactionDataType.d.ts +7 -0
  51. package/dist/cjs/serialization/types/CardPaymentRelationshipsTransactionDataType.js +39 -0
  52. package/dist/cjs/serialization/types/index.d.ts +3 -0
  53. package/dist/cjs/serialization/types/index.js +3 -0
  54. package/dist/cjs/version.d.ts +1 -1
  55. package/dist/cjs/version.js +1 -1
  56. package/dist/esm/BaseClient.mjs +2 -2
  57. package/dist/esm/api/resources/cardSessions/client/Client.d.mts +3 -1
  58. package/dist/esm/api/resources/cardSessions/client/Client.mjs +3 -1
  59. package/dist/esm/api/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.mts +8 -4
  60. package/dist/esm/api/resources/cardSessions/types/CreateCardSessionsRequestPurchase.d.mts +5 -3
  61. package/dist/esm/api/resources/cardSessions/types/CreateCardSessionsResponse.d.mts +5 -1
  62. package/dist/esm/api/resources/cardSessions/types/CreateCardSessionsResponsePurchase.d.mts +8 -0
  63. package/dist/esm/api/resources/cardSessions/types/CreateCardSessionsResponsePurchase.mjs +2 -0
  64. package/dist/esm/api/resources/cardSessions/types/GetCardSessionsResponse.d.mts +5 -1
  65. package/dist/esm/api/resources/cardSessions/types/GetCardSessionsResponsePurchase.d.mts +8 -0
  66. package/dist/esm/api/resources/cardSessions/types/GetCardSessionsResponsePurchase.mjs +2 -0
  67. package/dist/esm/api/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.mts +5 -1
  68. package/dist/esm/api/resources/cardSessions/types/ListCardSessionsResponseDataItemPurchase.d.mts +8 -0
  69. package/dist/esm/api/resources/cardSessions/types/ListCardSessionsResponseDataItemPurchase.mjs +2 -0
  70. package/dist/esm/api/resources/cardSessions/types/index.d.mts +3 -0
  71. package/dist/esm/api/resources/cardSessions/types/index.mjs +3 -0
  72. package/dist/esm/api/types/CardPaymentRelationships.d.mts +2 -0
  73. package/dist/esm/api/types/CardPaymentRelationshipsTransaction.d.mts +8 -0
  74. package/dist/esm/api/types/CardPaymentRelationshipsTransaction.mjs +2 -0
  75. package/dist/esm/api/types/CardPaymentRelationshipsTransactionData.d.mts +10 -0
  76. package/dist/esm/api/types/CardPaymentRelationshipsTransactionData.mjs +2 -0
  77. package/dist/esm/api/types/CardPaymentRelationshipsTransactionDataType.d.mts +5 -0
  78. package/dist/esm/api/types/CardPaymentRelationshipsTransactionDataType.mjs +5 -0
  79. package/dist/esm/api/types/index.d.mts +3 -0
  80. package/dist/esm/api/types/index.mjs +3 -0
  81. package/dist/esm/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.mts +1 -0
  82. package/dist/esm/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.mjs +1 -0
  83. package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsRequestPurchase.d.mts +1 -0
  84. package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsRequestPurchase.mjs +1 -0
  85. package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsResponse.d.mts +3 -0
  86. package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsResponse.mjs +3 -0
  87. package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsResponsePurchase.d.mts +12 -0
  88. package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsResponsePurchase.mjs +8 -0
  89. package/dist/esm/serialization/resources/cardSessions/types/GetCardSessionsResponse.d.mts +3 -0
  90. package/dist/esm/serialization/resources/cardSessions/types/GetCardSessionsResponse.mjs +3 -0
  91. package/dist/esm/serialization/resources/cardSessions/types/GetCardSessionsResponsePurchase.d.mts +12 -0
  92. package/dist/esm/serialization/resources/cardSessions/types/GetCardSessionsResponsePurchase.mjs +8 -0
  93. package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.mts +3 -0
  94. package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.mjs +3 -0
  95. package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItemPurchase.d.mts +12 -0
  96. package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItemPurchase.mjs +8 -0
  97. package/dist/esm/serialization/resources/cardSessions/types/index.d.mts +3 -0
  98. package/dist/esm/serialization/resources/cardSessions/types/index.mjs +3 -0
  99. package/dist/esm/serialization/types/CardPaymentRelationships.d.mts +2 -0
  100. package/dist/esm/serialization/types/CardPaymentRelationships.mjs +2 -0
  101. package/dist/esm/serialization/types/CardPaymentRelationshipsTransaction.d.mts +10 -0
  102. package/dist/esm/serialization/types/CardPaymentRelationshipsTransaction.mjs +6 -0
  103. package/dist/esm/serialization/types/CardPaymentRelationshipsTransactionData.d.mts +11 -0
  104. package/dist/esm/serialization/types/CardPaymentRelationshipsTransactionData.mjs +7 -0
  105. package/dist/esm/serialization/types/CardPaymentRelationshipsTransactionDataType.d.mts +7 -0
  106. package/dist/esm/serialization/types/CardPaymentRelationshipsTransactionDataType.mjs +3 -0
  107. package/dist/esm/serialization/types/index.d.mts +3 -0
  108. package/dist/esm/serialization/types/index.mjs +3 -0
  109. package/dist/esm/version.d.mts +1 -1
  110. package/dist/esm/version.mjs +1 -1
  111. package/package.json +1 -1
  112. package/reference.md +3 -1
@@ -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(),
@@ -7,5 +7,6 @@ export declare namespace CreateCardSessionsRequestPurchase {
7
7
  merchantName: string;
8
8
  amount: number;
9
9
  currency: string;
10
+ description?: string | null;
10
11
  }
11
12
  }
@@ -4,4 +4,5 @@ export const CreateCardSessionsRequestPurchase = core.serialization.object({
4
4
  merchantName: core.serialization.string(),
5
5
  amount: core.serialization.number(),
6
6
  currency: core.serialization.string(),
7
+ description: core.serialization.string().optional(),
7
8
  });
@@ -4,6 +4,7 @@ import type * as serializers from "../../../index.mjs";
4
4
  import { CreateCardSessionsResponseAgentToken } from "./CreateCardSessionsResponseAgentToken.mjs";
5
5
  import { CreateCardSessionsResponseCardSource } from "./CreateCardSessionsResponseCardSource.mjs";
6
6
  import { CreateCardSessionsResponseNote } from "./CreateCardSessionsResponseNote.mjs";
7
+ import { CreateCardSessionsResponsePurchase } from "./CreateCardSessionsResponsePurchase.mjs";
7
8
  import { CreateCardSessionsResponseStatus } from "./CreateCardSessionsResponseStatus.mjs";
8
9
  export declare const CreateCardSessionsResponse: core.serialization.ObjectSchema<serializers.CreateCardSessionsResponse.Raw, Natural.CreateCardSessionsResponse>;
9
10
  export declare namespace CreateCardSessionsResponse {
@@ -14,6 +15,8 @@ export declare namespace CreateCardSessionsResponse {
14
15
  status: CreateCardSessionsResponseStatus.Raw;
15
16
  allowedHosts: string[];
16
17
  reference?: string | null;
18
+ purchase?: CreateCardSessionsResponsePurchase.Raw | null;
19
+ approvalExpiresAt: string;
17
20
  claimExpiresAt: string;
18
21
  claimedAt?: string | null;
19
22
  credentialExpiresAt?: string | null;
@@ -3,6 +3,7 @@ import * as core from "../../../../core/index.mjs";
3
3
  import { CreateCardSessionsResponseAgentToken } from "./CreateCardSessionsResponseAgentToken.mjs";
4
4
  import { CreateCardSessionsResponseCardSource } from "./CreateCardSessionsResponseCardSource.mjs";
5
5
  import { CreateCardSessionsResponseNote } from "./CreateCardSessionsResponseNote.mjs";
6
+ import { CreateCardSessionsResponsePurchase } from "./CreateCardSessionsResponsePurchase.mjs";
6
7
  import { CreateCardSessionsResponseStatus } from "./CreateCardSessionsResponseStatus.mjs";
7
8
  export const CreateCardSessionsResponse = core.serialization.object({
8
9
  sessionId: core.serialization.string(),
@@ -11,6 +12,8 @@ export const CreateCardSessionsResponse = core.serialization.object({
11
12
  status: CreateCardSessionsResponseStatus,
12
13
  allowedHosts: core.serialization.list(core.serialization.string()),
13
14
  reference: core.serialization.string().nullable(),
15
+ purchase: CreateCardSessionsResponsePurchase.nullable(),
16
+ approvalExpiresAt: core.serialization.string(),
14
17
  claimExpiresAt: core.serialization.string(),
15
18
  claimedAt: core.serialization.string().nullable(),
16
19
  credentialExpiresAt: core.serialization.string().nullable(),
@@ -0,0 +1,12 @@
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 CreateCardSessionsResponsePurchase: core.serialization.ObjectSchema<serializers.CreateCardSessionsResponsePurchase.Raw, Natural.CreateCardSessionsResponsePurchase>;
5
+ export declare namespace CreateCardSessionsResponsePurchase {
6
+ interface Raw {
7
+ merchantName: string;
8
+ amount: number;
9
+ currency: string;
10
+ description?: string | null;
11
+ }
12
+ }
@@ -0,0 +1,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const CreateCardSessionsResponsePurchase = core.serialization.object({
4
+ merchantName: core.serialization.string(),
5
+ amount: core.serialization.number(),
6
+ currency: core.serialization.string(),
7
+ description: core.serialization.string().nullable(),
8
+ });
@@ -4,6 +4,7 @@ import type * as serializers from "../../../index.mjs";
4
4
  import { GetCardSessionsResponseAgentToken } from "./GetCardSessionsResponseAgentToken.mjs";
5
5
  import { GetCardSessionsResponseCardSource } from "./GetCardSessionsResponseCardSource.mjs";
6
6
  import { GetCardSessionsResponseNote } from "./GetCardSessionsResponseNote.mjs";
7
+ import { GetCardSessionsResponsePurchase } from "./GetCardSessionsResponsePurchase.mjs";
7
8
  import { GetCardSessionsResponseStatus } from "./GetCardSessionsResponseStatus.mjs";
8
9
  export declare const GetCardSessionsResponse: core.serialization.ObjectSchema<serializers.GetCardSessionsResponse.Raw, Natural.GetCardSessionsResponse>;
9
10
  export declare namespace GetCardSessionsResponse {
@@ -14,6 +15,8 @@ export declare namespace GetCardSessionsResponse {
14
15
  status: GetCardSessionsResponseStatus.Raw;
15
16
  allowedHosts: string[];
16
17
  reference?: string | null;
18
+ purchase?: GetCardSessionsResponsePurchase.Raw | null;
19
+ approvalExpiresAt: string;
17
20
  claimExpiresAt: string;
18
21
  claimedAt?: string | null;
19
22
  credentialExpiresAt?: string | null;
@@ -3,6 +3,7 @@ import * as core from "../../../../core/index.mjs";
3
3
  import { GetCardSessionsResponseAgentToken } from "./GetCardSessionsResponseAgentToken.mjs";
4
4
  import { GetCardSessionsResponseCardSource } from "./GetCardSessionsResponseCardSource.mjs";
5
5
  import { GetCardSessionsResponseNote } from "./GetCardSessionsResponseNote.mjs";
6
+ import { GetCardSessionsResponsePurchase } from "./GetCardSessionsResponsePurchase.mjs";
6
7
  import { GetCardSessionsResponseStatus } from "./GetCardSessionsResponseStatus.mjs";
7
8
  export const GetCardSessionsResponse = core.serialization.object({
8
9
  sessionId: core.serialization.string(),
@@ -11,6 +12,8 @@ export const GetCardSessionsResponse = core.serialization.object({
11
12
  status: GetCardSessionsResponseStatus,
12
13
  allowedHosts: core.serialization.list(core.serialization.string()),
13
14
  reference: core.serialization.string().nullable(),
15
+ purchase: GetCardSessionsResponsePurchase.nullable(),
16
+ approvalExpiresAt: core.serialization.string(),
14
17
  claimExpiresAt: core.serialization.string(),
15
18
  claimedAt: core.serialization.string().nullable(),
16
19
  credentialExpiresAt: core.serialization.string().nullable(),
@@ -0,0 +1,12 @@
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 GetCardSessionsResponsePurchase: core.serialization.ObjectSchema<serializers.GetCardSessionsResponsePurchase.Raw, Natural.GetCardSessionsResponsePurchase>;
5
+ export declare namespace GetCardSessionsResponsePurchase {
6
+ interface Raw {
7
+ merchantName: string;
8
+ amount: number;
9
+ currency: string;
10
+ description?: string | null;
11
+ }
12
+ }
@@ -0,0 +1,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const GetCardSessionsResponsePurchase = core.serialization.object({
4
+ merchantName: core.serialization.string(),
5
+ amount: core.serialization.number(),
6
+ currency: core.serialization.string(),
7
+ description: core.serialization.string().nullable(),
8
+ });
@@ -4,6 +4,7 @@ import type * as serializers from "../../../index.mjs";
4
4
  import { ListCardSessionsResponseDataItemAgentToken } from "./ListCardSessionsResponseDataItemAgentToken.mjs";
5
5
  import { ListCardSessionsResponseDataItemCardSource } from "./ListCardSessionsResponseDataItemCardSource.mjs";
6
6
  import { ListCardSessionsResponseDataItemNote } from "./ListCardSessionsResponseDataItemNote.mjs";
7
+ import { ListCardSessionsResponseDataItemPurchase } from "./ListCardSessionsResponseDataItemPurchase.mjs";
7
8
  import { ListCardSessionsResponseDataItemStatus } from "./ListCardSessionsResponseDataItemStatus.mjs";
8
9
  export declare const ListCardSessionsResponseDataItem: core.serialization.ObjectSchema<serializers.ListCardSessionsResponseDataItem.Raw, Natural.ListCardSessionsResponseDataItem>;
9
10
  export declare namespace ListCardSessionsResponseDataItem {
@@ -14,6 +15,8 @@ export declare namespace ListCardSessionsResponseDataItem {
14
15
  status: ListCardSessionsResponseDataItemStatus.Raw;
15
16
  allowedHosts: string[];
16
17
  reference?: string | null;
18
+ purchase?: ListCardSessionsResponseDataItemPurchase.Raw | null;
19
+ approvalExpiresAt: string;
17
20
  claimExpiresAt: string;
18
21
  claimedAt?: string | null;
19
22
  credentialExpiresAt?: string | null;
@@ -3,6 +3,7 @@ import * as core from "../../../../core/index.mjs";
3
3
  import { ListCardSessionsResponseDataItemAgentToken } from "./ListCardSessionsResponseDataItemAgentToken.mjs";
4
4
  import { ListCardSessionsResponseDataItemCardSource } from "./ListCardSessionsResponseDataItemCardSource.mjs";
5
5
  import { ListCardSessionsResponseDataItemNote } from "./ListCardSessionsResponseDataItemNote.mjs";
6
+ import { ListCardSessionsResponseDataItemPurchase } from "./ListCardSessionsResponseDataItemPurchase.mjs";
6
7
  import { ListCardSessionsResponseDataItemStatus } from "./ListCardSessionsResponseDataItemStatus.mjs";
7
8
  export const ListCardSessionsResponseDataItem = core.serialization.object({
8
9
  sessionId: core.serialization.string(),
@@ -11,6 +12,8 @@ export const ListCardSessionsResponseDataItem = core.serialization.object({
11
12
  status: ListCardSessionsResponseDataItemStatus,
12
13
  allowedHosts: core.serialization.list(core.serialization.string()),
13
14
  reference: core.serialization.string().nullable(),
15
+ purchase: ListCardSessionsResponseDataItemPurchase.nullable(),
16
+ approvalExpiresAt: core.serialization.string(),
14
17
  claimExpiresAt: core.serialization.string(),
15
18
  claimedAt: core.serialization.string().nullable(),
16
19
  credentialExpiresAt: core.serialization.string().nullable(),
@@ -0,0 +1,12 @@
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 ListCardSessionsResponseDataItemPurchase: core.serialization.ObjectSchema<serializers.ListCardSessionsResponseDataItemPurchase.Raw, Natural.ListCardSessionsResponseDataItemPurchase>;
5
+ export declare namespace ListCardSessionsResponseDataItemPurchase {
6
+ interface Raw {
7
+ merchantName: string;
8
+ amount: number;
9
+ currency: string;
10
+ description?: string | null;
11
+ }
12
+ }
@@ -0,0 +1,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const ListCardSessionsResponseDataItemPurchase = core.serialization.object({
4
+ merchantName: core.serialization.string(),
5
+ amount: core.serialization.number(),
6
+ currency: core.serialization.string(),
7
+ description: core.serialization.string().nullable(),
8
+ });
@@ -8,11 +8,13 @@ export * from "./CreateCardSessionsResponse.mjs";
8
8
  export * from "./CreateCardSessionsResponseAgentToken.mjs";
9
9
  export * from "./CreateCardSessionsResponseCardSource.mjs";
10
10
  export * from "./CreateCardSessionsResponseNote.mjs";
11
+ export * from "./CreateCardSessionsResponsePurchase.mjs";
11
12
  export * from "./CreateCardSessionsResponseStatus.mjs";
12
13
  export * from "./GetCardSessionsResponse.mjs";
13
14
  export * from "./GetCardSessionsResponseAgentToken.mjs";
14
15
  export * from "./GetCardSessionsResponseCardSource.mjs";
15
16
  export * from "./GetCardSessionsResponseNote.mjs";
17
+ export * from "./GetCardSessionsResponsePurchase.mjs";
16
18
  export * from "./GetCardSessionsResponseStatus.mjs";
17
19
  export * from "./ListCardSessionsRequestStatus.mjs";
18
20
  export * from "./ListCardSessionsResponse.mjs";
@@ -20,6 +22,7 @@ export * from "./ListCardSessionsResponseDataItem.mjs";
20
22
  export * from "./ListCardSessionsResponseDataItemAgentToken.mjs";
21
23
  export * from "./ListCardSessionsResponseDataItemCardSource.mjs";
22
24
  export * from "./ListCardSessionsResponseDataItemNote.mjs";
25
+ export * from "./ListCardSessionsResponseDataItemPurchase.mjs";
23
26
  export * from "./ListCardSessionsResponseDataItemStatus.mjs";
24
27
  export * from "./ListCardSessionsResponseMeta.mjs";
25
28
  export * from "./ListCardSessionsResponseMetaPagination.mjs";
@@ -8,11 +8,13 @@ export * from "./CreateCardSessionsResponse.mjs";
8
8
  export * from "./CreateCardSessionsResponseAgentToken.mjs";
9
9
  export * from "./CreateCardSessionsResponseCardSource.mjs";
10
10
  export * from "./CreateCardSessionsResponseNote.mjs";
11
+ export * from "./CreateCardSessionsResponsePurchase.mjs";
11
12
  export * from "./CreateCardSessionsResponseStatus.mjs";
12
13
  export * from "./GetCardSessionsResponse.mjs";
13
14
  export * from "./GetCardSessionsResponseAgentToken.mjs";
14
15
  export * from "./GetCardSessionsResponseCardSource.mjs";
15
16
  export * from "./GetCardSessionsResponseNote.mjs";
17
+ export * from "./GetCardSessionsResponsePurchase.mjs";
16
18
  export * from "./GetCardSessionsResponseStatus.mjs";
17
19
  export * from "./ListCardSessionsRequestStatus.mjs";
18
20
  export * from "./ListCardSessionsResponse.mjs";
@@ -20,6 +22,7 @@ export * from "./ListCardSessionsResponseDataItem.mjs";
20
22
  export * from "./ListCardSessionsResponseDataItemAgentToken.mjs";
21
23
  export * from "./ListCardSessionsResponseDataItemCardSource.mjs";
22
24
  export * from "./ListCardSessionsResponseDataItemNote.mjs";
25
+ export * from "./ListCardSessionsResponseDataItemPurchase.mjs";
23
26
  export * from "./ListCardSessionsResponseDataItemStatus.mjs";
24
27
  export * from "./ListCardSessionsResponseMeta.mjs";
25
28
  export * from "./ListCardSessionsResponseMetaPagination.mjs";
@@ -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.51";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.6.49";
1
+ export const SDK_VERSION = "1.6.51";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalpay/sdk",
3
- "version": "1.6.49",
3
+ "version": "1.6.51",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -8880,10 +8880,12 @@ 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,
8886
- currency: "USD"
8887
+ currency: "USD",
8888
+ description: "Two bags of whole bean coffee"
8887
8889
  },
8888
8890
  reference: "checkout_7f3a",
8889
8891
  returnUrl: "sms:+15551234567",