@payabli/sdk-node 0.0.134 → 0.0.136
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 +13 -13
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +6 -0
- package/dist/cjs/Client.js +52 -42
- package/dist/cjs/api/resources/ghostCard/client/Client.d.ts +67 -0
- package/dist/cjs/api/resources/ghostCard/client/Client.js +201 -0
- package/dist/cjs/api/resources/ghostCard/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/ghostCard/client/index.js +17 -0
- package/dist/cjs/api/resources/ghostCard/client/requests/CreateGhostCardRequestBody.d.ts +53 -0
- package/dist/cjs/api/resources/ghostCard/client/requests/CreateGhostCardRequestBody.js +3 -0
- package/dist/cjs/api/resources/ghostCard/client/requests/UpdateCardRequestBody.d.ts +14 -0
- package/dist/cjs/api/resources/ghostCard/client/requests/UpdateCardRequestBody.js +3 -0
- package/dist/cjs/api/resources/ghostCard/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/ghostCard/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/ghostCard/exports.d.ts +2 -0
- package/dist/cjs/api/resources/ghostCard/exports.js +21 -0
- package/dist/cjs/api/resources/ghostCard/index.d.ts +2 -0
- package/dist/cjs/api/resources/ghostCard/index.js +18 -0
- package/dist/cjs/api/resources/ghostCard/types/CardStatus.d.ts +8 -0
- package/dist/cjs/api/resources/ghostCard/types/CardStatus.js +11 -0
- package/dist/cjs/api/resources/ghostCard/types/CreateGhostCardResponse.d.ts +17 -0
- package/dist/cjs/api/resources/ghostCard/types/CreateGhostCardResponse.js +3 -0
- package/dist/cjs/api/resources/ghostCard/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/ghostCard/types/index.js +18 -0
- package/dist/cjs/api/resources/index.d.ts +6 -0
- package/dist/cjs/api/resources/index.js +7 -1
- package/dist/cjs/api/resources/payoutSubscription/client/Client.d.ts +156 -0
- package/dist/cjs/api/resources/payoutSubscription/client/Client.js +385 -0
- package/dist/cjs/api/resources/payoutSubscription/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/payoutSubscription/client/index.js +17 -0
- package/dist/cjs/api/resources/payoutSubscription/client/requests/RequestPayoutSchedule.d.ts +67 -0
- package/dist/cjs/api/resources/payoutSubscription/client/requests/RequestPayoutSchedule.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/payoutSubscription/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/payoutSubscription/exports.d.ts +2 -0
- package/dist/cjs/api/resources/payoutSubscription/exports.js +21 -0
- package/dist/cjs/api/resources/payoutSubscription/index.d.ts +2 -0
- package/dist/cjs/api/resources/payoutSubscription/index.js +18 -0
- package/dist/cjs/api/resources/payoutSubscription/types/AddPayoutSubscriptionResponse.d.ts +20 -0
- package/dist/cjs/api/resources/payoutSubscription/types/AddPayoutSubscriptionResponse.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/types/DeletePayoutSubscriptionResponse.d.ts +14 -0
- package/dist/cjs/api/resources/payoutSubscription/types/DeletePayoutSubscriptionResponse.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/types/GetPayoutSubscriptionResponse.d.ts +151 -0
- package/dist/cjs/api/resources/payoutSubscription/types/GetPayoutSubscriptionResponse.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutPaymentDetail.d.ts +31 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutPaymentDetail.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutScheduleDetail.d.ts +9 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutScheduleDetail.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutSetPause.d.ts +4 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutSetPause.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecord.d.ts +195 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecord.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecordPascal.d.ts +195 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecordPascal.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionRequestBody.d.ts +69 -0
- package/dist/cjs/api/resources/payoutSubscription/types/PayoutSubscriptionRequestBody.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/types/QueryPayoutSubscriptionResponse.d.ts +155 -0
- package/dist/cjs/api/resources/payoutSubscription/types/QueryPayoutSubscriptionResponse.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionBody.d.ts +9 -0
- package/dist/cjs/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionBody.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionResponse.d.ts +15 -0
- package/dist/cjs/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionResponse.js +3 -0
- package/dist/cjs/api/resources/payoutSubscription/types/index.d.ts +12 -0
- package/dist/cjs/api/resources/payoutSubscription/types/index.js +28 -0
- package/dist/cjs/api/resources/query/client/Client.d.ts +46 -6
- package/dist/cjs/api/resources/query/client/Client.js +150 -6
- package/dist/cjs/api/resources/query/client/requests/ListPayoutSubscriptionsOrgRequest.d.ts +84 -0
- package/dist/cjs/api/resources/query/client/requests/ListPayoutSubscriptionsOrgRequest.js +3 -0
- package/dist/cjs/api/resources/query/client/requests/ListPayoutSubscriptionsRequest.d.ts +84 -0
- package/dist/cjs/api/resources/query/client/requests/ListPayoutSubscriptionsRequest.js +3 -0
- package/dist/cjs/api/resources/query/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/types/NotificationStandardRequest.d.ts +0 -31
- package/dist/cjs/api/types/NotificationStandardRequest.js +0 -31
- package/dist/cjs/api/types/Remitaddress1.d.ts +1 -1
- package/dist/cjs/api/types/Remitaddress2.d.ts +1 -1
- package/dist/cjs/api/types/Remitcity.d.ts +1 -1
- package/dist/cjs/api/types/Remitcountry.d.ts +1 -1
- package/dist/cjs/api/types/Remitstate.d.ts +1 -1
- package/dist/cjs/api/types/Remitzip.d.ts +1 -1
- package/dist/cjs/api/types/VendorData.d.ts +6 -6
- package/dist/cjs/api/types/VendorEin.d.ts +1 -1
- package/dist/cjs/api/types/VendorName1.d.ts +1 -1
- package/dist/cjs/api/types/VendorName2.d.ts +1 -1
- package/dist/cjs/api/types/VendorNumber.d.ts +1 -1
- package/dist/cjs/api/types/VendorOutData.d.ts +9 -9
- package/dist/cjs/api/types/VendorQueryRecord.d.ts +1 -1
- package/dist/cjs/api/types/Vendorstatus.d.ts +5 -3
- package/dist/cjs/core/file/file.js +3 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +6 -0
- package/dist/esm/Client.mjs +10 -0
- package/dist/esm/api/resources/ghostCard/client/Client.d.mts +67 -0
- package/dist/esm/api/resources/ghostCard/client/Client.mjs +164 -0
- package/dist/esm/api/resources/ghostCard/client/index.d.mts +1 -0
- package/dist/esm/api/resources/ghostCard/client/index.mjs +1 -0
- package/dist/esm/api/resources/ghostCard/client/requests/CreateGhostCardRequestBody.d.mts +53 -0
- package/dist/esm/api/resources/ghostCard/client/requests/CreateGhostCardRequestBody.mjs +2 -0
- package/dist/esm/api/resources/ghostCard/client/requests/UpdateCardRequestBody.d.mts +14 -0
- package/dist/esm/api/resources/ghostCard/client/requests/UpdateCardRequestBody.mjs +2 -0
- package/dist/esm/api/resources/ghostCard/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/ghostCard/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/ghostCard/exports.d.mts +2 -0
- package/dist/esm/api/resources/ghostCard/exports.mjs +3 -0
- package/dist/esm/api/resources/ghostCard/index.d.mts +2 -0
- package/dist/esm/api/resources/ghostCard/index.mjs +2 -0
- package/dist/esm/api/resources/ghostCard/types/CardStatus.d.mts +8 -0
- package/dist/esm/api/resources/ghostCard/types/CardStatus.mjs +8 -0
- package/dist/esm/api/resources/ghostCard/types/CreateGhostCardResponse.d.mts +17 -0
- package/dist/esm/api/resources/ghostCard/types/CreateGhostCardResponse.mjs +2 -0
- package/dist/esm/api/resources/ghostCard/types/index.d.mts +2 -0
- package/dist/esm/api/resources/ghostCard/types/index.mjs +2 -0
- package/dist/esm/api/resources/index.d.mts +6 -0
- package/dist/esm/api/resources/index.mjs +6 -0
- package/dist/esm/api/resources/payoutSubscription/client/Client.d.mts +156 -0
- package/dist/esm/api/resources/payoutSubscription/client/Client.mjs +348 -0
- package/dist/esm/api/resources/payoutSubscription/client/index.d.mts +1 -0
- package/dist/esm/api/resources/payoutSubscription/client/index.mjs +1 -0
- package/dist/esm/api/resources/payoutSubscription/client/requests/RequestPayoutSchedule.d.mts +67 -0
- package/dist/esm/api/resources/payoutSubscription/client/requests/RequestPayoutSchedule.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/payoutSubscription/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/payoutSubscription/exports.d.mts +2 -0
- package/dist/esm/api/resources/payoutSubscription/exports.mjs +3 -0
- package/dist/esm/api/resources/payoutSubscription/index.d.mts +2 -0
- package/dist/esm/api/resources/payoutSubscription/index.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/AddPayoutSubscriptionResponse.d.mts +20 -0
- package/dist/esm/api/resources/payoutSubscription/types/AddPayoutSubscriptionResponse.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/DeletePayoutSubscriptionResponse.d.mts +14 -0
- package/dist/esm/api/resources/payoutSubscription/types/DeletePayoutSubscriptionResponse.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/GetPayoutSubscriptionResponse.d.mts +151 -0
- package/dist/esm/api/resources/payoutSubscription/types/GetPayoutSubscriptionResponse.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutPaymentDetail.d.mts +31 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutPaymentDetail.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutScheduleDetail.d.mts +9 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutScheduleDetail.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutSetPause.d.mts +4 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutSetPause.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecord.d.mts +195 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecord.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecordPascal.d.mts +195 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionQueryRecordPascal.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionRequestBody.d.mts +69 -0
- package/dist/esm/api/resources/payoutSubscription/types/PayoutSubscriptionRequestBody.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/QueryPayoutSubscriptionResponse.d.mts +155 -0
- package/dist/esm/api/resources/payoutSubscription/types/QueryPayoutSubscriptionResponse.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionBody.d.mts +9 -0
- package/dist/esm/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionBody.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionResponse.d.mts +15 -0
- package/dist/esm/api/resources/payoutSubscription/types/UpdatePayoutSubscriptionResponse.mjs +2 -0
- package/dist/esm/api/resources/payoutSubscription/types/index.d.mts +12 -0
- package/dist/esm/api/resources/payoutSubscription/types/index.mjs +12 -0
- package/dist/esm/api/resources/query/client/Client.d.mts +46 -6
- package/dist/esm/api/resources/query/client/Client.mjs +150 -6
- package/dist/esm/api/resources/query/client/requests/ListPayoutSubscriptionsOrgRequest.d.mts +84 -0
- package/dist/esm/api/resources/query/client/requests/ListPayoutSubscriptionsOrgRequest.mjs +2 -0
- package/dist/esm/api/resources/query/client/requests/ListPayoutSubscriptionsRequest.d.mts +84 -0
- package/dist/esm/api/resources/query/client/requests/ListPayoutSubscriptionsRequest.mjs +2 -0
- package/dist/esm/api/resources/query/client/requests/index.d.mts +2 -0
- package/dist/esm/api/types/NotificationStandardRequest.d.mts +0 -31
- package/dist/esm/api/types/NotificationStandardRequest.mjs +0 -31
- package/dist/esm/api/types/Remitaddress1.d.mts +1 -1
- package/dist/esm/api/types/Remitaddress2.d.mts +1 -1
- package/dist/esm/api/types/Remitcity.d.mts +1 -1
- package/dist/esm/api/types/Remitcountry.d.mts +1 -1
- package/dist/esm/api/types/Remitstate.d.mts +1 -1
- package/dist/esm/api/types/Remitzip.d.mts +1 -1
- package/dist/esm/api/types/VendorData.d.mts +6 -6
- package/dist/esm/api/types/VendorEin.d.mts +1 -1
- package/dist/esm/api/types/VendorName1.d.mts +1 -1
- package/dist/esm/api/types/VendorName2.d.mts +1 -1
- package/dist/esm/api/types/VendorNumber.d.mts +1 -1
- package/dist/esm/api/types/VendorOutData.d.mts +9 -9
- package/dist/esm/api/types/VendorQueryRecord.d.mts +1 -1
- package/dist/esm/api/types/Vendorstatus.d.mts +5 -3
- package/dist/esm/core/file/file.mjs +3 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +29 -7
- package/reference.md +682 -78
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
12
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
13
|
+
import * as core from "../../../../core/index.mjs";
|
|
14
|
+
import * as environments from "../../../../environments.mjs";
|
|
15
|
+
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
|
|
16
|
+
import * as errors from "../../../../errors/index.mjs";
|
|
17
|
+
import * as Payabli from "../../../index.mjs";
|
|
18
|
+
export class PayoutSubscriptionClient {
|
|
19
|
+
constructor(options = {}) {
|
|
20
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* 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.
|
|
24
|
+
*
|
|
25
|
+
* @param {Payabli.RequestPayoutSchedule} request
|
|
26
|
+
* @param {PayoutSubscriptionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link Payabli.BadRequestError}
|
|
29
|
+
* @throws {@link Payabli.UnauthorizedError}
|
|
30
|
+
* @throws {@link Payabli.InternalServerError}
|
|
31
|
+
* @throws {@link Payabli.ServiceUnavailableError}
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* await client.payoutSubscription.createPayoutSubscription({
|
|
35
|
+
* body: {
|
|
36
|
+
* entryPoint: "d193cf9a46",
|
|
37
|
+
* paymentMethod: {
|
|
38
|
+
* method: "ach",
|
|
39
|
+
* achHolder: "Herman Coatings",
|
|
40
|
+
* achRouting: "021000021",
|
|
41
|
+
* achAccount: "3453445666",
|
|
42
|
+
* achAccountType: "checking"
|
|
43
|
+
* },
|
|
44
|
+
* paymentDetails: {
|
|
45
|
+
* totalAmount: 500,
|
|
46
|
+
* serviceFee: 0,
|
|
47
|
+
* currency: "USD"
|
|
48
|
+
* },
|
|
49
|
+
* vendorData: {
|
|
50
|
+
* vendorId: 1501
|
|
51
|
+
* },
|
|
52
|
+
* billData: [{
|
|
53
|
+
* invoiceNumber: "INV-5001",
|
|
54
|
+
* netAmount: "500",
|
|
55
|
+
* invoiceDate: "2025-08-01",
|
|
56
|
+
* dueDate: "2025-08-15"
|
|
57
|
+
* }],
|
|
58
|
+
* scheduleDetails: {
|
|
59
|
+
* startDate: "09/01/2025",
|
|
60
|
+
* endDate: "09/01/2026",
|
|
61
|
+
* frequency: "monthly"
|
|
62
|
+
* }
|
|
63
|
+
* }
|
|
64
|
+
* })
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* await client.payoutSubscription.createPayoutSubscription({
|
|
68
|
+
* body: {
|
|
69
|
+
* entryPoint: "d193cf9a46",
|
|
70
|
+
* paymentMethod: {
|
|
71
|
+
* method: "vcard"
|
|
72
|
+
* },
|
|
73
|
+
* paymentDetails: {
|
|
74
|
+
* totalAmount: 250,
|
|
75
|
+
* serviceFee: 0
|
|
76
|
+
* },
|
|
77
|
+
* vendorData: {
|
|
78
|
+
* vendorId: 1501
|
|
79
|
+
* },
|
|
80
|
+
* billData: [{
|
|
81
|
+
* invoiceNumber: "INV-7820",
|
|
82
|
+
* netAmount: "250",
|
|
83
|
+
* invoiceDate: "2025-08-15",
|
|
84
|
+
* dueDate: "2025-09-01"
|
|
85
|
+
* }],
|
|
86
|
+
* scheduleDetails: {
|
|
87
|
+
* startDate: "09/01/2025",
|
|
88
|
+
* frequency: "weekly",
|
|
89
|
+
* endDate: "untilcancelled"
|
|
90
|
+
* }
|
|
91
|
+
* }
|
|
92
|
+
* })
|
|
93
|
+
*/
|
|
94
|
+
createPayoutSubscription(request, requestOptions) {
|
|
95
|
+
return core.HttpResponsePromise.fromPromise(this.__createPayoutSubscription(request, requestOptions));
|
|
96
|
+
}
|
|
97
|
+
__createPayoutSubscription(request, requestOptions) {
|
|
98
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
100
|
+
const { idempotencyKey, body: _body } = request;
|
|
101
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
102
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ idempotencyKey: idempotencyKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
103
|
+
const _response = yield core.fetcher({
|
|
104
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, "PayoutSubscription"),
|
|
105
|
+
method: "POST",
|
|
106
|
+
headers: _headers,
|
|
107
|
+
contentType: "application/json",
|
|
108
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
109
|
+
requestType: "json",
|
|
110
|
+
body: _body,
|
|
111
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
112
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
113
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
114
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
115
|
+
logging: this._options.logging,
|
|
116
|
+
});
|
|
117
|
+
if (_response.ok) {
|
|
118
|
+
return {
|
|
119
|
+
data: _response.body,
|
|
120
|
+
rawResponse: _response.rawResponse,
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
if (_response.error.reason === "status-code") {
|
|
124
|
+
switch (_response.error.statusCode) {
|
|
125
|
+
case 400:
|
|
126
|
+
throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
|
|
127
|
+
case 401:
|
|
128
|
+
throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
129
|
+
case 500:
|
|
130
|
+
throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
|
|
131
|
+
case 503:
|
|
132
|
+
throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
133
|
+
default:
|
|
134
|
+
throw new errors.PayabliError({
|
|
135
|
+
statusCode: _response.error.statusCode,
|
|
136
|
+
body: _response.error.body,
|
|
137
|
+
rawResponse: _response.rawResponse,
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/PayoutSubscription");
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Retrieves a single payout subscription's details. See [Manage payout subscriptions](/guides/pay-out-developer-payout-subscriptions-manage) for more information.
|
|
146
|
+
*
|
|
147
|
+
* @param {number} id - The payout subscription ID.
|
|
148
|
+
* @param {PayoutSubscriptionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
149
|
+
*
|
|
150
|
+
* @throws {@link Payabli.BadRequestError}
|
|
151
|
+
* @throws {@link Payabli.UnauthorizedError}
|
|
152
|
+
* @throws {@link Payabli.InternalServerError}
|
|
153
|
+
* @throws {@link Payabli.ServiceUnavailableError}
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* await client.payoutSubscription.getPayoutSubscription(42)
|
|
157
|
+
*/
|
|
158
|
+
getPayoutSubscription(id, requestOptions) {
|
|
159
|
+
return core.HttpResponsePromise.fromPromise(this.__getPayoutSubscription(id, requestOptions));
|
|
160
|
+
}
|
|
161
|
+
__getPayoutSubscription(id, requestOptions) {
|
|
162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
164
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
165
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
166
|
+
const _response = yield core.fetcher({
|
|
167
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `PayoutSubscription/${core.url.encodePathParam(id)}`),
|
|
168
|
+
method: "GET",
|
|
169
|
+
headers: _headers,
|
|
170
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
171
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
172
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
173
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
174
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
175
|
+
logging: this._options.logging,
|
|
176
|
+
});
|
|
177
|
+
if (_response.ok) {
|
|
178
|
+
return {
|
|
179
|
+
data: _response.body,
|
|
180
|
+
rawResponse: _response.rawResponse,
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
if (_response.error.reason === "status-code") {
|
|
184
|
+
switch (_response.error.statusCode) {
|
|
185
|
+
case 400:
|
|
186
|
+
throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
|
|
187
|
+
case 401:
|
|
188
|
+
throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
189
|
+
case 500:
|
|
190
|
+
throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
|
|
191
|
+
case 503:
|
|
192
|
+
throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
193
|
+
default:
|
|
194
|
+
throw new errors.PayabliError({
|
|
195
|
+
statusCode: _response.error.statusCode,
|
|
196
|
+
body: _response.error.body,
|
|
197
|
+
rawResponse: _response.rawResponse,
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/PayoutSubscription/{id}");
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Updates a payout subscription's details. See [Manage payout subscriptions](/guides/pay-out-developer-payout-subscriptions-manage) for more information.
|
|
206
|
+
*
|
|
207
|
+
* @param {number} id - The payout subscription ID.
|
|
208
|
+
* @param {Payabli.UpdatePayoutSubscriptionBody} request
|
|
209
|
+
* @param {PayoutSubscriptionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
210
|
+
*
|
|
211
|
+
* @throws {@link Payabli.BadRequestError}
|
|
212
|
+
* @throws {@link Payabli.UnauthorizedError}
|
|
213
|
+
* @throws {@link Payabli.InternalServerError}
|
|
214
|
+
* @throws {@link Payabli.ServiceUnavailableError}
|
|
215
|
+
*
|
|
216
|
+
* @example
|
|
217
|
+
* await client.payoutSubscription.updatePayoutSubscription(42, {
|
|
218
|
+
* setPause: true
|
|
219
|
+
* })
|
|
220
|
+
*
|
|
221
|
+
* @example
|
|
222
|
+
* await client.payoutSubscription.updatePayoutSubscription(42, {
|
|
223
|
+
* setPause: false
|
|
224
|
+
* })
|
|
225
|
+
*
|
|
226
|
+
* @example
|
|
227
|
+
* await client.payoutSubscription.updatePayoutSubscription(42, {
|
|
228
|
+
* paymentDetails: {
|
|
229
|
+
* serviceFee: 0,
|
|
230
|
+
* totalAmount: 750
|
|
231
|
+
* },
|
|
232
|
+
* scheduleDetails: {
|
|
233
|
+
* endDate: "12/31/2026",
|
|
234
|
+
* frequency: "monthly",
|
|
235
|
+
* startDate: "01/01/2026"
|
|
236
|
+
* }
|
|
237
|
+
* })
|
|
238
|
+
*/
|
|
239
|
+
updatePayoutSubscription(id, request, requestOptions) {
|
|
240
|
+
return core.HttpResponsePromise.fromPromise(this.__updatePayoutSubscription(id, request, requestOptions));
|
|
241
|
+
}
|
|
242
|
+
__updatePayoutSubscription(id, request, requestOptions) {
|
|
243
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
244
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
245
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
246
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
247
|
+
const _response = yield core.fetcher({
|
|
248
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `PayoutSubscription/${core.url.encodePathParam(id)}`),
|
|
249
|
+
method: "PUT",
|
|
250
|
+
headers: _headers,
|
|
251
|
+
contentType: "application/json",
|
|
252
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
253
|
+
requestType: "json",
|
|
254
|
+
body: request,
|
|
255
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
256
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
257
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
258
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
259
|
+
logging: this._options.logging,
|
|
260
|
+
});
|
|
261
|
+
if (_response.ok) {
|
|
262
|
+
return {
|
|
263
|
+
data: _response.body,
|
|
264
|
+
rawResponse: _response.rawResponse,
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
if (_response.error.reason === "status-code") {
|
|
268
|
+
switch (_response.error.statusCode) {
|
|
269
|
+
case 400:
|
|
270
|
+
throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
|
|
271
|
+
case 401:
|
|
272
|
+
throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
273
|
+
case 500:
|
|
274
|
+
throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
|
|
275
|
+
case 503:
|
|
276
|
+
throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
277
|
+
default:
|
|
278
|
+
throw new errors.PayabliError({
|
|
279
|
+
statusCode: _response.error.statusCode,
|
|
280
|
+
body: _response.error.body,
|
|
281
|
+
rawResponse: _response.rawResponse,
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/PayoutSubscription/{id}");
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Deletes a payout subscription and prevents future payouts. See [Manage payout subscriptions](/guides/pay-out-developer-payout-subscriptions-manage) for more information.
|
|
290
|
+
*
|
|
291
|
+
* @param {number} id - The payout subscription ID.
|
|
292
|
+
* @param {PayoutSubscriptionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
293
|
+
*
|
|
294
|
+
* @throws {@link Payabli.BadRequestError}
|
|
295
|
+
* @throws {@link Payabli.UnauthorizedError}
|
|
296
|
+
* @throws {@link Payabli.InternalServerError}
|
|
297
|
+
* @throws {@link Payabli.ServiceUnavailableError}
|
|
298
|
+
*
|
|
299
|
+
* @example
|
|
300
|
+
* await client.payoutSubscription.deletePayoutSubscription(42)
|
|
301
|
+
*/
|
|
302
|
+
deletePayoutSubscription(id, requestOptions) {
|
|
303
|
+
return core.HttpResponsePromise.fromPromise(this.__deletePayoutSubscription(id, requestOptions));
|
|
304
|
+
}
|
|
305
|
+
__deletePayoutSubscription(id, requestOptions) {
|
|
306
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
307
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
308
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
309
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
310
|
+
const _response = yield core.fetcher({
|
|
311
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `PayoutSubscription/${core.url.encodePathParam(id)}`),
|
|
312
|
+
method: "DELETE",
|
|
313
|
+
headers: _headers,
|
|
314
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
315
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
316
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
317
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
318
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
319
|
+
logging: this._options.logging,
|
|
320
|
+
});
|
|
321
|
+
if (_response.ok) {
|
|
322
|
+
return {
|
|
323
|
+
data: _response.body,
|
|
324
|
+
rawResponse: _response.rawResponse,
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
if (_response.error.reason === "status-code") {
|
|
328
|
+
switch (_response.error.statusCode) {
|
|
329
|
+
case 400:
|
|
330
|
+
throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
|
|
331
|
+
case 401:
|
|
332
|
+
throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
333
|
+
case 500:
|
|
334
|
+
throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
|
|
335
|
+
case 503:
|
|
336
|
+
throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
337
|
+
default:
|
|
338
|
+
throw new errors.PayabliError({
|
|
339
|
+
statusCode: _response.error.statusCode,
|
|
340
|
+
body: _response.error.body,
|
|
341
|
+
rawResponse: _response.rawResponse,
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/PayoutSubscription/{id}");
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type * as Payabli from "../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* body: {
|
|
6
|
+
* entryPoint: "d193cf9a46",
|
|
7
|
+
* paymentMethod: {
|
|
8
|
+
* method: "ach",
|
|
9
|
+
* achHolder: "Herman Coatings",
|
|
10
|
+
* achRouting: "021000021",
|
|
11
|
+
* achAccount: "3453445666",
|
|
12
|
+
* achAccountType: "checking"
|
|
13
|
+
* },
|
|
14
|
+
* paymentDetails: {
|
|
15
|
+
* totalAmount: 500,
|
|
16
|
+
* serviceFee: 0,
|
|
17
|
+
* currency: "USD"
|
|
18
|
+
* },
|
|
19
|
+
* vendorData: {
|
|
20
|
+
* vendorId: 1501
|
|
21
|
+
* },
|
|
22
|
+
* billData: [{
|
|
23
|
+
* invoiceNumber: "INV-5001",
|
|
24
|
+
* netAmount: "500",
|
|
25
|
+
* invoiceDate: "2025-08-01",
|
|
26
|
+
* dueDate: "2025-08-15"
|
|
27
|
+
* }],
|
|
28
|
+
* scheduleDetails: {
|
|
29
|
+
* startDate: "09/01/2025",
|
|
30
|
+
* endDate: "09/01/2026",
|
|
31
|
+
* frequency: "monthly"
|
|
32
|
+
* }
|
|
33
|
+
* }
|
|
34
|
+
* }
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* {
|
|
38
|
+
* body: {
|
|
39
|
+
* entryPoint: "d193cf9a46",
|
|
40
|
+
* paymentMethod: {
|
|
41
|
+
* method: "vcard"
|
|
42
|
+
* },
|
|
43
|
+
* paymentDetails: {
|
|
44
|
+
* totalAmount: 250,
|
|
45
|
+
* serviceFee: 0
|
|
46
|
+
* },
|
|
47
|
+
* vendorData: {
|
|
48
|
+
* vendorId: 1501
|
|
49
|
+
* },
|
|
50
|
+
* billData: [{
|
|
51
|
+
* invoiceNumber: "INV-7820",
|
|
52
|
+
* netAmount: "250",
|
|
53
|
+
* invoiceDate: "2025-08-15",
|
|
54
|
+
* dueDate: "2025-09-01"
|
|
55
|
+
* }],
|
|
56
|
+
* scheduleDetails: {
|
|
57
|
+
* startDate: "09/01/2025",
|
|
58
|
+
* frequency: "weekly",
|
|
59
|
+
* endDate: "untilcancelled"
|
|
60
|
+
* }
|
|
61
|
+
* }
|
|
62
|
+
* }
|
|
63
|
+
*/
|
|
64
|
+
export interface RequestPayoutSchedule {
|
|
65
|
+
idempotencyKey?: Payabli.IdempotencyKey;
|
|
66
|
+
body: Payabli.PayoutSubscriptionRequestBody;
|
|
67
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { RequestPayoutSchedule } from "./RequestPayoutSchedule.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as Payabli from "../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Success response
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* responseText: "Success",
|
|
8
|
+
* isSuccess: true,
|
|
9
|
+
* responseData: 42,
|
|
10
|
+
* customerId: 1501
|
|
11
|
+
* }
|
|
12
|
+
*/
|
|
13
|
+
export interface AddPayoutSubscriptionResponse {
|
|
14
|
+
isSuccess?: Payabli.IsSuccess | undefined;
|
|
15
|
+
responseText: Payabli.ResponseText;
|
|
16
|
+
/** The identifier of the newly created payout subscription. */
|
|
17
|
+
responseData: number;
|
|
18
|
+
/** The identifier of the vendor associated with the payout subscription. */
|
|
19
|
+
customerId?: Payabli.CustomerId | undefined;
|
|
20
|
+
}
|
package/dist/esm/api/resources/payoutSubscription/types/DeletePayoutSubscriptionResponse.d.mts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as Payabli from "../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Success response
|
|
4
|
+
*/
|
|
5
|
+
export interface DeletePayoutSubscriptionResponse {
|
|
6
|
+
isSuccess?: Payabli.IsSuccess | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* If `isSuccess` = true, this contains the identifier of the payout subscription.
|
|
9
|
+
*
|
|
10
|
+
* If `isSuccess` = false, this contains the reason for the failure.
|
|
11
|
+
*/
|
|
12
|
+
responseData?: string | undefined;
|
|
13
|
+
responseText: Payabli.ResponseText;
|
|
14
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import type * as Payabli from "../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Success response
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* responseText: "Success",
|
|
8
|
+
* isSuccess: true,
|
|
9
|
+
* responseData: {
|
|
10
|
+
* idOutSubscription: 42,
|
|
11
|
+
* status: 1,
|
|
12
|
+
* events: [{
|
|
13
|
+
* description: "TransferCreated",
|
|
14
|
+
* eventTime: "2025-09-01T06:00:00Z",
|
|
15
|
+
* extraData: {
|
|
16
|
+
* "key": "value"
|
|
17
|
+
* },
|
|
18
|
+
* refData: "refData",
|
|
19
|
+
* source: "api"
|
|
20
|
+
* }],
|
|
21
|
+
* vendor: {
|
|
22
|
+
* VendorNumber: "1234",
|
|
23
|
+
* Name1: "Herman's Coatings",
|
|
24
|
+
* Name2: "Herman's Coating Supply Company, LLC",
|
|
25
|
+
* EIN: "123456789",
|
|
26
|
+
* Phone: "2125551234",
|
|
27
|
+
* Email: "example@email.com",
|
|
28
|
+
* Address1: "123 Ocean Drive",
|
|
29
|
+
* Address2: "Suite 400",
|
|
30
|
+
* City: "Bristol",
|
|
31
|
+
* State: "GA",
|
|
32
|
+
* Zip: "31113",
|
|
33
|
+
* Country: "US",
|
|
34
|
+
* Mcc: "7777",
|
|
35
|
+
* LocationCode: "LOC123",
|
|
36
|
+
* Contacts: {
|
|
37
|
+
* ContactEmail: "eric@martinezcoatings.com",
|
|
38
|
+
* ContactName: "Eric Martinez",
|
|
39
|
+
* ContactPhone: "5555555555",
|
|
40
|
+
* ContactTitle: "Owner"
|
|
41
|
+
* },
|
|
42
|
+
* BillingData: {
|
|
43
|
+
* id: 123456,
|
|
44
|
+
* accountId: "bank-account-001",
|
|
45
|
+
* nickname: "Main Checking Account",
|
|
46
|
+
* bankName: "Example Bank",
|
|
47
|
+
* routingAccount: "123456789",
|
|
48
|
+
* accountNumber: "9876543210",
|
|
49
|
+
* typeAccount: Payabli.TypeAccount.Checking,
|
|
50
|
+
* bankAccountHolderName: "John Doe",
|
|
51
|
+
* bankAccountHolderType: Payabli.BankAccountHolderType.Business,
|
|
52
|
+
* bankAccountFunction: 2,
|
|
53
|
+
* verified: true,
|
|
54
|
+
* status: 1,
|
|
55
|
+
* services: [],
|
|
56
|
+
* "default": true
|
|
57
|
+
* },
|
|
58
|
+
* VendorStatus: 1,
|
|
59
|
+
* VendorId: 1,
|
|
60
|
+
* Summary: {
|
|
61
|
+
* ActiveBills: 2,
|
|
62
|
+
* PendingBills: 4,
|
|
63
|
+
* InTransitBills: 3,
|
|
64
|
+
* PaidBills: 18,
|
|
65
|
+
* OverdueBills: 1,
|
|
66
|
+
* ApprovedBills: 5,
|
|
67
|
+
* DisapprovedBills: 1,
|
|
68
|
+
* TotalBills: 34,
|
|
69
|
+
* ActiveBillsAmount: 1250.75,
|
|
70
|
+
* PendingBillsAmount: 2890.5,
|
|
71
|
+
* InTransitBillsAmount: 1675.25,
|
|
72
|
+
* PaidBillsAmount: 15420.8,
|
|
73
|
+
* OverdueBillsAmount: 425,
|
|
74
|
+
* ApprovedBillsAmount: 3240.9,
|
|
75
|
+
* DisapprovedBillsAmount: 180,
|
|
76
|
+
* TotalBillsAmount: 25083.2
|
|
77
|
+
* },
|
|
78
|
+
* PaypointLegalname: "Sunshine Services, LLC",
|
|
79
|
+
* PaypointDbaname: "Sunshine Gutters",
|
|
80
|
+
* PaypointEntryname: "d193cf9a46",
|
|
81
|
+
* ParentOrgName: "PropertyManager Pro",
|
|
82
|
+
* ParentOrgId: 1000,
|
|
83
|
+
* CreatedDate: "2022-07-01T15:00:01Z",
|
|
84
|
+
* LastUpdated: "2022-07-01T15:00:01Z",
|
|
85
|
+
* remitAddress1: "123 Walnut Street",
|
|
86
|
+
* remitAddress2: "Suite 900",
|
|
87
|
+
* remitCity: "Miami",
|
|
88
|
+
* remitState: "FL",
|
|
89
|
+
* remitZip: "31113",
|
|
90
|
+
* remitCountry: "US",
|
|
91
|
+
* payeeName1: "payeeName1",
|
|
92
|
+
* payeeName2: "payeeName2",
|
|
93
|
+
* customField1: "",
|
|
94
|
+
* customField2: "",
|
|
95
|
+
* customerVendorAccount: "123-456",
|
|
96
|
+
* InternalReferenceId: 1000000,
|
|
97
|
+
* externalPaypointID: "Paypoint-100",
|
|
98
|
+
* StoredMethods: []
|
|
99
|
+
* },
|
|
100
|
+
* billData: [{
|
|
101
|
+
* billId: 3001,
|
|
102
|
+
* invoiceNumber: "INV-5001",
|
|
103
|
+
* netAmount: "500",
|
|
104
|
+
* invoiceDate: "2025-08-01",
|
|
105
|
+
* dueDate: "2025-08-15"
|
|
106
|
+
* }],
|
|
107
|
+
* externalPaypointID: "d193cf9a46-10",
|
|
108
|
+
* method: "ach",
|
|
109
|
+
* paypointId: 255,
|
|
110
|
+
* totalAmount: 500,
|
|
111
|
+
* netAmount: 500,
|
|
112
|
+
* feeAmount: 0,
|
|
113
|
+
* paymentData: {
|
|
114
|
+
* AccountType: "checking",
|
|
115
|
+
* HolderName: "Herman Coatings",
|
|
116
|
+
* Initiator: "merchant",
|
|
117
|
+
* MaskedAccount: "XXXXXX5666",
|
|
118
|
+
* paymentDetails: {
|
|
119
|
+
* currency: "USD",
|
|
120
|
+
* serviceFee: 0,
|
|
121
|
+
* totalAmount: 500
|
|
122
|
+
* },
|
|
123
|
+
* Sequence: "subsequent",
|
|
124
|
+
* StoredMethodUsageType: "recurring"
|
|
125
|
+
* },
|
|
126
|
+
* startDate: "2025-09-01T00:00:00Z",
|
|
127
|
+
* endDate: "2026-09-01T00:00:00Z",
|
|
128
|
+
* nextDate: "2025-10-01T00:00:00Z",
|
|
129
|
+
* frequency: "monthly",
|
|
130
|
+
* totalCycles: 12,
|
|
131
|
+
* leftCycles: 11,
|
|
132
|
+
* lastRun: "2025-09-01T06:00:00Z",
|
|
133
|
+
* entrypageId: 0,
|
|
134
|
+
* untilCancelled: false,
|
|
135
|
+
* lastUpdated: "2025-08-01T12:00:00Z",
|
|
136
|
+
* createdAt: "2025-08-01T12:00:00Z",
|
|
137
|
+
* paypointLegalname: "Sunshine Services, LLC",
|
|
138
|
+
* paypointDbaname: "Sunshine Gutters",
|
|
139
|
+
* paypointEntryname: "d193cf9a46",
|
|
140
|
+
* parentOrgName: "PropertyManager Pro",
|
|
141
|
+
* parentOrgId: 236,
|
|
142
|
+
* source: "api"
|
|
143
|
+
* }
|
|
144
|
+
* }
|
|
145
|
+
*/
|
|
146
|
+
export interface GetPayoutSubscriptionResponse {
|
|
147
|
+
isSuccess?: Payabli.IsSuccess | undefined;
|
|
148
|
+
responseText: Payabli.ResponseText;
|
|
149
|
+
/** The payout subscription record. */
|
|
150
|
+
responseData?: Payabli.PayoutSubscriptionQueryRecord | undefined;
|
|
151
|
+
}
|