@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.
Files changed (117) hide show
  1. package/README.md +25 -13
  2. package/dist/cjs/BaseClient.d.ts +7 -7
  3. package/dist/cjs/BaseClient.js +3 -1
  4. package/dist/cjs/Client.d.ts +1 -2
  5. package/dist/cjs/api/errors/BadRequestError.js +5 -1
  6. package/dist/cjs/api/errors/ConflictError.js +5 -1
  7. package/dist/cjs/api/errors/ForbiddenError.js +5 -1
  8. package/dist/cjs/api/errors/InternalServerError.js +5 -1
  9. package/dist/cjs/api/errors/ServiceUnavailableError.js +5 -1
  10. package/dist/cjs/api/errors/UnauthorizedError.js +5 -1
  11. package/dist/cjs/api/resources/bill/client/Client.d.ts +1 -2
  12. package/dist/cjs/api/resources/boarding/client/Client.d.ts +1 -2
  13. package/dist/cjs/api/resources/chargeBacks/client/Client.d.ts +1 -2
  14. package/dist/cjs/api/resources/checkCapture/client/Client.d.ts +1 -2
  15. package/dist/cjs/api/resources/cloud/client/Client.d.ts +1 -2
  16. package/dist/cjs/api/resources/customer/client/Client.d.ts +1 -2
  17. package/dist/cjs/api/resources/export/client/Client.d.ts +1 -2
  18. package/dist/cjs/api/resources/hostedPaymentPages/client/Client.d.ts +1 -2
  19. package/dist/cjs/api/resources/import/client/Client.d.ts +1 -2
  20. package/dist/cjs/api/resources/invoice/client/Client.d.ts +6 -5
  21. package/dist/cjs/api/resources/invoice/client/Client.js +5 -3
  22. package/dist/cjs/api/resources/invoice/client/requests/AddInvoiceRequest.d.ts +5 -3
  23. package/dist/cjs/api/resources/lineItem/client/Client.d.ts +1 -2
  24. package/dist/cjs/api/resources/moneyIn/client/Client.d.ts +1 -2
  25. package/dist/cjs/api/resources/moneyIn/errors/CaptureError.js +5 -1
  26. package/dist/cjs/api/resources/moneyIn/errors/InvalidTransStatusError.js +5 -1
  27. package/dist/cjs/api/resources/moneyOut/client/Client.d.ts +1 -2
  28. package/dist/cjs/api/resources/notification/client/Client.d.ts +14 -2
  29. package/dist/cjs/api/resources/notification/client/Client.js +13 -0
  30. package/dist/cjs/api/resources/notificationlogs/client/Client.d.ts +1 -2
  31. package/dist/cjs/api/resources/ocr/client/Client.d.ts +1 -2
  32. package/dist/cjs/api/resources/organization/client/Client.d.ts +1 -2
  33. package/dist/cjs/api/resources/paymentLink/client/Client.d.ts +4 -5
  34. package/dist/cjs/api/resources/paymentLink/client/Client.js +3 -3
  35. package/dist/cjs/api/resources/paymentLink/client/requests/PayLinkDataBill.d.ts +1 -1
  36. package/dist/cjs/api/resources/paymentLink/client/requests/PayLinkDataInvoice.d.ts +1 -1
  37. package/dist/cjs/api/resources/paymentLink/client/requests/PayLinkDataOut.d.ts +1 -1
  38. package/dist/cjs/api/resources/paymentLink/types/PaymentPageRequestBody.d.ts +2 -2
  39. package/dist/cjs/api/resources/paymentMethodDomain/client/Client.d.ts +1 -2
  40. package/dist/cjs/api/resources/paypoint/client/Client.d.ts +1 -2
  41. package/dist/cjs/api/resources/query/client/Client.d.ts +1 -2
  42. package/dist/cjs/api/resources/statistic/client/Client.d.ts +1 -2
  43. package/dist/cjs/api/resources/subscription/client/Client.d.ts +1 -2
  44. package/dist/cjs/api/resources/templates/client/Client.d.ts +1 -2
  45. package/dist/cjs/api/resources/tokenStorage/client/Client.d.ts +1 -2
  46. package/dist/cjs/api/resources/tokenStorage/types/GetMethodResponse.d.ts +1 -1
  47. package/dist/cjs/api/resources/user/client/Client.d.ts +1 -2
  48. package/dist/cjs/api/resources/vendor/client/Client.d.ts +1 -2
  49. package/dist/cjs/api/resources/wallet/client/Client.d.ts +1 -2
  50. package/dist/cjs/api/types/Frequency.d.ts +1 -1
  51. package/dist/cjs/api/types/Frequency.js +1 -1
  52. package/dist/cjs/api/types/FrequencyList.d.ts +1 -1
  53. package/dist/cjs/api/types/PayorDataResponse.d.ts +1 -1
  54. package/dist/cjs/auth/HeaderAuthProvider.d.ts +4 -2
  55. package/dist/cjs/errors/PayabliError.js +5 -1
  56. package/dist/cjs/errors/PayabliTimeoutError.js +5 -1
  57. package/dist/cjs/version.d.ts +1 -0
  58. package/dist/cjs/version.js +4 -0
  59. package/dist/esm/BaseClient.d.mts +7 -7
  60. package/dist/esm/BaseClient.mjs +3 -1
  61. package/dist/esm/Client.d.mts +1 -2
  62. package/dist/esm/api/errors/BadRequestError.mjs +5 -1
  63. package/dist/esm/api/errors/ConflictError.mjs +5 -1
  64. package/dist/esm/api/errors/ForbiddenError.mjs +5 -1
  65. package/dist/esm/api/errors/InternalServerError.mjs +5 -1
  66. package/dist/esm/api/errors/ServiceUnavailableError.mjs +5 -1
  67. package/dist/esm/api/errors/UnauthorizedError.mjs +5 -1
  68. package/dist/esm/api/resources/bill/client/Client.d.mts +1 -2
  69. package/dist/esm/api/resources/boarding/client/Client.d.mts +1 -2
  70. package/dist/esm/api/resources/chargeBacks/client/Client.d.mts +1 -2
  71. package/dist/esm/api/resources/checkCapture/client/Client.d.mts +1 -2
  72. package/dist/esm/api/resources/cloud/client/Client.d.mts +1 -2
  73. package/dist/esm/api/resources/customer/client/Client.d.mts +1 -2
  74. package/dist/esm/api/resources/export/client/Client.d.mts +1 -2
  75. package/dist/esm/api/resources/hostedPaymentPages/client/Client.d.mts +1 -2
  76. package/dist/esm/api/resources/import/client/Client.d.mts +1 -2
  77. package/dist/esm/api/resources/invoice/client/Client.d.mts +6 -5
  78. package/dist/esm/api/resources/invoice/client/Client.mjs +5 -3
  79. package/dist/esm/api/resources/invoice/client/requests/AddInvoiceRequest.d.mts +5 -3
  80. package/dist/esm/api/resources/lineItem/client/Client.d.mts +1 -2
  81. package/dist/esm/api/resources/moneyIn/client/Client.d.mts +1 -2
  82. package/dist/esm/api/resources/moneyIn/errors/CaptureError.mjs +5 -1
  83. package/dist/esm/api/resources/moneyIn/errors/InvalidTransStatusError.mjs +5 -1
  84. package/dist/esm/api/resources/moneyOut/client/Client.d.mts +1 -2
  85. package/dist/esm/api/resources/notification/client/Client.d.mts +14 -2
  86. package/dist/esm/api/resources/notification/client/Client.mjs +13 -0
  87. package/dist/esm/api/resources/notificationlogs/client/Client.d.mts +1 -2
  88. package/dist/esm/api/resources/ocr/client/Client.d.mts +1 -2
  89. package/dist/esm/api/resources/organization/client/Client.d.mts +1 -2
  90. package/dist/esm/api/resources/paymentLink/client/Client.d.mts +4 -5
  91. package/dist/esm/api/resources/paymentLink/client/Client.mjs +3 -3
  92. package/dist/esm/api/resources/paymentLink/client/requests/PayLinkDataBill.d.mts +1 -1
  93. package/dist/esm/api/resources/paymentLink/client/requests/PayLinkDataInvoice.d.mts +1 -1
  94. package/dist/esm/api/resources/paymentLink/client/requests/PayLinkDataOut.d.mts +1 -1
  95. package/dist/esm/api/resources/paymentLink/types/PaymentPageRequestBody.d.mts +2 -2
  96. package/dist/esm/api/resources/paymentMethodDomain/client/Client.d.mts +1 -2
  97. package/dist/esm/api/resources/paypoint/client/Client.d.mts +1 -2
  98. package/dist/esm/api/resources/query/client/Client.d.mts +1 -2
  99. package/dist/esm/api/resources/statistic/client/Client.d.mts +1 -2
  100. package/dist/esm/api/resources/subscription/client/Client.d.mts +1 -2
  101. package/dist/esm/api/resources/templates/client/Client.d.mts +1 -2
  102. package/dist/esm/api/resources/tokenStorage/client/Client.d.mts +1 -2
  103. package/dist/esm/api/resources/tokenStorage/types/GetMethodResponse.d.mts +1 -1
  104. package/dist/esm/api/resources/user/client/Client.d.mts +1 -2
  105. package/dist/esm/api/resources/vendor/client/Client.d.mts +1 -2
  106. package/dist/esm/api/resources/wallet/client/Client.d.mts +1 -2
  107. package/dist/esm/api/types/Frequency.d.mts +1 -1
  108. package/dist/esm/api/types/Frequency.mjs +1 -1
  109. package/dist/esm/api/types/FrequencyList.d.mts +1 -1
  110. package/dist/esm/api/types/PayorDataResponse.d.mts +1 -1
  111. package/dist/esm/auth/HeaderAuthProvider.d.mts +4 -2
  112. package/dist/esm/errors/PayabliError.mjs +5 -1
  113. package/dist/esm/errors/PayabliTimeoutError.mjs +5 -1
  114. package/dist/esm/version.d.mts +1 -0
  115. package/dist/esm/version.mjs +1 -0
  116. package/package.json +7 -4
  117. 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, InvalidTransStatusError.prototype);
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
- interface Options extends BaseClientOptions {
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
- interface Options extends BaseClientOptions {
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
- interface Options extends BaseClientOptions {
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
- interface Options extends BaseClientOptions {
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
- interface Options extends BaseClientOptions {
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
- interface Options extends BaseClientOptions {
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: "^[a-zA-Z ]+$",
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: "^[a-zA-Z ]+$",
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: "^[a-zA-Z ]+$",
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: "^[a-zA-Z ]+$",
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: "^[a-zA-Z ]+$",
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: "^[a-zA-Z ]+$",
836
+ * validation: "alpha",
837
837
  * value: "",
838
838
  * width: 0
839
839
  * }],
@@ -63,7 +63,7 @@ import type * as Payabli from "../../../../index.mjs";
63
63
  * name: "fullName",
64
64
  * order: 0,
65
65
  * required: true,
66
- * validation: "^[a-zA-Z ]+$",
66
+ * validation: "alpha",
67
67
  * value: "",
68
68
  * width: 0
69
69
  * }],
@@ -84,7 +84,7 @@ import type * as Payabli from "../../../../index.mjs";
84
84
  * name: "fullName",
85
85
  * order: 0,
86
86
  * required: true,
87
- * validation: "^[a-zA-Z ]+$",
87
+ * validation: "alpha",
88
88
  * value: "",
89
89
  * width: 0
90
90
  * }],
@@ -66,7 +66,7 @@ import type * as Payabli from "../../../../index.mjs";
66
66
  * name: "fullName",
67
67
  * order: 0,
68
68
  * required: true,
69
- * validation: "^[a-zA-Z ]+$",
69
+ * validation: "alpha",
70
70
  * value: "",
71
71
  * width: 0
72
72
  * }],
@@ -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: "^[a-zA-Z ]+$",
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: "^[a-zA-Z ]+$",
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
- interface Options extends BaseClientOptions {
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
- interface Options extends BaseClientOptions {
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
- interface Options extends BaseClientOptions {
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
- interface Options extends BaseClientOptions {
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
- interface Options extends BaseClientOptions {
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
- interface Options extends BaseClientOptions {
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
- interface Options extends BaseClientOptions {
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?: Payabli.LastModified | undefined;
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
- interface Options extends BaseClientOptions {
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
- interface Options extends BaseClientOptions {
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
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }
@@ -1,6 +1,6 @@
1
1
  /** Frequency for operation. */
2
2
  export declare const Frequency: {
3
- readonly OneTime: "one-time";
3
+ readonly OneTime: "onetime";
4
4
  readonly Weekly: "weekly";
5
5
  readonly Every2Weeks: "every2weeks";
6
6
  readonly Every6Months: "every6months";
@@ -1,7 +1,7 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  /** Frequency for operation. */
3
3
  export const Frequency = {
4
- OneTime: "one-time",
4
+ OneTime: "onetime",
5
5
  Weekly: "weekly",
6
6
  Every2Weeks: "every2weeks",
7
7
  Every6Months: "every6months",
@@ -10,7 +10,7 @@ export interface FrequencyList {
10
10
  /** Enable or disable frequency */
11
11
  monthly?: boolean;
12
12
  /** Enable or disable frequency */
13
- "one-time"?: boolean;
13
+ onetime?: boolean;
14
14
  /** Enable or disable frequency */
15
15
  weekly?: boolean;
16
16
  }
@@ -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.AdditionalData | null;
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 Options {
4
- apiKey?: core.Supplier<string | undefined>;
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, PayabliError.prototype);
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, PayabliTimeoutError.prototype);
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: "one-time",
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: "^[a-zA-Z ]+$",
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: "^[a-zA-Z ]+$",
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: "^[a-zA-Z ]+$",
10546
+ validation: "alpha",
10545
10547
  value: "",
10546
10548
  width: 0
10547
10549
  }],