@naturalpay/sdk 1.6.45 → 1.6.47
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/Client.d.ts +3 -0
- package/dist/cjs/Client.js +31 -26
- package/dist/cjs/api/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.d.ts +9 -0
- package/dist/cjs/api/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.js +3 -0
- package/dist/cjs/api/resources/externalAccounts/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/externalAccounts/types/index.js +1 -0
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +4 -1
- package/dist/cjs/api/resources/merchantReports/client/Client.d.ts +57 -0
- package/dist/cjs/api/resources/merchantReports/client/Client.js +177 -0
- package/dist/cjs/api/resources/merchantReports/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/merchantReports/client/index.js +17 -0
- package/dist/cjs/api/resources/merchantReports/client/requests/CreateMerchantReportsRequest.d.ts +36 -0
- package/dist/cjs/api/resources/merchantReports/client/requests/CreateMerchantReportsRequest.js +3 -0
- package/dist/cjs/api/resources/merchantReports/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/merchantReports/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/merchantReports/exports.d.ts +2 -0
- package/dist/cjs/api/resources/merchantReports/exports.js +21 -0
- package/dist/cjs/api/resources/merchantReports/index.d.ts +2 -0
- package/dist/cjs/api/resources/merchantReports/index.js +18 -0
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.d.ts +19 -0
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.js +3 -0
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.d.ts +10 -0
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.js +13 -0
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponse.js +3 -0
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponseData.d.ts +8 -0
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponseData.js +3 -0
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.d.ts +10 -0
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.js +13 -0
- package/dist/cjs/api/resources/merchantReports/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/merchantReports/types/index.js +21 -0
- package/dist/cjs/api/resources/payments/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/payments/client/Client.js +1 -1
- package/dist/cjs/serialization/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributes.d.ts +2 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributes.js +2 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.d.ts +14 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.js +46 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/index.js +1 -0
- package/dist/cjs/serialization/resources/index.d.ts +3 -0
- package/dist/cjs/serialization/resources/index.js +4 -1
- package/dist/cjs/serialization/resources/merchantReports/client/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/merchantReports/client/index.js +17 -0
- package/dist/cjs/serialization/resources/merchantReports/client/requests/CreateMerchantReportsRequest.d.ts +17 -0
- package/dist/cjs/serialization/resources/merchantReports/client/requests/CreateMerchantReportsRequest.js +49 -0
- package/dist/cjs/serialization/resources/merchantReports/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/merchantReports/client/requests/index.js +5 -0
- package/dist/cjs/serialization/resources/merchantReports/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/merchantReports/index.js +18 -0
- package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.d.ts +15 -0
- package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.js +47 -0
- package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.d.ts +7 -0
- package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.js +46 -0
- package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsResponse.d.ts +10 -0
- package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsResponse.js +42 -0
- package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsResponseData.d.ts +13 -0
- package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsResponseData.js +45 -0
- package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.d.ts +7 -0
- package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.js +46 -0
- package/dist/cjs/serialization/resources/merchantReports/types/index.d.ts +5 -0
- package/dist/cjs/serialization/resources/merchantReports/types/index.js +21 -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/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/api/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributes.d.mts +2 -0
- package/dist/esm/api/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.d.mts +9 -0
- package/dist/esm/api/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.mjs +2 -0
- package/dist/esm/api/resources/externalAccounts/types/index.d.mts +1 -0
- package/dist/esm/api/resources/externalAccounts/types/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/index.mjs +3 -0
- package/dist/esm/api/resources/merchantReports/client/Client.d.mts +57 -0
- package/dist/esm/api/resources/merchantReports/client/Client.mjs +140 -0
- package/dist/esm/api/resources/merchantReports/client/index.d.mts +1 -0
- package/dist/esm/api/resources/merchantReports/client/index.mjs +1 -0
- package/dist/esm/api/resources/merchantReports/client/requests/CreateMerchantReportsRequest.d.mts +36 -0
- package/dist/esm/api/resources/merchantReports/client/requests/CreateMerchantReportsRequest.mjs +2 -0
- package/dist/esm/api/resources/merchantReports/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/merchantReports/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/merchantReports/exports.d.mts +2 -0
- package/dist/esm/api/resources/merchantReports/exports.mjs +3 -0
- package/dist/esm/api/resources/merchantReports/index.d.mts +2 -0
- package/dist/esm/api/resources/merchantReports/index.mjs +2 -0
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.d.mts +19 -0
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.mjs +2 -0
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.d.mts +10 -0
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.mjs +10 -0
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponse.d.mts +4 -0
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponse.mjs +2 -0
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponseData.d.mts +8 -0
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponseData.mjs +2 -0
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.d.mts +10 -0
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.mjs +10 -0
- package/dist/esm/api/resources/merchantReports/types/index.d.mts +5 -0
- package/dist/esm/api/resources/merchantReports/types/index.mjs +5 -0
- package/dist/esm/api/resources/payments/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/payments/client/Client.mjs +1 -1
- package/dist/esm/serialization/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributes.d.mts +2 -0
- package/dist/esm/serialization/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributes.mjs +2 -0
- package/dist/esm/serialization/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.d.mts +14 -0
- package/dist/esm/serialization/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.mjs +10 -0
- package/dist/esm/serialization/resources/externalAccounts/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/externalAccounts/types/index.mjs +1 -0
- package/dist/esm/serialization/resources/index.d.mts +3 -0
- package/dist/esm/serialization/resources/index.mjs +3 -0
- package/dist/esm/serialization/resources/merchantReports/client/index.d.mts +1 -0
- package/dist/esm/serialization/resources/merchantReports/client/index.mjs +1 -0
- package/dist/esm/serialization/resources/merchantReports/client/requests/CreateMerchantReportsRequest.d.mts +17 -0
- package/dist/esm/serialization/resources/merchantReports/client/requests/CreateMerchantReportsRequest.mjs +13 -0
- package/dist/esm/serialization/resources/merchantReports/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/merchantReports/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/resources/merchantReports/index.d.mts +2 -0
- package/dist/esm/serialization/resources/merchantReports/index.mjs +2 -0
- package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.d.mts +15 -0
- package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.mjs +11 -0
- package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.d.mts +7 -0
- package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.mjs +10 -0
- package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsResponse.d.mts +10 -0
- package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsResponse.mjs +6 -0
- package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsResponseData.d.mts +13 -0
- package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsResponseData.mjs +9 -0
- package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.d.mts +7 -0
- package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.mjs +10 -0
- package/dist/esm/serialization/resources/merchantReports/types/index.d.mts +5 -0
- package/dist/esm/serialization/resources/merchantReports/types/index.mjs +5 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +12 -1
- package/reference.md +80 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** What stopped the payment. host_not_allowed: the card request went to a host you couldn't put in allowedHosts. 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
|
+
export declare const CreateMerchantReportsRequestOutcome: {
|
|
3
|
+
readonly HostNotAllowed: "host_not_allowed";
|
|
4
|
+
readonly ProxyError: "proxy_error";
|
|
5
|
+
readonly CardRefused: "card_refused";
|
|
6
|
+
readonly ThreeDsRequired: "three_ds_required";
|
|
7
|
+
readonly BotWall: "bot_wall";
|
|
8
|
+
readonly Other: "other";
|
|
9
|
+
};
|
|
10
|
+
export type CreateMerchantReportsRequestOutcome = (typeof CreateMerchantReportsRequestOutcome)[keyof typeof CreateMerchantReportsRequestOutcome];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CreateMerchantReportsRequestOutcome = void 0;
|
|
5
|
+
/** What stopped the payment. host_not_allowed: the card request went to a host you couldn't put in allowedHosts. 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
|
+
exports.CreateMerchantReportsRequestOutcome = {
|
|
7
|
+
HostNotAllowed: "host_not_allowed",
|
|
8
|
+
ProxyError: "proxy_error",
|
|
9
|
+
CardRefused: "card_refused",
|
|
10
|
+
ThreeDsRequired: "three_ds_required",
|
|
11
|
+
BotWall: "bot_wall",
|
|
12
|
+
Other: "other",
|
|
13
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.js";
|
|
2
|
+
export interface CreateMerchantReportsResponseData {
|
|
3
|
+
reportId: string;
|
|
4
|
+
merchantHost: string;
|
|
5
|
+
/** What stopped the payment. host_not_allowed: the card request went to a host you couldn't put in allowedHosts. 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
|
+
outcome: Natural.CreateMerchantReportsResponseDataOutcome;
|
|
7
|
+
createdAt: string;
|
|
8
|
+
}
|
package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** What stopped the payment. host_not_allowed: the card request went to a host you couldn't put in allowedHosts. 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
|
+
export declare const CreateMerchantReportsResponseDataOutcome: {
|
|
3
|
+
readonly HostNotAllowed: "host_not_allowed";
|
|
4
|
+
readonly ProxyError: "proxy_error";
|
|
5
|
+
readonly CardRefused: "card_refused";
|
|
6
|
+
readonly ThreeDsRequired: "three_ds_required";
|
|
7
|
+
readonly BotWall: "bot_wall";
|
|
8
|
+
readonly Other: "other";
|
|
9
|
+
};
|
|
10
|
+
export type CreateMerchantReportsResponseDataOutcome = (typeof CreateMerchantReportsResponseDataOutcome)[keyof typeof CreateMerchantReportsResponseDataOutcome];
|
package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CreateMerchantReportsResponseDataOutcome = void 0;
|
|
5
|
+
/** What stopped the payment. host_not_allowed: the card request went to a host you couldn't put in allowedHosts. 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
|
+
exports.CreateMerchantReportsResponseDataOutcome = {
|
|
7
|
+
HostNotAllowed: "host_not_allowed",
|
|
8
|
+
ProxyError: "proxy_error",
|
|
9
|
+
CardRefused: "card_refused",
|
|
10
|
+
ThreeDsRequired: "three_ds_required",
|
|
11
|
+
BotWall: "bot_wall",
|
|
12
|
+
Other: "other",
|
|
13
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from "./CreateMerchantReportsRequestCheckout.js";
|
|
2
|
+
export * from "./CreateMerchantReportsRequestOutcome.js";
|
|
3
|
+
export * from "./CreateMerchantReportsResponse.js";
|
|
4
|
+
export * from "./CreateMerchantReportsResponseData.js";
|
|
5
|
+
export * from "./CreateMerchantReportsResponseDataOutcome.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./CreateMerchantReportsRequestCheckout.js"), exports);
|
|
18
|
+
__exportStar(require("./CreateMerchantReportsRequestOutcome.js"), exports);
|
|
19
|
+
__exportStar(require("./CreateMerchantReportsResponse.js"), exports);
|
|
20
|
+
__exportStar(require("./CreateMerchantReportsResponseData.js"), exports);
|
|
21
|
+
__exportStar(require("./CreateMerchantReportsResponseDataOutcome.js"), exports);
|
|
@@ -105,7 +105,7 @@ export declare class PaymentsClient {
|
|
|
105
105
|
get(request: Natural.GetPaymentsRequest, requestOptions?: PaymentsClient.RequestOptions): core.HttpResponsePromise<Natural.PaymentDetail>;
|
|
106
106
|
private __get;
|
|
107
107
|
/**
|
|
108
|
-
* Cancel a payment before the recipient
|
|
108
|
+
* Cancel a pending payment claim before the recipient claims it
|
|
109
109
|
*
|
|
110
110
|
* @param {Natural.CancelPaymentsRequest} request
|
|
111
111
|
* @param {PaymentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -403,7 +403,7 @@ class PaymentsClient {
|
|
|
403
403
|
});
|
|
404
404
|
}
|
|
405
405
|
/**
|
|
406
|
-
* Cancel a payment before the recipient
|
|
406
|
+
* Cancel a pending payment claim before the recipient claims it
|
|
407
407
|
*
|
|
408
408
|
* @param {Natural.CancelPaymentsRequest} request
|
|
409
409
|
* @param {PaymentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as Natural from "../../../../api/index.js";
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
|
+
import { ListCardsExternalAccountsResponseDataItemAttributesBillingAddress } from "./ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.js";
|
|
4
5
|
import { ListCardsExternalAccountsResponseDataItemAttributesBrand } from "./ListCardsExternalAccountsResponseDataItemAttributesBrand.js";
|
|
5
6
|
import { ListCardsExternalAccountsResponseDataItemAttributesStatus } from "./ListCardsExternalAccountsResponseDataItemAttributesStatus.js";
|
|
6
7
|
export declare const ListCardsExternalAccountsResponseDataItemAttributes: core.serialization.ObjectSchema<serializers.ListCardsExternalAccountsResponseDataItemAttributes.Raw, Natural.ListCardsExternalAccountsResponseDataItemAttributes>;
|
|
@@ -8,6 +9,7 @@ export declare namespace ListCardsExternalAccountsResponseDataItemAttributes {
|
|
|
8
9
|
interface Raw {
|
|
9
10
|
brand: ListCardsExternalAccountsResponseDataItemAttributesBrand.Raw;
|
|
10
11
|
lastFour: string;
|
|
12
|
+
billingAddress?: ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.Raw | null;
|
|
11
13
|
status: ListCardsExternalAccountsResponseDataItemAttributesStatus.Raw;
|
|
12
14
|
createdAt: string;
|
|
13
15
|
}
|
|
@@ -36,11 +36,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.ListCardsExternalAccountsResponseDataItemAttributes = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
const ListCardsExternalAccountsResponseDataItemAttributesBillingAddress_js_1 = require("./ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.js");
|
|
39
40
|
const ListCardsExternalAccountsResponseDataItemAttributesBrand_js_1 = require("./ListCardsExternalAccountsResponseDataItemAttributesBrand.js");
|
|
40
41
|
const ListCardsExternalAccountsResponseDataItemAttributesStatus_js_1 = require("./ListCardsExternalAccountsResponseDataItemAttributesStatus.js");
|
|
41
42
|
exports.ListCardsExternalAccountsResponseDataItemAttributes = core.serialization.object({
|
|
42
43
|
brand: ListCardsExternalAccountsResponseDataItemAttributesBrand_js_1.ListCardsExternalAccountsResponseDataItemAttributesBrand,
|
|
43
44
|
lastFour: core.serialization.string(),
|
|
45
|
+
billingAddress: ListCardsExternalAccountsResponseDataItemAttributesBillingAddress_js_1.ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.nullable(),
|
|
44
46
|
status: ListCardsExternalAccountsResponseDataItemAttributesStatus_js_1.ListCardsExternalAccountsResponseDataItemAttributesStatus,
|
|
45
47
|
createdAt: core.serialization.date(),
|
|
46
48
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
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 ListCardsExternalAccountsResponseDataItemAttributesBillingAddress: core.serialization.ObjectSchema<serializers.ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.Raw, Natural.ListCardsExternalAccountsResponseDataItemAttributesBillingAddress>;
|
|
5
|
+
export declare namespace ListCardsExternalAccountsResponseDataItemAttributesBillingAddress {
|
|
6
|
+
interface Raw {
|
|
7
|
+
line1?: string | null;
|
|
8
|
+
line2?: string | null;
|
|
9
|
+
city?: string | null;
|
|
10
|
+
state?: string | null;
|
|
11
|
+
postalCode?: string | null;
|
|
12
|
+
country?: string | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.ListCardsExternalAccountsResponseDataItemAttributesBillingAddress = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.ListCardsExternalAccountsResponseDataItemAttributesBillingAddress = core.serialization.object({
|
|
40
|
+
line1: core.serialization.string().nullable(),
|
|
41
|
+
line2: core.serialization.string().nullable(),
|
|
42
|
+
city: core.serialization.string().nullable(),
|
|
43
|
+
state: core.serialization.string().nullable(),
|
|
44
|
+
postalCode: core.serialization.string().nullable(),
|
|
45
|
+
country: core.serialization.string().nullable(),
|
|
46
|
+
});
|
|
@@ -49,6 +49,7 @@ export * from "./GetExternalAccountsResponseDataType.js";
|
|
|
49
49
|
export * from "./ListCardsExternalAccountsResponse.js";
|
|
50
50
|
export * from "./ListCardsExternalAccountsResponseDataItem.js";
|
|
51
51
|
export * from "./ListCardsExternalAccountsResponseDataItemAttributes.js";
|
|
52
|
+
export * from "./ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.js";
|
|
52
53
|
export * from "./ListCardsExternalAccountsResponseDataItemAttributesBrand.js";
|
|
53
54
|
export * from "./ListCardsExternalAccountsResponseDataItemAttributesStatus.js";
|
|
54
55
|
export * from "./ListCardsExternalAccountsResponseDataItemRelationships.js";
|
|
@@ -65,6 +65,7 @@ __exportStar(require("./GetExternalAccountsResponseDataType.js"), exports);
|
|
|
65
65
|
__exportStar(require("./ListCardsExternalAccountsResponse.js"), exports);
|
|
66
66
|
__exportStar(require("./ListCardsExternalAccountsResponseDataItem.js"), exports);
|
|
67
67
|
__exportStar(require("./ListCardsExternalAccountsResponseDataItemAttributes.js"), exports);
|
|
68
|
+
__exportStar(require("./ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.js"), exports);
|
|
68
69
|
__exportStar(require("./ListCardsExternalAccountsResponseDataItemAttributesBrand.js"), exports);
|
|
69
70
|
__exportStar(require("./ListCardsExternalAccountsResponseDataItemAttributesStatus.js"), exports);
|
|
70
71
|
__exportStar(require("./ListCardsExternalAccountsResponseDataItemRelationships.js"), exports);
|
|
@@ -47,6 +47,9 @@ export * from "./invitationLinks/types/index.js";
|
|
|
47
47
|
export * from "./invitations/client/requests/index.js";
|
|
48
48
|
export * as invitations from "./invitations/index.js";
|
|
49
49
|
export * from "./invitations/types/index.js";
|
|
50
|
+
export * from "./merchantReports/client/requests/index.js";
|
|
51
|
+
export * as merchantReports from "./merchantReports/index.js";
|
|
52
|
+
export * from "./merchantReports/types/index.js";
|
|
50
53
|
export * from "./parties/client/requests/index.js";
|
|
51
54
|
export * as parties from "./parties/index.js";
|
|
52
55
|
export * from "./parties/types/index.js";
|
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.wire = exports.webhooks = exports.wallets = exports.voiceSessions = exports.transfers = exports.transactions = exports.simulations = exports.refunds = exports.realtime = exports.payments = exports.paymentRequests = exports.paymentIntents = exports.parties = exports.invitations = exports.invitationLinks = exports.externalPartyAccounts = exports.externalParties = exports.externalAccounts = exports.events = exports.customers = exports.check = exports.chargebacks = exports.cardSessions = exports.cardPayments = exports.approvals = exports.apiKeys = exports.agents = exports.agentKeys = exports.agenticPayments = exports.ach = void 0;
|
|
39
|
+
exports.wire = exports.webhooks = exports.wallets = exports.voiceSessions = exports.transfers = exports.transactions = exports.simulations = exports.refunds = exports.realtime = exports.payments = exports.paymentRequests = exports.paymentIntents = exports.parties = exports.merchantReports = exports.invitations = exports.invitationLinks = exports.externalPartyAccounts = exports.externalParties = exports.externalAccounts = exports.events = exports.customers = exports.check = exports.chargebacks = exports.cardSessions = exports.cardPayments = exports.approvals = exports.apiKeys = exports.agents = exports.agentKeys = exports.agenticPayments = exports.ach = void 0;
|
|
40
40
|
__exportStar(require("./ach/client/requests/index.js"), exports);
|
|
41
41
|
exports.ach = __importStar(require("./ach/index.js"));
|
|
42
42
|
__exportStar(require("./ach/types/index.js"), exports);
|
|
@@ -86,6 +86,9 @@ __exportStar(require("./invitationLinks/types/index.js"), exports);
|
|
|
86
86
|
__exportStar(require("./invitations/client/requests/index.js"), exports);
|
|
87
87
|
exports.invitations = __importStar(require("./invitations/index.js"));
|
|
88
88
|
__exportStar(require("./invitations/types/index.js"), exports);
|
|
89
|
+
__exportStar(require("./merchantReports/client/requests/index.js"), exports);
|
|
90
|
+
exports.merchantReports = __importStar(require("./merchantReports/index.js"));
|
|
91
|
+
__exportStar(require("./merchantReports/types/index.js"), exports);
|
|
89
92
|
__exportStar(require("./parties/client/requests/index.js"), exports);
|
|
90
93
|
exports.parties = __importStar(require("./parties/index.js"));
|
|
91
94
|
__exportStar(require("./parties/types/index.js"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as Natural from "../../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../../index.js";
|
|
4
|
+
import { CreateMerchantReportsRequestCheckout } from "../../types/CreateMerchantReportsRequestCheckout.js";
|
|
5
|
+
import { CreateMerchantReportsRequestOutcome } from "../../types/CreateMerchantReportsRequestOutcome.js";
|
|
6
|
+
export declare const CreateMerchantReportsRequest: core.serialization.Schema<serializers.CreateMerchantReportsRequest.Raw, Natural.CreateMerchantReportsRequest>;
|
|
7
|
+
export declare namespace CreateMerchantReportsRequest {
|
|
8
|
+
interface Raw {
|
|
9
|
+
merchantUrl: string;
|
|
10
|
+
outcome: CreateMerchantReportsRequestOutcome.Raw;
|
|
11
|
+
cardSessionId?: string | null;
|
|
12
|
+
proxyErrorCode?: string | null;
|
|
13
|
+
checkout?: CreateMerchantReportsRequestCheckout.Raw | null;
|
|
14
|
+
notes?: string | null;
|
|
15
|
+
customerPartyId?: string | null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.CreateMerchantReportsRequest = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../../core/index.js"));
|
|
39
|
+
const CreateMerchantReportsRequestCheckout_js_1 = require("../../types/CreateMerchantReportsRequestCheckout.js");
|
|
40
|
+
const CreateMerchantReportsRequestOutcome_js_1 = require("../../types/CreateMerchantReportsRequestOutcome.js");
|
|
41
|
+
exports.CreateMerchantReportsRequest = core.serialization.object({
|
|
42
|
+
merchantUrl: core.serialization.string(),
|
|
43
|
+
outcome: CreateMerchantReportsRequestOutcome_js_1.CreateMerchantReportsRequestOutcome,
|
|
44
|
+
cardSessionId: core.serialization.string().optional(),
|
|
45
|
+
proxyErrorCode: core.serialization.string().optional(),
|
|
46
|
+
checkout: CreateMerchantReportsRequestCheckout_js_1.CreateMerchantReportsRequestCheckout.optional(),
|
|
47
|
+
notes: core.serialization.string().optional(),
|
|
48
|
+
customerPartyId: core.serialization.string().optional(),
|
|
49
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CreateMerchantReportsRequest } from "./CreateMerchantReportsRequest.js";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateMerchantReportsRequest = void 0;
|
|
4
|
+
var CreateMerchantReportsRequest_js_1 = require("./CreateMerchantReportsRequest.js");
|
|
5
|
+
Object.defineProperty(exports, "CreateMerchantReportsRequest", { enumerable: true, get: function () { return CreateMerchantReportsRequest_js_1.CreateMerchantReportsRequest; } });
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./types/index.js"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
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 CreateMerchantReportsRequestCheckout: core.serialization.ObjectSchema<serializers.CreateMerchantReportsRequestCheckout.Raw, Natural.CreateMerchantReportsRequestCheckout>;
|
|
5
|
+
export declare namespace CreateMerchantReportsRequestCheckout {
|
|
6
|
+
interface Raw {
|
|
7
|
+
cardFieldOrigin?: string | null;
|
|
8
|
+
processorSdkUrl?: string | null;
|
|
9
|
+
processorSdkVersion?: string | null;
|
|
10
|
+
submitUrl?: string | null;
|
|
11
|
+
submitContentType?: string | null;
|
|
12
|
+
cardFieldNames?: string[] | null;
|
|
13
|
+
errorText?: string | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.CreateMerchantReportsRequestCheckout = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.CreateMerchantReportsRequestCheckout = core.serialization.object({
|
|
40
|
+
cardFieldOrigin: core.serialization.string().optional(),
|
|
41
|
+
processorSdkUrl: core.serialization.string().optional(),
|
|
42
|
+
processorSdkVersion: core.serialization.string().optional(),
|
|
43
|
+
submitUrl: core.serialization.string().optional(),
|
|
44
|
+
submitContentType: core.serialization.string().optional(),
|
|
45
|
+
cardFieldNames: core.serialization.list(core.serialization.string()).optional(),
|
|
46
|
+
errorText: core.serialization.string().optional(),
|
|
47
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Natural from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
export declare const CreateMerchantReportsRequestOutcome: core.serialization.Schema<serializers.CreateMerchantReportsRequestOutcome.Raw, Natural.CreateMerchantReportsRequestOutcome>;
|
|
5
|
+
export declare namespace CreateMerchantReportsRequestOutcome {
|
|
6
|
+
type Raw = "host_not_allowed" | "proxy_error" | "card_refused" | "three_ds_required" | "bot_wall" | "other";
|
|
7
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.CreateMerchantReportsRequestOutcome = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.CreateMerchantReportsRequestOutcome = core.serialization.enum_([
|
|
40
|
+
"host_not_allowed",
|
|
41
|
+
"proxy_error",
|
|
42
|
+
"card_refused",
|
|
43
|
+
"three_ds_required",
|
|
44
|
+
"bot_wall",
|
|
45
|
+
"other",
|
|
46
|
+
]);
|
package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsResponse.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Natural from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
import { CreateMerchantReportsResponseData } from "./CreateMerchantReportsResponseData.js";
|
|
5
|
+
export declare const CreateMerchantReportsResponse: core.serialization.ObjectSchema<serializers.CreateMerchantReportsResponse.Raw, Natural.CreateMerchantReportsResponse>;
|
|
6
|
+
export declare namespace CreateMerchantReportsResponse {
|
|
7
|
+
interface Raw {
|
|
8
|
+
data: CreateMerchantReportsResponseData.Raw;
|
|
9
|
+
}
|
|
10
|
+
}
|
package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsResponse.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.CreateMerchantReportsResponse = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
const CreateMerchantReportsResponseData_js_1 = require("./CreateMerchantReportsResponseData.js");
|
|
40
|
+
exports.CreateMerchantReportsResponse = core.serialization.object({
|
|
41
|
+
data: CreateMerchantReportsResponseData_js_1.CreateMerchantReportsResponseData,
|
|
42
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as Natural from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
import { CreateMerchantReportsResponseDataOutcome } from "./CreateMerchantReportsResponseDataOutcome.js";
|
|
5
|
+
export declare const CreateMerchantReportsResponseData: core.serialization.ObjectSchema<serializers.CreateMerchantReportsResponseData.Raw, Natural.CreateMerchantReportsResponseData>;
|
|
6
|
+
export declare namespace CreateMerchantReportsResponseData {
|
|
7
|
+
interface Raw {
|
|
8
|
+
reportId: string;
|
|
9
|
+
merchantHost: string;
|
|
10
|
+
outcome: CreateMerchantReportsResponseDataOutcome.Raw;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
}
|
|
13
|
+
}
|