@payabli/sdk-node 0.0.143 → 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.d.ts +38 -0
- package/dist/cjs/api/resources/boarding/client/Client.js +152 -11
- package/dist/cjs/api/resources/boarding/types/CreateApplicationFromPaypointRequest.d.ts +15 -0
- package/dist/cjs/api/resources/boarding/types/CreateApplicationFromPaypointRequest.js +3 -0
- package/dist/cjs/api/resources/boarding/types/CreateApplicationFromPaypointResponse.d.ts +20 -0
- package/dist/cjs/api/resources/boarding/types/CreateApplicationFromPaypointResponse.js +3 -0
- package/dist/cjs/api/resources/boarding/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/boarding/types/index.js +2 -0
- 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.d.ts +5 -1
- package/dist/cjs/api/resources/moneyOut/client/Client.js +25 -13
- 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/v2MoneyInTypes/types/V2TransactionDetails.d.ts +1 -1
- 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/AutoCapture.d.ts +5 -1
- package/dist/cjs/api/types/CustomerQueryRecords.d.ts +10 -8
- package/dist/cjs/api/types/CustomerSummaryRecord.d.ts +4 -4
- 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 +11 -1
- package/dist/cjs/api/types/TransactionQueryRecords.d.ts +2 -1
- 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.d.mts +38 -0
- package/dist/esm/api/resources/boarding/client/Client.mjs +152 -11
- package/dist/esm/api/resources/boarding/types/CreateApplicationFromPaypointRequest.d.mts +15 -0
- package/dist/esm/api/resources/boarding/types/CreateApplicationFromPaypointRequest.mjs +2 -0
- package/dist/esm/api/resources/boarding/types/CreateApplicationFromPaypointResponse.d.mts +20 -0
- package/dist/esm/api/resources/boarding/types/CreateApplicationFromPaypointResponse.mjs +2 -0
- package/dist/esm/api/resources/boarding/types/index.d.mts +2 -0
- package/dist/esm/api/resources/boarding/types/index.mjs +2 -0
- 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.d.mts +5 -1
- package/dist/esm/api/resources/moneyOut/client/Client.mjs +25 -13
- 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/v2MoneyInTypes/types/V2TransactionDetails.d.mts +1 -1
- 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/AutoCapture.d.mts +5 -1
- package/dist/esm/api/types/CustomerQueryRecords.d.mts +10 -8
- package/dist/esm/api/types/CustomerSummaryRecord.d.mts +4 -4
- 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 +11 -1
- package/dist/esm/api/types/TransactionQueryRecords.d.mts +2 -1
- 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 +287 -1
|
@@ -83,7 +83,11 @@ export class InvoiceClient {
|
|
|
83
83
|
method: "POST",
|
|
84
84
|
headers: _headers,
|
|
85
85
|
contentType: "application/json",
|
|
86
|
-
|
|
86
|
+
queryString: core.url
|
|
87
|
+
.queryBuilder()
|
|
88
|
+
.addMany(_queryParams)
|
|
89
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
90
|
+
.build(),
|
|
87
91
|
requestType: "json",
|
|
88
92
|
body: _body,
|
|
89
93
|
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,
|
|
@@ -153,7 +157,7 @@ export class InvoiceClient {
|
|
|
153
157
|
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, `Invoice/attachedFileFromInvoice/${core.url.encodePathParam(idInvoice)}/${core.url.encodePathParam(filename)}`),
|
|
154
158
|
method: "DELETE",
|
|
155
159
|
headers: _headers,
|
|
156
|
-
|
|
160
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
157
161
|
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,
|
|
158
162
|
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,
|
|
159
163
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -210,7 +214,7 @@ export class InvoiceClient {
|
|
|
210
214
|
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, `Invoice/${core.url.encodePathParam(idInvoice)}`),
|
|
211
215
|
method: "DELETE",
|
|
212
216
|
headers: _headers,
|
|
213
|
-
|
|
217
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
214
218
|
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,
|
|
215
219
|
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,
|
|
216
220
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -287,7 +291,11 @@ export class InvoiceClient {
|
|
|
287
291
|
method: "PUT",
|
|
288
292
|
headers: _headers,
|
|
289
293
|
contentType: "application/json",
|
|
290
|
-
|
|
294
|
+
queryString: core.url
|
|
295
|
+
.queryBuilder()
|
|
296
|
+
.addMany(_queryParams)
|
|
297
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
298
|
+
.build(),
|
|
291
299
|
requestType: "json",
|
|
292
300
|
body: _body,
|
|
293
301
|
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,
|
|
@@ -364,7 +372,11 @@ export class InvoiceClient {
|
|
|
364
372
|
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, `Invoice/attachedFileFromInvoice/${core.url.encodePathParam(idInvoice)}/${core.url.encodePathParam(filename)}`),
|
|
365
373
|
method: "GET",
|
|
366
374
|
headers: _headers,
|
|
367
|
-
|
|
375
|
+
queryString: core.url
|
|
376
|
+
.queryBuilder()
|
|
377
|
+
.addMany(_queryParams)
|
|
378
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
379
|
+
.build(),
|
|
368
380
|
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,
|
|
369
381
|
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,
|
|
370
382
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -421,7 +433,7 @@ export class InvoiceClient {
|
|
|
421
433
|
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, `Invoice/${core.url.encodePathParam(idInvoice)}`),
|
|
422
434
|
method: "GET",
|
|
423
435
|
headers: _headers,
|
|
424
|
-
|
|
436
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
425
437
|
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,
|
|
426
438
|
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,
|
|
427
439
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -478,7 +490,7 @@ export class InvoiceClient {
|
|
|
478
490
|
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, `Invoice/getNumber/${core.url.encodePathParam(entry)}`),
|
|
479
491
|
method: "GET",
|
|
480
492
|
headers: _headers,
|
|
481
|
-
|
|
493
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
482
494
|
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,
|
|
483
495
|
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,
|
|
484
496
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -548,7 +560,11 @@ export class InvoiceClient {
|
|
|
548
560
|
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/invoices/${core.url.encodePathParam(entry)}`),
|
|
549
561
|
method: "GET",
|
|
550
562
|
headers: _headers,
|
|
551
|
-
|
|
563
|
+
queryString: core.url
|
|
564
|
+
.queryBuilder()
|
|
565
|
+
.addMany(_queryParams)
|
|
566
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
567
|
+
.build(),
|
|
552
568
|
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,
|
|
553
569
|
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,
|
|
554
570
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -618,7 +634,11 @@ export class InvoiceClient {
|
|
|
618
634
|
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/invoices/org/${core.url.encodePathParam(orgId)}`),
|
|
619
635
|
method: "GET",
|
|
620
636
|
headers: _headers,
|
|
621
|
-
|
|
637
|
+
queryString: core.url
|
|
638
|
+
.queryBuilder()
|
|
639
|
+
.addMany(_queryParams)
|
|
640
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
641
|
+
.build(),
|
|
622
642
|
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,
|
|
623
643
|
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,
|
|
624
644
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -684,7 +704,11 @@ export class InvoiceClient {
|
|
|
684
704
|
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, `Invoice/send/${core.url.encodePathParam(idInvoice)}`),
|
|
685
705
|
method: "GET",
|
|
686
706
|
headers: _headers,
|
|
687
|
-
|
|
707
|
+
queryString: core.url
|
|
708
|
+
.queryBuilder()
|
|
709
|
+
.addMany(_queryParams)
|
|
710
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
711
|
+
.build(),
|
|
688
712
|
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,
|
|
689
713
|
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,
|
|
690
714
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -741,7 +765,7 @@ export class InvoiceClient {
|
|
|
741
765
|
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, `Export/invoicePdf/${core.url.encodePathParam(idInvoice)}`),
|
|
742
766
|
method: "GET",
|
|
743
767
|
headers: _headers,
|
|
744
|
-
|
|
768
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
745
769
|
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,
|
|
746
770
|
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,
|
|
747
771
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -60,7 +60,7 @@ export class LineItemClient {
|
|
|
60
60
|
method: "POST",
|
|
61
61
|
headers: _headers,
|
|
62
62
|
contentType: "application/json",
|
|
63
|
-
|
|
63
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
64
64
|
requestType: "json",
|
|
65
65
|
body: _body,
|
|
66
66
|
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,
|
|
@@ -119,7 +119,7 @@ export class LineItemClient {
|
|
|
119
119
|
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, `LineItem/${core.url.encodePathParam(lineItemId)}`),
|
|
120
120
|
method: "DELETE",
|
|
121
121
|
headers: _headers,
|
|
122
|
-
|
|
122
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
123
123
|
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,
|
|
124
124
|
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,
|
|
125
125
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -176,7 +176,7 @@ export class LineItemClient {
|
|
|
176
176
|
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, `LineItem/${core.url.encodePathParam(lineItemId)}`),
|
|
177
177
|
method: "GET",
|
|
178
178
|
headers: _headers,
|
|
179
|
-
|
|
179
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
180
180
|
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,
|
|
181
181
|
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,
|
|
182
182
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -245,7 +245,11 @@ export class LineItemClient {
|
|
|
245
245
|
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/lineitems/${core.url.encodePathParam(entry)}`),
|
|
246
246
|
method: "GET",
|
|
247
247
|
headers: _headers,
|
|
248
|
-
|
|
248
|
+
queryString: core.url
|
|
249
|
+
.queryBuilder()
|
|
250
|
+
.addMany(_queryParams)
|
|
251
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
252
|
+
.build(),
|
|
249
253
|
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,
|
|
250
254
|
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,
|
|
251
255
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -302,7 +306,7 @@ export class LineItemClient {
|
|
|
302
306
|
method: "PUT",
|
|
303
307
|
headers: _headers,
|
|
304
308
|
contentType: "application/json",
|
|
305
|
-
|
|
309
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
306
310
|
requestType: "json",
|
|
307
311
|
body: request,
|
|
308
312
|
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,
|
|
@@ -58,7 +58,7 @@ export class ManagementClient {
|
|
|
58
58
|
method: "POST",
|
|
59
59
|
headers: _headers,
|
|
60
60
|
contentType: "application/json",
|
|
61
|
-
|
|
61
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
62
62
|
requestType: "json",
|
|
63
63
|
body: request,
|
|
64
64
|
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,
|
|
@@ -86,7 +86,11 @@ export class MoneyInClient {
|
|
|
86
86
|
method: "POST",
|
|
87
87
|
headers: _headers,
|
|
88
88
|
contentType: "application/json",
|
|
89
|
-
|
|
89
|
+
queryString: core.url
|
|
90
|
+
.queryBuilder()
|
|
91
|
+
.addMany(_queryParams)
|
|
92
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
93
|
+
.build(),
|
|
90
94
|
requestType: "json",
|
|
91
95
|
body: _body,
|
|
92
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,
|
|
@@ -153,7 +157,7 @@ export class MoneyInClient {
|
|
|
153
157
|
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, `MoneyIn/capture/${core.url.encodePathParam(transId)}/${core.url.encodePathParam(amount)}`),
|
|
154
158
|
method: "GET",
|
|
155
159
|
headers: _headers,
|
|
156
|
-
|
|
160
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
157
161
|
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,
|
|
158
162
|
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,
|
|
159
163
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -238,7 +242,7 @@ export class MoneyInClient {
|
|
|
238
242
|
method: "POST",
|
|
239
243
|
headers: _headers,
|
|
240
244
|
contentType: "application/json",
|
|
241
|
-
|
|
245
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
242
246
|
requestType: "json",
|
|
243
247
|
body: request,
|
|
244
248
|
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,
|
|
@@ -348,7 +352,11 @@ export class MoneyInClient {
|
|
|
348
352
|
method: "POST",
|
|
349
353
|
headers: _headers,
|
|
350
354
|
contentType: "application/json",
|
|
351
|
-
|
|
355
|
+
queryString: core.url
|
|
356
|
+
.queryBuilder()
|
|
357
|
+
.addMany(_queryParams)
|
|
358
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
359
|
+
.build(),
|
|
352
360
|
requestType: "json",
|
|
353
361
|
body: _body,
|
|
354
362
|
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,
|
|
@@ -407,7 +415,7 @@ export class MoneyInClient {
|
|
|
407
415
|
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, `MoneyIn/details/${core.url.encodePathParam(transId)}`),
|
|
408
416
|
method: "GET",
|
|
409
417
|
headers: _headers,
|
|
410
|
-
|
|
418
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
411
419
|
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,
|
|
412
420
|
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,
|
|
413
421
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -650,7 +658,11 @@ export class MoneyInClient {
|
|
|
650
658
|
method: "POST",
|
|
651
659
|
headers: _headers,
|
|
652
660
|
contentType: "application/json",
|
|
653
|
-
|
|
661
|
+
queryString: core.url
|
|
662
|
+
.queryBuilder()
|
|
663
|
+
.addMany(_queryParams)
|
|
664
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
665
|
+
.build(),
|
|
654
666
|
requestType: "json",
|
|
655
667
|
body: _body,
|
|
656
668
|
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,
|
|
@@ -718,7 +730,7 @@ export class MoneyInClient {
|
|
|
718
730
|
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, `MoneyIn/reverse/${core.url.encodePathParam(transId)}/${core.url.encodePathParam(amount)}`),
|
|
719
731
|
method: "GET",
|
|
720
732
|
headers: _headers,
|
|
721
|
-
|
|
733
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
722
734
|
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,
|
|
723
735
|
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,
|
|
724
736
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -788,7 +800,7 @@ export class MoneyInClient {
|
|
|
788
800
|
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, `MoneyIn/refund/${core.url.encodePathParam(transId)}/${core.url.encodePathParam(amount)}`),
|
|
789
801
|
method: "GET",
|
|
790
802
|
headers: _headers,
|
|
791
|
-
|
|
803
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
792
804
|
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,
|
|
793
805
|
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,
|
|
794
806
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -887,7 +899,7 @@ export class MoneyInClient {
|
|
|
887
899
|
method: "POST",
|
|
888
900
|
headers: _headers,
|
|
889
901
|
contentType: "application/json",
|
|
890
|
-
|
|
902
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
891
903
|
requestType: "json",
|
|
892
904
|
body: _body,
|
|
893
905
|
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,
|
|
@@ -949,7 +961,7 @@ export class MoneyInClient {
|
|
|
949
961
|
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, `MoneyIn/reverseCredit/${core.url.encodePathParam(transId)}`),
|
|
950
962
|
method: "GET",
|
|
951
963
|
headers: _headers,
|
|
952
|
-
|
|
964
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
953
965
|
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,
|
|
954
966
|
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,
|
|
955
967
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -1013,7 +1025,11 @@ export class MoneyInClient {
|
|
|
1013
1025
|
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, `MoneyIn/sendreceipt/${core.url.encodePathParam(transId)}`),
|
|
1014
1026
|
method: "GET",
|
|
1015
1027
|
headers: _headers,
|
|
1016
|
-
|
|
1028
|
+
queryString: core.url
|
|
1029
|
+
.queryBuilder()
|
|
1030
|
+
.addMany(_queryParams)
|
|
1031
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
1032
|
+
.build(),
|
|
1017
1033
|
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,
|
|
1018
1034
|
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,
|
|
1019
1035
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -1082,7 +1098,7 @@ export class MoneyInClient {
|
|
|
1082
1098
|
method: "POST",
|
|
1083
1099
|
headers: _headers,
|
|
1084
1100
|
contentType: "application/json",
|
|
1085
|
-
|
|
1101
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1086
1102
|
requestType: "json",
|
|
1087
1103
|
body: _body,
|
|
1088
1104
|
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,
|
|
@@ -1145,7 +1161,7 @@ export class MoneyInClient {
|
|
|
1145
1161
|
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, `MoneyIn/void/${core.url.encodePathParam(transId)}`),
|
|
1146
1162
|
method: "GET",
|
|
1147
1163
|
headers: _headers,
|
|
1148
|
-
|
|
1164
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1149
1165
|
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,
|
|
1150
1166
|
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,
|
|
1151
1167
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -1294,7 +1310,11 @@ export class MoneyInClient {
|
|
|
1294
1310
|
method: "POST",
|
|
1295
1311
|
headers: _headers,
|
|
1296
1312
|
contentType: "application/json",
|
|
1297
|
-
|
|
1313
|
+
queryString: core.url
|
|
1314
|
+
.queryBuilder()
|
|
1315
|
+
.addMany(_queryParams)
|
|
1316
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
1317
|
+
.build(),
|
|
1298
1318
|
requestType: "json",
|
|
1299
1319
|
body: _body,
|
|
1300
1320
|
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,
|
|
@@ -1381,7 +1401,11 @@ export class MoneyInClient {
|
|
|
1381
1401
|
method: "POST",
|
|
1382
1402
|
headers: _headers,
|
|
1383
1403
|
contentType: "application/json",
|
|
1384
|
-
|
|
1404
|
+
queryString: core.url
|
|
1405
|
+
.queryBuilder()
|
|
1406
|
+
.addMany(_queryParams)
|
|
1407
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
1408
|
+
.build(),
|
|
1385
1409
|
requestType: "json",
|
|
1386
1410
|
body: _body,
|
|
1387
1411
|
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,
|
|
@@ -1455,7 +1479,7 @@ export class MoneyInClient {
|
|
|
1455
1479
|
method: "POST",
|
|
1456
1480
|
headers: _headers,
|
|
1457
1481
|
contentType: "application/json",
|
|
1458
|
-
|
|
1482
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1459
1483
|
requestType: "json",
|
|
1460
1484
|
body: request,
|
|
1461
1485
|
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,
|
|
@@ -1516,7 +1540,7 @@ export class MoneyInClient {
|
|
|
1516
1540
|
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, `v2/MoneyIn/refund/${core.url.encodePathParam(transId)}`),
|
|
1517
1541
|
method: "POST",
|
|
1518
1542
|
headers: _headers,
|
|
1519
|
-
|
|
1543
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1520
1544
|
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,
|
|
1521
1545
|
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,
|
|
1522
1546
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -1579,7 +1603,7 @@ export class MoneyInClient {
|
|
|
1579
1603
|
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, `v2/MoneyIn/refund/${core.url.encodePathParam(transId)}/${core.url.encodePathParam(amount)}`),
|
|
1580
1604
|
method: "POST",
|
|
1581
1605
|
headers: _headers,
|
|
1582
|
-
|
|
1606
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1583
1607
|
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,
|
|
1584
1608
|
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,
|
|
1585
1609
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -1636,7 +1660,7 @@ export class MoneyInClient {
|
|
|
1636
1660
|
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, `v2/MoneyIn/void/${core.url.encodePathParam(transId)}`),
|
|
1637
1661
|
method: "POST",
|
|
1638
1662
|
headers: _headers,
|
|
1639
|
-
|
|
1663
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1640
1664
|
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,
|
|
1641
1665
|
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,
|
|
1642
1666
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -11,7 +11,11 @@ export declare class MoneyOutClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<MoneyOutClient.Options>;
|
|
12
12
|
constructor(options?: MoneyOutClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* Authorizes transaction for payout.
|
|
14
|
+
* Authorizes a transaction for payout.
|
|
15
|
+
*
|
|
16
|
+
* If you don't pass `autoCapture` with a value of `true`, authorized transactions aren't flagged for settlement until captured. Use the `referenceId` returned in the response to capture the transaction.
|
|
17
|
+
*
|
|
18
|
+
* When `autoCapture` is `true`, Payabli captures the transaction asynchronously after authorization. The response confirms only that the transaction was authorized; it doesn't confirm that capture succeeded. To confirm capture, listen for the [`payout_transaction_approvedcaptured`](/developers/webhooks/payout-transaction-approved-captured) webhook event.
|
|
15
19
|
*
|
|
16
20
|
* @param {Payabli.MoneyOutTypesRequestOutAuthorize} request
|
|
17
21
|
* @param {MoneyOutClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -20,7 +20,11 @@ export class MoneyOutClient {
|
|
|
20
20
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Authorizes transaction for payout.
|
|
23
|
+
* Authorizes a transaction for payout.
|
|
24
|
+
*
|
|
25
|
+
* If you don't pass `autoCapture` with a value of `true`, authorized transactions aren't flagged for settlement until captured. Use the `referenceId` returned in the response to capture the transaction.
|
|
26
|
+
*
|
|
27
|
+
* When `autoCapture` is `true`, Payabli captures the transaction asynchronously after authorization. The response confirms only that the transaction was authorized; it doesn't confirm that capture succeeded. To confirm capture, listen for the [`payout_transaction_approvedcaptured`](/developers/webhooks/payout-transaction-approved-captured) webhook event.
|
|
24
28
|
*
|
|
25
29
|
* @param {Payabli.MoneyOutTypesRequestOutAuthorize} request
|
|
26
30
|
* @param {MoneyOutClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -193,7 +197,11 @@ export class MoneyOutClient {
|
|
|
193
197
|
method: "POST",
|
|
194
198
|
headers: _headers,
|
|
195
199
|
contentType: "application/json",
|
|
196
|
-
|
|
200
|
+
queryString: core.url
|
|
201
|
+
.queryBuilder()
|
|
202
|
+
.addMany(_queryParams)
|
|
203
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
204
|
+
.build(),
|
|
197
205
|
requestType: "json",
|
|
198
206
|
body: _body,
|
|
199
207
|
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,
|
|
@@ -253,7 +261,7 @@ export class MoneyOutClient {
|
|
|
253
261
|
method: "POST",
|
|
254
262
|
headers: _headers,
|
|
255
263
|
contentType: "application/json",
|
|
256
|
-
|
|
264
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
257
265
|
requestType: "json",
|
|
258
266
|
body: request,
|
|
259
267
|
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,
|
|
@@ -314,7 +322,7 @@ export class MoneyOutClient {
|
|
|
314
322
|
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, `MoneyOut/cancel/${core.url.encodePathParam(referenceId)}`),
|
|
315
323
|
method: "GET",
|
|
316
324
|
headers: _headers,
|
|
317
|
-
|
|
325
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
318
326
|
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,
|
|
319
327
|
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,
|
|
320
328
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -371,7 +379,7 @@ export class MoneyOutClient {
|
|
|
371
379
|
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, `MoneyOut/cancel/${core.url.encodePathParam(referenceId)}`),
|
|
372
380
|
method: "DELETE",
|
|
373
381
|
headers: _headers,
|
|
374
|
-
|
|
382
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
375
383
|
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,
|
|
376
384
|
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,
|
|
377
385
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -432,7 +440,7 @@ export class MoneyOutClient {
|
|
|
432
440
|
method: "POST",
|
|
433
441
|
headers: _headers,
|
|
434
442
|
contentType: "application/json",
|
|
435
|
-
|
|
443
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
436
444
|
requestType: "json",
|
|
437
445
|
body: _body,
|
|
438
446
|
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,
|
|
@@ -493,7 +501,7 @@ export class MoneyOutClient {
|
|
|
493
501
|
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, `MoneyOut/capture/${core.url.encodePathParam(referenceId)}`),
|
|
494
502
|
method: "GET",
|
|
495
503
|
headers: _headers,
|
|
496
|
-
|
|
504
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
497
505
|
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,
|
|
498
506
|
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,
|
|
499
507
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -550,7 +558,7 @@ export class MoneyOutClient {
|
|
|
550
558
|
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, `MoneyOut/details/${core.url.encodePathParam(transId)}`),
|
|
551
559
|
method: "GET",
|
|
552
560
|
headers: _headers,
|
|
553
|
-
|
|
561
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
554
562
|
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,
|
|
555
563
|
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,
|
|
556
564
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -607,7 +615,7 @@ export class MoneyOutClient {
|
|
|
607
615
|
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, `MoneyOut/vcard/${core.url.encodePathParam(cardToken)}`),
|
|
608
616
|
method: "GET",
|
|
609
617
|
headers: _headers,
|
|
610
|
-
|
|
618
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
611
619
|
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,
|
|
612
620
|
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,
|
|
613
621
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -667,7 +675,7 @@ export class MoneyOutClient {
|
|
|
667
675
|
method: "POST",
|
|
668
676
|
headers: _headers,
|
|
669
677
|
contentType: "application/json",
|
|
670
|
-
|
|
678
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
671
679
|
requestType: "json",
|
|
672
680
|
body: request,
|
|
673
681
|
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,
|
|
@@ -737,7 +745,7 @@ export class MoneyOutClient {
|
|
|
737
745
|
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, `MoneyOut/checkimage/${core.url.encodePathParam(assetName)}`),
|
|
738
746
|
method: "GET",
|
|
739
747
|
headers: _headers,
|
|
740
|
-
|
|
748
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
741
749
|
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,
|
|
742
750
|
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,
|
|
743
751
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -809,7 +817,7 @@ export class MoneyOutClient {
|
|
|
809
817
|
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, `MoneyOut/status/${core.url.encodePathParam(transId)}/${core.url.encodePathParam(checkPaymentStatus)}`),
|
|
810
818
|
method: "PATCH",
|
|
811
819
|
headers: _headers,
|
|
812
|
-
|
|
820
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
813
821
|
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,
|
|
814
822
|
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,
|
|
815
823
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -911,7 +919,11 @@ export class MoneyOutClient {
|
|
|
911
919
|
method: "POST",
|
|
912
920
|
headers: _headers,
|
|
913
921
|
contentType: "application/json",
|
|
914
|
-
|
|
922
|
+
queryString: core.url
|
|
923
|
+
.queryBuilder()
|
|
924
|
+
.addMany(_queryParams)
|
|
925
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
926
|
+
.build(),
|
|
915
927
|
requestType: "json",
|
|
916
928
|
body: _body,
|
|
917
929
|
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,
|
|
@@ -86,7 +86,7 @@ export class NotificationClient {
|
|
|
86
86
|
method: "POST",
|
|
87
87
|
headers: _headers,
|
|
88
88
|
contentType: "application/json",
|
|
89
|
-
|
|
89
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
90
90
|
requestType: "json",
|
|
91
91
|
body: request,
|
|
92
92
|
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,
|
|
@@ -148,7 +148,7 @@ export class NotificationClient {
|
|
|
148
148
|
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, `Notification/${core.url.encodePathParam(nId)}`),
|
|
149
149
|
method: "DELETE",
|
|
150
150
|
headers: _headers,
|
|
151
|
-
|
|
151
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
152
152
|
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,
|
|
153
153
|
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,
|
|
154
154
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -208,7 +208,7 @@ export class NotificationClient {
|
|
|
208
208
|
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, `Notification/${core.url.encodePathParam(nId)}`),
|
|
209
209
|
method: "GET",
|
|
210
210
|
headers: _headers,
|
|
211
|
-
|
|
211
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
212
212
|
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,
|
|
213
213
|
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,
|
|
214
214
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -277,7 +277,7 @@ export class NotificationClient {
|
|
|
277
277
|
method: "PUT",
|
|
278
278
|
headers: _headers,
|
|
279
279
|
contentType: "application/json",
|
|
280
|
-
|
|
280
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
281
281
|
requestType: "json",
|
|
282
282
|
body: request,
|
|
283
283
|
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,
|
|
@@ -334,7 +334,7 @@ export class NotificationClient {
|
|
|
334
334
|
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, `Export/notificationReport/${core.url.encodePathParam(Id)}`),
|
|
335
335
|
method: "GET",
|
|
336
336
|
headers: _headers,
|
|
337
|
-
|
|
337
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
338
338
|
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,
|
|
339
339
|
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,
|
|
340
340
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|