@payabli/sdk-node 0.0.116 → 0.0.117
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 +24 -7
- package/dist/cjs/BaseClient.d.ts +10 -1
- package/dist/cjs/BaseClient.js +57 -0
- package/dist/cjs/Client.d.ts +87 -86
- package/dist/cjs/Client.js +31 -72
- package/dist/cjs/api/resources/bill/client/Client.d.ts +33 -33
- package/dist/cjs/api/resources/bill/client/Client.js +69 -216
- package/dist/cjs/api/resources/boarding/client/Client.d.ts +27 -27
- package/dist/cjs/api/resources/boarding/client/Client.js +51 -198
- package/dist/cjs/api/resources/chargeBacks/client/Client.d.ts +17 -15
- package/dist/cjs/api/resources/chargeBacks/client/Client.js +38 -79
- package/dist/cjs/api/resources/checkCapture/client/Client.d.ts +7 -7
- package/dist/cjs/api/resources/checkCapture/client/Client.js +11 -28
- package/dist/cjs/api/resources/cloud/client/Client.d.ts +17 -17
- package/dist/cjs/api/resources/cloud/client/Client.js +33 -89
- package/dist/cjs/api/resources/customer/client/Client.d.ts +17 -17
- package/dist/cjs/api/resources/customer/client/Client.js +31 -113
- package/dist/cjs/api/resources/export/client/Client.d.ts +93 -89
- package/dist/cjs/api/resources/export/client/Client.js +205 -582
- package/dist/cjs/api/resources/hostedPaymentPages/client/Client.d.ts +11 -11
- package/dist/cjs/api/resources/hostedPaymentPages/client/Client.js +19 -62
- package/dist/cjs/api/resources/import/client/Client.d.ts +11 -11
- package/dist/cjs/api/resources/import/client/Client.js +19 -62
- package/dist/cjs/api/resources/invoice/client/Client.d.ts +31 -31
- package/dist/cjs/api/resources/invoice/client/Client.js +62 -209
- package/dist/cjs/api/resources/lineItem/client/Client.d.ts +15 -15
- package/dist/cjs/api/resources/lineItem/client/Client.js +27 -96
- package/dist/cjs/api/resources/moneyIn/client/Client.d.ts +39 -39
- package/dist/cjs/api/resources/moneyIn/client/Client.js +79 -249
- package/dist/cjs/api/resources/moneyOut/client/Client.d.ts +43 -26
- package/dist/cjs/api/resources/moneyOut/client/Client.js +105 -168
- package/dist/cjs/api/resources/moneyOut/client/requests/MoneyOutTypesRequestOutAuthorize.d.ts +2 -1
- package/dist/cjs/api/resources/moneyOutTypes/types/AuthorizePayoutBody.d.ts +3 -1
- package/dist/cjs/api/resources/notification/client/Client.d.ts +16 -16
- package/dist/cjs/api/resources/notification/client/Client.js +32 -101
- package/dist/cjs/api/resources/notificationlogs/client/Client.d.ts +13 -13
- package/dist/cjs/api/resources/notificationlogs/client/Client.js +23 -79
- package/dist/cjs/api/resources/ocr/client/Client.d.ts +13 -9
- package/dist/cjs/api/resources/ocr/client/Client.js +19 -45
- package/dist/cjs/api/resources/organization/client/Client.d.ts +19 -19
- package/dist/cjs/api/resources/organization/client/Client.js +35 -130
- package/dist/cjs/api/resources/paymentLink/client/Client.d.ts +23 -23
- package/dist/cjs/api/resources/paymentLink/client/Client.js +43 -164
- package/dist/cjs/api/resources/paymentMethodDomain/client/Client.d.ts +19 -19
- package/dist/cjs/api/resources/paymentMethodDomain/client/Client.js +35 -130
- package/dist/cjs/api/resources/paypoint/client/Client.d.ts +22 -22
- package/dist/cjs/api/resources/paypoint/client/Client.js +44 -152
- package/dist/cjs/api/resources/query/client/Client.d.ts +71 -71
- package/dist/cjs/api/resources/query/client/Client.js +137 -572
- package/dist/cjs/api/resources/query/client/requests/ListPayoutOrgRequest.d.ts +1 -0
- package/dist/cjs/api/resources/query/client/requests/ListPayoutRequest.d.ts +1 -0
- package/dist/cjs/api/resources/query/client/requests/ListTransactionsRequest.d.ts +1 -0
- package/dist/cjs/api/resources/statistic/client/Client.d.ts +50 -50
- package/dist/cjs/api/resources/statistic/client/Client.js +80 -133
- package/dist/cjs/api/resources/statistic/client/requests/BasicStatsRequest.d.ts +2 -2
- package/dist/cjs/api/resources/statistic/types/StatBasicExtendedQueryRecord.d.ts +76 -0
- package/dist/cjs/api/resources/statistic/types/StatBasicExtendedQueryRecord.js +3 -0
- package/dist/cjs/api/resources/statistic/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/statistic/types/index.js +1 -0
- package/dist/cjs/api/resources/subscription/client/Client.d.ts +13 -13
- package/dist/cjs/api/resources/subscription/client/Client.js +23 -79
- package/dist/cjs/api/resources/templates/client/Client.d.ts +15 -15
- package/dist/cjs/api/resources/templates/client/Client.js +28 -84
- package/dist/cjs/api/resources/tokenStorage/client/Client.d.ts +13 -13
- package/dist/cjs/api/resources/tokenStorage/client/Client.js +23 -79
- package/dist/cjs/api/resources/user/client/Client.d.ts +54 -32
- package/dist/cjs/api/resources/user/client/Client.js +84 -222
- package/dist/cjs/api/resources/vendor/client/Client.d.ts +13 -13
- package/dist/cjs/api/resources/vendor/client/Client.js +23 -79
- package/dist/cjs/api/resources/wallet/client/Client.d.ts +13 -13
- package/dist/cjs/api/resources/wallet/client/Client.js +23 -79
- package/dist/cjs/api/types/ApplicationDetailsRecord.d.ts +2 -2
- package/dist/cjs/api/types/NotificationContent.d.ts +1 -0
- package/dist/cjs/api/types/NotificationContent.js +1 -0
- package/dist/cjs/api/types/NotificationStandardRequest.d.ts +1 -0
- package/dist/cjs/api/types/NotificationStandardRequest.js +1 -0
- package/dist/cjs/api/types/QueryResponseSettlements.d.ts +1 -1
- package/dist/cjs/auth/HeaderAuthProvider.d.ts +14 -0
- package/dist/cjs/auth/HeaderAuthProvider.js +71 -0
- package/dist/cjs/auth/index.d.ts +1 -0
- package/dist/cjs/auth/index.js +5 -0
- package/dist/cjs/core/auth/AuthProvider.d.ts +7 -0
- package/dist/cjs/{version.js → core/auth/AuthProvider.js} +0 -2
- package/dist/cjs/core/auth/AuthRequest.d.ts +9 -0
- package/dist/cjs/core/auth/AuthRequest.js +2 -0
- package/dist/cjs/core/auth/BasicAuth.d.ts +8 -0
- package/dist/cjs/core/auth/BasicAuth.js +27 -0
- package/dist/cjs/core/auth/BearerToken.d.ts +7 -0
- package/dist/cjs/core/auth/BearerToken.js +16 -0
- package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +5 -0
- package/dist/cjs/core/auth/NoOpAuthProvider.js +9 -0
- package/dist/cjs/core/auth/index.d.ts +5 -0
- package/dist/cjs/core/auth/index.js +9 -0
- package/dist/cjs/core/base64.d.ts +2 -0
- package/dist/cjs/core/base64.js +26 -0
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +6 -7
- package/dist/cjs/core/fetcher/Fetcher.d.ts +5 -1
- package/dist/cjs/core/fetcher/Fetcher.js +42 -24
- package/dist/cjs/core/fetcher/getResponseBody.js +18 -4
- package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -1
- package/dist/cjs/core/fetcher/makeRequest.js +0 -2
- package/dist/cjs/core/fetcher/requestWithRetries.js +0 -9
- package/dist/cjs/core/fetcher/signals.d.ts +1 -7
- package/dist/cjs/core/fetcher/signals.js +0 -12
- package/dist/cjs/core/index.d.ts +2 -0
- package/dist/cjs/core/index.js +2 -0
- package/dist/cjs/core/logging/logger.js +1 -1
- package/dist/cjs/core/runtime/runtime.js +11 -10
- package/dist/cjs/core/url/join.js +0 -1
- package/dist/cjs/errors/handleNonStatusCodeError.d.ts +2 -0
- package/dist/cjs/errors/handleNonStatusCodeError.js +65 -0
- package/dist/esm/BaseClient.d.mts +10 -1
- package/dist/esm/BaseClient.mjs +22 -1
- package/dist/esm/Client.d.mts +87 -86
- package/dist/esm/Client.mjs +59 -67
- package/dist/esm/api/resources/bill/client/Client.d.mts +33 -33
- package/dist/esm/api/resources/bill/client/Client.mjs +67 -214
- package/dist/esm/api/resources/boarding/client/Client.d.mts +27 -27
- package/dist/esm/api/resources/boarding/client/Client.mjs +50 -197
- package/dist/esm/api/resources/chargeBacks/client/Client.d.mts +17 -15
- package/dist/esm/api/resources/chargeBacks/client/Client.mjs +36 -77
- package/dist/esm/api/resources/checkCapture/client/Client.d.mts +7 -7
- package/dist/esm/api/resources/checkCapture/client/Client.mjs +10 -27
- package/dist/esm/api/resources/cloud/client/Client.d.mts +17 -17
- package/dist/esm/api/resources/cloud/client/Client.mjs +31 -87
- package/dist/esm/api/resources/customer/client/Client.d.mts +17 -17
- package/dist/esm/api/resources/customer/client/Client.mjs +29 -111
- package/dist/esm/api/resources/export/client/Client.d.mts +93 -89
- package/dist/esm/api/resources/export/client/Client.mjs +204 -581
- package/dist/esm/api/resources/hostedPaymentPages/client/Client.d.mts +11 -11
- package/dist/esm/api/resources/hostedPaymentPages/client/Client.mjs +17 -60
- package/dist/esm/api/resources/import/client/Client.d.mts +11 -11
- package/dist/esm/api/resources/import/client/Client.mjs +17 -60
- package/dist/esm/api/resources/invoice/client/Client.d.mts +31 -31
- package/dist/esm/api/resources/invoice/client/Client.mjs +60 -207
- package/dist/esm/api/resources/lineItem/client/Client.d.mts +15 -15
- package/dist/esm/api/resources/lineItem/client/Client.mjs +25 -94
- package/dist/esm/api/resources/moneyIn/client/Client.d.mts +39 -39
- package/dist/esm/api/resources/moneyIn/client/Client.mjs +77 -247
- package/dist/esm/api/resources/moneyOut/client/Client.d.mts +43 -26
- package/dist/esm/api/resources/moneyOut/client/Client.mjs +103 -166
- package/dist/esm/api/resources/moneyOut/client/requests/MoneyOutTypesRequestOutAuthorize.d.mts +2 -1
- package/dist/esm/api/resources/moneyOutTypes/types/AuthorizePayoutBody.d.mts +3 -1
- package/dist/esm/api/resources/notification/client/Client.d.mts +16 -16
- package/dist/esm/api/resources/notification/client/Client.mjs +31 -100
- package/dist/esm/api/resources/notificationlogs/client/Client.d.mts +13 -13
- package/dist/esm/api/resources/notificationlogs/client/Client.mjs +22 -78
- package/dist/esm/api/resources/ocr/client/Client.d.mts +13 -9
- package/dist/esm/api/resources/ocr/client/Client.mjs +18 -44
- package/dist/esm/api/resources/organization/client/Client.d.mts +19 -19
- package/dist/esm/api/resources/organization/client/Client.mjs +33 -128
- package/dist/esm/api/resources/paymentLink/client/Client.d.mts +23 -23
- package/dist/esm/api/resources/paymentLink/client/Client.mjs +41 -162
- package/dist/esm/api/resources/paymentMethodDomain/client/Client.d.mts +19 -19
- package/dist/esm/api/resources/paymentMethodDomain/client/Client.mjs +34 -129
- package/dist/esm/api/resources/paypoint/client/Client.d.mts +22 -22
- package/dist/esm/api/resources/paypoint/client/Client.mjs +43 -151
- package/dist/esm/api/resources/query/client/Client.d.mts +71 -71
- package/dist/esm/api/resources/query/client/Client.mjs +136 -571
- package/dist/esm/api/resources/query/client/requests/ListPayoutOrgRequest.d.mts +1 -0
- package/dist/esm/api/resources/query/client/requests/ListPayoutRequest.d.mts +1 -0
- package/dist/esm/api/resources/query/client/requests/ListTransactionsRequest.d.mts +1 -0
- package/dist/esm/api/resources/statistic/client/Client.d.mts +50 -50
- package/dist/esm/api/resources/statistic/client/Client.mjs +79 -132
- package/dist/esm/api/resources/statistic/client/requests/BasicStatsRequest.d.mts +2 -2
- package/dist/esm/api/resources/statistic/types/StatBasicExtendedQueryRecord.d.mts +76 -0
- package/dist/esm/api/resources/statistic/types/StatBasicExtendedQueryRecord.mjs +2 -0
- package/dist/esm/api/resources/statistic/types/index.d.mts +1 -0
- package/dist/esm/api/resources/statistic/types/index.mjs +1 -0
- package/dist/esm/api/resources/subscription/client/Client.d.mts +13 -13
- package/dist/esm/api/resources/subscription/client/Client.mjs +21 -77
- package/dist/esm/api/resources/templates/client/Client.d.mts +15 -15
- package/dist/esm/api/resources/templates/client/Client.mjs +27 -83
- package/dist/esm/api/resources/tokenStorage/client/Client.d.mts +13 -13
- package/dist/esm/api/resources/tokenStorage/client/Client.mjs +21 -77
- package/dist/esm/api/resources/user/client/Client.d.mts +54 -32
- package/dist/esm/api/resources/user/client/Client.mjs +83 -221
- package/dist/esm/api/resources/vendor/client/Client.d.mts +13 -13
- package/dist/esm/api/resources/vendor/client/Client.mjs +22 -78
- package/dist/esm/api/resources/wallet/client/Client.d.mts +13 -13
- package/dist/esm/api/resources/wallet/client/Client.mjs +22 -78
- package/dist/esm/api/types/ApplicationDetailsRecord.d.mts +2 -2
- package/dist/esm/api/types/NotificationContent.d.mts +1 -0
- package/dist/esm/api/types/NotificationContent.mjs +1 -0
- package/dist/esm/api/types/NotificationStandardRequest.d.mts +1 -0
- package/dist/esm/api/types/NotificationStandardRequest.mjs +1 -0
- package/dist/esm/api/types/QueryResponseSettlements.d.mts +1 -1
- package/dist/esm/auth/HeaderAuthProvider.d.mts +14 -0
- package/dist/esm/auth/HeaderAuthProvider.mjs +34 -0
- package/dist/esm/auth/index.d.mts +1 -0
- package/dist/esm/auth/index.mjs +1 -0
- package/dist/esm/core/auth/AuthProvider.d.mts +7 -0
- package/dist/esm/core/auth/AuthProvider.mjs +1 -0
- package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
- package/dist/esm/core/auth/AuthRequest.mjs +1 -0
- package/dist/esm/core/auth/BasicAuth.d.mts +8 -0
- package/dist/esm/core/auth/BasicAuth.mjs +24 -0
- package/dist/esm/core/auth/BearerToken.d.mts +7 -0
- package/dist/esm/core/auth/BearerToken.mjs +13 -0
- package/dist/esm/core/auth/NoOpAuthProvider.d.mts +5 -0
- package/dist/esm/core/auth/NoOpAuthProvider.mjs +5 -0
- package/dist/esm/core/auth/index.d.mts +5 -0
- package/dist/esm/core/auth/index.mjs +3 -0
- package/dist/esm/core/base64.d.mts +2 -0
- package/dist/esm/core/base64.mjs +22 -0
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +6 -7
- package/dist/esm/core/fetcher/Fetcher.d.mts +5 -1
- package/dist/esm/core/fetcher/Fetcher.mjs +42 -24
- package/dist/esm/core/fetcher/getResponseBody.mjs +18 -4
- package/dist/esm/core/fetcher/makeRequest.d.mts +1 -1
- package/dist/esm/core/fetcher/makeRequest.mjs +0 -2
- package/dist/esm/core/fetcher/requestWithRetries.mjs +0 -9
- package/dist/esm/core/fetcher/signals.d.mts +1 -7
- package/dist/esm/core/fetcher/signals.mjs +0 -12
- package/dist/esm/core/index.d.mts +2 -0
- package/dist/esm/core/index.mjs +2 -0
- package/dist/esm/core/logging/logger.mjs +1 -1
- package/dist/esm/core/runtime/runtime.mjs +11 -10
- package/dist/esm/core/url/join.mjs +0 -1
- package/dist/esm/errors/handleNonStatusCodeError.d.mts +2 -0
- package/dist/esm/errors/handleNonStatusCodeError.mjs +29 -0
- package/package.json +4 -4
- package/reference.md +761 -473
- package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +0 -4
- package/dist/cjs/core/fetcher/ResponseWithBody.js +0 -6
- package/dist/cjs/version.d.ts +0 -1
- package/dist/esm/core/fetcher/ResponseWithBody.d.mts +0 -4
- package/dist/esm/core/fetcher/ResponseWithBody.mjs +0 -3
- package/dist/esm/version.d.mts +0 -1
- package/dist/esm/version.mjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as core from "./core/index.mjs";
|
|
2
2
|
import type * as environments from "./environments.mjs";
|
|
3
3
|
export interface BaseClientOptions {
|
|
4
4
|
environment?: core.Supplier<environments.PayabliEnvironment | string>;
|
|
@@ -28,3 +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 & {
|
|
32
|
+
logging: core.logging.Logger;
|
|
33
|
+
authProvider?: core.AuthProvider;
|
|
34
|
+
};
|
|
35
|
+
export type NormalizedClientOptionsWithAuth<T extends BaseClientOptions> = NormalizedClientOptions<T> & {
|
|
36
|
+
authProvider: core.AuthProvider;
|
|
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>;
|
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -1,2 +1,23 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
2
|
+
import { HeaderAuthProvider } from "./auth/HeaderAuthProvider.mjs";
|
|
3
|
+
import { mergeHeaders } from "./core/headers.mjs";
|
|
4
|
+
import * as core from "./core/index.mjs";
|
|
5
|
+
export function normalizeClientOptions(options) {
|
|
6
|
+
const headers = mergeHeaders({
|
|
7
|
+
"X-Fern-Language": "JavaScript",
|
|
8
|
+
"User-Agent": "@payabli/sdk-node/0.0.120",
|
|
9
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
10
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
11
|
+
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
12
|
+
return Object.assign(Object.assign({}, options), { logging: core.logging.createLogger(options === null || options === void 0 ? void 0 : options.logging), headers });
|
|
13
|
+
}
|
|
14
|
+
export function normalizeClientOptionsWithAuth(options) {
|
|
15
|
+
var _a;
|
|
16
|
+
const normalized = normalizeClientOptions(options);
|
|
17
|
+
const normalizedWithNoOpAuthProvider = withNoOpAuthProvider(normalized);
|
|
18
|
+
(_a = normalized.authProvider) !== null && _a !== void 0 ? _a : (normalized.authProvider = new HeaderAuthProvider(normalizedWithNoOpAuthProvider));
|
|
19
|
+
return normalized;
|
|
20
|
+
}
|
|
21
|
+
function withNoOpAuthProvider(options) {
|
|
22
|
+
return Object.assign(Object.assign({}, options), { authProvider: new core.NoOpAuthProvider() });
|
|
23
|
+
}
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
1
|
+
import { BillClient } from "./api/resources/bill/client/Client.mjs";
|
|
2
|
+
import { BoardingClient } from "./api/resources/boarding/client/Client.mjs";
|
|
3
|
+
import { ChargeBacksClient } from "./api/resources/chargeBacks/client/Client.mjs";
|
|
4
|
+
import { CheckCaptureClient } from "./api/resources/checkCapture/client/Client.mjs";
|
|
5
|
+
import { CloudClient } from "./api/resources/cloud/client/Client.mjs";
|
|
6
|
+
import { CustomerClient } from "./api/resources/customer/client/Client.mjs";
|
|
7
|
+
import { ExportClient } from "./api/resources/export/client/Client.mjs";
|
|
8
|
+
import { HostedPaymentPagesClient } from "./api/resources/hostedPaymentPages/client/Client.mjs";
|
|
9
|
+
import { ImportClient } from "./api/resources/import/client/Client.mjs";
|
|
10
|
+
import { InvoiceClient } from "./api/resources/invoice/client/Client.mjs";
|
|
11
|
+
import { LineItemClient } from "./api/resources/lineItem/client/Client.mjs";
|
|
12
|
+
import { MoneyInClient } from "./api/resources/moneyIn/client/Client.mjs";
|
|
13
|
+
import { MoneyOutClient } from "./api/resources/moneyOut/client/Client.mjs";
|
|
14
|
+
import { NotificationClient } from "./api/resources/notification/client/Client.mjs";
|
|
15
|
+
import { NotificationlogsClient } from "./api/resources/notificationlogs/client/Client.mjs";
|
|
16
|
+
import { OcrClient } from "./api/resources/ocr/client/Client.mjs";
|
|
17
|
+
import { OrganizationClient } from "./api/resources/organization/client/Client.mjs";
|
|
18
|
+
import { PaymentLinkClient } from "./api/resources/paymentLink/client/Client.mjs";
|
|
19
|
+
import { PaymentMethodDomainClient } from "./api/resources/paymentMethodDomain/client/Client.mjs";
|
|
20
|
+
import { PaypointClient } from "./api/resources/paypoint/client/Client.mjs";
|
|
21
|
+
import { QueryClient } from "./api/resources/query/client/Client.mjs";
|
|
22
|
+
import { StatisticClient } from "./api/resources/statistic/client/Client.mjs";
|
|
23
|
+
import { SubscriptionClient } from "./api/resources/subscription/client/Client.mjs";
|
|
24
|
+
import { TemplatesClient } from "./api/resources/templates/client/Client.mjs";
|
|
25
|
+
import { TokenStorageClient } from "./api/resources/tokenStorage/client/Client.mjs";
|
|
26
|
+
import { UserClient } from "./api/resources/user/client/Client.mjs";
|
|
27
|
+
import { VendorClient } from "./api/resources/vendor/client/Client.mjs";
|
|
28
|
+
import { WalletClient } from "./api/resources/wallet/client/Client.mjs";
|
|
29
29
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
|
|
30
|
+
import { type NormalizedClientOptionsWithAuth } from "./BaseClient.mjs";
|
|
30
31
|
export declare namespace PayabliClient {
|
|
31
32
|
interface Options extends BaseClientOptions {
|
|
32
33
|
}
|
|
@@ -34,62 +35,62 @@ export declare namespace PayabliClient {
|
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
export declare class PayabliClient {
|
|
37
|
-
protected readonly _options: PayabliClient.Options
|
|
38
|
-
protected _bill:
|
|
39
|
-
protected _boarding:
|
|
40
|
-
protected _chargeBacks:
|
|
41
|
-
protected _checkCapture:
|
|
42
|
-
protected _cloud:
|
|
43
|
-
protected _customer:
|
|
44
|
-
protected _export:
|
|
45
|
-
protected _hostedPaymentPages:
|
|
46
|
-
protected _import:
|
|
47
|
-
protected _invoice:
|
|
48
|
-
protected _lineItem:
|
|
49
|
-
protected _moneyIn:
|
|
50
|
-
protected _moneyOut:
|
|
51
|
-
protected _notification:
|
|
52
|
-
protected _notificationlogs:
|
|
53
|
-
protected _ocr:
|
|
54
|
-
protected _organization:
|
|
55
|
-
protected _paymentLink:
|
|
56
|
-
protected _paymentMethodDomain:
|
|
57
|
-
protected _paypoint:
|
|
58
|
-
protected _query:
|
|
59
|
-
protected _statistic:
|
|
60
|
-
protected _subscription:
|
|
61
|
-
protected _templates:
|
|
62
|
-
protected _tokenStorage:
|
|
63
|
-
protected _user:
|
|
64
|
-
protected _vendor:
|
|
65
|
-
protected _wallet:
|
|
66
|
-
constructor(
|
|
67
|
-
get bill():
|
|
68
|
-
get boarding():
|
|
69
|
-
get chargeBacks():
|
|
70
|
-
get checkCapture():
|
|
71
|
-
get cloud():
|
|
72
|
-
get customer():
|
|
73
|
-
get export():
|
|
74
|
-
get hostedPaymentPages():
|
|
75
|
-
get import():
|
|
76
|
-
get invoice():
|
|
77
|
-
get lineItem():
|
|
78
|
-
get moneyIn():
|
|
79
|
-
get moneyOut():
|
|
80
|
-
get notification():
|
|
81
|
-
get notificationlogs():
|
|
82
|
-
get ocr():
|
|
83
|
-
get organization():
|
|
84
|
-
get paymentLink():
|
|
85
|
-
get paymentMethodDomain():
|
|
86
|
-
get paypoint():
|
|
87
|
-
get query():
|
|
88
|
-
get statistic():
|
|
89
|
-
get subscription():
|
|
90
|
-
get templates():
|
|
91
|
-
get tokenStorage():
|
|
92
|
-
get user():
|
|
93
|
-
get vendor():
|
|
94
|
-
get wallet():
|
|
38
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<PayabliClient.Options>;
|
|
39
|
+
protected _bill: BillClient | undefined;
|
|
40
|
+
protected _boarding: BoardingClient | undefined;
|
|
41
|
+
protected _chargeBacks: ChargeBacksClient | undefined;
|
|
42
|
+
protected _checkCapture: CheckCaptureClient | undefined;
|
|
43
|
+
protected _cloud: CloudClient | undefined;
|
|
44
|
+
protected _customer: CustomerClient | undefined;
|
|
45
|
+
protected _export: ExportClient | undefined;
|
|
46
|
+
protected _hostedPaymentPages: HostedPaymentPagesClient | undefined;
|
|
47
|
+
protected _import: ImportClient | undefined;
|
|
48
|
+
protected _invoice: InvoiceClient | undefined;
|
|
49
|
+
protected _lineItem: LineItemClient | undefined;
|
|
50
|
+
protected _moneyIn: MoneyInClient | undefined;
|
|
51
|
+
protected _moneyOut: MoneyOutClient | undefined;
|
|
52
|
+
protected _notification: NotificationClient | undefined;
|
|
53
|
+
protected _notificationlogs: NotificationlogsClient | undefined;
|
|
54
|
+
protected _ocr: OcrClient | undefined;
|
|
55
|
+
protected _organization: OrganizationClient | undefined;
|
|
56
|
+
protected _paymentLink: PaymentLinkClient | undefined;
|
|
57
|
+
protected _paymentMethodDomain: PaymentMethodDomainClient | undefined;
|
|
58
|
+
protected _paypoint: PaypointClient | undefined;
|
|
59
|
+
protected _query: QueryClient | undefined;
|
|
60
|
+
protected _statistic: StatisticClient | undefined;
|
|
61
|
+
protected _subscription: SubscriptionClient | undefined;
|
|
62
|
+
protected _templates: TemplatesClient | undefined;
|
|
63
|
+
protected _tokenStorage: TokenStorageClient | undefined;
|
|
64
|
+
protected _user: UserClient | undefined;
|
|
65
|
+
protected _vendor: VendorClient | undefined;
|
|
66
|
+
protected _wallet: WalletClient | undefined;
|
|
67
|
+
constructor(options?: PayabliClient.Options);
|
|
68
|
+
get bill(): BillClient;
|
|
69
|
+
get boarding(): BoardingClient;
|
|
70
|
+
get chargeBacks(): ChargeBacksClient;
|
|
71
|
+
get checkCapture(): CheckCaptureClient;
|
|
72
|
+
get cloud(): CloudClient;
|
|
73
|
+
get customer(): CustomerClient;
|
|
74
|
+
get export(): ExportClient;
|
|
75
|
+
get hostedPaymentPages(): HostedPaymentPagesClient;
|
|
76
|
+
get import(): ImportClient;
|
|
77
|
+
get invoice(): InvoiceClient;
|
|
78
|
+
get lineItem(): LineItemClient;
|
|
79
|
+
get moneyIn(): MoneyInClient;
|
|
80
|
+
get moneyOut(): MoneyOutClient;
|
|
81
|
+
get notification(): NotificationClient;
|
|
82
|
+
get notificationlogs(): NotificationlogsClient;
|
|
83
|
+
get ocr(): OcrClient;
|
|
84
|
+
get organization(): OrganizationClient;
|
|
85
|
+
get paymentLink(): PaymentLinkClient;
|
|
86
|
+
get paymentMethodDomain(): PaymentMethodDomainClient;
|
|
87
|
+
get paypoint(): PaypointClient;
|
|
88
|
+
get query(): QueryClient;
|
|
89
|
+
get statistic(): StatisticClient;
|
|
90
|
+
get subscription(): SubscriptionClient;
|
|
91
|
+
get templates(): TemplatesClient;
|
|
92
|
+
get tokenStorage(): TokenStorageClient;
|
|
93
|
+
get user(): UserClient;
|
|
94
|
+
get vendor(): VendorClient;
|
|
95
|
+
get wallet(): WalletClient;
|
|
95
96
|
}
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -1,155 +1,147 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import * as core from "./core/index.mjs";
|
|
2
|
+
import { BillClient } from "./api/resources/bill/client/Client.mjs";
|
|
3
|
+
import { BoardingClient } from "./api/resources/boarding/client/Client.mjs";
|
|
4
|
+
import { ChargeBacksClient } from "./api/resources/chargeBacks/client/Client.mjs";
|
|
5
|
+
import { CheckCaptureClient } from "./api/resources/checkCapture/client/Client.mjs";
|
|
6
|
+
import { CloudClient } from "./api/resources/cloud/client/Client.mjs";
|
|
7
|
+
import { CustomerClient } from "./api/resources/customer/client/Client.mjs";
|
|
8
|
+
import { ExportClient } from "./api/resources/export/client/Client.mjs";
|
|
9
|
+
import { HostedPaymentPagesClient } from "./api/resources/hostedPaymentPages/client/Client.mjs";
|
|
10
|
+
import { ImportClient } from "./api/resources/import/client/Client.mjs";
|
|
11
|
+
import { InvoiceClient } from "./api/resources/invoice/client/Client.mjs";
|
|
12
|
+
import { LineItemClient } from "./api/resources/lineItem/client/Client.mjs";
|
|
13
|
+
import { MoneyInClient } from "./api/resources/moneyIn/client/Client.mjs";
|
|
14
|
+
import { MoneyOutClient } from "./api/resources/moneyOut/client/Client.mjs";
|
|
15
|
+
import { NotificationClient } from "./api/resources/notification/client/Client.mjs";
|
|
16
|
+
import { NotificationlogsClient } from "./api/resources/notificationlogs/client/Client.mjs";
|
|
17
|
+
import { OcrClient } from "./api/resources/ocr/client/Client.mjs";
|
|
18
|
+
import { OrganizationClient } from "./api/resources/organization/client/Client.mjs";
|
|
19
|
+
import { PaymentLinkClient } from "./api/resources/paymentLink/client/Client.mjs";
|
|
20
|
+
import { PaymentMethodDomainClient } from "./api/resources/paymentMethodDomain/client/Client.mjs";
|
|
21
|
+
import { PaypointClient } from "./api/resources/paypoint/client/Client.mjs";
|
|
22
|
+
import { QueryClient } from "./api/resources/query/client/Client.mjs";
|
|
23
|
+
import { StatisticClient } from "./api/resources/statistic/client/Client.mjs";
|
|
24
|
+
import { SubscriptionClient } from "./api/resources/subscription/client/Client.mjs";
|
|
25
|
+
import { TemplatesClient } from "./api/resources/templates/client/Client.mjs";
|
|
26
|
+
import { TokenStorageClient } from "./api/resources/tokenStorage/client/Client.mjs";
|
|
27
|
+
import { UserClient } from "./api/resources/user/client/Client.mjs";
|
|
28
|
+
import { VendorClient } from "./api/resources/vendor/client/Client.mjs";
|
|
29
|
+
import { WalletClient } from "./api/resources/wallet/client/Client.mjs";
|
|
30
|
+
import { normalizeClientOptionsWithAuth } from "./BaseClient.mjs";
|
|
32
31
|
export class PayabliClient {
|
|
33
|
-
constructor(
|
|
34
|
-
this._options =
|
|
35
|
-
"X-Fern-Language": "JavaScript",
|
|
36
|
-
"X-Fern-SDK-Name": "@payabli/sdk-node",
|
|
37
|
-
"X-Fern-SDK-Version": "0.0.116",
|
|
38
|
-
"User-Agent": "@payabli/sdk-node/0.0.116",
|
|
39
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
40
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
41
|
-
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
32
|
+
constructor(options = {}) {
|
|
33
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
42
34
|
}
|
|
43
35
|
get bill() {
|
|
44
36
|
var _a;
|
|
45
|
-
return ((_a = this._bill) !== null && _a !== void 0 ? _a : (this._bill = new
|
|
37
|
+
return ((_a = this._bill) !== null && _a !== void 0 ? _a : (this._bill = new BillClient(this._options)));
|
|
46
38
|
}
|
|
47
39
|
get boarding() {
|
|
48
40
|
var _a;
|
|
49
|
-
return ((_a = this._boarding) !== null && _a !== void 0 ? _a : (this._boarding = new
|
|
41
|
+
return ((_a = this._boarding) !== null && _a !== void 0 ? _a : (this._boarding = new BoardingClient(this._options)));
|
|
50
42
|
}
|
|
51
43
|
get chargeBacks() {
|
|
52
44
|
var _a;
|
|
53
|
-
return ((_a = this._chargeBacks) !== null && _a !== void 0 ? _a : (this._chargeBacks = new
|
|
45
|
+
return ((_a = this._chargeBacks) !== null && _a !== void 0 ? _a : (this._chargeBacks = new ChargeBacksClient(this._options)));
|
|
54
46
|
}
|
|
55
47
|
get checkCapture() {
|
|
56
48
|
var _a;
|
|
57
|
-
return ((_a = this._checkCapture) !== null && _a !== void 0 ? _a : (this._checkCapture = new
|
|
49
|
+
return ((_a = this._checkCapture) !== null && _a !== void 0 ? _a : (this._checkCapture = new CheckCaptureClient(this._options)));
|
|
58
50
|
}
|
|
59
51
|
get cloud() {
|
|
60
52
|
var _a;
|
|
61
|
-
return ((_a = this._cloud) !== null && _a !== void 0 ? _a : (this._cloud = new
|
|
53
|
+
return ((_a = this._cloud) !== null && _a !== void 0 ? _a : (this._cloud = new CloudClient(this._options)));
|
|
62
54
|
}
|
|
63
55
|
get customer() {
|
|
64
56
|
var _a;
|
|
65
|
-
return ((_a = this._customer) !== null && _a !== void 0 ? _a : (this._customer = new
|
|
57
|
+
return ((_a = this._customer) !== null && _a !== void 0 ? _a : (this._customer = new CustomerClient(this._options)));
|
|
66
58
|
}
|
|
67
59
|
get export() {
|
|
68
60
|
var _a;
|
|
69
|
-
return ((_a = this._export) !== null && _a !== void 0 ? _a : (this._export = new
|
|
61
|
+
return ((_a = this._export) !== null && _a !== void 0 ? _a : (this._export = new ExportClient(this._options)));
|
|
70
62
|
}
|
|
71
63
|
get hostedPaymentPages() {
|
|
72
64
|
var _a;
|
|
73
|
-
return ((_a = this._hostedPaymentPages) !== null && _a !== void 0 ? _a : (this._hostedPaymentPages = new
|
|
65
|
+
return ((_a = this._hostedPaymentPages) !== null && _a !== void 0 ? _a : (this._hostedPaymentPages = new HostedPaymentPagesClient(this._options)));
|
|
74
66
|
}
|
|
75
67
|
get import() {
|
|
76
68
|
var _a;
|
|
77
|
-
return ((_a = this._import) !== null && _a !== void 0 ? _a : (this._import = new
|
|
69
|
+
return ((_a = this._import) !== null && _a !== void 0 ? _a : (this._import = new ImportClient(this._options)));
|
|
78
70
|
}
|
|
79
71
|
get invoice() {
|
|
80
72
|
var _a;
|
|
81
|
-
return ((_a = this._invoice) !== null && _a !== void 0 ? _a : (this._invoice = new
|
|
73
|
+
return ((_a = this._invoice) !== null && _a !== void 0 ? _a : (this._invoice = new InvoiceClient(this._options)));
|
|
82
74
|
}
|
|
83
75
|
get lineItem() {
|
|
84
76
|
var _a;
|
|
85
|
-
return ((_a = this._lineItem) !== null && _a !== void 0 ? _a : (this._lineItem = new
|
|
77
|
+
return ((_a = this._lineItem) !== null && _a !== void 0 ? _a : (this._lineItem = new LineItemClient(this._options)));
|
|
86
78
|
}
|
|
87
79
|
get moneyIn() {
|
|
88
80
|
var _a;
|
|
89
|
-
return ((_a = this._moneyIn) !== null && _a !== void 0 ? _a : (this._moneyIn = new
|
|
81
|
+
return ((_a = this._moneyIn) !== null && _a !== void 0 ? _a : (this._moneyIn = new MoneyInClient(this._options)));
|
|
90
82
|
}
|
|
91
83
|
get moneyOut() {
|
|
92
84
|
var _a;
|
|
93
|
-
return ((_a = this._moneyOut) !== null && _a !== void 0 ? _a : (this._moneyOut = new
|
|
85
|
+
return ((_a = this._moneyOut) !== null && _a !== void 0 ? _a : (this._moneyOut = new MoneyOutClient(this._options)));
|
|
94
86
|
}
|
|
95
87
|
get notification() {
|
|
96
88
|
var _a;
|
|
97
|
-
return ((_a = this._notification) !== null && _a !== void 0 ? _a : (this._notification = new
|
|
89
|
+
return ((_a = this._notification) !== null && _a !== void 0 ? _a : (this._notification = new NotificationClient(this._options)));
|
|
98
90
|
}
|
|
99
91
|
get notificationlogs() {
|
|
100
92
|
var _a;
|
|
101
|
-
return ((_a = this._notificationlogs) !== null && _a !== void 0 ? _a : (this._notificationlogs = new
|
|
93
|
+
return ((_a = this._notificationlogs) !== null && _a !== void 0 ? _a : (this._notificationlogs = new NotificationlogsClient(this._options)));
|
|
102
94
|
}
|
|
103
95
|
get ocr() {
|
|
104
96
|
var _a;
|
|
105
|
-
return ((_a = this._ocr) !== null && _a !== void 0 ? _a : (this._ocr = new
|
|
97
|
+
return ((_a = this._ocr) !== null && _a !== void 0 ? _a : (this._ocr = new OcrClient(this._options)));
|
|
106
98
|
}
|
|
107
99
|
get organization() {
|
|
108
100
|
var _a;
|
|
109
|
-
return ((_a = this._organization) !== null && _a !== void 0 ? _a : (this._organization = new
|
|
101
|
+
return ((_a = this._organization) !== null && _a !== void 0 ? _a : (this._organization = new OrganizationClient(this._options)));
|
|
110
102
|
}
|
|
111
103
|
get paymentLink() {
|
|
112
104
|
var _a;
|
|
113
|
-
return ((_a = this._paymentLink) !== null && _a !== void 0 ? _a : (this._paymentLink = new
|
|
105
|
+
return ((_a = this._paymentLink) !== null && _a !== void 0 ? _a : (this._paymentLink = new PaymentLinkClient(this._options)));
|
|
114
106
|
}
|
|
115
107
|
get paymentMethodDomain() {
|
|
116
108
|
var _a;
|
|
117
|
-
return ((_a = this._paymentMethodDomain) !== null && _a !== void 0 ? _a : (this._paymentMethodDomain = new
|
|
109
|
+
return ((_a = this._paymentMethodDomain) !== null && _a !== void 0 ? _a : (this._paymentMethodDomain = new PaymentMethodDomainClient(this._options)));
|
|
118
110
|
}
|
|
119
111
|
get paypoint() {
|
|
120
112
|
var _a;
|
|
121
|
-
return ((_a = this._paypoint) !== null && _a !== void 0 ? _a : (this._paypoint = new
|
|
113
|
+
return ((_a = this._paypoint) !== null && _a !== void 0 ? _a : (this._paypoint = new PaypointClient(this._options)));
|
|
122
114
|
}
|
|
123
115
|
get query() {
|
|
124
116
|
var _a;
|
|
125
|
-
return ((_a = this._query) !== null && _a !== void 0 ? _a : (this._query = new
|
|
117
|
+
return ((_a = this._query) !== null && _a !== void 0 ? _a : (this._query = new QueryClient(this._options)));
|
|
126
118
|
}
|
|
127
119
|
get statistic() {
|
|
128
120
|
var _a;
|
|
129
|
-
return ((_a = this._statistic) !== null && _a !== void 0 ? _a : (this._statistic = new
|
|
121
|
+
return ((_a = this._statistic) !== null && _a !== void 0 ? _a : (this._statistic = new StatisticClient(this._options)));
|
|
130
122
|
}
|
|
131
123
|
get subscription() {
|
|
132
124
|
var _a;
|
|
133
|
-
return ((_a = this._subscription) !== null && _a !== void 0 ? _a : (this._subscription = new
|
|
125
|
+
return ((_a = this._subscription) !== null && _a !== void 0 ? _a : (this._subscription = new SubscriptionClient(this._options)));
|
|
134
126
|
}
|
|
135
127
|
get templates() {
|
|
136
128
|
var _a;
|
|
137
|
-
return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new
|
|
129
|
+
return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new TemplatesClient(this._options)));
|
|
138
130
|
}
|
|
139
131
|
get tokenStorage() {
|
|
140
132
|
var _a;
|
|
141
|
-
return ((_a = this._tokenStorage) !== null && _a !== void 0 ? _a : (this._tokenStorage = new
|
|
133
|
+
return ((_a = this._tokenStorage) !== null && _a !== void 0 ? _a : (this._tokenStorage = new TokenStorageClient(this._options)));
|
|
142
134
|
}
|
|
143
135
|
get user() {
|
|
144
136
|
var _a;
|
|
145
|
-
return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new
|
|
137
|
+
return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new UserClient(this._options)));
|
|
146
138
|
}
|
|
147
139
|
get vendor() {
|
|
148
140
|
var _a;
|
|
149
|
-
return ((_a = this._vendor) !== null && _a !== void 0 ? _a : (this._vendor = new
|
|
141
|
+
return ((_a = this._vendor) !== null && _a !== void 0 ? _a : (this._vendor = new VendorClient(this._options)));
|
|
150
142
|
}
|
|
151
143
|
get wallet() {
|
|
152
144
|
var _a;
|
|
153
|
-
return ((_a = this._wallet) !== null && _a !== void 0 ? _a : (this._wallet = new
|
|
145
|
+
return ((_a = this._wallet) !== null && _a !== void 0 ? _a : (this._wallet = new WalletClient(this._options)));
|
|
154
146
|
}
|
|
155
147
|
}
|