@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
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -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.
|
|
47
|
-
"User-Agent": "@naturalpay/sdk/1.6.
|
|
46
|
+
"X-Fern-SDK-Version": "1.6.51",
|
|
47
|
+
"User-Agent": "@naturalpay/sdk/1.6.51",
|
|
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,10 +65,12 @@ 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,
|
|
71
|
-
* currency: "USD"
|
|
72
|
+
* currency: "USD",
|
|
73
|
+
* description: "Two bags of whole bean coffee"
|
|
72
74
|
* },
|
|
73
75
|
* reference: "checkout_7f3a",
|
|
74
76
|
* returnUrl: "sms:+15551234567",
|
|
@@ -206,10 +206,12 @@ 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,
|
|
212
|
-
* currency: "USD"
|
|
213
|
+
* currency: "USD",
|
|
214
|
+
* description: "Two bags of whole bean coffee"
|
|
213
215
|
* },
|
|
214
216
|
* reference: "checkout_7f3a",
|
|
215
217
|
* returnUrl: "sms:+15551234567",
|
|
@@ -5,10 +5,12 @@ 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,
|
|
11
|
-
* currency: "USD"
|
|
12
|
+
* currency: "USD",
|
|
13
|
+
* description: "Two bags of whole bean coffee"
|
|
12
14
|
* },
|
|
13
15
|
* reference: "checkout_7f3a",
|
|
14
16
|
* returnUrl: "sms:+15551234567",
|
|
@@ -21,16 +23,18 @@ export interface CreateCardSessionsRequest {
|
|
|
21
23
|
cardId: string;
|
|
22
24
|
/** 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
25
|
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. */
|
|
26
|
+
/** 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
27
|
allowedHosts: string[];
|
|
26
28
|
/** How long the stand-in card and proxy login stay valid once claimed. Defaults to 600. */
|
|
27
29
|
ttlSeconds?: number;
|
|
28
|
-
/**
|
|
30
|
+
/** How long after creation you can claim the session, from 600 (10 minutes) to 86400 (24 hours). Defaults to 600. The user still has to approve within 10 minutes; a longer window only gives you more time to claim and pay after they do. Sets claimExpiresAt. */
|
|
31
|
+
claimWindowSeconds?: number;
|
|
32
|
+
/** What the agent will do with the card, shown to the user on the approval page. Required for a card the user added (eac_). The user approves what you describe here; merchantName, amount and description aren't enforced, while allowedHosts is. */
|
|
29
33
|
purchase?: Natural.CreateCardSessionsRequestPurchase;
|
|
30
34
|
/** 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. */
|
|
31
35
|
reference?: string;
|
|
32
36
|
/** Where to send the user once they approve or decline: an https page in your product, or sms:+15551234567 to reopen your Messages thread. It's added to approvalUrl as returnTo. The approval page opens https pages on its own after the user answers, and offers a button for sms: links. */
|
|
33
37
|
returnUrl?: string;
|
|
34
|
-
/** Cards the user added only, for a USD purchase
|
|
38
|
+
/** Cards the user added only, for a USD purchase from $0.01 to $999,999.99. A backup for checkouts that don't send the raw card number in the HTTP request, for example ones that encrypt it in the browser, so the proxy can't swap it in. Paying through the proxy stays the default. On approval, Natural also tries to set up agent payments on the card. Most cards don't support them yet, so agentToken.mandateId is often null: then claim this session and try the proxy. Defaults to false. */
|
|
35
39
|
requestAgentToken?: boolean;
|
|
36
40
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* What the agent
|
|
2
|
+
* What the agent will do with the card, shown to the user on the approval page. Required for a card the user added (eac_). The user approves what you describe here; merchantName, amount and description aren't enforced, while allowedHosts is.
|
|
3
3
|
*/
|
|
4
4
|
export interface CreateCardSessionsRequestPurchase {
|
|
5
|
-
/** Merchant name as the user will recognize it. */
|
|
5
|
+
/** Merchant name as the user will recognize it. Shown to the user, not enforced: the proxy doesn't check which merchant the card goes to. */
|
|
6
6
|
merchantName: string;
|
|
7
|
-
/** Total in minor units (cents) of `currency`. */
|
|
7
|
+
/** Total in minor units (cents) of `currency`. Use 0 for a card action with no purchase, such as saving the card on file at the merchant. Shown to the user, not enforced as a cap. */
|
|
8
8
|
amount: number;
|
|
9
9
|
/** ISO 4217 currency code, e.g. USD. */
|
|
10
10
|
currency: string;
|
|
11
|
+
/** A short plain-text line for the user saying what the agent will do or buy, such as `Save this card on file at Amazon` or `Flowers for tomorrow morning, up to $200`. The approval page shows it prominently. Shown, not enforced. */
|
|
12
|
+
description?: string;
|
|
11
13
|
}
|
|
@@ -9,7 +9,11 @@ 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
|
-
/**
|
|
12
|
+
/** The purchase you created the session with, as the user saw it. Null for an agent card session opened without one. */
|
|
13
|
+
purchase: Natural.CreateCardSessionsResponsePurchase | null;
|
|
14
|
+
/** A pending session must be approved before this, 10 minutes after creation. After it, an unapproved session is expired. */
|
|
15
|
+
approvalExpiresAt: string;
|
|
16
|
+
/** An approved session must be claimed before this: creation plus claimWindowSeconds. After it, an unclaimed session is expired. */
|
|
13
17
|
claimExpiresAt: string;
|
|
14
18
|
claimedAt: string | null;
|
|
15
19
|
/** When the claimed proxy login stops working. */
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface CreateCardSessionsResponsePurchase {
|
|
2
|
+
merchantName: string;
|
|
3
|
+
/** Minor units (cents) of `currency`. 0 means no purchase. */
|
|
4
|
+
amount: number;
|
|
5
|
+
currency: string;
|
|
6
|
+
/** The description you set. Null when you didn't. */
|
|
7
|
+
description: string | null;
|
|
8
|
+
}
|
|
@@ -9,7 +9,11 @@ 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
|
-
/**
|
|
12
|
+
/** The purchase you created the session with, as the user saw it. Null for an agent card session opened without one. */
|
|
13
|
+
purchase: Natural.GetCardSessionsResponsePurchase | null;
|
|
14
|
+
/** A pending session must be approved before this, 10 minutes after creation. After it, an unapproved session is expired. */
|
|
15
|
+
approvalExpiresAt: string;
|
|
16
|
+
/** An approved session must be claimed before this: creation plus claimWindowSeconds. After it, an unclaimed session is expired. */
|
|
13
17
|
claimExpiresAt: string;
|
|
14
18
|
claimedAt: string | null;
|
|
15
19
|
/** When the claimed proxy login stops working. */
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface GetCardSessionsResponsePurchase {
|
|
2
|
+
merchantName: string;
|
|
3
|
+
/** Minor units (cents) of `currency`. 0 means no purchase. */
|
|
4
|
+
amount: number;
|
|
5
|
+
currency: string;
|
|
6
|
+
/** The description you set. Null when you didn't. */
|
|
7
|
+
description: string | null;
|
|
8
|
+
}
|
|
@@ -9,7 +9,11 @@ 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
|
-
/**
|
|
12
|
+
/** The purchase you created the session with, as the user saw it. Null for an agent card session opened without one. */
|
|
13
|
+
purchase: Natural.ListCardSessionsResponseDataItemPurchase | null;
|
|
14
|
+
/** A pending session must be approved before this, 10 minutes after creation. After it, an unapproved session is expired. */
|
|
15
|
+
approvalExpiresAt: string;
|
|
16
|
+
/** An approved session must be claimed before this: creation plus claimWindowSeconds. After it, an unclaimed session is expired. */
|
|
13
17
|
claimExpiresAt: string;
|
|
14
18
|
claimedAt: string | null;
|
|
15
19
|
/** When the claimed proxy login stops working. */
|
package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsResponseDataItemPurchase.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface ListCardSessionsResponseDataItemPurchase {
|
|
2
|
+
merchantName: string;
|
|
3
|
+
/** Minor units (cents) of `currency`. 0 means no purchase. */
|
|
4
|
+
amount: number;
|
|
5
|
+
currency: string;
|
|
6
|
+
/** The description you set. Null when you didn't. */
|
|
7
|
+
description: string | null;
|
|
8
|
+
}
|
|
@@ -8,11 +8,13 @@ export * from "./CreateCardSessionsResponse.js";
|
|
|
8
8
|
export * from "./CreateCardSessionsResponseAgentToken.js";
|
|
9
9
|
export * from "./CreateCardSessionsResponseCardSource.js";
|
|
10
10
|
export * from "./CreateCardSessionsResponseNote.js";
|
|
11
|
+
export * from "./CreateCardSessionsResponsePurchase.js";
|
|
11
12
|
export * from "./CreateCardSessionsResponseStatus.js";
|
|
12
13
|
export * from "./GetCardSessionsResponse.js";
|
|
13
14
|
export * from "./GetCardSessionsResponseAgentToken.js";
|
|
14
15
|
export * from "./GetCardSessionsResponseCardSource.js";
|
|
15
16
|
export * from "./GetCardSessionsResponseNote.js";
|
|
17
|
+
export * from "./GetCardSessionsResponsePurchase.js";
|
|
16
18
|
export * from "./GetCardSessionsResponseStatus.js";
|
|
17
19
|
export * from "./ListCardSessionsRequestStatus.js";
|
|
18
20
|
export * from "./ListCardSessionsResponse.js";
|
|
@@ -20,6 +22,7 @@ export * from "./ListCardSessionsResponseDataItem.js";
|
|
|
20
22
|
export * from "./ListCardSessionsResponseDataItemAgentToken.js";
|
|
21
23
|
export * from "./ListCardSessionsResponseDataItemCardSource.js";
|
|
22
24
|
export * from "./ListCardSessionsResponseDataItemNote.js";
|
|
25
|
+
export * from "./ListCardSessionsResponseDataItemPurchase.js";
|
|
23
26
|
export * from "./ListCardSessionsResponseDataItemStatus.js";
|
|
24
27
|
export * from "./ListCardSessionsResponseMeta.js";
|
|
25
28
|
export * from "./ListCardSessionsResponseMetaPagination.js";
|
|
@@ -24,11 +24,13 @@ __exportStar(require("./CreateCardSessionsResponse.js"), exports);
|
|
|
24
24
|
__exportStar(require("./CreateCardSessionsResponseAgentToken.js"), exports);
|
|
25
25
|
__exportStar(require("./CreateCardSessionsResponseCardSource.js"), exports);
|
|
26
26
|
__exportStar(require("./CreateCardSessionsResponseNote.js"), exports);
|
|
27
|
+
__exportStar(require("./CreateCardSessionsResponsePurchase.js"), exports);
|
|
27
28
|
__exportStar(require("./CreateCardSessionsResponseStatus.js"), exports);
|
|
28
29
|
__exportStar(require("./GetCardSessionsResponse.js"), exports);
|
|
29
30
|
__exportStar(require("./GetCardSessionsResponseAgentToken.js"), exports);
|
|
30
31
|
__exportStar(require("./GetCardSessionsResponseCardSource.js"), exports);
|
|
31
32
|
__exportStar(require("./GetCardSessionsResponseNote.js"), exports);
|
|
33
|
+
__exportStar(require("./GetCardSessionsResponsePurchase.js"), exports);
|
|
32
34
|
__exportStar(require("./GetCardSessionsResponseStatus.js"), exports);
|
|
33
35
|
__exportStar(require("./ListCardSessionsRequestStatus.js"), exports);
|
|
34
36
|
__exportStar(require("./ListCardSessionsResponse.js"), exports);
|
|
@@ -36,6 +38,7 @@ __exportStar(require("./ListCardSessionsResponseDataItem.js"), exports);
|
|
|
36
38
|
__exportStar(require("./ListCardSessionsResponseDataItemAgentToken.js"), exports);
|
|
37
39
|
__exportStar(require("./ListCardSessionsResponseDataItemCardSource.js"), exports);
|
|
38
40
|
__exportStar(require("./ListCardSessionsResponseDataItemNote.js"), exports);
|
|
41
|
+
__exportStar(require("./ListCardSessionsResponseDataItemPurchase.js"), exports);
|
|
39
42
|
__exportStar(require("./ListCardSessionsResponseDataItemStatus.js"), exports);
|
|
40
43
|
__exportStar(require("./ListCardSessionsResponseMeta.js"), exports);
|
|
41
44
|
__exportStar(require("./ListCardSessionsResponseMetaPagination.js"), exports);
|
|
@@ -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,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,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);
|
package/dist/cjs/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.ts
CHANGED
|
@@ -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/cjs/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.js
CHANGED
|
@@ -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(),
|
|
@@ -4,6 +4,7 @@ import type * as serializers from "../../../index.js";
|
|
|
4
4
|
import { CreateCardSessionsResponseAgentToken } from "./CreateCardSessionsResponseAgentToken.js";
|
|
5
5
|
import { CreateCardSessionsResponseCardSource } from "./CreateCardSessionsResponseCardSource.js";
|
|
6
6
|
import { CreateCardSessionsResponseNote } from "./CreateCardSessionsResponseNote.js";
|
|
7
|
+
import { CreateCardSessionsResponsePurchase } from "./CreateCardSessionsResponsePurchase.js";
|
|
7
8
|
import { CreateCardSessionsResponseStatus } from "./CreateCardSessionsResponseStatus.js";
|
|
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;
|
|
@@ -39,6 +39,7 @@ const core = __importStar(require("../../../../core/index.js"));
|
|
|
39
39
|
const CreateCardSessionsResponseAgentToken_js_1 = require("./CreateCardSessionsResponseAgentToken.js");
|
|
40
40
|
const CreateCardSessionsResponseCardSource_js_1 = require("./CreateCardSessionsResponseCardSource.js");
|
|
41
41
|
const CreateCardSessionsResponseNote_js_1 = require("./CreateCardSessionsResponseNote.js");
|
|
42
|
+
const CreateCardSessionsResponsePurchase_js_1 = require("./CreateCardSessionsResponsePurchase.js");
|
|
42
43
|
const CreateCardSessionsResponseStatus_js_1 = require("./CreateCardSessionsResponseStatus.js");
|
|
43
44
|
exports.CreateCardSessionsResponse = core.serialization.object({
|
|
44
45
|
sessionId: core.serialization.string(),
|
|
@@ -47,6 +48,8 @@ exports.CreateCardSessionsResponse = core.serialization.object({
|
|
|
47
48
|
status: CreateCardSessionsResponseStatus_js_1.CreateCardSessionsResponseStatus,
|
|
48
49
|
allowedHosts: core.serialization.list(core.serialization.string()),
|
|
49
50
|
reference: core.serialization.string().nullable(),
|
|
51
|
+
purchase: CreateCardSessionsResponsePurchase_js_1.CreateCardSessionsResponsePurchase.nullable(),
|
|
52
|
+
approvalExpiresAt: core.serialization.string(),
|
|
50
53
|
claimExpiresAt: core.serialization.string(),
|
|
51
54
|
claimedAt: core.serialization.string().nullable(),
|
|
52
55
|
credentialExpiresAt: core.serialization.string().nullable(),
|
package/dist/cjs/serialization/resources/cardSessions/types/CreateCardSessionsResponsePurchase.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
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 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/cjs/serialization/resources/cardSessions/types/CreateCardSessionsResponsePurchase.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
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.CreateCardSessionsResponsePurchase = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.CreateCardSessionsResponsePurchase = core.serialization.object({
|
|
40
|
+
merchantName: core.serialization.string(),
|
|
41
|
+
amount: core.serialization.number(),
|
|
42
|
+
currency: core.serialization.string(),
|
|
43
|
+
description: core.serialization.string().nullable(),
|
|
44
|
+
});
|
|
@@ -4,6 +4,7 @@ import type * as serializers from "../../../index.js";
|
|
|
4
4
|
import { GetCardSessionsResponseAgentToken } from "./GetCardSessionsResponseAgentToken.js";
|
|
5
5
|
import { GetCardSessionsResponseCardSource } from "./GetCardSessionsResponseCardSource.js";
|
|
6
6
|
import { GetCardSessionsResponseNote } from "./GetCardSessionsResponseNote.js";
|
|
7
|
+
import { GetCardSessionsResponsePurchase } from "./GetCardSessionsResponsePurchase.js";
|
|
7
8
|
import { GetCardSessionsResponseStatus } from "./GetCardSessionsResponseStatus.js";
|
|
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;
|
|
@@ -39,6 +39,7 @@ const core = __importStar(require("../../../../core/index.js"));
|
|
|
39
39
|
const GetCardSessionsResponseAgentToken_js_1 = require("./GetCardSessionsResponseAgentToken.js");
|
|
40
40
|
const GetCardSessionsResponseCardSource_js_1 = require("./GetCardSessionsResponseCardSource.js");
|
|
41
41
|
const GetCardSessionsResponseNote_js_1 = require("./GetCardSessionsResponseNote.js");
|
|
42
|
+
const GetCardSessionsResponsePurchase_js_1 = require("./GetCardSessionsResponsePurchase.js");
|
|
42
43
|
const GetCardSessionsResponseStatus_js_1 = require("./GetCardSessionsResponseStatus.js");
|
|
43
44
|
exports.GetCardSessionsResponse = core.serialization.object({
|
|
44
45
|
sessionId: core.serialization.string(),
|
|
@@ -47,6 +48,8 @@ exports.GetCardSessionsResponse = core.serialization.object({
|
|
|
47
48
|
status: GetCardSessionsResponseStatus_js_1.GetCardSessionsResponseStatus,
|
|
48
49
|
allowedHosts: core.serialization.list(core.serialization.string()),
|
|
49
50
|
reference: core.serialization.string().nullable(),
|
|
51
|
+
purchase: GetCardSessionsResponsePurchase_js_1.GetCardSessionsResponsePurchase.nullable(),
|
|
52
|
+
approvalExpiresAt: core.serialization.string(),
|
|
50
53
|
claimExpiresAt: core.serialization.string(),
|
|
51
54
|
claimedAt: core.serialization.string().nullable(),
|
|
52
55
|
credentialExpiresAt: core.serialization.string().nullable(),
|
package/dist/cjs/serialization/resources/cardSessions/types/GetCardSessionsResponsePurchase.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
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 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/cjs/serialization/resources/cardSessions/types/GetCardSessionsResponsePurchase.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
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.GetCardSessionsResponsePurchase = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.GetCardSessionsResponsePurchase = core.serialization.object({
|
|
40
|
+
merchantName: core.serialization.string(),
|
|
41
|
+
amount: core.serialization.number(),
|
|
42
|
+
currency: core.serialization.string(),
|
|
43
|
+
description: core.serialization.string().nullable(),
|
|
44
|
+
});
|
package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type * as serializers from "../../../index.js";
|
|
|
4
4
|
import { ListCardSessionsResponseDataItemAgentToken } from "./ListCardSessionsResponseDataItemAgentToken.js";
|
|
5
5
|
import { ListCardSessionsResponseDataItemCardSource } from "./ListCardSessionsResponseDataItemCardSource.js";
|
|
6
6
|
import { ListCardSessionsResponseDataItemNote } from "./ListCardSessionsResponseDataItemNote.js";
|
|
7
|
+
import { ListCardSessionsResponseDataItemPurchase } from "./ListCardSessionsResponseDataItemPurchase.js";
|
|
7
8
|
import { ListCardSessionsResponseDataItemStatus } from "./ListCardSessionsResponseDataItemStatus.js";
|
|
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/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.js
CHANGED
|
@@ -39,6 +39,7 @@ const core = __importStar(require("../../../../core/index.js"));
|
|
|
39
39
|
const ListCardSessionsResponseDataItemAgentToken_js_1 = require("./ListCardSessionsResponseDataItemAgentToken.js");
|
|
40
40
|
const ListCardSessionsResponseDataItemCardSource_js_1 = require("./ListCardSessionsResponseDataItemCardSource.js");
|
|
41
41
|
const ListCardSessionsResponseDataItemNote_js_1 = require("./ListCardSessionsResponseDataItemNote.js");
|
|
42
|
+
const ListCardSessionsResponseDataItemPurchase_js_1 = require("./ListCardSessionsResponseDataItemPurchase.js");
|
|
42
43
|
const ListCardSessionsResponseDataItemStatus_js_1 = require("./ListCardSessionsResponseDataItemStatus.js");
|
|
43
44
|
exports.ListCardSessionsResponseDataItem = core.serialization.object({
|
|
44
45
|
sessionId: core.serialization.string(),
|
|
@@ -47,6 +48,8 @@ exports.ListCardSessionsResponseDataItem = core.serialization.object({
|
|
|
47
48
|
status: ListCardSessionsResponseDataItemStatus_js_1.ListCardSessionsResponseDataItemStatus,
|
|
48
49
|
allowedHosts: core.serialization.list(core.serialization.string()),
|
|
49
50
|
reference: core.serialization.string().nullable(),
|
|
51
|
+
purchase: ListCardSessionsResponseDataItemPurchase_js_1.ListCardSessionsResponseDataItemPurchase.nullable(),
|
|
52
|
+
approvalExpiresAt: core.serialization.string(),
|
|
50
53
|
claimExpiresAt: core.serialization.string(),
|
|
51
54
|
claimedAt: core.serialization.string().nullable(),
|
|
52
55
|
credentialExpiresAt: core.serialization.string().nullable(),
|
|
@@ -0,0 +1,12 @@
|
|
|
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 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
|
+
}
|