@payabli/sdk-node 0.0.144 → 0.0.145
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 +10 -2
- package/dist/cjs/BaseClient.d.ts +3 -0
- package/dist/cjs/BaseClient.js +17 -2
- package/dist/cjs/api/resources/bill/client/Client.js +35 -11
- package/dist/cjs/api/resources/boarding/client/Client.js +25 -13
- package/dist/cjs/api/resources/chargeBacks/client/Client.js +3 -3
- package/dist/cjs/api/resources/checkCapture/client/Client.js +1 -1
- package/dist/cjs/api/resources/cloud/client/Client.js +8 -4
- package/dist/cjs/api/resources/customer/client/Client.js +10 -6
- package/dist/cjs/api/resources/export/client/Client.js +145 -29
- package/dist/cjs/api/resources/ghostCard/client/Client.js +2 -2
- package/dist/cjs/api/resources/hostedPaymentPages/client/Client.js +3 -3
- package/dist/cjs/api/resources/import/client/Client.js +7 -3
- package/dist/cjs/api/resources/invoice/client/Client.js +35 -11
- package/dist/cjs/api/resources/lineItem/client/Client.js +9 -5
- package/dist/cjs/api/resources/management/client/Client.js +1 -1
- package/dist/cjs/api/resources/moneyIn/client/Client.js +43 -19
- package/dist/cjs/api/resources/moneyOut/client/Client.js +20 -12
- package/dist/cjs/api/resources/notification/client/Client.js +5 -5
- package/dist/cjs/api/resources/notificationlogs/client/Client.js +8 -4
- package/dist/cjs/api/resources/ocr/client/Client.js +2 -2
- package/dist/cjs/api/resources/organization/client/Client.js +7 -7
- package/dist/cjs/api/resources/paymentLink/client/Client.js +31 -11
- package/dist/cjs/api/resources/paymentMethodDomain/client/Client.js +11 -7
- package/dist/cjs/api/resources/payoutSubscription/client/Client.js +4 -4
- package/dist/cjs/api/resources/paypoint/client/Client.js +12 -8
- package/dist/cjs/api/resources/query/client/Client.d.ts +58 -0
- package/dist/cjs/api/resources/query/client/Client.js +368 -40
- package/dist/cjs/api/resources/query/client/requests/ListSubscriptionsOrgRequest.d.ts +1 -0
- package/dist/cjs/api/resources/query/client/requests/ListSubscriptionsRequest.d.ts +1 -0
- package/dist/cjs/api/resources/query/client/requests/ListTransactionsOrgRequest.d.ts +9 -0
- package/dist/cjs/api/resources/query/client/requests/ListTransactionsRequest.d.ts +9 -0
- package/dist/cjs/api/resources/query/client/requests/ListVcardsOrgRequest.d.ts +8 -6
- package/dist/cjs/api/resources/query/client/requests/ListVcardsRequest.d.ts +8 -6
- package/dist/cjs/api/resources/query/client/requests/ListVcardsTransactionsOrgRequest.d.ts +72 -0
- package/dist/cjs/api/resources/query/client/requests/ListVcardsTransactionsOrgRequest.js +3 -0
- package/dist/cjs/api/resources/query/client/requests/ListVcardsTransactionsRequest.d.ts +72 -0
- package/dist/cjs/api/resources/query/client/requests/ListVcardsTransactionsRequest.js +3 -0
- package/dist/cjs/api/resources/query/client/requests/ListVendorsOrgRequest.d.ts +1 -0
- package/dist/cjs/api/resources/query/client/requests/ListVendorsRequest.d.ts +1 -0
- package/dist/cjs/api/resources/query/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/queryTypes/types/QueryTransferDetailResponse.d.ts +2 -0
- package/dist/cjs/api/resources/queryTypes/types/QueryTransferSummary.d.ts +2 -0
- package/dist/cjs/api/resources/queryTypes/types/VCardTransactionQueryResponse.d.ts +49 -0
- package/dist/cjs/api/resources/queryTypes/types/VCardTransactionQueryResponse.js +3 -0
- package/dist/cjs/api/resources/queryTypes/types/VCardTransactionRecord.d.ts +86 -0
- package/dist/cjs/api/resources/queryTypes/types/VCardTransactionRecord.js +3 -0
- package/dist/cjs/api/resources/queryTypes/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/queryTypes/types/index.js +2 -0
- package/dist/cjs/api/resources/statistic/client/Client.js +20 -4
- package/dist/cjs/api/resources/subscription/client/Client.js +8 -4
- package/dist/cjs/api/resources/templates/client/Client.js +8 -4
- package/dist/cjs/api/resources/tokenStorage/client/Client.js +16 -4
- package/dist/cjs/api/resources/user/client/Client.js +16 -12
- package/dist/cjs/api/resources/vendor/client/Client.js +5 -5
- package/dist/cjs/api/resources/wallet/client/Client.js +4 -4
- package/dist/cjs/api/types/CustomerQueryRecords.d.ts +2 -0
- package/dist/cjs/api/types/QueryResponseTransactions.d.ts +74 -0
- package/dist/cjs/api/types/SplitCount.d.ts +4 -0
- package/dist/cjs/api/types/SplitCount.js +3 -0
- package/dist/cjs/api/types/SubscriptionQueryRecords.d.ts +10 -0
- package/dist/cjs/api/types/TransactionQueryRecords.d.ts +1 -0
- package/dist/cjs/api/types/TransactionQueryRecordsCustomer.d.ts +1 -0
- package/dist/cjs/api/types/VCardSummary.d.ts +4 -2
- package/dist/cjs/api/types/VendorResponseStoredMethod.d.ts +2 -1
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -0
- package/dist/cjs/core/auth/AuthProvider.d.ts +1 -0
- package/dist/cjs/core/auth/AuthProvider.js +7 -0
- package/dist/cjs/core/auth/index.d.ts +1 -1
- package/dist/cjs/core/auth/index.js +3 -1
- package/dist/cjs/core/fetcher/Fetcher.d.ts +6 -0
- package/dist/cjs/core/fetcher/Fetcher.js +9 -8
- package/dist/cjs/core/fetcher/requestWithRetries.js +4 -1
- package/dist/cjs/core/url/QueryStringBuilder.d.ts +47 -0
- package/dist/cjs/core/url/QueryStringBuilder.js +83 -0
- package/dist/cjs/core/url/index.d.ts +1 -0
- package/dist/cjs/core/url/index.js +3 -1
- package/dist/cjs/core/url/qs.d.ts +2 -1
- package/dist/cjs/core/url/qs.js +24 -12
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +3 -0
- package/dist/esm/BaseClient.mjs +17 -2
- package/dist/esm/api/resources/bill/client/Client.mjs +35 -11
- package/dist/esm/api/resources/boarding/client/Client.mjs +25 -13
- package/dist/esm/api/resources/chargeBacks/client/Client.mjs +3 -3
- package/dist/esm/api/resources/checkCapture/client/Client.mjs +1 -1
- package/dist/esm/api/resources/cloud/client/Client.mjs +8 -4
- package/dist/esm/api/resources/customer/client/Client.mjs +10 -6
- package/dist/esm/api/resources/export/client/Client.mjs +145 -29
- package/dist/esm/api/resources/ghostCard/client/Client.mjs +2 -2
- package/dist/esm/api/resources/hostedPaymentPages/client/Client.mjs +3 -3
- package/dist/esm/api/resources/import/client/Client.mjs +7 -3
- package/dist/esm/api/resources/invoice/client/Client.mjs +35 -11
- package/dist/esm/api/resources/lineItem/client/Client.mjs +9 -5
- package/dist/esm/api/resources/management/client/Client.mjs +1 -1
- package/dist/esm/api/resources/moneyIn/client/Client.mjs +43 -19
- package/dist/esm/api/resources/moneyOut/client/Client.mjs +20 -12
- package/dist/esm/api/resources/notification/client/Client.mjs +5 -5
- package/dist/esm/api/resources/notificationlogs/client/Client.mjs +8 -4
- package/dist/esm/api/resources/ocr/client/Client.mjs +2 -2
- package/dist/esm/api/resources/organization/client/Client.mjs +7 -7
- package/dist/esm/api/resources/paymentLink/client/Client.mjs +31 -11
- package/dist/esm/api/resources/paymentMethodDomain/client/Client.mjs +11 -7
- package/dist/esm/api/resources/payoutSubscription/client/Client.mjs +4 -4
- package/dist/esm/api/resources/paypoint/client/Client.mjs +12 -8
- package/dist/esm/api/resources/query/client/Client.d.mts +58 -0
- package/dist/esm/api/resources/query/client/Client.mjs +368 -40
- package/dist/esm/api/resources/query/client/requests/ListSubscriptionsOrgRequest.d.mts +1 -0
- package/dist/esm/api/resources/query/client/requests/ListSubscriptionsRequest.d.mts +1 -0
- package/dist/esm/api/resources/query/client/requests/ListTransactionsOrgRequest.d.mts +9 -0
- package/dist/esm/api/resources/query/client/requests/ListTransactionsRequest.d.mts +9 -0
- package/dist/esm/api/resources/query/client/requests/ListVcardsOrgRequest.d.mts +8 -6
- package/dist/esm/api/resources/query/client/requests/ListVcardsRequest.d.mts +8 -6
- package/dist/esm/api/resources/query/client/requests/ListVcardsTransactionsOrgRequest.d.mts +72 -0
- package/dist/esm/api/resources/query/client/requests/ListVcardsTransactionsOrgRequest.mjs +2 -0
- package/dist/esm/api/resources/query/client/requests/ListVcardsTransactionsRequest.d.mts +72 -0
- package/dist/esm/api/resources/query/client/requests/ListVcardsTransactionsRequest.mjs +2 -0
- package/dist/esm/api/resources/query/client/requests/ListVendorsOrgRequest.d.mts +1 -0
- package/dist/esm/api/resources/query/client/requests/ListVendorsRequest.d.mts +1 -0
- package/dist/esm/api/resources/query/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/queryTypes/types/QueryTransferDetailResponse.d.mts +2 -0
- package/dist/esm/api/resources/queryTypes/types/QueryTransferSummary.d.mts +2 -0
- package/dist/esm/api/resources/queryTypes/types/VCardTransactionQueryResponse.d.mts +49 -0
- package/dist/esm/api/resources/queryTypes/types/VCardTransactionQueryResponse.mjs +2 -0
- package/dist/esm/api/resources/queryTypes/types/VCardTransactionRecord.d.mts +86 -0
- package/dist/esm/api/resources/queryTypes/types/VCardTransactionRecord.mjs +2 -0
- package/dist/esm/api/resources/queryTypes/types/index.d.mts +2 -0
- package/dist/esm/api/resources/queryTypes/types/index.mjs +2 -0
- package/dist/esm/api/resources/statistic/client/Client.mjs +20 -4
- package/dist/esm/api/resources/subscription/client/Client.mjs +8 -4
- package/dist/esm/api/resources/templates/client/Client.mjs +8 -4
- package/dist/esm/api/resources/tokenStorage/client/Client.mjs +16 -4
- package/dist/esm/api/resources/user/client/Client.mjs +16 -12
- package/dist/esm/api/resources/vendor/client/Client.mjs +5 -5
- package/dist/esm/api/resources/wallet/client/Client.mjs +4 -4
- package/dist/esm/api/types/CustomerQueryRecords.d.mts +2 -0
- package/dist/esm/api/types/QueryResponseTransactions.d.mts +74 -0
- package/dist/esm/api/types/SplitCount.d.mts +4 -0
- package/dist/esm/api/types/SplitCount.mjs +2 -0
- package/dist/esm/api/types/SubscriptionQueryRecords.d.mts +10 -0
- package/dist/esm/api/types/TransactionQueryRecords.d.mts +1 -0
- package/dist/esm/api/types/TransactionQueryRecordsCustomer.d.mts +1 -0
- package/dist/esm/api/types/VCardSummary.d.mts +4 -2
- package/dist/esm/api/types/VendorResponseStoredMethod.d.mts +2 -1
- package/dist/esm/api/types/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -0
- package/dist/esm/core/auth/AuthProvider.d.mts +1 -0
- package/dist/esm/core/auth/AuthProvider.mjs +6 -1
- package/dist/esm/core/auth/index.d.mts +1 -1
- package/dist/esm/core/auth/index.mjs +1 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +6 -0
- package/dist/esm/core/fetcher/Fetcher.mjs +9 -8
- package/dist/esm/core/fetcher/requestWithRetries.mjs +4 -1
- package/dist/esm/core/url/QueryStringBuilder.d.mts +47 -0
- package/dist/esm/core/url/QueryStringBuilder.mjs +80 -0
- package/dist/esm/core/url/index.d.mts +1 -0
- package/dist/esm/core/url/index.mjs +1 -0
- package/dist/esm/core/url/qs.d.mts +2 -1
- package/dist/esm/core/url/qs.mjs +24 -12
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +150 -0
|
@@ -46,7 +46,7 @@ export class TemplatesClient {
|
|
|
46
46
|
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, `Templates/${core.url.encodePathParam(templateId)}`),
|
|
47
47
|
method: "DELETE",
|
|
48
48
|
headers: _headers,
|
|
49
|
-
|
|
49
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
50
50
|
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,
|
|
51
51
|
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,
|
|
52
52
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -104,7 +104,7 @@ export class TemplatesClient {
|
|
|
104
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, `Templates/getlink/${core.url.encodePathParam(templateId)}/${core.url.encodePathParam(ignoreEmpty)}`),
|
|
105
105
|
method: "GET",
|
|
106
106
|
headers: _headers,
|
|
107
|
-
|
|
107
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
108
108
|
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,
|
|
109
109
|
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,
|
|
110
110
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -161,7 +161,7 @@ export class TemplatesClient {
|
|
|
161
161
|
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, `Templates/get/${core.url.encodePathParam(templateId)}`),
|
|
162
162
|
method: "GET",
|
|
163
163
|
headers: _headers,
|
|
164
|
-
|
|
164
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
165
165
|
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,
|
|
166
166
|
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,
|
|
167
167
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -225,7 +225,11 @@ export class TemplatesClient {
|
|
|
225
225
|
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, `Query/templates/${core.url.encodePathParam(orgId)}`),
|
|
226
226
|
method: "GET",
|
|
227
227
|
headers: _headers,
|
|
228
|
-
|
|
228
|
+
queryString: core.url
|
|
229
|
+
.queryBuilder()
|
|
230
|
+
.addMany(_queryParams)
|
|
231
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
232
|
+
.build(),
|
|
229
233
|
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,
|
|
230
234
|
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,
|
|
231
235
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -145,7 +145,11 @@ export class TokenStorageClient {
|
|
|
145
145
|
method: "POST",
|
|
146
146
|
headers: _headers,
|
|
147
147
|
contentType: "application/json",
|
|
148
|
-
|
|
148
|
+
queryString: core.url
|
|
149
|
+
.queryBuilder()
|
|
150
|
+
.addMany(_queryParams)
|
|
151
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
152
|
+
.build(),
|
|
149
153
|
requestType: "json",
|
|
150
154
|
body: _body,
|
|
151
155
|
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,
|
|
@@ -219,7 +223,11 @@ export class TokenStorageClient {
|
|
|
219
223
|
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, `TokenStorage/${core.url.encodePathParam(methodId)}`),
|
|
220
224
|
method: "GET",
|
|
221
225
|
headers: _headers,
|
|
222
|
-
|
|
226
|
+
queryString: core.url
|
|
227
|
+
.queryBuilder()
|
|
228
|
+
.addMany(_queryParams)
|
|
229
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
230
|
+
.build(),
|
|
223
231
|
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,
|
|
224
232
|
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,
|
|
225
233
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -276,7 +284,7 @@ export class TokenStorageClient {
|
|
|
276
284
|
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, `TokenStorage/${core.url.encodePathParam(methodId)}`),
|
|
277
285
|
method: "DELETE",
|
|
278
286
|
headers: _headers,
|
|
279
|
-
|
|
287
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
280
288
|
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,
|
|
281
289
|
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,
|
|
282
290
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -394,7 +402,11 @@ export class TokenStorageClient {
|
|
|
394
402
|
method: "PUT",
|
|
395
403
|
headers: _headers,
|
|
396
404
|
contentType: "application/json",
|
|
397
|
-
|
|
405
|
+
queryString: core.url
|
|
406
|
+
.queryBuilder()
|
|
407
|
+
.addMany(_queryParams)
|
|
408
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
409
|
+
.build(),
|
|
398
410
|
requestType: "json",
|
|
399
411
|
body: _body,
|
|
400
412
|
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,
|
|
@@ -46,7 +46,7 @@ export class UserClient {
|
|
|
46
46
|
method: "POST",
|
|
47
47
|
headers: _headers,
|
|
48
48
|
contentType: "application/json",
|
|
49
|
-
|
|
49
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
50
50
|
requestType: "json",
|
|
51
51
|
body: request,
|
|
52
52
|
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,
|
|
@@ -104,7 +104,7 @@ export class UserClient {
|
|
|
104
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, "User/authrefresh"),
|
|
105
105
|
method: "POST",
|
|
106
106
|
headers: _headers,
|
|
107
|
-
|
|
107
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
108
108
|
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,
|
|
109
109
|
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,
|
|
110
110
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -162,7 +162,7 @@ export class UserClient {
|
|
|
162
162
|
method: "POST",
|
|
163
163
|
headers: _headers,
|
|
164
164
|
contentType: "application/json",
|
|
165
|
-
|
|
165
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
166
166
|
requestType: "json",
|
|
167
167
|
body: request,
|
|
168
168
|
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,
|
|
@@ -223,7 +223,7 @@ export class UserClient {
|
|
|
223
223
|
method: "POST",
|
|
224
224
|
headers: _headers,
|
|
225
225
|
contentType: "application/json",
|
|
226
|
-
|
|
226
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
227
227
|
requestType: "json",
|
|
228
228
|
body: request,
|
|
229
229
|
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,
|
|
@@ -283,7 +283,7 @@ export class UserClient {
|
|
|
283
283
|
method: "PUT",
|
|
284
284
|
headers: _headers,
|
|
285
285
|
contentType: "application/json",
|
|
286
|
-
|
|
286
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
287
287
|
requestType: "json",
|
|
288
288
|
body: request,
|
|
289
289
|
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,
|
|
@@ -342,7 +342,7 @@ export class UserClient {
|
|
|
342
342
|
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, `User/${core.url.encodePathParam(userId)}`),
|
|
343
343
|
method: "DELETE",
|
|
344
344
|
headers: _headers,
|
|
345
|
-
|
|
345
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
346
346
|
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,
|
|
347
347
|
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,
|
|
348
348
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -401,7 +401,7 @@ export class UserClient {
|
|
|
401
401
|
method: "PUT",
|
|
402
402
|
headers: _headers,
|
|
403
403
|
contentType: "application/json",
|
|
404
|
-
|
|
404
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
405
405
|
requestType: "json",
|
|
406
406
|
body: request,
|
|
407
407
|
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,
|
|
@@ -462,7 +462,7 @@ export class UserClient {
|
|
|
462
462
|
method: "PUT",
|
|
463
463
|
headers: _headers,
|
|
464
464
|
contentType: "application/json",
|
|
465
|
-
|
|
465
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
466
466
|
requestType: "json",
|
|
467
467
|
body: request,
|
|
468
468
|
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,
|
|
@@ -529,7 +529,11 @@ export class UserClient {
|
|
|
529
529
|
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, `User/${core.url.encodePathParam(userId)}`),
|
|
530
530
|
method: "GET",
|
|
531
531
|
headers: _headers,
|
|
532
|
-
|
|
532
|
+
queryString: core.url
|
|
533
|
+
.queryBuilder()
|
|
534
|
+
.addMany(_queryParams)
|
|
535
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
536
|
+
.build(),
|
|
533
537
|
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,
|
|
534
538
|
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,
|
|
535
539
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -585,7 +589,7 @@ export class UserClient {
|
|
|
585
589
|
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, "User/authlogout"),
|
|
586
590
|
method: "GET",
|
|
587
591
|
headers: _headers,
|
|
588
|
-
|
|
592
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
589
593
|
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,
|
|
590
594
|
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,
|
|
591
595
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -644,7 +648,7 @@ export class UserClient {
|
|
|
644
648
|
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, `User/resendmfa/${core.url.encodePathParam(usrname)}/${core.url.encodePathParam(Entry)}/${core.url.encodePathParam(EntryType)}`),
|
|
645
649
|
method: "POST",
|
|
646
650
|
headers: _headers,
|
|
647
|
-
|
|
651
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
648
652
|
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,
|
|
649
653
|
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,
|
|
650
654
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -697,7 +701,7 @@ export class UserClient {
|
|
|
697
701
|
method: "POST",
|
|
698
702
|
headers: _headers,
|
|
699
703
|
contentType: "application/json",
|
|
700
|
-
|
|
704
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
701
705
|
requestType: "json",
|
|
702
706
|
body: request,
|
|
703
707
|
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,
|
|
@@ -90,7 +90,7 @@ export class VendorClient {
|
|
|
90
90
|
method: "POST",
|
|
91
91
|
headers: _headers,
|
|
92
92
|
contentType: "application/json",
|
|
93
|
-
|
|
93
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
94
94
|
requestType: "json",
|
|
95
95
|
body: request,
|
|
96
96
|
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,
|
|
@@ -149,7 +149,7 @@ export class VendorClient {
|
|
|
149
149
|
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, `Vendor/${core.url.encodePathParam(idVendor)}`),
|
|
150
150
|
method: "DELETE",
|
|
151
151
|
headers: _headers,
|
|
152
|
-
|
|
152
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
153
153
|
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,
|
|
154
154
|
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,
|
|
155
155
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -210,7 +210,7 @@ export class VendorClient {
|
|
|
210
210
|
method: "PUT",
|
|
211
211
|
headers: _headers,
|
|
212
212
|
contentType: "application/json",
|
|
213
|
-
|
|
213
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
214
214
|
requestType: "json",
|
|
215
215
|
body: request,
|
|
216
216
|
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,
|
|
@@ -264,7 +264,7 @@ export class VendorClient {
|
|
|
264
264
|
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, `Vendor/${core.url.encodePathParam(idVendor)}`),
|
|
265
265
|
method: "GET",
|
|
266
266
|
headers: _headers,
|
|
267
|
-
|
|
267
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
268
268
|
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,
|
|
269
269
|
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,
|
|
270
270
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -338,7 +338,7 @@ export class VendorClient {
|
|
|
338
338
|
method: "POST",
|
|
339
339
|
headers: _headers,
|
|
340
340
|
contentType: "application/json",
|
|
341
|
-
|
|
341
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
342
342
|
requestType: "json",
|
|
343
343
|
body: request,
|
|
344
344
|
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,
|
|
@@ -50,7 +50,7 @@ export class WalletClient {
|
|
|
50
50
|
method: "POST",
|
|
51
51
|
headers: _headers,
|
|
52
52
|
contentType: "application/json",
|
|
53
|
-
|
|
53
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
54
54
|
requestType: "json",
|
|
55
55
|
body: request,
|
|
56
56
|
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,
|
|
@@ -116,7 +116,7 @@ export class WalletClient {
|
|
|
116
116
|
method: "POST",
|
|
117
117
|
headers: _headers,
|
|
118
118
|
contentType: "application/json",
|
|
119
|
-
|
|
119
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
120
120
|
requestType: "json",
|
|
121
121
|
body: request,
|
|
122
122
|
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,
|
|
@@ -183,7 +183,7 @@ export class WalletClient {
|
|
|
183
183
|
method: "POST",
|
|
184
184
|
headers: _headers,
|
|
185
185
|
contentType: "application/json",
|
|
186
|
-
|
|
186
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
187
187
|
requestType: "json",
|
|
188
188
|
body: request,
|
|
189
189
|
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,
|
|
@@ -244,7 +244,7 @@ export class WalletClient {
|
|
|
244
244
|
method: "POST",
|
|
245
245
|
headers: _headers,
|
|
246
246
|
contentType: "application/json",
|
|
247
|
-
|
|
247
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
248
248
|
requestType: "json",
|
|
249
249
|
body: request,
|
|
250
250
|
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,
|
|
@@ -104,6 +104,7 @@ import type * as Payabli from "../index.mjs";
|
|
|
104
104
|
* PayorId: 1551,
|
|
105
105
|
* PaypointId: 226,
|
|
106
106
|
* SettlementStatus: 2,
|
|
107
|
+
* splitCount: 0,
|
|
107
108
|
* TotalAmount: 30.22,
|
|
108
109
|
* TransStatus: 1
|
|
109
110
|
* }],
|
|
@@ -160,6 +161,7 @@ import type * as Payabli from "../index.mjs";
|
|
|
160
161
|
* PayorId: 1551,
|
|
161
162
|
* PaypointId: 226,
|
|
162
163
|
* SettlementStatus: 2,
|
|
164
|
+
* splitCount: 0,
|
|
163
165
|
* TotalAmount: 30.22,
|
|
164
166
|
* TransStatus: 1
|
|
165
167
|
* }],
|
|
@@ -1,6 +1,80 @@
|
|
|
1
1
|
import type * as Payabli from "../index.mjs";
|
|
2
2
|
/**
|
|
3
3
|
* Response payload for queries related to transactions
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* Records: [{
|
|
8
|
+
* ParentOrgName: "RealistRoofing",
|
|
9
|
+
* PaypointDbaname: "Eagle-Pointe",
|
|
10
|
+
* PaypointLegalname: "Eagle-Pointe",
|
|
11
|
+
* PaypointEntryname: "entry399",
|
|
12
|
+
* PaymentTransId: "399-8e7e5fc7-f483-43cc-9e78-d8a36ac857bf",
|
|
13
|
+
* ConnectorName: "GP",
|
|
14
|
+
* Method: "card",
|
|
15
|
+
* PayorId: 155974,
|
|
16
|
+
* PaymentData: {
|
|
17
|
+
* MaskedAccount: "5XXXXXXXXXXX4415",
|
|
18
|
+
* AccountExp: "12/29",
|
|
19
|
+
* HolderName: "RENEE DESCARTES",
|
|
20
|
+
* binData: {
|
|
21
|
+
* binMatchedLength: "9",
|
|
22
|
+
* binCardBrand: "MASTERCARD",
|
|
23
|
+
* binCardType: "CREDIT",
|
|
24
|
+
* binCardCategory: "MIXED PRODUCT",
|
|
25
|
+
* binCardIssuer: "ALLIED IRISH BANKS, PLC",
|
|
26
|
+
* binCardIssuerCountry: "IRELAND",
|
|
27
|
+
* binCardIsRegulated: "False",
|
|
28
|
+
* binCardUseCategory: "PERSONAL"
|
|
29
|
+
* },
|
|
30
|
+
* paymentDetails: {
|
|
31
|
+
* totalAmount: 6.79,
|
|
32
|
+
* serviceFee: 0,
|
|
33
|
+
* currency: "USD"
|
|
34
|
+
* }
|
|
35
|
+
* },
|
|
36
|
+
* TransStatus: -4,
|
|
37
|
+
* PaypointId: 399,
|
|
38
|
+
* splitFundingInstructions: [{}],
|
|
39
|
+
* splitCount: 1,
|
|
40
|
+
* TotalAmount: -6.79,
|
|
41
|
+
* NetAmount: -6.79,
|
|
42
|
+
* FeeAmount: 0,
|
|
43
|
+
* SettlementStatus: 0,
|
|
44
|
+
* Operation: "Reject",
|
|
45
|
+
* Source: "api",
|
|
46
|
+
* OrgId: 39,
|
|
47
|
+
* TransactionTime: "2026-03-02T18:56:23.109188",
|
|
48
|
+
* Customer: {
|
|
49
|
+
* FirstName: "Blaise",
|
|
50
|
+
* LastName: "Pascal",
|
|
51
|
+
* CompanyName: "Pensees LLC",
|
|
52
|
+
* BillingAddress1: "49912 Aufengrupt Pointe",
|
|
53
|
+
* BillingAddress2: "apt 6",
|
|
54
|
+
* BillingCity: "South Litzy",
|
|
55
|
+
* BillingState: "FL",
|
|
56
|
+
* BillingZip: "33000",
|
|
57
|
+
* BillingCountry: "US",
|
|
58
|
+
* BillingPhone: "+18955791994",
|
|
59
|
+
* BillingEmail: "blaise.pascal@gmail.com",
|
|
60
|
+
* CustomerNumber: "o99t",
|
|
61
|
+
* customerId: 155974,
|
|
62
|
+
* customerStatus: 1
|
|
63
|
+
* },
|
|
64
|
+
* TransactionEvents: [{
|
|
65
|
+
* TransEvent: "Created",
|
|
66
|
+
* EventData: "Card Reject - CTDR Id: 1379241",
|
|
67
|
+
* EventTime: "2026-03-02T18:56:23.352035"
|
|
68
|
+
* }]
|
|
69
|
+
* }],
|
|
70
|
+
* Summary: {
|
|
71
|
+
* totalRecords: 14,
|
|
72
|
+
* totalAmount: -79.48,
|
|
73
|
+
* totalNetAmount: -74.41,
|
|
74
|
+
* totalPages: 14,
|
|
75
|
+
* pageSize: 1
|
|
76
|
+
* }
|
|
77
|
+
* }
|
|
4
78
|
*/
|
|
5
79
|
export interface QueryResponseTransactions {
|
|
6
80
|
Records?: Payabli.TransactionQueryRecords[] | undefined;
|
|
@@ -40,6 +40,16 @@ export interface SubscriptionQueryRecords {
|
|
|
40
40
|
Source?: Payabli.Source | undefined;
|
|
41
41
|
/** The subscription start date. */
|
|
42
42
|
StartDate: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* The full stored payment method record linked to the subscription
|
|
45
|
+
* and charged on each billing cycle. Returned as `null` for legacy
|
|
46
|
+
* subscriptions that don't have a linked stored method.
|
|
47
|
+
*
|
|
48
|
+
* The shape is the same across payment vehicles (card, ACH, check).
|
|
49
|
+
* Only the populated fields differ. For example, `ABA` is populated
|
|
50
|
+
* for ACH, while `ExpDate` and `binData` are populated for card.
|
|
51
|
+
*/
|
|
52
|
+
StoredMethod: Payabli.VendorResponseStoredMethod | null;
|
|
43
53
|
/** Events associated with the subscription. */
|
|
44
54
|
SubEvents?: Payabli.GeneralEvents[] | undefined;
|
|
45
55
|
/**
|
|
@@ -48,6 +48,7 @@ export interface TransactionQueryRecords {
|
|
|
48
48
|
SettlementStatus?: number | undefined;
|
|
49
49
|
Source?: Payabli.Source | undefined;
|
|
50
50
|
splitFundingInstructions?: Payabli.SplitFunding | undefined;
|
|
51
|
+
splitCount: Payabli.SplitCount;
|
|
51
52
|
/** Transaction total amount (including service fee or sub-charge) */
|
|
52
53
|
TotalAmount?: number | undefined;
|
|
53
54
|
/** Events associated with this transaction. */
|
|
@@ -48,6 +48,7 @@ export interface TransactionQueryRecordsCustomer {
|
|
|
48
48
|
SettlementStatus?: number | undefined;
|
|
49
49
|
Source?: Payabli.Source | undefined;
|
|
50
50
|
splitFundingInstructions?: Payabli.SplitFunding | undefined;
|
|
51
|
+
splitCount: Payabli.SplitCount;
|
|
51
52
|
/** Transaction total amount (including service fee or sub-charge) */
|
|
52
53
|
TotalAmount?: number | undefined;
|
|
53
54
|
/** Events associated with this transaction. */
|
|
@@ -4,12 +4,14 @@ export interface VCardSummary {
|
|
|
4
4
|
totalRecords: Payabli.Totalrecords;
|
|
5
5
|
/** Total amount for the records. */
|
|
6
6
|
totalAmount: number;
|
|
7
|
+
/** Total net amount for the records. */
|
|
8
|
+
totalNetAmount?: number | undefined;
|
|
7
9
|
/** Total number of active vCards. */
|
|
8
10
|
totalactive: number;
|
|
9
11
|
/** Total amount of active vCards. */
|
|
10
|
-
|
|
12
|
+
totalamountactive: number;
|
|
11
13
|
/** Total balance of active vCards. */
|
|
12
14
|
totalbalanceactive: number;
|
|
13
|
-
|
|
15
|
+
pageidentifier?: Payabli.PageIdentifier | undefined;
|
|
14
16
|
pageSize?: Payabli.Pagesize | undefined;
|
|
15
17
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as Payabli from "../index.mjs";
|
|
1
2
|
/**
|
|
2
3
|
* Stored payment method information
|
|
3
4
|
*/
|
|
@@ -12,7 +13,7 @@ export interface VendorResponseStoredMethod {
|
|
|
12
13
|
AchHolderType: string | null;
|
|
13
14
|
IsValidatedACH: boolean | null;
|
|
14
15
|
BIN: string | null;
|
|
15
|
-
binData:
|
|
16
|
+
binData: Payabli.BinData | null;
|
|
16
17
|
ABA: string | null;
|
|
17
18
|
PostalCode: string | null;
|
|
18
19
|
MethodType: string | null;
|
|
@@ -503,6 +503,7 @@ export * from "./SignerSsn.mjs";
|
|
|
503
503
|
export * from "./SignerState.mjs";
|
|
504
504
|
export * from "./SignerZip.mjs";
|
|
505
505
|
export * from "./Source.mjs";
|
|
506
|
+
export * from "./SplitCount.mjs";
|
|
506
507
|
export * from "./SplitFunding.mjs";
|
|
507
508
|
export * from "./SplitFundingContent.mjs";
|
|
508
509
|
export * from "./SplitFundingRefundContent.mjs";
|
|
@@ -503,6 +503,7 @@ export * from "./SignerSsn.mjs";
|
|
|
503
503
|
export * from "./SignerState.mjs";
|
|
504
504
|
export * from "./SignerZip.mjs";
|
|
505
505
|
export * from "./Source.mjs";
|
|
506
|
+
export * from "./SplitCount.mjs";
|
|
506
507
|
export * from "./SplitFunding.mjs";
|
|
507
508
|
export * from "./SplitFundingContent.mjs";
|
|
508
509
|
export * from "./SplitFundingRefundContent.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export { type AuthProvider, isAuthProvider } from "./AuthProvider.mjs";
|
|
2
2
|
export type { AuthRequest } from "./AuthRequest.mjs";
|
|
3
3
|
export { BasicAuth } from "./BasicAuth.mjs";
|
|
4
4
|
export { BearerToken } from "./BearerToken.mjs";
|
|
@@ -8,7 +8,13 @@ export declare namespace Fetcher {
|
|
|
8
8
|
method: string;
|
|
9
9
|
contentType?: string;
|
|
10
10
|
headers?: Record<string, unknown>;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Prefer `queryString` (produced by `core.url.queryBuilder()`).
|
|
13
|
+
* Retained for backwards compatibility with custom fetchers and callers that
|
|
14
|
+
* still construct request args with a query-parameter object.
|
|
15
|
+
*/
|
|
11
16
|
queryParameters?: Record<string, unknown>;
|
|
17
|
+
queryString?: string;
|
|
12
18
|
body?: unknown;
|
|
13
19
|
timeoutMs?: number;
|
|
14
20
|
maxRetries?: number;
|
|
@@ -71,16 +71,11 @@ const SENSITIVE_QUERY_PARAMS = new Set([
|
|
|
71
71
|
]);
|
|
72
72
|
function redactQueryParameters(queryParameters) {
|
|
73
73
|
if (queryParameters == null) {
|
|
74
|
-
return
|
|
74
|
+
return undefined;
|
|
75
75
|
}
|
|
76
76
|
const redacted = {};
|
|
77
77
|
for (const [key, value] of Object.entries(queryParameters)) {
|
|
78
|
-
|
|
79
|
-
redacted[key] = "[REDACTED]";
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
redacted[key] = value;
|
|
83
|
-
}
|
|
78
|
+
redacted[key] = SENSITIVE_QUERY_PARAMS.has(key.toLowerCase()) ? "[REDACTED]" : value;
|
|
84
79
|
}
|
|
85
80
|
return redacted;
|
|
86
81
|
}
|
|
@@ -182,7 +177,13 @@ function getHeaders(args) {
|
|
|
182
177
|
export function fetcherImpl(args) {
|
|
183
178
|
return __awaiter(this, void 0, void 0, function* () {
|
|
184
179
|
var _a, _b, _c;
|
|
185
|
-
|
|
180
|
+
let url = args.url;
|
|
181
|
+
if (args.queryString != null && args.queryString.length > 0) {
|
|
182
|
+
url = `${url}?${args.queryString}`;
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
url = createRequestUrl(args.url, args.queryParameters);
|
|
186
|
+
}
|
|
186
187
|
const requestBody = yield getRequestBody({
|
|
187
188
|
body: args.body,
|
|
188
189
|
type: (_a = args.requestType) !== null && _a !== void 0 ? _a : "other",
|
|
@@ -11,6 +11,9 @@ const INITIAL_RETRY_DELAY = 1000; // in milliseconds
|
|
|
11
11
|
const MAX_RETRY_DELAY = 60000; // in milliseconds
|
|
12
12
|
const DEFAULT_MAX_RETRIES = 2;
|
|
13
13
|
const JITTER_FACTOR = 0.2; // 20% random jitter
|
|
14
|
+
function isRetryableStatusCode(statusCode) {
|
|
15
|
+
return [408, 429].includes(statusCode) || statusCode >= 500;
|
|
16
|
+
}
|
|
14
17
|
function addPositiveJitter(delay) {
|
|
15
18
|
const jitterMultiplier = 1 + Math.random() * JITTER_FACTOR;
|
|
16
19
|
return delay * jitterMultiplier;
|
|
@@ -50,7 +53,7 @@ export function requestWithRetries(requestFn_1) {
|
|
|
50
53
|
return __awaiter(this, arguments, void 0, function* (requestFn, maxRetries = DEFAULT_MAX_RETRIES) {
|
|
51
54
|
let response = yield requestFn();
|
|
52
55
|
for (let i = 0; i < maxRetries; ++i) {
|
|
53
|
-
if (
|
|
56
|
+
if (isRetryableStatusCode(response.status)) {
|
|
54
57
|
const delay = getRetryDelayFromHeaders(response, i);
|
|
55
58
|
yield new Promise((resolve) => setTimeout(resolve, delay));
|
|
56
59
|
response = yield requestFn();
|