@payabli/sdk-node 0.0.117 → 0.0.123
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/README.md +25 -13
- package/dist/cjs/BaseClient.d.ts +7 -7
- package/dist/cjs/BaseClient.js +3 -1
- package/dist/cjs/Client.d.ts +1 -2
- package/dist/cjs/api/errors/BadRequestError.js +5 -1
- package/dist/cjs/api/errors/ConflictError.js +5 -1
- package/dist/cjs/api/errors/ForbiddenError.js +5 -1
- package/dist/cjs/api/errors/InternalServerError.js +5 -1
- package/dist/cjs/api/errors/ServiceUnavailableError.js +5 -1
- package/dist/cjs/api/errors/UnauthorizedError.js +5 -1
- package/dist/cjs/api/resources/bill/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/boarding/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/chargeBacks/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/checkCapture/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/cloud/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/customer/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/export/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/hostedPaymentPages/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/import/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/invoice/client/Client.d.ts +6 -5
- package/dist/cjs/api/resources/invoice/client/Client.js +5 -3
- package/dist/cjs/api/resources/invoice/client/requests/AddInvoiceRequest.d.ts +5 -3
- package/dist/cjs/api/resources/lineItem/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/moneyIn/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/moneyIn/errors/CaptureError.js +5 -1
- package/dist/cjs/api/resources/moneyIn/errors/InvalidTransStatusError.js +5 -1
- package/dist/cjs/api/resources/moneyOut/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/notification/client/Client.d.ts +14 -2
- package/dist/cjs/api/resources/notification/client/Client.js +13 -0
- package/dist/cjs/api/resources/notificationlogs/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/ocr/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/organization/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/paymentLink/client/Client.d.ts +4 -5
- package/dist/cjs/api/resources/paymentLink/client/Client.js +3 -3
- package/dist/cjs/api/resources/paymentLink/client/requests/PayLinkDataBill.d.ts +1 -1
- package/dist/cjs/api/resources/paymentLink/client/requests/PayLinkDataInvoice.d.ts +1 -1
- package/dist/cjs/api/resources/paymentLink/client/requests/PayLinkDataOut.d.ts +1 -1
- package/dist/cjs/api/resources/paymentLink/types/PaymentPageRequestBody.d.ts +2 -2
- package/dist/cjs/api/resources/paymentMethodDomain/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/paypoint/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/query/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/statistic/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/subscription/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/templates/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/tokenStorage/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/tokenStorage/types/GetMethodResponse.d.ts +1 -1
- package/dist/cjs/api/resources/user/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/vendor/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/wallet/client/Client.d.ts +1 -2
- package/dist/cjs/api/types/Frequency.d.ts +1 -1
- package/dist/cjs/api/types/Frequency.js +1 -1
- package/dist/cjs/api/types/FrequencyList.d.ts +1 -1
- package/dist/cjs/api/types/PayorDataResponse.d.ts +1 -1
- package/dist/cjs/auth/HeaderAuthProvider.d.ts +4 -2
- package/dist/cjs/errors/PayabliError.js +5 -1
- package/dist/cjs/errors/PayabliTimeoutError.js +5 -1
- package/dist/cjs/version.d.ts +1 -0
- package/dist/cjs/version.js +4 -0
- package/dist/esm/BaseClient.d.mts +7 -7
- package/dist/esm/BaseClient.mjs +3 -1
- package/dist/esm/Client.d.mts +1 -2
- package/dist/esm/api/errors/BadRequestError.mjs +5 -1
- package/dist/esm/api/errors/ConflictError.mjs +5 -1
- package/dist/esm/api/errors/ForbiddenError.mjs +5 -1
- package/dist/esm/api/errors/InternalServerError.mjs +5 -1
- package/dist/esm/api/errors/ServiceUnavailableError.mjs +5 -1
- package/dist/esm/api/errors/UnauthorizedError.mjs +5 -1
- package/dist/esm/api/resources/bill/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/boarding/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/chargeBacks/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/checkCapture/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/cloud/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/customer/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/export/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/hostedPaymentPages/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/import/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/invoice/client/Client.d.mts +6 -5
- package/dist/esm/api/resources/invoice/client/Client.mjs +5 -3
- package/dist/esm/api/resources/invoice/client/requests/AddInvoiceRequest.d.mts +5 -3
- package/dist/esm/api/resources/lineItem/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/moneyIn/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/moneyIn/errors/CaptureError.mjs +5 -1
- package/dist/esm/api/resources/moneyIn/errors/InvalidTransStatusError.mjs +5 -1
- package/dist/esm/api/resources/moneyOut/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/notification/client/Client.d.mts +14 -2
- package/dist/esm/api/resources/notification/client/Client.mjs +13 -0
- package/dist/esm/api/resources/notificationlogs/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/ocr/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/organization/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/paymentLink/client/Client.d.mts +4 -5
- package/dist/esm/api/resources/paymentLink/client/Client.mjs +3 -3
- package/dist/esm/api/resources/paymentLink/client/requests/PayLinkDataBill.d.mts +1 -1
- package/dist/esm/api/resources/paymentLink/client/requests/PayLinkDataInvoice.d.mts +1 -1
- package/dist/esm/api/resources/paymentLink/client/requests/PayLinkDataOut.d.mts +1 -1
- package/dist/esm/api/resources/paymentLink/types/PaymentPageRequestBody.d.mts +2 -2
- package/dist/esm/api/resources/paymentMethodDomain/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/paypoint/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/query/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/statistic/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/subscription/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/templates/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/tokenStorage/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/tokenStorage/types/GetMethodResponse.d.mts +1 -1
- package/dist/esm/api/resources/user/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/vendor/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/wallet/client/Client.d.mts +1 -2
- package/dist/esm/api/types/Frequency.d.mts +1 -1
- package/dist/esm/api/types/Frequency.mjs +1 -1
- package/dist/esm/api/types/FrequencyList.d.mts +1 -1
- package/dist/esm/api/types/PayorDataResponse.d.mts +1 -1
- package/dist/esm/auth/HeaderAuthProvider.d.mts +4 -2
- package/dist/esm/errors/PayabliError.mjs +5 -1
- package/dist/esm/errors/PayabliTimeoutError.mjs +5 -1
- package/dist/esm/version.d.mts +1 -0
- package/dist/esm/version.mjs +1 -0
- package/package.json +7 -4
- package/reference.md +8 -6
|
@@ -82,7 +82,7 @@ import type * as Payabli from "../../../index.js";
|
|
|
82
82
|
* name: "fullName",
|
|
83
83
|
* order: 0,
|
|
84
84
|
* required: true,
|
|
85
|
-
* validation: "
|
|
85
|
+
* validation: "alpha",
|
|
86
86
|
* value: "",
|
|
87
87
|
* width: 0
|
|
88
88
|
* }],
|
|
@@ -170,7 +170,7 @@ import type * as Payabli from "../../../index.js";
|
|
|
170
170
|
* name: "fullName",
|
|
171
171
|
* order: 0,
|
|
172
172
|
* required: true,
|
|
173
|
-
* validation: "
|
|
173
|
+
* validation: "alpha",
|
|
174
174
|
* value: "",
|
|
175
175
|
* width: 0
|
|
176
176
|
* }],
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"
|
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
4
|
import * as Payabli from "../../../index.js";
|
|
5
5
|
export declare namespace PaymentMethodDomainClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"
|
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
4
|
import * as Payabli from "../../../index.js";
|
|
5
5
|
export declare namespace PaypointClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"
|
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
4
|
import * as Payabli from "../../../index.js";
|
|
5
5
|
export declare namespace QueryClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"
|
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
4
|
import * as Payabli from "../../../index.js";
|
|
5
5
|
export declare namespace StatisticClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"
|
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
4
|
import * as Payabli from "../../../index.js";
|
|
5
5
|
export declare namespace SubscriptionClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"
|
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
4
|
import * as Payabli from "../../../index.js";
|
|
5
5
|
export declare namespace TemplatesClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"
|
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
4
|
import * as Payabli from "../../../index.js";
|
|
5
5
|
export declare namespace TokenStorageClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -22,7 +22,7 @@ export declare namespace GetMethodResponse {
|
|
|
22
22
|
/** The stored payment method's identifier in Payabli */
|
|
23
23
|
idPmethod?: string;
|
|
24
24
|
/** Timestamp for last update of stored method, in UTC */
|
|
25
|
-
lastUpdated?:
|
|
25
|
+
lastUpdated?: string;
|
|
26
26
|
maskedAccount?: Payabli.Maskedaccount;
|
|
27
27
|
/** The saved method's type: `card` or `ach`. */
|
|
28
28
|
method?: string;
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"
|
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
4
|
import * as Payabli from "../../../index.js";
|
|
5
5
|
export declare namespace UserClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"
|
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
4
|
import * as Payabli from "../../../index.js";
|
|
5
5
|
export declare namespace VendorClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"
|
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
4
|
import * as Payabli from "../../../index.js";
|
|
5
5
|
export declare namespace WalletClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Frequency = void 0;
|
|
5
5
|
/** Frequency for operation. */
|
|
6
6
|
exports.Frequency = {
|
|
7
|
-
OneTime: "
|
|
7
|
+
OneTime: "onetime",
|
|
8
8
|
Weekly: "weekly",
|
|
9
9
|
Every2Weeks: "every2weeks",
|
|
10
10
|
Every6Months: "every6months",
|
|
@@ -3,7 +3,7 @@ import type * as Payabli from "../index.js";
|
|
|
3
3
|
* Customer information.
|
|
4
4
|
*/
|
|
5
5
|
export interface PayorDataResponse {
|
|
6
|
-
AdditionalData: Payabli.
|
|
6
|
+
AdditionalData: Payabli.AdditionalDataMap | null;
|
|
7
7
|
BillingAddress1: Payabli.BillingAddressNullable | null;
|
|
8
8
|
BillingAddress2: Payabli.BillingAddressAddtlNullable | null;
|
|
9
9
|
BillingCity: Payabli.BillingCityNullable | null;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as core from "../core/index.js";
|
|
2
2
|
export declare namespace HeaderAuthProvider {
|
|
3
|
-
interface
|
|
4
|
-
apiKey?: core.Supplier<string
|
|
3
|
+
interface AuthOptions {
|
|
4
|
+
apiKey?: core.Supplier<string>;
|
|
5
|
+
}
|
|
6
|
+
interface Options extends AuthOptions {
|
|
5
7
|
}
|
|
6
8
|
}
|
|
7
9
|
export declare class HeaderAuthProvider implements core.AuthProvider {
|
|
@@ -6,7 +6,11 @@ const json_js_1 = require("../core/json.js");
|
|
|
6
6
|
class PayabliError extends Error {
|
|
7
7
|
constructor({ message, statusCode, body, rawResponse, }) {
|
|
8
8
|
super(buildMessage({ message, statusCode, body }));
|
|
9
|
-
Object.setPrototypeOf(this,
|
|
9
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
10
|
+
if (Error.captureStackTrace) {
|
|
11
|
+
Error.captureStackTrace(this, this.constructor);
|
|
12
|
+
}
|
|
13
|
+
this.name = this.constructor.name;
|
|
10
14
|
this.statusCode = statusCode;
|
|
11
15
|
this.body = body;
|
|
12
16
|
this.rawResponse = rawResponse;
|
|
@@ -5,7 +5,11 @@ exports.PayabliTimeoutError = void 0;
|
|
|
5
5
|
class PayabliTimeoutError extends Error {
|
|
6
6
|
constructor(message) {
|
|
7
7
|
super(message);
|
|
8
|
-
Object.setPrototypeOf(this,
|
|
8
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
9
|
+
if (Error.captureStackTrace) {
|
|
10
|
+
Error.captureStackTrace(this, this.constructor);
|
|
11
|
+
}
|
|
12
|
+
this.name = this.constructor.name;
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
exports.PayabliTimeoutError = PayabliTimeoutError;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SDK_VERSION = "0.0.123";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { HeaderAuthProvider } from "./auth/HeaderAuthProvider.mjs";
|
|
1
2
|
import * as core from "./core/index.mjs";
|
|
2
3
|
import type * as environments from "./environments.mjs";
|
|
3
|
-
export
|
|
4
|
+
export type BaseClientOptions = {
|
|
4
5
|
environment?: core.Supplier<environments.PayabliEnvironment | string>;
|
|
5
6
|
/** Specify a custom URL to connect the client to. */
|
|
6
7
|
baseUrl?: core.Supplier<string>;
|
|
7
|
-
apiKey?: core.Supplier<string | undefined>;
|
|
8
8
|
/** Additional headers to include in requests. */
|
|
9
9
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
10
10
|
/** The default maximum time to wait for a response in seconds. */
|
|
@@ -15,7 +15,7 @@ export interface BaseClientOptions {
|
|
|
15
15
|
fetch?: typeof fetch;
|
|
16
16
|
/** Configure logging for the client. */
|
|
17
17
|
logging?: core.logging.LogConfig | core.logging.Logger;
|
|
18
|
-
}
|
|
18
|
+
} & HeaderAuthProvider.AuthOptions;
|
|
19
19
|
export interface BaseRequestOptions {
|
|
20
20
|
/** The maximum time to wait for a response in seconds. */
|
|
21
21
|
timeoutInSeconds?: number;
|
|
@@ -28,12 +28,12 @@ export interface BaseRequestOptions {
|
|
|
28
28
|
/** Additional headers to include in the request. */
|
|
29
29
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
30
30
|
}
|
|
31
|
-
export type NormalizedClientOptions<T extends BaseClientOptions> = T & {
|
|
31
|
+
export type NormalizedClientOptions<T extends BaseClientOptions = BaseClientOptions> = T & {
|
|
32
32
|
logging: core.logging.Logger;
|
|
33
33
|
authProvider?: core.AuthProvider;
|
|
34
34
|
};
|
|
35
|
-
export type NormalizedClientOptionsWithAuth<T extends BaseClientOptions> = NormalizedClientOptions<T> & {
|
|
35
|
+
export type NormalizedClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions> = NormalizedClientOptions<T> & {
|
|
36
36
|
authProvider: core.AuthProvider;
|
|
37
37
|
};
|
|
38
|
-
export declare function normalizeClientOptions<T extends BaseClientOptions>(options: T): NormalizedClientOptions<T>;
|
|
39
|
-
export declare function normalizeClientOptionsWithAuth<T extends BaseClientOptions>(options: T): NormalizedClientOptionsWithAuth<T>;
|
|
38
|
+
export declare function normalizeClientOptions<T extends BaseClientOptions = BaseClientOptions>(options: T): NormalizedClientOptions<T>;
|
|
39
|
+
export declare function normalizeClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions>(options: T): NormalizedClientOptionsWithAuth<T>;
|
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -5,7 +5,9 @@ import * as core from "./core/index.mjs";
|
|
|
5
5
|
export function normalizeClientOptions(options) {
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
|
-
"
|
|
8
|
+
"X-Fern-SDK-Name": "@payabli/sdk-node",
|
|
9
|
+
"X-Fern-SDK-Version": "0.0.123",
|
|
10
|
+
"User-Agent": "@payabli/sdk-node/0.0.123",
|
|
9
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
10
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
11
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -29,8 +29,7 @@ import { WalletClient } from "./api/resources/wallet/client/Client.mjs";
|
|
|
29
29
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
|
|
30
30
|
import { type NormalizedClientOptionsWithAuth } from "./BaseClient.mjs";
|
|
31
31
|
export declare namespace PayabliClient {
|
|
32
|
-
|
|
33
|
-
}
|
|
32
|
+
type Options = BaseClientOptions;
|
|
34
33
|
interface RequestOptions extends BaseRequestOptions {
|
|
35
34
|
}
|
|
36
35
|
}
|
|
@@ -8,6 +8,10 @@ export class BadRequestError extends errors.PayabliError {
|
|
|
8
8
|
body: body,
|
|
9
9
|
rawResponse: rawResponse,
|
|
10
10
|
});
|
|
11
|
-
Object.setPrototypeOf(this,
|
|
11
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
+
if (Error.captureStackTrace) {
|
|
13
|
+
Error.captureStackTrace(this, this.constructor);
|
|
14
|
+
}
|
|
15
|
+
this.name = this.constructor.name;
|
|
12
16
|
}
|
|
13
17
|
}
|
|
@@ -8,6 +8,10 @@ export class ConflictError extends errors.PayabliError {
|
|
|
8
8
|
body: body,
|
|
9
9
|
rawResponse: rawResponse,
|
|
10
10
|
});
|
|
11
|
-
Object.setPrototypeOf(this,
|
|
11
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
+
if (Error.captureStackTrace) {
|
|
13
|
+
Error.captureStackTrace(this, this.constructor);
|
|
14
|
+
}
|
|
15
|
+
this.name = this.constructor.name;
|
|
12
16
|
}
|
|
13
17
|
}
|
|
@@ -8,6 +8,10 @@ export class ForbiddenError extends errors.PayabliError {
|
|
|
8
8
|
body: body,
|
|
9
9
|
rawResponse: rawResponse,
|
|
10
10
|
});
|
|
11
|
-
Object.setPrototypeOf(this,
|
|
11
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
+
if (Error.captureStackTrace) {
|
|
13
|
+
Error.captureStackTrace(this, this.constructor);
|
|
14
|
+
}
|
|
15
|
+
this.name = this.constructor.name;
|
|
12
16
|
}
|
|
13
17
|
}
|
|
@@ -8,6 +8,10 @@ export class InternalServerError extends errors.PayabliError {
|
|
|
8
8
|
body: body,
|
|
9
9
|
rawResponse: rawResponse,
|
|
10
10
|
});
|
|
11
|
-
Object.setPrototypeOf(this,
|
|
11
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
+
if (Error.captureStackTrace) {
|
|
13
|
+
Error.captureStackTrace(this, this.constructor);
|
|
14
|
+
}
|
|
15
|
+
this.name = this.constructor.name;
|
|
12
16
|
}
|
|
13
17
|
}
|
|
@@ -8,6 +8,10 @@ export class ServiceUnavailableError extends errors.PayabliError {
|
|
|
8
8
|
body: body,
|
|
9
9
|
rawResponse: rawResponse,
|
|
10
10
|
});
|
|
11
|
-
Object.setPrototypeOf(this,
|
|
11
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
+
if (Error.captureStackTrace) {
|
|
13
|
+
Error.captureStackTrace(this, this.constructor);
|
|
14
|
+
}
|
|
15
|
+
this.name = this.constructor.name;
|
|
12
16
|
}
|
|
13
17
|
}
|
|
@@ -8,6 +8,10 @@ export class UnauthorizedError extends errors.PayabliError {
|
|
|
8
8
|
body: body,
|
|
9
9
|
rawResponse: rawResponse,
|
|
10
10
|
});
|
|
11
|
-
Object.setPrototypeOf(this,
|
|
11
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
+
if (Error.captureStackTrace) {
|
|
13
|
+
Error.captureStackTrace(this, this.constructor);
|
|
14
|
+
}
|
|
15
|
+
this.name = this.constructor.name;
|
|
12
16
|
}
|
|
13
17
|
}
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
|
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Payabli from "../../../index.mjs";
|
|
5
5
|
export declare namespace BillClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
|
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Payabli from "../../../index.mjs";
|
|
5
5
|
export declare namespace BoardingClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
|
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Payabli from "../../../index.mjs";
|
|
5
5
|
export declare namespace ChargeBacksClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
|
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Payabli from "../../../index.mjs";
|
|
5
5
|
export declare namespace CheckCaptureClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
|
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Payabli from "../../../index.mjs";
|
|
5
5
|
export declare namespace CloudClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
|
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Payabli from "../../../index.mjs";
|
|
5
5
|
export declare namespace CustomerClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
|
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Payabli from "../../../index.mjs";
|
|
5
5
|
export declare namespace ExportClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
|
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Payabli from "../../../index.mjs";
|
|
5
5
|
export declare namespace HostedPaymentPagesClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
|
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Payabli from "../../../index.mjs";
|
|
5
5
|
export declare namespace ImportClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
|
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Payabli from "../../../index.mjs";
|
|
5
5
|
export declare namespace InvoiceClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -37,17 +36,19 @@ export declare class InvoiceClient {
|
|
|
37
36
|
* itemDescription: "Consultation for Georgian tours",
|
|
38
37
|
* itemCost: 100,
|
|
39
38
|
* itemQty: 1,
|
|
40
|
-
* itemMode: 1
|
|
39
|
+
* itemMode: 1,
|
|
40
|
+
* itemTotalAmount: 1
|
|
41
41
|
* }, {
|
|
42
42
|
* itemProductName: "Deposit ",
|
|
43
43
|
* itemDescription: "Deposit for trip planning",
|
|
44
44
|
* itemCost: 882.37,
|
|
45
|
-
* itemQty: 1
|
|
45
|
+
* itemQty: 1,
|
|
46
|
+
* itemTotalAmount: 1
|
|
46
47
|
* }],
|
|
47
48
|
* invoiceDate: "2025-10-19",
|
|
48
49
|
* invoiceType: 0,
|
|
49
50
|
* invoiceStatus: 1,
|
|
50
|
-
* frequency: "
|
|
51
|
+
* frequency: "onetime",
|
|
51
52
|
* invoiceAmount: 982.37,
|
|
52
53
|
* discount: 10,
|
|
53
54
|
* invoiceNumber: "INV-3"
|
|
@@ -46,17 +46,19 @@ export class InvoiceClient {
|
|
|
46
46
|
* itemDescription: "Consultation for Georgian tours",
|
|
47
47
|
* itemCost: 100,
|
|
48
48
|
* itemQty: 1,
|
|
49
|
-
* itemMode: 1
|
|
49
|
+
* itemMode: 1,
|
|
50
|
+
* itemTotalAmount: 1
|
|
50
51
|
* }, {
|
|
51
52
|
* itemProductName: "Deposit ",
|
|
52
53
|
* itemDescription: "Deposit for trip planning",
|
|
53
54
|
* itemCost: 882.37,
|
|
54
|
-
* itemQty: 1
|
|
55
|
+
* itemQty: 1,
|
|
56
|
+
* itemTotalAmount: 1
|
|
55
57
|
* }],
|
|
56
58
|
* invoiceDate: "2025-10-19",
|
|
57
59
|
* invoiceType: 0,
|
|
58
60
|
* invoiceStatus: 1,
|
|
59
|
-
* frequency: "
|
|
61
|
+
* frequency: "onetime",
|
|
60
62
|
* invoiceAmount: 982.37,
|
|
61
63
|
* discount: 10,
|
|
62
64
|
* invoiceNumber: "INV-3"
|
|
@@ -14,17 +14,19 @@ import type * as Payabli from "../../../../index.mjs";
|
|
|
14
14
|
* itemDescription: "Consultation for Georgian tours",
|
|
15
15
|
* itemCost: 100,
|
|
16
16
|
* itemQty: 1,
|
|
17
|
-
* itemMode: 1
|
|
17
|
+
* itemMode: 1,
|
|
18
|
+
* itemTotalAmount: 1
|
|
18
19
|
* }, {
|
|
19
20
|
* itemProductName: "Deposit ",
|
|
20
21
|
* itemDescription: "Deposit for trip planning",
|
|
21
22
|
* itemCost: 882.37,
|
|
22
|
-
* itemQty: 1
|
|
23
|
+
* itemQty: 1,
|
|
24
|
+
* itemTotalAmount: 1
|
|
23
25
|
* }],
|
|
24
26
|
* invoiceDate: "2025-10-19",
|
|
25
27
|
* invoiceType: 0,
|
|
26
28
|
* invoiceStatus: 1,
|
|
27
|
-
* frequency: "
|
|
29
|
+
* frequency: "onetime",
|
|
28
30
|
* invoiceAmount: 982.37,
|
|
29
31
|
* discount: 10,
|
|
30
32
|
* invoiceNumber: "INV-3"
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
|
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Payabli from "../../../index.mjs";
|
|
5
5
|
export declare namespace LineItemClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
|
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Payabli from "../../../index.mjs";
|
|
5
5
|
export declare namespace MoneyInClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -8,6 +8,10 @@ export class CaptureError extends errors.PayabliError {
|
|
|
8
8
|
body: body,
|
|
9
9
|
rawResponse: rawResponse,
|
|
10
10
|
});
|
|
11
|
-
Object.setPrototypeOf(this,
|
|
11
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
+
if (Error.captureStackTrace) {
|
|
13
|
+
Error.captureStackTrace(this, this.constructor);
|
|
14
|
+
}
|
|
15
|
+
this.name = this.constructor.name;
|
|
12
16
|
}
|
|
13
17
|
}
|