@naturalpay/sdk 1.6.55 → 1.6.56
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/requests/CreateCardSessionsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/merchantReports/client/requests/CreateMerchantReportsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.d.ts +1 -1
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.js +1 -1
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponseData.d.ts +1 -1
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.d.ts +1 -1
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.js +1 -1
- 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/requests/CreateCardSessionsRequest.d.mts +1 -1
- package/dist/esm/api/resources/merchantReports/client/requests/CreateMerchantReportsRequest.d.mts +1 -1
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.d.mts +1 -1
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.mjs +1 -1
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponseData.d.mts +1 -1
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.d.mts +1 -1
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -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.56",
|
|
47
|
+
"User-Agent": "@naturalpay/sdk/1.6.56",
|
|
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,
|
|
@@ -23,7 +23,7 @@ export interface CreateCardSessionsRequest {
|
|
|
23
23
|
cardId: string;
|
|
24
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. */
|
|
25
25
|
customerPartyId?: string;
|
|
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. */
|
|
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. Find the host before creating the session: open the payment page and find the request that carries the card (often sent from a processor's card-field iframe), or submit a fake card number that will fail and see which host receives it. 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. */
|
|
27
27
|
allowedHosts: string[];
|
|
28
28
|
/** How long the stand-in card and proxy login stay valid once claimed. Defaults to 600. */
|
|
29
29
|
ttlSeconds?: number;
|
package/dist/cjs/api/resources/merchantReports/client/requests/CreateMerchantReportsRequest.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ import type * as Natural from "../../../../index.js";
|
|
|
21
21
|
export interface CreateMerchantReportsRequest {
|
|
22
22
|
/** The checkout page you were on. Strip query strings that carry personal data or tokens. */
|
|
23
23
|
merchantUrl: string;
|
|
24
|
-
/** What stopped the payment. host_not_allowed: the card request went to a host you couldn't
|
|
24
|
+
/** What stopped the payment. host_not_allowed: the card request went to a host outside allowedHosts, and you couldn't open a new card session with that host added or the new session didn't fix it. proxy_error: the proxy answered an error (put its code in proxyErrorCode). card_refused: the merchant or processor refused the card. three_ds_required: a 3DS challenge you couldn't complete. bot_wall: a CAPTCHA or bot check kept you from the card form. other: anything else; say what in notes. */
|
|
25
25
|
outcome: Natural.CreateMerchantReportsRequestOutcome;
|
|
26
26
|
/** The card session the attempt used, if any. */
|
|
27
27
|
cardSessionId?: string;
|
package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** What stopped the payment. host_not_allowed: the card request went to a host you couldn't
|
|
1
|
+
/** What stopped the payment. host_not_allowed: the card request went to a host outside allowedHosts, and you couldn't open a new card session with that host added or the new session didn't fix it. proxy_error: the proxy answered an error (put its code in proxyErrorCode). card_refused: the merchant or processor refused the card. three_ds_required: a 3DS challenge you couldn't complete. bot_wall: a CAPTCHA or bot check kept you from the card form. other: anything else; say what in notes. */
|
|
2
2
|
export declare const CreateMerchantReportsRequestOutcome: {
|
|
3
3
|
readonly HostNotAllowed: "host_not_allowed";
|
|
4
4
|
readonly ProxyError: "proxy_error";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.CreateMerchantReportsRequestOutcome = void 0;
|
|
5
|
-
/** What stopped the payment. host_not_allowed: the card request went to a host you couldn't
|
|
5
|
+
/** What stopped the payment. host_not_allowed: the card request went to a host outside allowedHosts, and you couldn't open a new card session with that host added or the new session didn't fix it. proxy_error: the proxy answered an error (put its code in proxyErrorCode). card_refused: the merchant or processor refused the card. three_ds_required: a 3DS challenge you couldn't complete. bot_wall: a CAPTCHA or bot check kept you from the card form. other: anything else; say what in notes. */
|
|
6
6
|
exports.CreateMerchantReportsRequestOutcome = {
|
|
7
7
|
HostNotAllowed: "host_not_allowed",
|
|
8
8
|
ProxyError: "proxy_error",
|
|
@@ -2,7 +2,7 @@ import type * as Natural from "../../../index.js";
|
|
|
2
2
|
export interface CreateMerchantReportsResponseData {
|
|
3
3
|
reportId: string;
|
|
4
4
|
merchantHost: string;
|
|
5
|
-
/** What stopped the payment. host_not_allowed: the card request went to a host you couldn't
|
|
5
|
+
/** What stopped the payment. host_not_allowed: the card request went to a host outside allowedHosts, and you couldn't open a new card session with that host added or the new session didn't fix it. proxy_error: the proxy answered an error (put its code in proxyErrorCode). card_refused: the merchant or processor refused the card. three_ds_required: a 3DS challenge you couldn't complete. bot_wall: a CAPTCHA or bot check kept you from the card form. other: anything else; say what in notes. */
|
|
6
6
|
outcome: Natural.CreateMerchantReportsResponseDataOutcome;
|
|
7
7
|
createdAt: string;
|
|
8
8
|
}
|
package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** What stopped the payment. host_not_allowed: the card request went to a host you couldn't
|
|
1
|
+
/** What stopped the payment. host_not_allowed: the card request went to a host outside allowedHosts, and you couldn't open a new card session with that host added or the new session didn't fix it. proxy_error: the proxy answered an error (put its code in proxyErrorCode). card_refused: the merchant or processor refused the card. three_ds_required: a 3DS challenge you couldn't complete. bot_wall: a CAPTCHA or bot check kept you from the card form. other: anything else; say what in notes. */
|
|
2
2
|
export declare const CreateMerchantReportsResponseDataOutcome: {
|
|
3
3
|
readonly HostNotAllowed: "host_not_allowed";
|
|
4
4
|
readonly ProxyError: "proxy_error";
|
package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.CreateMerchantReportsResponseDataOutcome = void 0;
|
|
5
|
-
/** What stopped the payment. host_not_allowed: the card request went to a host you couldn't
|
|
5
|
+
/** What stopped the payment. host_not_allowed: the card request went to a host outside allowedHosts, and you couldn't open a new card session with that host added or the new session didn't fix it. proxy_error: the proxy answered an error (put its code in proxyErrorCode). card_refused: the merchant or processor refused the card. three_ds_required: a 3DS challenge you couldn't complete. bot_wall: a CAPTCHA or bot check kept you from the card form. other: anything else; say what in notes. */
|
|
6
6
|
exports.CreateMerchantReportsResponseDataOutcome = {
|
|
7
7
|
HostNotAllowed: "host_not_allowed",
|
|
8
8
|
ProxyError: "proxy_error",
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.6.
|
|
1
|
+
export declare const SDK_VERSION = "1.6.56";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@naturalpay/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "1.6.
|
|
10
|
-
"User-Agent": "@naturalpay/sdk/1.6.
|
|
9
|
+
"X-Fern-SDK-Version": "1.6.56",
|
|
10
|
+
"User-Agent": "@naturalpay/sdk/1.6.56",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
"X-Instance-ID": options === null || options === void 0 ? void 0 : options.instanceId,
|
|
@@ -23,7 +23,7 @@ export interface CreateCardSessionsRequest {
|
|
|
23
23
|
cardId: string;
|
|
24
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. */
|
|
25
25
|
customerPartyId?: string;
|
|
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. */
|
|
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. Find the host before creating the session: open the payment page and find the request that carries the card (often sent from a processor's card-field iframe), or submit a fake card number that will fail and see which host receives it. 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. */
|
|
27
27
|
allowedHosts: string[];
|
|
28
28
|
/** How long the stand-in card and proxy login stay valid once claimed. Defaults to 600. */
|
|
29
29
|
ttlSeconds?: number;
|
package/dist/esm/api/resources/merchantReports/client/requests/CreateMerchantReportsRequest.d.mts
CHANGED
|
@@ -21,7 +21,7 @@ import type * as Natural from "../../../../index.mjs";
|
|
|
21
21
|
export interface CreateMerchantReportsRequest {
|
|
22
22
|
/** The checkout page you were on. Strip query strings that carry personal data or tokens. */
|
|
23
23
|
merchantUrl: string;
|
|
24
|
-
/** What stopped the payment. host_not_allowed: the card request went to a host you couldn't
|
|
24
|
+
/** What stopped the payment. host_not_allowed: the card request went to a host outside allowedHosts, and you couldn't open a new card session with that host added or the new session didn't fix it. proxy_error: the proxy answered an error (put its code in proxyErrorCode). card_refused: the merchant or processor refused the card. three_ds_required: a 3DS challenge you couldn't complete. bot_wall: a CAPTCHA or bot check kept you from the card form. other: anything else; say what in notes. */
|
|
25
25
|
outcome: Natural.CreateMerchantReportsRequestOutcome;
|
|
26
26
|
/** The card session the attempt used, if any. */
|
|
27
27
|
cardSessionId?: string;
|
package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** What stopped the payment. host_not_allowed: the card request went to a host you couldn't
|
|
1
|
+
/** What stopped the payment. host_not_allowed: the card request went to a host outside allowedHosts, and you couldn't open a new card session with that host added or the new session didn't fix it. proxy_error: the proxy answered an error (put its code in proxyErrorCode). card_refused: the merchant or processor refused the card. three_ds_required: a 3DS challenge you couldn't complete. bot_wall: a CAPTCHA or bot check kept you from the card form. other: anything else; say what in notes. */
|
|
2
2
|
export declare const CreateMerchantReportsRequestOutcome: {
|
|
3
3
|
readonly HostNotAllowed: "host_not_allowed";
|
|
4
4
|
readonly ProxyError: "proxy_error";
|
package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
/** What stopped the payment. host_not_allowed: the card request went to a host you couldn't
|
|
2
|
+
/** What stopped the payment. host_not_allowed: the card request went to a host outside allowedHosts, and you couldn't open a new card session with that host added or the new session didn't fix it. proxy_error: the proxy answered an error (put its code in proxyErrorCode). card_refused: the merchant or processor refused the card. three_ds_required: a 3DS challenge you couldn't complete. bot_wall: a CAPTCHA or bot check kept you from the card form. other: anything else; say what in notes. */
|
|
3
3
|
export const CreateMerchantReportsRequestOutcome = {
|
|
4
4
|
HostNotAllowed: "host_not_allowed",
|
|
5
5
|
ProxyError: "proxy_error",
|
package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponseData.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import type * as Natural from "../../../index.mjs";
|
|
|
2
2
|
export interface CreateMerchantReportsResponseData {
|
|
3
3
|
reportId: string;
|
|
4
4
|
merchantHost: string;
|
|
5
|
-
/** What stopped the payment. host_not_allowed: the card request went to a host you couldn't
|
|
5
|
+
/** What stopped the payment. host_not_allowed: the card request went to a host outside allowedHosts, and you couldn't open a new card session with that host added or the new session didn't fix it. proxy_error: the proxy answered an error (put its code in proxyErrorCode). card_refused: the merchant or processor refused the card. three_ds_required: a 3DS challenge you couldn't complete. bot_wall: a CAPTCHA or bot check kept you from the card form. other: anything else; say what in notes. */
|
|
6
6
|
outcome: Natural.CreateMerchantReportsResponseDataOutcome;
|
|
7
7
|
createdAt: string;
|
|
8
8
|
}
|
package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** What stopped the payment. host_not_allowed: the card request went to a host you couldn't
|
|
1
|
+
/** What stopped the payment. host_not_allowed: the card request went to a host outside allowedHosts, and you couldn't open a new card session with that host added or the new session didn't fix it. proxy_error: the proxy answered an error (put its code in proxyErrorCode). card_refused: the merchant or processor refused the card. three_ds_required: a 3DS challenge you couldn't complete. bot_wall: a CAPTCHA or bot check kept you from the card form. other: anything else; say what in notes. */
|
|
2
2
|
export declare const CreateMerchantReportsResponseDataOutcome: {
|
|
3
3
|
readonly HostNotAllowed: "host_not_allowed";
|
|
4
4
|
readonly ProxyError: "proxy_error";
|
package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
/** What stopped the payment. host_not_allowed: the card request went to a host you couldn't
|
|
2
|
+
/** What stopped the payment. host_not_allowed: the card request went to a host outside allowedHosts, and you couldn't open a new card session with that host added or the new session didn't fix it. proxy_error: the proxy answered an error (put its code in proxyErrorCode). card_refused: the merchant or processor refused the card. three_ds_required: a 3DS challenge you couldn't complete. bot_wall: a CAPTCHA or bot check kept you from the card form. other: anything else; say what in notes. */
|
|
3
3
|
export const CreateMerchantReportsResponseDataOutcome = {
|
|
4
4
|
HostNotAllowed: "host_not_allowed",
|
|
5
5
|
ProxyError: "proxy_error",
|
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.56";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.6.
|
|
1
|
+
export const SDK_VERSION = "1.6.56";
|