@payabli/sdk-node 0.0.135 → 0.0.137

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 (178) hide show
  1. package/LICENSE.md +5 -6
  2. package/README.md +19 -13
  3. package/dist/cjs/BaseClient.js +2 -2
  4. package/dist/cjs/Client.d.ts +6 -0
  5. package/dist/cjs/Client.js +52 -42
  6. package/dist/cjs/api/resources/ghostCard/client/Client.d.ts +70 -0
  7. package/dist/cjs/api/resources/ghostCard/client/Client.js +204 -0
  8. package/dist/cjs/api/resources/ghostCard/client/index.d.ts +1 -0
  9. package/dist/cjs/api/resources/ghostCard/client/index.js +17 -0
  10. package/dist/cjs/api/resources/ghostCard/client/requests/CreateGhostCardRequestBody.d.ts +54 -0
  11. package/dist/cjs/api/resources/ghostCard/client/requests/CreateGhostCardRequestBody.js +3 -0
  12. package/dist/cjs/api/resources/ghostCard/client/requests/UpdateCardRequestBody.d.ts +14 -0
  13. package/dist/cjs/api/resources/ghostCard/client/requests/UpdateCardRequestBody.js +3 -0
  14. package/dist/cjs/api/resources/ghostCard/client/requests/index.d.ts +2 -0
  15. package/dist/cjs/api/resources/ghostCard/client/requests/index.js +2 -0
  16. package/dist/cjs/api/resources/ghostCard/exports.d.ts +2 -0
  17. package/dist/cjs/api/resources/ghostCard/exports.js +21 -0
  18. package/dist/cjs/api/resources/ghostCard/index.d.ts +2 -0
  19. package/dist/cjs/api/resources/ghostCard/index.js +18 -0
  20. package/dist/cjs/api/resources/ghostCard/types/CardStatus.d.ts +8 -0
  21. package/dist/cjs/api/resources/ghostCard/types/CardStatus.js +11 -0
  22. package/dist/cjs/api/resources/ghostCard/types/CreateGhostCardResponse.d.ts +17 -0
  23. package/dist/cjs/api/resources/ghostCard/types/CreateGhostCardResponse.js +3 -0
  24. package/dist/cjs/api/resources/ghostCard/types/index.d.ts +2 -0
  25. package/dist/cjs/api/resources/ghostCard/types/index.js +18 -0
  26. package/dist/cjs/api/resources/index.d.ts +6 -0
  27. package/dist/cjs/api/resources/index.js +7 -1
  28. package/dist/cjs/api/resources/payoutSubscription/client/Client.d.ts +156 -0
  29. package/dist/cjs/api/resources/payoutSubscription/client/Client.js +385 -0
  30. package/dist/cjs/api/resources/payoutSubscription/client/index.d.ts +1 -0
  31. package/dist/cjs/api/resources/payoutSubscription/client/index.js +17 -0
  32. package/dist/cjs/api/resources/payoutSubscription/client/requests/RequestPayoutSchedule.d.ts +67 -0
  33. package/dist/cjs/api/resources/payoutSubscription/client/requests/RequestPayoutSchedule.js +3 -0
  34. package/dist/cjs/api/resources/payoutSubscription/client/requests/index.d.ts +1 -0
  35. package/dist/cjs/api/resources/payoutSubscription/client/requests/index.js +2 -0
  36. package/dist/cjs/api/resources/payoutSubscription/exports.d.ts +2 -0
  37. package/dist/cjs/api/resources/payoutSubscription/exports.js +21 -0
  38. package/dist/cjs/api/resources/payoutSubscription/index.d.ts +2 -0
  39. package/dist/cjs/api/resources/payoutSubscription/index.js +18 -0
  40. package/dist/cjs/api/resources/payoutSubscription/types/AddPayoutSubscriptionResponse.d.ts +20 -0
  41. package/dist/cjs/api/resources/payoutSubscription/types/AddPayoutSubscriptionResponse.js +3 -0
  42. package/dist/cjs/api/resources/payoutSubscription/types/DeletePayoutSubscriptionResponse.d.ts +14 -0
  43. package/dist/cjs/api/resources/payoutSubscription/types/DeletePayoutSubscriptionResponse.js +3 -0
  44. package/dist/cjs/api/resources/payoutSubscription/types/GetPayoutSubscriptionResponse.d.ts +151 -0
  45. package/dist/cjs/api/resources/payoutSubscription/types/GetPayoutSubscriptionResponse.js +3 -0
  46. package/dist/cjs/api/resources/payoutSubscription/types/PayoutPaymentDetail.d.ts +31 -0
  47. package/dist/cjs/api/resources/payoutSubscription/types/PayoutPaymentDetail.js +3 -0
  48. package/dist/cjs/api/resources/payoutSubscription/types/PayoutScheduleDetail.d.ts +9 -0
  49. package/dist/cjs/api/resources/payoutSubscription/types/PayoutScheduleDetail.js +3 -0
  50. package/dist/cjs/api/resources/payoutSubscription/types/PayoutSetPause.d.ts +4 -0
  51. package/dist/cjs/api/resources/payoutSubscription/types/PayoutSetPause.js +3 -0
  52. package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecord.d.ts +195 -0
  53. package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecord.js +3 -0
  54. package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecordPascal.d.ts +195 -0
  55. package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecordPascal.js +3 -0
  56. package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionRequestBody.d.ts +69 -0
  57. package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionRequestBody.js +3 -0
  58. package/dist/cjs/api/resources/payoutSubscription/types/QueryPayoutSubscriptionResponse.d.ts +155 -0
  59. package/dist/cjs/api/resources/payoutSubscription/types/QueryPayoutSubscriptionResponse.js +3 -0
  60. package/dist/cjs/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionBody.d.ts +9 -0
  61. package/dist/cjs/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionBody.js +3 -0
  62. package/dist/cjs/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionResponse.d.ts +15 -0
  63. package/dist/cjs/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionResponse.js +3 -0
  64. package/dist/cjs/api/resources/payoutSubscription/types/index.d.ts +12 -0
  65. package/dist/cjs/api/resources/payoutSubscription/types/index.js +28 -0
  66. package/dist/cjs/api/resources/query/client/Client.d.ts +46 -6
  67. package/dist/cjs/api/resources/query/client/Client.js +150 -6
  68. package/dist/cjs/api/resources/query/client/requests/ListPayoutSubscriptionsOrgRequest.d.ts +84 -0
  69. package/dist/cjs/api/resources/query/client/requests/ListPayoutSubscriptionsOrgRequest.js +3 -0
  70. package/dist/cjs/api/resources/query/client/requests/ListPayoutSubscriptionsRequest.d.ts +84 -0
  71. package/dist/cjs/api/resources/query/client/requests/ListPayoutSubscriptionsRequest.js +3 -0
  72. package/dist/cjs/api/resources/query/client/requests/index.d.ts +2 -0
  73. package/dist/cjs/api/types/Remitaddress1.d.ts +1 -1
  74. package/dist/cjs/api/types/Remitaddress2.d.ts +1 -1
  75. package/dist/cjs/api/types/Remitcity.d.ts +1 -1
  76. package/dist/cjs/api/types/Remitcountry.d.ts +1 -1
  77. package/dist/cjs/api/types/Remitstate.d.ts +1 -1
  78. package/dist/cjs/api/types/Remitzip.d.ts +1 -1
  79. package/dist/cjs/api/types/VendorData.d.ts +6 -6
  80. package/dist/cjs/api/types/VendorEin.d.ts +1 -1
  81. package/dist/cjs/api/types/VendorName1.d.ts +1 -1
  82. package/dist/cjs/api/types/VendorName2.d.ts +1 -1
  83. package/dist/cjs/api/types/VendorNumber.d.ts +1 -1
  84. package/dist/cjs/api/types/VendorOutData.d.ts +9 -9
  85. package/dist/cjs/api/types/VendorQueryRecord.d.ts +1 -1
  86. package/dist/cjs/api/types/Vendorstatus.d.ts +5 -3
  87. package/dist/cjs/core/file/file.js +3 -2
  88. package/dist/cjs/version.d.ts +1 -1
  89. package/dist/cjs/version.js +1 -1
  90. package/dist/esm/BaseClient.mjs +2 -2
  91. package/dist/esm/Client.d.mts +6 -0
  92. package/dist/esm/Client.mjs +10 -0
  93. package/dist/esm/api/resources/ghostCard/client/Client.d.mts +70 -0
  94. package/dist/esm/api/resources/ghostCard/client/Client.mjs +167 -0
  95. package/dist/esm/api/resources/ghostCard/client/index.d.mts +1 -0
  96. package/dist/esm/api/resources/ghostCard/client/index.mjs +1 -0
  97. package/dist/esm/api/resources/ghostCard/client/requests/CreateGhostCardRequestBody.d.mts +54 -0
  98. package/dist/esm/api/resources/ghostCard/client/requests/CreateGhostCardRequestBody.mjs +2 -0
  99. package/dist/esm/api/resources/ghostCard/client/requests/UpdateCardRequestBody.d.mts +14 -0
  100. package/dist/esm/api/resources/ghostCard/client/requests/UpdateCardRequestBody.mjs +2 -0
  101. package/dist/esm/api/resources/ghostCard/client/requests/index.d.mts +2 -0
  102. package/dist/esm/api/resources/ghostCard/client/requests/index.mjs +1 -0
  103. package/dist/esm/api/resources/ghostCard/exports.d.mts +2 -0
  104. package/dist/esm/api/resources/ghostCard/exports.mjs +3 -0
  105. package/dist/esm/api/resources/ghostCard/index.d.mts +2 -0
  106. package/dist/esm/api/resources/ghostCard/index.mjs +2 -0
  107. package/dist/esm/api/resources/ghostCard/types/CardStatus.d.mts +8 -0
  108. package/dist/esm/api/resources/ghostCard/types/CardStatus.mjs +8 -0
  109. package/dist/esm/api/resources/ghostCard/types/CreateGhostCardResponse.d.mts +17 -0
  110. package/dist/esm/api/resources/ghostCard/types/CreateGhostCardResponse.mjs +2 -0
  111. package/dist/esm/api/resources/ghostCard/types/index.d.mts +2 -0
  112. package/dist/esm/api/resources/ghostCard/types/index.mjs +2 -0
  113. package/dist/esm/api/resources/index.d.mts +6 -0
  114. package/dist/esm/api/resources/index.mjs +6 -0
  115. package/dist/esm/api/resources/payoutSubscription/client/Client.d.mts +156 -0
  116. package/dist/esm/api/resources/payoutSubscription/client/Client.mjs +348 -0
  117. package/dist/esm/api/resources/payoutSubscription/client/index.d.mts +1 -0
  118. package/dist/esm/api/resources/payoutSubscription/client/index.mjs +1 -0
  119. package/dist/esm/api/resources/payoutSubscription/client/requests/RequestPayoutSchedule.d.mts +67 -0
  120. package/dist/esm/api/resources/payoutSubscription/client/requests/RequestPayoutSchedule.mjs +2 -0
  121. package/dist/esm/api/resources/payoutSubscription/client/requests/index.d.mts +1 -0
  122. package/dist/esm/api/resources/payoutSubscription/client/requests/index.mjs +1 -0
  123. package/dist/esm/api/resources/payoutSubscription/exports.d.mts +2 -0
  124. package/dist/esm/api/resources/payoutSubscription/exports.mjs +3 -0
  125. package/dist/esm/api/resources/payoutSubscription/index.d.mts +2 -0
  126. package/dist/esm/api/resources/payoutSubscription/index.mjs +2 -0
  127. package/dist/esm/api/resources/payoutSubscription/types/AddPayoutSubscriptionResponse.d.mts +20 -0
  128. package/dist/esm/api/resources/payoutSubscription/types/AddPayoutSubscriptionResponse.mjs +2 -0
  129. package/dist/esm/api/resources/payoutSubscription/types/DeletePayoutSubscriptionResponse.d.mts +14 -0
  130. package/dist/esm/api/resources/payoutSubscription/types/DeletePayoutSubscriptionResponse.mjs +2 -0
  131. package/dist/esm/api/resources/payoutSubscription/types/GetPayoutSubscriptionResponse.d.mts +151 -0
  132. package/dist/esm/api/resources/payoutSubscription/types/GetPayoutSubscriptionResponse.mjs +2 -0
  133. package/dist/esm/api/resources/payoutSubscription/types/PayoutPaymentDetail.d.mts +31 -0
  134. package/dist/esm/api/resources/payoutSubscription/types/PayoutPaymentDetail.mjs +2 -0
  135. package/dist/esm/api/resources/payoutSubscription/types/PayoutScheduleDetail.d.mts +9 -0
  136. package/dist/esm/api/resources/payoutSubscription/types/PayoutScheduleDetail.mjs +2 -0
  137. package/dist/esm/api/resources/payoutSubscription/types/PayoutSetPause.d.mts +4 -0
  138. package/dist/esm/api/resources/payoutSubscription/types/PayoutSetPause.mjs +2 -0
  139. package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecord.d.mts +195 -0
  140. package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecord.mjs +2 -0
  141. package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecordPascal.d.mts +195 -0
  142. package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecordPascal.mjs +2 -0
  143. package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionRequestBody.d.mts +69 -0
  144. package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionRequestBody.mjs +2 -0
  145. package/dist/esm/api/resources/payoutSubscription/types/QueryPayoutSubscriptionResponse.d.mts +155 -0
  146. package/dist/esm/api/resources/payoutSubscription/types/QueryPayoutSubscriptionResponse.mjs +2 -0
  147. package/dist/esm/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionBody.d.mts +9 -0
  148. package/dist/esm/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionBody.mjs +2 -0
  149. package/dist/esm/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionResponse.d.mts +15 -0
  150. package/dist/esm/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionResponse.mjs +2 -0
  151. package/dist/esm/api/resources/payoutSubscription/types/index.d.mts +12 -0
  152. package/dist/esm/api/resources/payoutSubscription/types/index.mjs +12 -0
  153. package/dist/esm/api/resources/query/client/Client.d.mts +46 -6
  154. package/dist/esm/api/resources/query/client/Client.mjs +150 -6
  155. package/dist/esm/api/resources/query/client/requests/ListPayoutSubscriptionsOrgRequest.d.mts +84 -0
  156. package/dist/esm/api/resources/query/client/requests/ListPayoutSubscriptionsOrgRequest.mjs +2 -0
  157. package/dist/esm/api/resources/query/client/requests/ListPayoutSubscriptionsRequest.d.mts +84 -0
  158. package/dist/esm/api/resources/query/client/requests/ListPayoutSubscriptionsRequest.mjs +2 -0
  159. package/dist/esm/api/resources/query/client/requests/index.d.mts +2 -0
  160. package/dist/esm/api/types/Remitaddress1.d.mts +1 -1
  161. package/dist/esm/api/types/Remitaddress2.d.mts +1 -1
  162. package/dist/esm/api/types/Remitcity.d.mts +1 -1
  163. package/dist/esm/api/types/Remitcountry.d.mts +1 -1
  164. package/dist/esm/api/types/Remitstate.d.mts +1 -1
  165. package/dist/esm/api/types/Remitzip.d.mts +1 -1
  166. package/dist/esm/api/types/VendorData.d.mts +6 -6
  167. package/dist/esm/api/types/VendorEin.d.mts +1 -1
  168. package/dist/esm/api/types/VendorName1.d.mts +1 -1
  169. package/dist/esm/api/types/VendorName2.d.mts +1 -1
  170. package/dist/esm/api/types/VendorNumber.d.mts +1 -1
  171. package/dist/esm/api/types/VendorOutData.d.mts +9 -9
  172. package/dist/esm/api/types/VendorQueryRecord.d.mts +1 -1
  173. package/dist/esm/api/types/Vendorstatus.d.mts +5 -3
  174. package/dist/esm/core/file/file.mjs +3 -2
  175. package/dist/esm/version.d.mts +1 -1
  176. package/dist/esm/version.mjs +1 -1
  177. package/package.json +29 -7
  178. package/reference.md +685 -78
@@ -0,0 +1,54 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * vendorId: 42,
5
+ * expenseLimit: 500,
6
+ * amount: 500,
7
+ * maxNumberOfUses: 3,
8
+ * exactAmount: false,
9
+ * expenseLimitPeriod: "monthly",
10
+ * billingCycle: "monthly",
11
+ * billingCycleDay: "1",
12
+ * dailyTransactionCount: 5,
13
+ * dailyAmountLimit: 200,
14
+ * transactionAmountLimit: 100,
15
+ * mcc: "5411",
16
+ * tcc: "R",
17
+ * misc1: "PO-98765",
18
+ * misc2: "Dept-Finance"
19
+ * }
20
+ */
21
+ export interface CreateGhostCardRequestBody {
22
+ /** ID of the vendor who receives the card. The vendor must belong to the paypoint and have an active status. */
23
+ vendorId: number;
24
+ /** Spending limit for the card. Must be greater than `0` and can't exceed the paypoint's configured payout credit limit. */
25
+ expenseLimit: number;
26
+ /** Requested expiration date for the card. If not provided, defaults to 30 days from creation. */
27
+ expirationDate?: string;
28
+ /** Initial load amount for the card. */
29
+ amount: number;
30
+ /** Maximum number of times the card can be used. Ignored and set to `1` when `exactAmount` is `true`. */
31
+ maxNumberOfUses: number;
32
+ /** When `true`, restricts the card to a single use. `maxNumberOfUses` is automatically set to `1` regardless of any other value provided. */
33
+ exactAmount: boolean;
34
+ /** Time period over which `expenseLimit` applies (for example, `monthly` or `weekly`). */
35
+ expenseLimitPeriod: string;
36
+ /** Billing cycle identifier. */
37
+ billingCycle: string;
38
+ /** Day within the billing cycle. */
39
+ billingCycleDay: string;
40
+ /** Maximum number of transactions allowed per day. */
41
+ dailyTransactionCount: number;
42
+ /** Maximum total spend allowed per day. */
43
+ dailyAmountLimit: number;
44
+ /** Maximum spend allowed per single transaction. */
45
+ transactionAmountLimit: number;
46
+ /** Merchant Category Code to restrict where the card can be used. Must be a valid MCC if provided. */
47
+ mcc?: string;
48
+ /** Transaction Category Code to restrict where the card can be used. Must be a valid TCC if provided. */
49
+ tcc?: string;
50
+ /** Custom metadata field. Stored on the card record. */
51
+ misc1?: string;
52
+ /** Custom metadata field. Stored on the card record. */
53
+ misc2?: string;
54
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import type * as Payabli from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * cardToken: "gc_abc123def456",
6
+ * status: "Cancelled"
7
+ * }
8
+ */
9
+ export interface UpdateCardRequestBody {
10
+ /** Token that uniquely identifies the card. This is the `ReferenceId` returned when the card was created. */
11
+ cardToken: string;
12
+ /** The new status to set on the card. */
13
+ status?: Payabli.CardStatus;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export type { CreateGhostCardRequestBody } from "./CreateGhostCardRequestBody.js";
2
+ export type { UpdateCardRequestBody } from "./UpdateCardRequestBody.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { GhostCardClient } from "./client/Client.js";
2
+ export * from "./client/index.js";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.GhostCardClient = void 0;
19
+ var Client_js_1 = require("./client/Client.js");
20
+ Object.defineProperty(exports, "GhostCardClient", { enumerable: true, get: function () { return Client_js_1.GhostCardClient; } });
21
+ __exportStar(require("./client/index.js"), exports);
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.js";
2
+ export * from "./types/index.js";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
18
+ __exportStar(require("./types/index.js"), exports);
@@ -0,0 +1,8 @@
1
+ /** The status to set on the card. Not all transitions are valid: `Active` can change to `Inactive`, `Cancelled`, or `Expired`. `Inactive` can change to `Active`. `Expired` can change to `Active` (renews the card). `Cancelled` is terminal and can't be changed. */
2
+ export declare const CardStatus: {
3
+ readonly Active: "Active";
4
+ readonly Inactive: "Inactive";
5
+ readonly Cancelled: "Cancelled";
6
+ readonly Expired: "Expired";
7
+ };
8
+ export type CardStatus = (typeof CardStatus)[keyof typeof CardStatus];
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CardStatus = void 0;
5
+ /** The status to set on the card. Not all transitions are valid: `Active` can change to `Inactive`, `Cancelled`, or `Expired`. `Inactive` can change to `Active`. `Expired` can change to `Active` (renews the card). `Cancelled` is terminal and can't be changed. */
6
+ exports.CardStatus = {
7
+ Active: "Active",
8
+ Inactive: "Inactive",
9
+ Cancelled: "Cancelled",
10
+ Expired: "Expired",
11
+ };
@@ -0,0 +1,17 @@
1
+ import type * as Payabli from "../../../index.js";
2
+ /**
3
+ * Response for creating a ghost card.
4
+ */
5
+ export interface CreateGhostCardResponse {
6
+ isSuccess?: Payabli.IsSuccess | undefined;
7
+ responseText: Payabli.ResponseText;
8
+ responseData?: CreateGhostCardResponse.ResponseData | undefined;
9
+ }
10
+ export declare namespace CreateGhostCardResponse {
11
+ interface ResponseData {
12
+ /** Card token for the ghost card. Use this value to reference the card in subsequent operations (update, cancel, etc.). */
13
+ ReferenceId?: string | undefined;
14
+ ResultCode?: Payabli.ResultCode | undefined;
15
+ ResultText?: Payabli.Resulttext | undefined;
16
+ }
17
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./CardStatus.js";
2
+ export * from "./CreateGhostCardResponse.js";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CardStatus.js"), exports);
18
+ __exportStar(require("./CreateGhostCardResponse.js"), exports);
@@ -18,6 +18,9 @@ export * as customer from "./customer/index.js";
18
18
  export * from "./export/client/requests/index.js";
19
19
  export * as export_ from "./export/index.js";
20
20
  export * from "./export/types/index.js";
21
+ export * from "./ghostCard/client/requests/index.js";
22
+ export * as ghostCard from "./ghostCard/index.js";
23
+ export * from "./ghostCard/types/index.js";
21
24
  export * from "./hostedPaymentPages/client/requests/index.js";
22
25
  export * as hostedPaymentPages from "./hostedPaymentPages/index.js";
23
26
  export * from "./import/client/requests/index.js";
@@ -52,6 +55,9 @@ export * from "./paymentLink/types/index.js";
52
55
  export * from "./paymentMethodDomain/client/requests/index.js";
53
56
  export * as paymentMethodDomain from "./paymentMethodDomain/index.js";
54
57
  export * from "./paymentMethodDomain/types/index.js";
58
+ export * from "./payoutSubscription/client/requests/index.js";
59
+ export * as payoutSubscription from "./payoutSubscription/index.js";
60
+ export * from "./payoutSubscription/types/index.js";
55
61
  export * from "./paypoint/client/requests/index.js";
56
62
  export * as paypoint from "./paypoint/index.js";
57
63
  export * from "./paypoint/types/index.js";
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.wallet = exports.vendor = exports.v2MoneyInTypes = exports.user = exports.tokenStorage = exports.templates = exports.subscription = exports.statistic = exports.queryTypes = exports.query = exports.paypoint = exports.paymentMethodDomain = exports.paymentLink = exports.organization = exports.ocr = exports.notificationlogs = exports.notification = exports.moneyOutTypes = exports.moneyOut = exports.moneyIn = exports.lineItem = exports.invoice = exports.import_ = exports.hostedPaymentPages = exports.export_ = exports.customer = exports.cloud = exports.checkCapture = exports.chargeBacks = exports.boarding = exports.bill = void 0;
39
+ exports.wallet = exports.vendor = exports.v2MoneyInTypes = exports.user = exports.tokenStorage = exports.templates = exports.subscription = exports.statistic = exports.queryTypes = exports.query = exports.paypoint = exports.payoutSubscription = exports.paymentMethodDomain = exports.paymentLink = exports.organization = exports.ocr = exports.notificationlogs = exports.notification = exports.moneyOutTypes = exports.moneyOut = exports.moneyIn = exports.lineItem = exports.invoice = exports.import_ = exports.hostedPaymentPages = exports.ghostCard = exports.export_ = exports.customer = exports.cloud = exports.checkCapture = exports.chargeBacks = exports.boarding = exports.bill = void 0;
40
40
  __exportStar(require("./bill/client/requests/index.js"), exports);
41
41
  exports.bill = __importStar(require("./bill/index.js"));
42
42
  __exportStar(require("./bill/types/index.js"), exports);
@@ -57,6 +57,9 @@ exports.customer = __importStar(require("./customer/index.js"));
57
57
  __exportStar(require("./export/client/requests/index.js"), exports);
58
58
  exports.export_ = __importStar(require("./export/index.js"));
59
59
  __exportStar(require("./export/types/index.js"), exports);
60
+ __exportStar(require("./ghostCard/client/requests/index.js"), exports);
61
+ exports.ghostCard = __importStar(require("./ghostCard/index.js"));
62
+ __exportStar(require("./ghostCard/types/index.js"), exports);
60
63
  __exportStar(require("./hostedPaymentPages/client/requests/index.js"), exports);
61
64
  exports.hostedPaymentPages = __importStar(require("./hostedPaymentPages/index.js"));
62
65
  __exportStar(require("./import/client/requests/index.js"), exports);
@@ -91,6 +94,9 @@ __exportStar(require("./paymentLink/types/index.js"), exports);
91
94
  __exportStar(require("./paymentMethodDomain/client/requests/index.js"), exports);
92
95
  exports.paymentMethodDomain = __importStar(require("./paymentMethodDomain/index.js"));
93
96
  __exportStar(require("./paymentMethodDomain/types/index.js"), exports);
97
+ __exportStar(require("./payoutSubscription/client/requests/index.js"), exports);
98
+ exports.payoutSubscription = __importStar(require("./payoutSubscription/index.js"));
99
+ __exportStar(require("./payoutSubscription/types/index.js"), exports);
94
100
  __exportStar(require("./paypoint/client/requests/index.js"), exports);
95
101
  exports.paypoint = __importStar(require("./paypoint/index.js"));
96
102
  __exportStar(require("./paypoint/types/index.js"), exports);
@@ -0,0 +1,156 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
3
+ import * as core from "../../../../core/index.js";
4
+ import * as Payabli from "../../../index.js";
5
+ export declare namespace PayoutSubscriptionClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class PayoutSubscriptionClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<PayoutSubscriptionClient.Options>;
12
+ constructor(options?: PayoutSubscriptionClient.Options);
13
+ /**
14
+ * Creates a payout subscription to automatically send payouts to a vendor on a recurring schedule. See [Manage payout subscriptions](/guides/pay-out-developer-payout-subscriptions-manage) for a step-by-step guide.
15
+ *
16
+ * @param {Payabli.RequestPayoutSchedule} request
17
+ * @param {PayoutSubscriptionClient.RequestOptions} requestOptions - Request-specific configuration.
18
+ *
19
+ * @throws {@link Payabli.BadRequestError}
20
+ * @throws {@link Payabli.UnauthorizedError}
21
+ * @throws {@link Payabli.InternalServerError}
22
+ * @throws {@link Payabli.ServiceUnavailableError}
23
+ *
24
+ * @example
25
+ * await client.payoutSubscription.createPayoutSubscription({
26
+ * body: {
27
+ * entryPoint: "d193cf9a46",
28
+ * paymentMethod: {
29
+ * method: "ach",
30
+ * achHolder: "Herman Coatings",
31
+ * achRouting: "021000021",
32
+ * achAccount: "3453445666",
33
+ * achAccountType: "checking"
34
+ * },
35
+ * paymentDetails: {
36
+ * totalAmount: 500,
37
+ * serviceFee: 0,
38
+ * currency: "USD"
39
+ * },
40
+ * vendorData: {
41
+ * vendorId: 1501
42
+ * },
43
+ * billData: [{
44
+ * invoiceNumber: "INV-5001",
45
+ * netAmount: "500",
46
+ * invoiceDate: "2025-08-01",
47
+ * dueDate: "2025-08-15"
48
+ * }],
49
+ * scheduleDetails: {
50
+ * startDate: "09/01/2025",
51
+ * endDate: "09/01/2026",
52
+ * frequency: "monthly"
53
+ * }
54
+ * }
55
+ * })
56
+ *
57
+ * @example
58
+ * await client.payoutSubscription.createPayoutSubscription({
59
+ * body: {
60
+ * entryPoint: "d193cf9a46",
61
+ * paymentMethod: {
62
+ * method: "vcard"
63
+ * },
64
+ * paymentDetails: {
65
+ * totalAmount: 250,
66
+ * serviceFee: 0
67
+ * },
68
+ * vendorData: {
69
+ * vendorId: 1501
70
+ * },
71
+ * billData: [{
72
+ * invoiceNumber: "INV-7820",
73
+ * netAmount: "250",
74
+ * invoiceDate: "2025-08-15",
75
+ * dueDate: "2025-09-01"
76
+ * }],
77
+ * scheduleDetails: {
78
+ * startDate: "09/01/2025",
79
+ * frequency: "weekly",
80
+ * endDate: "untilcancelled"
81
+ * }
82
+ * }
83
+ * })
84
+ */
85
+ createPayoutSubscription(request: Payabli.RequestPayoutSchedule, requestOptions?: PayoutSubscriptionClient.RequestOptions): core.HttpResponsePromise<Payabli.AddPayoutSubscriptionResponse>;
86
+ private __createPayoutSubscription;
87
+ /**
88
+ * Retrieves a single payout subscription's details. See [Manage payout subscriptions](/guides/pay-out-developer-payout-subscriptions-manage) for more information.
89
+ *
90
+ * @param {number} id - The payout subscription ID.
91
+ * @param {PayoutSubscriptionClient.RequestOptions} requestOptions - Request-specific configuration.
92
+ *
93
+ * @throws {@link Payabli.BadRequestError}
94
+ * @throws {@link Payabli.UnauthorizedError}
95
+ * @throws {@link Payabli.InternalServerError}
96
+ * @throws {@link Payabli.ServiceUnavailableError}
97
+ *
98
+ * @example
99
+ * await client.payoutSubscription.getPayoutSubscription(42)
100
+ */
101
+ getPayoutSubscription(id: number, requestOptions?: PayoutSubscriptionClient.RequestOptions): core.HttpResponsePromise<Payabli.GetPayoutSubscriptionResponse>;
102
+ private __getPayoutSubscription;
103
+ /**
104
+ * Updates a payout subscription's details. See [Manage payout subscriptions](/guides/pay-out-developer-payout-subscriptions-manage) for more information.
105
+ *
106
+ * @param {number} id - The payout subscription ID.
107
+ * @param {Payabli.UpdatePayoutSubscriptionBody} request
108
+ * @param {PayoutSubscriptionClient.RequestOptions} requestOptions - Request-specific configuration.
109
+ *
110
+ * @throws {@link Payabli.BadRequestError}
111
+ * @throws {@link Payabli.UnauthorizedError}
112
+ * @throws {@link Payabli.InternalServerError}
113
+ * @throws {@link Payabli.ServiceUnavailableError}
114
+ *
115
+ * @example
116
+ * await client.payoutSubscription.updatePayoutSubscription(42, {
117
+ * setPause: true
118
+ * })
119
+ *
120
+ * @example
121
+ * await client.payoutSubscription.updatePayoutSubscription(42, {
122
+ * setPause: false
123
+ * })
124
+ *
125
+ * @example
126
+ * await client.payoutSubscription.updatePayoutSubscription(42, {
127
+ * paymentDetails: {
128
+ * serviceFee: 0,
129
+ * totalAmount: 750
130
+ * },
131
+ * scheduleDetails: {
132
+ * endDate: "12/31/2026",
133
+ * frequency: "monthly",
134
+ * startDate: "01/01/2026"
135
+ * }
136
+ * })
137
+ */
138
+ updatePayoutSubscription(id: number, request: Payabli.UpdatePayoutSubscriptionBody, requestOptions?: PayoutSubscriptionClient.RequestOptions): core.HttpResponsePromise<Payabli.UpdatePayoutSubscriptionResponse>;
139
+ private __updatePayoutSubscription;
140
+ /**
141
+ * Deletes a payout subscription and prevents future payouts. See [Manage payout subscriptions](/guides/pay-out-developer-payout-subscriptions-manage) for more information.
142
+ *
143
+ * @param {number} id - The payout subscription ID.
144
+ * @param {PayoutSubscriptionClient.RequestOptions} requestOptions - Request-specific configuration.
145
+ *
146
+ * @throws {@link Payabli.BadRequestError}
147
+ * @throws {@link Payabli.UnauthorizedError}
148
+ * @throws {@link Payabli.InternalServerError}
149
+ * @throws {@link Payabli.ServiceUnavailableError}
150
+ *
151
+ * @example
152
+ * await client.payoutSubscription.deletePayoutSubscription(42)
153
+ */
154
+ deletePayoutSubscription(id: number, requestOptions?: PayoutSubscriptionClient.RequestOptions): core.HttpResponsePromise<Payabli.DeletePayoutSubscriptionResponse>;
155
+ private __deletePayoutSubscription;
156
+ }