@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
|
@@ -8,6 +8,10 @@ export class InvalidTransStatusError 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 MoneyOutClient {
|
|
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 NotificationClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -38,6 +37,19 @@ export declare class NotificationClient {
|
|
|
38
37
|
* @example
|
|
39
38
|
* await client.notification.addNotification({
|
|
40
39
|
* content: {
|
|
40
|
+
* eventType: "ApprovedPayment"
|
|
41
|
+
* },
|
|
42
|
+
* frequency: "untilcancelled",
|
|
43
|
+
* method: "web",
|
|
44
|
+
* ownerId: "236",
|
|
45
|
+
* ownerType: 0,
|
|
46
|
+
* status: 1,
|
|
47
|
+
* target: "https://cfe9dc390ce2.ngrok-free.app/webhook"
|
|
48
|
+
* })
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* await client.notification.addNotification({
|
|
52
|
+
* content: {
|
|
41
53
|
* eventType: "Report",
|
|
42
54
|
* fileFormat: "json",
|
|
43
55
|
* reportName: "Transaction",
|
|
@@ -46,6 +46,19 @@ export class NotificationClient {
|
|
|
46
46
|
* @example
|
|
47
47
|
* await client.notification.addNotification({
|
|
48
48
|
* content: {
|
|
49
|
+
* eventType: "ApprovedPayment"
|
|
50
|
+
* },
|
|
51
|
+
* frequency: "untilcancelled",
|
|
52
|
+
* method: "web",
|
|
53
|
+
* ownerId: "236",
|
|
54
|
+
* ownerType: 0,
|
|
55
|
+
* status: 1,
|
|
56
|
+
* target: "https://cfe9dc390ce2.ngrok-free.app/webhook"
|
|
57
|
+
* })
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* await client.notification.addNotification({
|
|
61
|
+
* content: {
|
|
49
62
|
* eventType: "Report",
|
|
50
63
|
* fileFormat: "json",
|
|
51
64
|
* reportName: "Transaction",
|
|
@@ -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 NotificationlogsClient {
|
|
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 OcrClient {
|
|
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 OrganizationClient {
|
|
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 PaymentLinkClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -107,7 +106,7 @@ export declare class PaymentLinkClient {
|
|
|
107
106
|
* name: "fullName",
|
|
108
107
|
* order: 0,
|
|
109
108
|
* required: true,
|
|
110
|
-
* validation: "
|
|
109
|
+
* validation: "alpha",
|
|
111
110
|
* value: "",
|
|
112
111
|
* width: 0
|
|
113
112
|
* }],
|
|
@@ -212,7 +211,7 @@ export declare class PaymentLinkClient {
|
|
|
212
211
|
* name: "fullName",
|
|
213
212
|
* order: 0,
|
|
214
213
|
* required: true,
|
|
215
|
-
* validation: "
|
|
214
|
+
* validation: "alpha",
|
|
216
215
|
* value: "",
|
|
217
216
|
* width: 0
|
|
218
217
|
* }],
|
|
@@ -435,7 +434,7 @@ export declare class PaymentLinkClient {
|
|
|
435
434
|
* name: "fullName",
|
|
436
435
|
* order: 0,
|
|
437
436
|
* required: true,
|
|
438
|
-
* validation: "
|
|
437
|
+
* validation: "alpha",
|
|
439
438
|
* value: "",
|
|
440
439
|
* width: 0
|
|
441
440
|
* }],
|
|
@@ -115,7 +115,7 @@ export class PaymentLinkClient {
|
|
|
115
115
|
* name: "fullName",
|
|
116
116
|
* order: 0,
|
|
117
117
|
* required: true,
|
|
118
|
-
* validation: "
|
|
118
|
+
* validation: "alpha",
|
|
119
119
|
* value: "",
|
|
120
120
|
* width: 0
|
|
121
121
|
* }],
|
|
@@ -275,7 +275,7 @@ export class PaymentLinkClient {
|
|
|
275
275
|
* name: "fullName",
|
|
276
276
|
* order: 0,
|
|
277
277
|
* required: true,
|
|
278
|
-
* validation: "
|
|
278
|
+
* validation: "alpha",
|
|
279
279
|
* value: "",
|
|
280
280
|
* width: 0
|
|
281
281
|
* }],
|
|
@@ -833,7 +833,7 @@ export class PaymentLinkClient {
|
|
|
833
833
|
* name: "fullName",
|
|
834
834
|
* order: 0,
|
|
835
835
|
* required: true,
|
|
836
|
-
* validation: "
|
|
836
|
+
* validation: "alpha",
|
|
837
837
|
* value: "",
|
|
838
838
|
* width: 0
|
|
839
839
|
* }],
|
|
@@ -82,7 +82,7 @@ import type * as Payabli from "../../../index.mjs";
|
|
|
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.mjs";
|
|
|
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.mjs
|
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Payabli from "../../../index.mjs";
|
|
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.mjs
|
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Payabli from "../../../index.mjs";
|
|
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.mjs
|
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Payabli from "../../../index.mjs";
|
|
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.mjs
|
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Payabli from "../../../index.mjs";
|
|
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.mjs
|
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Payabli from "../../../index.mjs";
|
|
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.mjs
|
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Payabli from "../../../index.mjs";
|
|
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.mjs
|
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Payabli from "../../../index.mjs";
|
|
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.mjs
|
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Payabli from "../../../index.mjs";
|
|
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.mjs
|
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Payabli from "../../../index.mjs";
|
|
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.mjs
|
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as Payabli from "../../../index.mjs";
|
|
5
5
|
export declare namespace WalletClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -3,7 +3,7 @@ import type * as Payabli from "../index.mjs";
|
|
|
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.mjs";
|
|
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 {
|
|
@@ -3,7 +3,11 @@ import { toJson } from "../core/json.mjs";
|
|
|
3
3
|
export class PayabliError extends Error {
|
|
4
4
|
constructor({ message, statusCode, body, rawResponse, }) {
|
|
5
5
|
super(buildMessage({ message, statusCode, body }));
|
|
6
|
-
Object.setPrototypeOf(this,
|
|
6
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
7
|
+
if (Error.captureStackTrace) {
|
|
8
|
+
Error.captureStackTrace(this, this.constructor);
|
|
9
|
+
}
|
|
10
|
+
this.name = this.constructor.name;
|
|
7
11
|
this.statusCode = statusCode;
|
|
8
12
|
this.body = body;
|
|
9
13
|
this.rawResponse = rawResponse;
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
export class PayabliTimeoutError extends Error {
|
|
3
3
|
constructor(message) {
|
|
4
4
|
super(message);
|
|
5
|
-
Object.setPrototypeOf(this,
|
|
5
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
6
|
+
if (Error.captureStackTrace) {
|
|
7
|
+
Error.captureStackTrace(this, this.constructor);
|
|
8
|
+
}
|
|
9
|
+
this.name = this.constructor.name;
|
|
6
10
|
}
|
|
7
11
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SDK_VERSION = "0.0.123";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const SDK_VERSION = "0.0.123";
|
package/package.json
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payabli/sdk-node",
|
|
3
|
+
"version": "0.0.123",
|
|
4
|
+
"private": false,
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/payabli/sdk-node.git"
|
|
8
|
+
},
|
|
3
9
|
"type": "commonjs",
|
|
4
10
|
"main": "./dist/cjs/index.js",
|
|
5
11
|
"module": "./dist/esm/index.mjs",
|
|
@@ -59,8 +65,5 @@
|
|
|
59
65
|
"engines": {
|
|
60
66
|
"node": ">=18.0.0"
|
|
61
67
|
},
|
|
62
|
-
"sideEffects": false
|
|
63
|
-
"version": "0.0.117",
|
|
64
|
-
"private": false,
|
|
65
|
-
"repository": "https://github.com/payabli/sdk-node"
|
|
68
|
+
"sideEffects": false
|
|
66
69
|
}
|
package/reference.md
CHANGED
|
@@ -5609,17 +5609,19 @@ await client.invoice.addInvoice("8cfec329267", {
|
|
|
5609
5609
|
itemDescription: "Consultation for Georgian tours",
|
|
5610
5610
|
itemCost: 100,
|
|
5611
5611
|
itemQty: 1,
|
|
5612
|
-
itemMode: 1
|
|
5612
|
+
itemMode: 1,
|
|
5613
|
+
itemTotalAmount: 1
|
|
5613
5614
|
}, {
|
|
5614
5615
|
itemProductName: "Deposit ",
|
|
5615
5616
|
itemDescription: "Deposit for trip planning",
|
|
5616
5617
|
itemCost: 882.37,
|
|
5617
|
-
itemQty: 1
|
|
5618
|
+
itemQty: 1,
|
|
5619
|
+
itemTotalAmount: 1
|
|
5618
5620
|
}],
|
|
5619
5621
|
invoiceDate: "2025-10-19",
|
|
5620
5622
|
invoiceType: 0,
|
|
5621
5623
|
invoiceStatus: 1,
|
|
5622
|
-
frequency: "
|
|
5624
|
+
frequency: "onetime",
|
|
5623
5625
|
invoiceAmount: 982.37,
|
|
5624
5626
|
discount: 10,
|
|
5625
5627
|
invoiceNumber: "INV-3"
|
|
@@ -9802,7 +9804,7 @@ await client.paymentLink.addPayLinkFromInvoice(23548884, {
|
|
|
9802
9804
|
name: "fullName",
|
|
9803
9805
|
order: 0,
|
|
9804
9806
|
required: true,
|
|
9805
|
-
validation: "
|
|
9807
|
+
validation: "alpha",
|
|
9806
9808
|
value: "",
|
|
9807
9809
|
width: 0
|
|
9808
9810
|
}],
|
|
@@ -9961,7 +9963,7 @@ await client.paymentLink.addPayLinkFromBill(23548884, {
|
|
|
9961
9963
|
name: "fullName",
|
|
9962
9964
|
order: 0,
|
|
9963
9965
|
required: true,
|
|
9964
|
-
validation: "
|
|
9966
|
+
validation: "alpha",
|
|
9965
9967
|
value: "",
|
|
9966
9968
|
width: 0
|
|
9967
9969
|
}],
|
|
@@ -10541,7 +10543,7 @@ await client.paymentLink.addPayLinkFromBillLotNumber("LOT-2024-001", {
|
|
|
10541
10543
|
name: "fullName",
|
|
10542
10544
|
order: 0,
|
|
10543
10545
|
required: true,
|
|
10544
|
-
validation: "
|
|
10546
|
+
validation: "alpha",
|
|
10545
10547
|
value: "",
|
|
10546
10548
|
width: 0
|
|
10547
10549
|
}],
|