@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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/cardSessions/client/Client.d.ts +3 -1
- package/dist/cjs/api/resources/cardSessions/client/Client.js +3 -1
- package/dist/cjs/api/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.ts +8 -4
- package/dist/cjs/api/resources/cardSessions/types/CreateCardSessionsRequestPurchase.d.ts +5 -3
- package/dist/cjs/api/resources/cardSessions/types/CreateCardSessionsResponse.d.ts +5 -1
- package/dist/cjs/api/resources/cardSessions/types/CreateCardSessionsResponsePurchase.d.ts +8 -0
- package/dist/cjs/api/resources/cardSessions/types/CreateCardSessionsResponsePurchase.js +3 -0
- package/dist/cjs/api/resources/cardSessions/types/GetCardSessionsResponse.d.ts +5 -1
- package/dist/cjs/api/resources/cardSessions/types/GetCardSessionsResponsePurchase.d.ts +8 -0
- package/dist/cjs/api/resources/cardSessions/types/GetCardSessionsResponsePurchase.js +3 -0
- package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.ts +5 -1
- package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsResponseDataItemPurchase.d.ts +8 -0
- package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsResponseDataItemPurchase.js +3 -0
- package/dist/cjs/api/resources/cardSessions/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/cardSessions/types/index.js +3 -0
- package/dist/cjs/api/types/CardPaymentRelationships.d.ts +2 -0
- package/dist/cjs/api/types/CardPaymentRelationshipsTransaction.d.ts +8 -0
- package/dist/cjs/api/types/CardPaymentRelationshipsTransaction.js +3 -0
- package/dist/cjs/api/types/CardPaymentRelationshipsTransactionData.d.ts +10 -0
- package/dist/cjs/api/types/CardPaymentRelationshipsTransactionData.js +3 -0
- package/dist/cjs/api/types/CardPaymentRelationshipsTransactionDataType.d.ts +5 -0
- package/dist/cjs/api/types/CardPaymentRelationshipsTransactionDataType.js +8 -0
- package/dist/cjs/api/types/index.d.ts +3 -0
- package/dist/cjs/api/types/index.js +3 -0
- package/dist/cjs/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.ts +1 -0
- package/dist/cjs/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.js +1 -0
- package/dist/cjs/serialization/resources/cardSessions/types/CreateCardSessionsRequestPurchase.d.ts +1 -0
- package/dist/cjs/serialization/resources/cardSessions/types/CreateCardSessionsRequestPurchase.js +1 -0
- package/dist/cjs/serialization/resources/cardSessions/types/CreateCardSessionsResponse.d.ts +3 -0
- package/dist/cjs/serialization/resources/cardSessions/types/CreateCardSessionsResponse.js +3 -0
- package/dist/cjs/serialization/resources/cardSessions/types/CreateCardSessionsResponsePurchase.d.ts +12 -0
- package/dist/cjs/serialization/resources/cardSessions/types/CreateCardSessionsResponsePurchase.js +44 -0
- package/dist/cjs/serialization/resources/cardSessions/types/GetCardSessionsResponse.d.ts +3 -0
- package/dist/cjs/serialization/resources/cardSessions/types/GetCardSessionsResponse.js +3 -0
- package/dist/cjs/serialization/resources/cardSessions/types/GetCardSessionsResponsePurchase.d.ts +12 -0
- package/dist/cjs/serialization/resources/cardSessions/types/GetCardSessionsResponsePurchase.js +44 -0
- package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.ts +3 -0
- package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.js +3 -0
- package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItemPurchase.d.ts +12 -0
- package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItemPurchase.js +44 -0
- package/dist/cjs/serialization/resources/cardSessions/types/index.d.ts +3 -0
- package/dist/cjs/serialization/resources/cardSessions/types/index.js +3 -0
- package/dist/cjs/serialization/types/CardPaymentRelationships.d.ts +2 -0
- package/dist/cjs/serialization/types/CardPaymentRelationships.js +2 -0
- package/dist/cjs/serialization/types/CardPaymentRelationshipsTransaction.d.ts +10 -0
- package/dist/cjs/serialization/types/CardPaymentRelationshipsTransaction.js +42 -0
- package/dist/cjs/serialization/types/CardPaymentRelationshipsTransactionData.d.ts +11 -0
- package/dist/cjs/serialization/types/CardPaymentRelationshipsTransactionData.js +43 -0
- package/dist/cjs/serialization/types/CardPaymentRelationshipsTransactionDataType.d.ts +7 -0
- package/dist/cjs/serialization/types/CardPaymentRelationshipsTransactionDataType.js +39 -0
- package/dist/cjs/serialization/types/index.d.ts +3 -0
- package/dist/cjs/serialization/types/index.js +3 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/cardSessions/client/Client.d.mts +3 -1
- package/dist/esm/api/resources/cardSessions/client/Client.mjs +3 -1
- package/dist/esm/api/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.mts +8 -4
- package/dist/esm/api/resources/cardSessions/types/CreateCardSessionsRequestPurchase.d.mts +5 -3
- package/dist/esm/api/resources/cardSessions/types/CreateCardSessionsResponse.d.mts +5 -1
- package/dist/esm/api/resources/cardSessions/types/CreateCardSessionsResponsePurchase.d.mts +8 -0
- package/dist/esm/api/resources/cardSessions/types/CreateCardSessionsResponsePurchase.mjs +2 -0
- package/dist/esm/api/resources/cardSessions/types/GetCardSessionsResponse.d.mts +5 -1
- package/dist/esm/api/resources/cardSessions/types/GetCardSessionsResponsePurchase.d.mts +8 -0
- package/dist/esm/api/resources/cardSessions/types/GetCardSessionsResponsePurchase.mjs +2 -0
- package/dist/esm/api/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.mts +5 -1
- package/dist/esm/api/resources/cardSessions/types/ListCardSessionsResponseDataItemPurchase.d.mts +8 -0
- package/dist/esm/api/resources/cardSessions/types/ListCardSessionsResponseDataItemPurchase.mjs +2 -0
- package/dist/esm/api/resources/cardSessions/types/index.d.mts +3 -0
- package/dist/esm/api/resources/cardSessions/types/index.mjs +3 -0
- package/dist/esm/api/types/CardPaymentRelationships.d.mts +2 -0
- package/dist/esm/api/types/CardPaymentRelationshipsTransaction.d.mts +8 -0
- package/dist/esm/api/types/CardPaymentRelationshipsTransaction.mjs +2 -0
- package/dist/esm/api/types/CardPaymentRelationshipsTransactionData.d.mts +10 -0
- package/dist/esm/api/types/CardPaymentRelationshipsTransactionData.mjs +2 -0
- package/dist/esm/api/types/CardPaymentRelationshipsTransactionDataType.d.mts +5 -0
- package/dist/esm/api/types/CardPaymentRelationshipsTransactionDataType.mjs +5 -0
- package/dist/esm/api/types/index.d.mts +3 -0
- package/dist/esm/api/types/index.mjs +3 -0
- package/dist/esm/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.mts +1 -0
- package/dist/esm/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.mjs +1 -0
- package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsRequestPurchase.d.mts +1 -0
- package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsRequestPurchase.mjs +1 -0
- package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsResponse.d.mts +3 -0
- package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsResponse.mjs +3 -0
- package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsResponsePurchase.d.mts +12 -0
- package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsResponsePurchase.mjs +8 -0
- package/dist/esm/serialization/resources/cardSessions/types/GetCardSessionsResponse.d.mts +3 -0
- package/dist/esm/serialization/resources/cardSessions/types/GetCardSessionsResponse.mjs +3 -0
- package/dist/esm/serialization/resources/cardSessions/types/GetCardSessionsResponsePurchase.d.mts +12 -0
- package/dist/esm/serialization/resources/cardSessions/types/GetCardSessionsResponsePurchase.mjs +8 -0
- package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.mts +3 -0
- package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.mjs +3 -0
- package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItemPurchase.d.mts +12 -0
- package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItemPurchase.mjs +8 -0
- package/dist/esm/serialization/resources/cardSessions/types/index.d.mts +3 -0
- package/dist/esm/serialization/resources/cardSessions/types/index.mjs +3 -0
- package/dist/esm/serialization/types/CardPaymentRelationships.d.mts +2 -0
- package/dist/esm/serialization/types/CardPaymentRelationships.mjs +2 -0
- package/dist/esm/serialization/types/CardPaymentRelationshipsTransaction.d.mts +10 -0
- package/dist/esm/serialization/types/CardPaymentRelationshipsTransaction.mjs +6 -0
- package/dist/esm/serialization/types/CardPaymentRelationshipsTransactionData.d.mts +11 -0
- package/dist/esm/serialization/types/CardPaymentRelationshipsTransactionData.mjs +7 -0
- package/dist/esm/serialization/types/CardPaymentRelationshipsTransactionDataType.d.mts +7 -0
- package/dist/esm/serialization/types/CardPaymentRelationshipsTransactionDataType.mjs +3 -0
- package/dist/esm/serialization/types/index.d.mts +3 -0
- package/dist/esm/serialization/types/index.mjs +3 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- 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;
|
package/dist/esm/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.mjs
CHANGED
|
@@ -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(),
|
package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsResponse.d.mts
CHANGED
|
@@ -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(),
|
package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsResponsePurchase.d.mts
ADDED
|
@@ -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
|
+
}
|
package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsResponsePurchase.mjs
ADDED
|
@@ -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(),
|
package/dist/esm/serialization/resources/cardSessions/types/GetCardSessionsResponsePurchase.d.mts
ADDED
|
@@ -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
|
+
}
|
package/dist/esm/serialization/resources/cardSessions/types/GetCardSessionsResponsePurchase.mjs
ADDED
|
@@ -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
|
+
});
|
package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.mts
CHANGED
|
@@ -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;
|
package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.mjs
CHANGED
|
@@ -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
|
+
}
|
|
@@ -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";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.6.
|
|
1
|
+
export declare const SDK_VERSION = "1.6.51";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.6.
|
|
1
|
+
export const SDK_VERSION = "1.6.51";
|
package/package.json
CHANGED
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",
|