@naturalpay/sdk 1.6.46 → 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/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/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/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/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 +79 -0
|
@@ -49,6 +49,9 @@ export * from "./invitationLinks/types/index.mjs";
|
|
|
49
49
|
export * from "./invitations/client/requests/index.mjs";
|
|
50
50
|
export * as invitations from "./invitations/index.mjs";
|
|
51
51
|
export * from "./invitations/types/index.mjs";
|
|
52
|
+
export * from "./merchantReports/client/requests/index.mjs";
|
|
53
|
+
export * as merchantReports from "./merchantReports/index.mjs";
|
|
54
|
+
export * from "./merchantReports/types/index.mjs";
|
|
52
55
|
export * from "./parties/client/requests/index.mjs";
|
|
53
56
|
export * as parties from "./parties/index.mjs";
|
|
54
57
|
export * from "./parties/types/index.mjs";
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
|
+
import * as core from "../../../../core/index.mjs";
|
|
4
|
+
import * as Natural from "../../../index.mjs";
|
|
5
|
+
export declare namespace MerchantReportsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Tell Natural which merchant checkouts agents couldn't pay
|
|
12
|
+
*/
|
|
13
|
+
export declare class MerchantReportsClient {
|
|
14
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<MerchantReportsClient.Options>;
|
|
15
|
+
constructor(options?: MerchantReportsClient.Options);
|
|
16
|
+
/**
|
|
17
|
+
* Report a merchant checkout you couldn't pay with a browser token. Natural uses the details to add support for the merchant or its processor.
|
|
18
|
+
*
|
|
19
|
+
* @param {Natural.CreateMerchantReportsRequest} request
|
|
20
|
+
* @param {MerchantReportsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
21
|
+
*
|
|
22
|
+
* @throws {@link Natural.BadRequestError}
|
|
23
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
24
|
+
* @throws {@link Natural.ForbiddenError}
|
|
25
|
+
* @throws {@link Natural.NotFoundError}
|
|
26
|
+
* @throws {@link Natural.ConflictError}
|
|
27
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
28
|
+
* @throws {@link Natural.PreconditionError}
|
|
29
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
30
|
+
* @throws {@link Natural.InternalServerError}
|
|
31
|
+
* @throws {@link Natural.NotImplementedError}
|
|
32
|
+
* @throws {@link Natural.BadGatewayError}
|
|
33
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
34
|
+
* @throws {@link errors.NaturalError}
|
|
35
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* await client.merchantReports.create({
|
|
39
|
+
* merchantUrl: "https://www.example-air.com/booking/payment",
|
|
40
|
+
* outcome: "proxy_error",
|
|
41
|
+
* cardSessionId: "csn_01a0e6466ba3713bba0f0d9d36803b92",
|
|
42
|
+
* proxyErrorCode: "card_proxy_adyen_checkout_unknown",
|
|
43
|
+
* checkout: {
|
|
44
|
+
* cardFieldOrigin: "https://checkoutshopper-live.adyen.com",
|
|
45
|
+
* processorSdkUrl: "https://checkoutshopper-live.cdn.adyen.com/checkoutshopper/sdk/6.35.0/adyen.js",
|
|
46
|
+
* processorSdkVersion: "6.35.0",
|
|
47
|
+
* submitUrl: "POST https://www.example-air.com/payments/v2/create_payment",
|
|
48
|
+
* submitContentType: "application/json",
|
|
49
|
+
* cardFieldNames: ["payment_method.encryptedCardNumber", "payment_method.encryptedSecurityCode"],
|
|
50
|
+
* errorText: "Your payment has been refused. Please try again with a different payment method."
|
|
51
|
+
* },
|
|
52
|
+
* notes: "Card fields were on screen before the claim; the first Pay was refused, a reload fixed it."
|
|
53
|
+
* })
|
|
54
|
+
*/
|
|
55
|
+
create(request: Natural.CreateMerchantReportsRequest, requestOptions?: MerchantReportsClient.RequestOptions): core.HttpResponsePromise<Natural.CreateMerchantReportsResponse>;
|
|
56
|
+
private __create;
|
|
57
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
12
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
13
|
+
import * as core from "../../../../core/index.mjs";
|
|
14
|
+
import { mergeAdditionalBodyParameters } from "../../../../core/requestBody.mjs";
|
|
15
|
+
import * as environments from "../../../../environments.mjs";
|
|
16
|
+
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
|
|
17
|
+
import * as errors from "../../../../errors/index.mjs";
|
|
18
|
+
import * as serializers from "../../../../serialization/index.mjs";
|
|
19
|
+
import * as Natural from "../../../index.mjs";
|
|
20
|
+
/**
|
|
21
|
+
* Tell Natural which merchant checkouts agents couldn't pay
|
|
22
|
+
*/
|
|
23
|
+
export class MerchantReportsClient {
|
|
24
|
+
constructor(options = {}) {
|
|
25
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Report a merchant checkout you couldn't pay with a browser token. Natural uses the details to add support for the merchant or its processor.
|
|
29
|
+
*
|
|
30
|
+
* @param {Natural.CreateMerchantReportsRequest} request
|
|
31
|
+
* @param {MerchantReportsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
|
+
*
|
|
33
|
+
* @throws {@link Natural.BadRequestError}
|
|
34
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
35
|
+
* @throws {@link Natural.ForbiddenError}
|
|
36
|
+
* @throws {@link Natural.NotFoundError}
|
|
37
|
+
* @throws {@link Natural.ConflictError}
|
|
38
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
39
|
+
* @throws {@link Natural.PreconditionError}
|
|
40
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
41
|
+
* @throws {@link Natural.InternalServerError}
|
|
42
|
+
* @throws {@link Natural.NotImplementedError}
|
|
43
|
+
* @throws {@link Natural.BadGatewayError}
|
|
44
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
45
|
+
* @throws {@link errors.NaturalError}
|
|
46
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* await client.merchantReports.create({
|
|
50
|
+
* merchantUrl: "https://www.example-air.com/booking/payment",
|
|
51
|
+
* outcome: "proxy_error",
|
|
52
|
+
* cardSessionId: "csn_01a0e6466ba3713bba0f0d9d36803b92",
|
|
53
|
+
* proxyErrorCode: "card_proxy_adyen_checkout_unknown",
|
|
54
|
+
* checkout: {
|
|
55
|
+
* cardFieldOrigin: "https://checkoutshopper-live.adyen.com",
|
|
56
|
+
* processorSdkUrl: "https://checkoutshopper-live.cdn.adyen.com/checkoutshopper/sdk/6.35.0/adyen.js",
|
|
57
|
+
* processorSdkVersion: "6.35.0",
|
|
58
|
+
* submitUrl: "POST https://www.example-air.com/payments/v2/create_payment",
|
|
59
|
+
* submitContentType: "application/json",
|
|
60
|
+
* cardFieldNames: ["payment_method.encryptedCardNumber", "payment_method.encryptedSecurityCode"],
|
|
61
|
+
* errorText: "Your payment has been refused. Please try again with a different payment method."
|
|
62
|
+
* },
|
|
63
|
+
* notes: "Card fields were on screen before the claim; the first Pay was refused, a reload fixed it."
|
|
64
|
+
* })
|
|
65
|
+
*/
|
|
66
|
+
create(request, requestOptions) {
|
|
67
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
68
|
+
}
|
|
69
|
+
__create(request, requestOptions) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
72
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
73
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Instance-ID": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.instanceId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.instanceId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
74
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
75
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.NaturalEnvironment.Production, "merchant-reports"),
|
|
76
|
+
method: "POST",
|
|
77
|
+
headers: _headers,
|
|
78
|
+
contentType: "application/json",
|
|
79
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
80
|
+
requestType: "json",
|
|
81
|
+
body: mergeAdditionalBodyParameters(serializers.CreateMerchantReportsRequest.jsonOrThrow(request, {
|
|
82
|
+
unrecognizedObjectKeys: "strip",
|
|
83
|
+
omitUndefined: true,
|
|
84
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
85
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
86
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
87
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
88
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
89
|
+
logging: this._options.logging,
|
|
90
|
+
});
|
|
91
|
+
if (_response.ok) {
|
|
92
|
+
return {
|
|
93
|
+
data: serializers.CreateMerchantReportsResponse.parseOrThrow(_response.body, {
|
|
94
|
+
unrecognizedObjectKeys: "passthrough",
|
|
95
|
+
allowUnrecognizedUnionMembers: true,
|
|
96
|
+
allowUnrecognizedEnumValues: true,
|
|
97
|
+
skipValidation: true,
|
|
98
|
+
breadcrumbsPrefix: ["response"],
|
|
99
|
+
}),
|
|
100
|
+
rawResponse: _response.rawResponse,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
if (_response.error.reason === "status-code") {
|
|
104
|
+
switch (_response.error.statusCode) {
|
|
105
|
+
case 400:
|
|
106
|
+
throw new Natural.BadRequestError(_response.error.body, _response.rawResponse);
|
|
107
|
+
case 401:
|
|
108
|
+
throw new Natural.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
109
|
+
case 403:
|
|
110
|
+
throw new Natural.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
111
|
+
case 404:
|
|
112
|
+
throw new Natural.NotFoundError(_response.error.body, _response.rawResponse);
|
|
113
|
+
case 409:
|
|
114
|
+
throw new Natural.ConflictError(_response.error.body, _response.rawResponse);
|
|
115
|
+
case 422:
|
|
116
|
+
throw new Natural.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
117
|
+
case 428:
|
|
118
|
+
throw new Natural.PreconditionError(_response.error.body, _response.rawResponse);
|
|
119
|
+
case 429:
|
|
120
|
+
throw new Natural.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
121
|
+
case 500:
|
|
122
|
+
throw new Natural.InternalServerError(_response.error.body, _response.rawResponse);
|
|
123
|
+
case 501:
|
|
124
|
+
throw new Natural.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
125
|
+
case 502:
|
|
126
|
+
throw new Natural.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
127
|
+
case 503:
|
|
128
|
+
throw new Natural.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
129
|
+
default:
|
|
130
|
+
throw new errors.NaturalError({
|
|
131
|
+
statusCode: _response.error.statusCode,
|
|
132
|
+
body: _response.error.body,
|
|
133
|
+
rawResponse: _response.rawResponse,
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/merchant-reports");
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
package/dist/esm/api/resources/merchantReports/client/requests/CreateMerchantReportsRequest.d.mts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type * as Natural from "../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* merchantUrl: "https://www.example-air.com/booking/payment",
|
|
6
|
+
* outcome: "proxy_error",
|
|
7
|
+
* cardSessionId: "csn_01a0e6466ba3713bba0f0d9d36803b92",
|
|
8
|
+
* proxyErrorCode: "card_proxy_adyen_checkout_unknown",
|
|
9
|
+
* checkout: {
|
|
10
|
+
* cardFieldOrigin: "https://checkoutshopper-live.adyen.com",
|
|
11
|
+
* processorSdkUrl: "https://checkoutshopper-live.cdn.adyen.com/checkoutshopper/sdk/6.35.0/adyen.js",
|
|
12
|
+
* processorSdkVersion: "6.35.0",
|
|
13
|
+
* submitUrl: "POST https://www.example-air.com/payments/v2/create_payment",
|
|
14
|
+
* submitContentType: "application/json",
|
|
15
|
+
* cardFieldNames: ["payment_method.encryptedCardNumber", "payment_method.encryptedSecurityCode"],
|
|
16
|
+
* errorText: "Your payment has been refused. Please try again with a different payment method."
|
|
17
|
+
* },
|
|
18
|
+
* notes: "Card fields were on screen before the claim; the first Pay was refused, a reload fixed it."
|
|
19
|
+
* }
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateMerchantReportsRequest {
|
|
22
|
+
/** The checkout page you were on. Strip query strings that carry personal data or tokens. */
|
|
23
|
+
merchantUrl: string;
|
|
24
|
+
/** 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. */
|
|
25
|
+
outcome: Natural.CreateMerchantReportsRequestOutcome;
|
|
26
|
+
/** The card session the attempt used, if any. */
|
|
27
|
+
cardSessionId?: string;
|
|
28
|
+
/** The proxy's error code when outcome is proxy_error (card_proxy_adyen_checkout_unknown, ...). */
|
|
29
|
+
proxyErrorCode?: string;
|
|
30
|
+
/** Details of the checkout, for adding support later. Fill in what you saw; never card data. */
|
|
31
|
+
checkout?: Natural.CreateMerchantReportsRequestCheckout;
|
|
32
|
+
/** What you tried and what happened, in your own words. */
|
|
33
|
+
notes?: string;
|
|
34
|
+
/** Customer party you were acting for (pty_*). Omit when acting as your own party. */
|
|
35
|
+
customerPartyId?: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CreateMerchantReportsRequest } from "./CreateMerchantReportsRequest.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.d.mts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Details of the checkout, for adding support later. Fill in what you saw; never card data.
|
|
3
|
+
*/
|
|
4
|
+
export interface CreateMerchantReportsRequestCheckout {
|
|
5
|
+
/** Where the card number field comes from: the merchant page itself, or the iframe origin (https://checkoutshopper-live.adyen.com, https://flex.cybersource.com, ...). */
|
|
6
|
+
cardFieldOrigin?: string;
|
|
7
|
+
/** URL of the payment script the page loads (the processor's SDK or the merchant's own encryption bundle). */
|
|
8
|
+
processorSdkUrl?: string;
|
|
9
|
+
/** Its version, when the URL or script says. */
|
|
10
|
+
processorSdkVersion?: string;
|
|
11
|
+
/** The request that carries the card or its token out of the browser (method and URL). */
|
|
12
|
+
submitUrl?: string;
|
|
13
|
+
/** Its Content-Type. */
|
|
14
|
+
submitContentType?: string;
|
|
15
|
+
/** Field names in that request that carry the card or its ciphertext (encryptedCardNumber, token, ...). */
|
|
16
|
+
cardFieldNames?: string[];
|
|
17
|
+
/** The error the page or the proxy showed, verbatim. */
|
|
18
|
+
errorText?: string;
|
|
19
|
+
}
|
package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.d.mts
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 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,10 @@
|
|
|
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 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. */
|
|
3
|
+
export const CreateMerchantReportsRequestOutcome = {
|
|
4
|
+
HostNotAllowed: "host_not_allowed",
|
|
5
|
+
ProxyError: "proxy_error",
|
|
6
|
+
CardRefused: "card_refused",
|
|
7
|
+
ThreeDsRequired: "three_ds_required",
|
|
8
|
+
BotWall: "bot_wall",
|
|
9
|
+
Other: "other",
|
|
10
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.mjs";
|
|
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/esm/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.d.mts
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/esm/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.mjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
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 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. */
|
|
3
|
+
export const CreateMerchantReportsResponseDataOutcome = {
|
|
4
|
+
HostNotAllowed: "host_not_allowed",
|
|
5
|
+
ProxyError: "proxy_error",
|
|
6
|
+
CardRefused: "card_refused",
|
|
7
|
+
ThreeDsRequired: "three_ds_required",
|
|
8
|
+
BotWall: "bot_wall",
|
|
9
|
+
Other: "other",
|
|
10
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from "./CreateMerchantReportsRequestCheckout.mjs";
|
|
2
|
+
export * from "./CreateMerchantReportsRequestOutcome.mjs";
|
|
3
|
+
export * from "./CreateMerchantReportsResponse.mjs";
|
|
4
|
+
export * from "./CreateMerchantReportsResponseData.mjs";
|
|
5
|
+
export * from "./CreateMerchantReportsResponseDataOutcome.mjs";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from "./CreateMerchantReportsRequestCheckout.mjs";
|
|
2
|
+
export * from "./CreateMerchantReportsRequestOutcome.mjs";
|
|
3
|
+
export * from "./CreateMerchantReportsResponse.mjs";
|
|
4
|
+
export * from "./CreateMerchantReportsResponseData.mjs";
|
|
5
|
+
export * from "./CreateMerchantReportsResponseDataOutcome.mjs";
|
|
@@ -47,6 +47,9 @@ export * from "./invitationLinks/types/index.mjs";
|
|
|
47
47
|
export * from "./invitations/client/requests/index.mjs";
|
|
48
48
|
export * as invitations from "./invitations/index.mjs";
|
|
49
49
|
export * from "./invitations/types/index.mjs";
|
|
50
|
+
export * from "./merchantReports/client/requests/index.mjs";
|
|
51
|
+
export * as merchantReports from "./merchantReports/index.mjs";
|
|
52
|
+
export * from "./merchantReports/types/index.mjs";
|
|
50
53
|
export * from "./parties/client/requests/index.mjs";
|
|
51
54
|
export * as parties from "./parties/index.mjs";
|
|
52
55
|
export * from "./parties/types/index.mjs";
|
|
@@ -47,6 +47,9 @@ export * from "./invitationLinks/types/index.mjs";
|
|
|
47
47
|
export * from "./invitations/client/requests/index.mjs";
|
|
48
48
|
export * as invitations from "./invitations/index.mjs";
|
|
49
49
|
export * from "./invitations/types/index.mjs";
|
|
50
|
+
export * from "./merchantReports/client/requests/index.mjs";
|
|
51
|
+
export * as merchantReports from "./merchantReports/index.mjs";
|
|
52
|
+
export * from "./merchantReports/types/index.mjs";
|
|
50
53
|
export * from "./parties/client/requests/index.mjs";
|
|
51
54
|
export * as parties from "./parties/index.mjs";
|
|
52
55
|
export * from "./parties/types/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as Natural from "../../../../../api/index.mjs";
|
|
2
|
+
import * as core from "../../../../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../../../../index.mjs";
|
|
4
|
+
import { CreateMerchantReportsRequestCheckout } from "../../types/CreateMerchantReportsRequestCheckout.mjs";
|
|
5
|
+
import { CreateMerchantReportsRequestOutcome } from "../../types/CreateMerchantReportsRequestOutcome.mjs";
|
|
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,13 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../../core/index.mjs";
|
|
3
|
+
import { CreateMerchantReportsRequestCheckout } from "../../types/CreateMerchantReportsRequestCheckout.mjs";
|
|
4
|
+
import { CreateMerchantReportsRequestOutcome } from "../../types/CreateMerchantReportsRequestOutcome.mjs";
|
|
5
|
+
export const CreateMerchantReportsRequest = core.serialization.object({
|
|
6
|
+
merchantUrl: core.serialization.string(),
|
|
7
|
+
outcome: CreateMerchantReportsRequestOutcome,
|
|
8
|
+
cardSessionId: core.serialization.string().optional(),
|
|
9
|
+
proxyErrorCode: core.serialization.string().optional(),
|
|
10
|
+
checkout: CreateMerchantReportsRequestCheckout.optional(),
|
|
11
|
+
notes: core.serialization.string().optional(),
|
|
12
|
+
customerPartyId: core.serialization.string().optional(),
|
|
13
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CreateMerchantReportsRequest } from "./CreateMerchantReportsRequest.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CreateMerchantReportsRequest } from "./CreateMerchantReportsRequest.mjs";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as Natural from "../../../../api/index.mjs";
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../../../index.mjs";
|
|
4
|
+
export declare const 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,11 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
export const CreateMerchantReportsRequestCheckout = core.serialization.object({
|
|
4
|
+
cardFieldOrigin: core.serialization.string().optional(),
|
|
5
|
+
processorSdkUrl: core.serialization.string().optional(),
|
|
6
|
+
processorSdkVersion: core.serialization.string().optional(),
|
|
7
|
+
submitUrl: core.serialization.string().optional(),
|
|
8
|
+
submitContentType: core.serialization.string().optional(),
|
|
9
|
+
cardFieldNames: core.serialization.list(core.serialization.string()).optional(),
|
|
10
|
+
errorText: core.serialization.string().optional(),
|
|
11
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Natural from "../../../../api/index.mjs";
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../../../index.mjs";
|
|
4
|
+
export declare const 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,10 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
export const CreateMerchantReportsRequestOutcome = core.serialization.enum_([
|
|
4
|
+
"host_not_allowed",
|
|
5
|
+
"proxy_error",
|
|
6
|
+
"card_refused",
|
|
7
|
+
"three_ds_required",
|
|
8
|
+
"bot_wall",
|
|
9
|
+
"other",
|
|
10
|
+
]);
|
package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsResponse.d.mts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Natural from "../../../../api/index.mjs";
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../../../index.mjs";
|
|
4
|
+
import { CreateMerchantReportsResponseData } from "./CreateMerchantReportsResponseData.mjs";
|
|
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/esm/serialization/resources/merchantReports/types/CreateMerchantReportsResponse.mjs
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import { CreateMerchantReportsResponseData } from "./CreateMerchantReportsResponseData.mjs";
|
|
4
|
+
export const CreateMerchantReportsResponse = core.serialization.object({
|
|
5
|
+
data: CreateMerchantReportsResponseData,
|
|
6
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as Natural from "../../../../api/index.mjs";
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../../../index.mjs";
|
|
4
|
+
import { CreateMerchantReportsResponseDataOutcome } from "./CreateMerchantReportsResponseDataOutcome.mjs";
|
|
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
|
+
}
|
package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsResponseData.mjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import { CreateMerchantReportsResponseDataOutcome } from "./CreateMerchantReportsResponseDataOutcome.mjs";
|
|
4
|
+
export const CreateMerchantReportsResponseData = core.serialization.object({
|
|
5
|
+
reportId: core.serialization.string(),
|
|
6
|
+
merchantHost: core.serialization.string(),
|
|
7
|
+
outcome: CreateMerchantReportsResponseDataOutcome,
|
|
8
|
+
createdAt: core.serialization.string(),
|
|
9
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Natural from "../../../../api/index.mjs";
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../../../index.mjs";
|
|
4
|
+
export declare const CreateMerchantReportsResponseDataOutcome: core.serialization.Schema<serializers.CreateMerchantReportsResponseDataOutcome.Raw, Natural.CreateMerchantReportsResponseDataOutcome>;
|
|
5
|
+
export declare namespace CreateMerchantReportsResponseDataOutcome {
|
|
6
|
+
type Raw = "host_not_allowed" | "proxy_error" | "card_refused" | "three_ds_required" | "bot_wall" | "other";
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
export const CreateMerchantReportsResponseDataOutcome = core.serialization.enum_([
|
|
4
|
+
"host_not_allowed",
|
|
5
|
+
"proxy_error",
|
|
6
|
+
"card_refused",
|
|
7
|
+
"three_ds_required",
|
|
8
|
+
"bot_wall",
|
|
9
|
+
"other",
|
|
10
|
+
]);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from "./CreateMerchantReportsRequestCheckout.mjs";
|
|
2
|
+
export * from "./CreateMerchantReportsRequestOutcome.mjs";
|
|
3
|
+
export * from "./CreateMerchantReportsResponse.mjs";
|
|
4
|
+
export * from "./CreateMerchantReportsResponseData.mjs";
|
|
5
|
+
export * from "./CreateMerchantReportsResponseDataOutcome.mjs";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from "./CreateMerchantReportsRequestCheckout.mjs";
|
|
2
|
+
export * from "./CreateMerchantReportsRequestOutcome.mjs";
|
|
3
|
+
export * from "./CreateMerchantReportsResponse.mjs";
|
|
4
|
+
export * from "./CreateMerchantReportsResponseData.mjs";
|
|
5
|
+
export * from "./CreateMerchantReportsResponseDataOutcome.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.6.
|
|
1
|
+
export declare const SDK_VERSION = "1.6.47";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.6.
|
|
1
|
+
export const SDK_VERSION = "1.6.47";
|