nordlet 0.3.8 → 0.3.9
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/dist/api/resources/account/types/ApiKeysListAccountResponse.d.ts +1 -0
- package/dist/api/resources/agreements/client/Client.d.ts +42 -0
- package/dist/api/resources/agreements/client/Client.js +158 -0
- package/dist/api/resources/agreements/client/requests/SettingsGetAgreementsRequest.d.ts +5 -0
- package/dist/api/resources/agreements/client/requests/SettingsGetAgreementsRequest.js +3 -0
- package/dist/api/resources/agreements/client/requests/SettingsUpdateAgreementsRequest.d.ts +9 -0
- package/dist/api/resources/agreements/client/requests/SettingsUpdateAgreementsRequest.js +3 -0
- package/dist/api/resources/agreements/client/requests/index.d.ts +2 -0
- package/dist/api/resources/agreements/types/SettingsGetAgreementsResponse.d.ts +3 -0
- package/dist/api/resources/agreements/types/SettingsGetAgreementsResponse.js +3 -0
- package/dist/api/resources/agreements/types/SettingsUpdateAgreementsResponse.d.ts +3 -0
- package/dist/api/resources/agreements/types/SettingsUpdateAgreementsResponse.js +3 -0
- package/dist/api/resources/agreements/types/index.d.ts +2 -0
- package/dist/api/resources/agreements/types/index.js +2 -0
- package/dist/api/resources/assets/client/Client.d.ts +42 -0
- package/dist/api/resources/assets/client/Client.js +155 -0
- package/dist/api/resources/assets/client/requests/SettingsGetAssetsRequest.d.ts +5 -0
- package/dist/api/resources/assets/client/requests/SettingsGetAssetsRequest.js +3 -0
- package/dist/api/resources/assets/client/requests/SettingsUpdateAssetsRequest.d.ts +9 -0
- package/dist/api/resources/assets/client/requests/SettingsUpdateAssetsRequest.js +3 -0
- package/dist/api/resources/assets/client/requests/index.d.ts +2 -0
- package/dist/api/resources/assets/types/SettingsGetAssetsResponse.d.ts +3 -0
- package/dist/api/resources/assets/types/SettingsGetAssetsResponse.js +3 -0
- package/dist/api/resources/assets/types/SettingsUpdateAssetsResponse.d.ts +3 -0
- package/dist/api/resources/assets/types/SettingsUpdateAssetsResponse.js +3 -0
- package/dist/api/resources/assets/types/index.d.ts +2 -0
- package/dist/api/resources/assets/types/index.js +2 -0
- package/dist/api/resources/bank/client/Client.d.ts +27 -0
- package/dist/api/resources/bank/client/Client.js +85 -0
- package/dist/api/resources/bank/client/requests/TransactionsMatchManyBankRequest.d.ts +32 -0
- package/dist/api/resources/bank/client/requests/TransactionsMatchManyBankRequest.js +17 -0
- package/dist/api/resources/bank/client/requests/index.d.ts +1 -0
- package/dist/api/resources/bank/client/requests/index.js +3 -1
- package/dist/api/resources/bank/types/TransactionsMatchManyBankResponse.d.ts +23 -0
- package/dist/api/resources/bank/types/TransactionsMatchManyBankResponse.js +11 -0
- package/dist/api/resources/bank/types/index.d.ts +1 -0
- package/dist/api/resources/bank/types/index.js +1 -0
- package/dist/api/resources/capture/client/requests/DocumentsConfirmCaptureRequest.d.ts +2 -0
- package/dist/api/resources/capture/types/DocumentsConfirmCaptureResponse.d.ts +2 -0
- package/dist/api/resources/cash/client/Client.d.ts +71 -2
- package/dist/api/resources/cash/client/Client.js +245 -2
- package/dist/api/resources/cash/client/requests/ExpenseReportsCreateCashRequest.d.ts +30 -0
- package/dist/api/resources/cash/client/requests/ExpenseReportsCreateCashRequest.js +3 -0
- package/dist/api/resources/cash/client/requests/ExpenseReportsGetCashRequest.d.ts +9 -0
- package/dist/api/resources/cash/client/requests/ExpenseReportsGetCashRequest.js +3 -0
- package/dist/api/resources/cash/client/requests/ExpenseReportsListCashRequest.d.ts +48 -0
- package/dist/api/resources/cash/client/requests/ExpenseReportsListCashRequest.js +31 -0
- package/dist/api/resources/cash/client/requests/OrdersCreateCashRequest.d.ts +4 -3
- package/dist/api/resources/cash/client/requests/index.d.ts +3 -0
- package/dist/api/resources/cash/client/requests/index.js +3 -1
- package/dist/api/resources/cash/types/AdvanceHoldersBalancesCashResponse.d.ts +1 -0
- package/dist/api/resources/cash/types/ExpenseReportsCreateCashResponse.d.ts +26 -0
- package/dist/api/resources/cash/types/ExpenseReportsCreateCashResponse.js +3 -0
- package/dist/api/resources/cash/types/ExpenseReportsGetCashResponse.d.ts +26 -0
- package/dist/api/resources/cash/types/ExpenseReportsGetCashResponse.js +3 -0
- package/dist/api/resources/cash/types/ExpenseReportsListCashResponse.d.ts +26 -0
- package/dist/api/resources/cash/types/ExpenseReportsListCashResponse.js +3 -0
- package/dist/api/resources/cash/types/OrdersCreateCashResponse.d.ts +2 -0
- package/dist/api/resources/cash/types/OrdersGetCashResponse.d.ts +2 -0
- package/dist/api/resources/cash/types/OrdersListCashResponse.d.ts +2 -0
- package/dist/api/resources/cash/types/index.d.ts +3 -0
- package/dist/api/resources/cash/types/index.js +3 -0
- package/dist/api/resources/hr/client/Client.d.ts +178 -0
- package/dist/api/resources/hr/client/Client.js +642 -0
- package/dist/api/resources/hr/client/requests/BusinessTripsApproveHrRequest.d.ts +9 -0
- package/dist/api/resources/hr/client/requests/BusinessTripsApproveHrRequest.js +3 -0
- package/dist/api/resources/hr/client/requests/BusinessTripsCreateHrRequest.d.ts +17 -0
- package/dist/api/resources/hr/client/requests/BusinessTripsCreateHrRequest.js +3 -0
- package/dist/api/resources/hr/client/requests/BusinessTripsDeleteHrRequest.d.ts +9 -0
- package/dist/api/resources/hr/client/requests/BusinessTripsDeleteHrRequest.js +3 -0
- package/dist/api/resources/hr/client/requests/BusinessTripsGetHrRequest.d.ts +9 -0
- package/dist/api/resources/hr/client/requests/BusinessTripsGetHrRequest.js +3 -0
- package/dist/api/resources/hr/client/requests/BusinessTripsListHrRequest.d.ts +48 -0
- package/dist/api/resources/hr/client/requests/BusinessTripsListHrRequest.js +31 -0
- package/dist/api/resources/hr/client/requests/PerDiemRatesCreateHrRequest.d.ts +13 -0
- package/dist/api/resources/hr/client/requests/PerDiemRatesCreateHrRequest.js +3 -0
- package/dist/api/resources/hr/client/requests/PerDiemRatesDeleteHrRequest.d.ts +9 -0
- package/dist/api/resources/hr/client/requests/PerDiemRatesDeleteHrRequest.js +3 -0
- package/dist/api/resources/hr/client/requests/PerDiemRatesListHrRequest.d.ts +48 -0
- package/dist/api/resources/hr/client/requests/PerDiemRatesListHrRequest.js +31 -0
- package/dist/api/resources/hr/client/requests/index.d.ts +8 -0
- package/dist/api/resources/hr/client/requests/index.js +5 -1
- package/dist/api/resources/hr/types/BusinessTripsApproveHrResponse.d.ts +22 -0
- package/dist/api/resources/hr/types/BusinessTripsApproveHrResponse.js +11 -0
- package/dist/api/resources/hr/types/BusinessTripsCreateHrResponse.d.ts +22 -0
- package/dist/api/resources/hr/types/BusinessTripsCreateHrResponse.js +11 -0
- package/dist/api/resources/hr/types/BusinessTripsDeleteHrResponse.d.ts +3 -0
- package/dist/api/resources/hr/types/BusinessTripsDeleteHrResponse.js +3 -0
- package/dist/api/resources/hr/types/BusinessTripsGetHrResponse.d.ts +22 -0
- package/dist/api/resources/hr/types/BusinessTripsGetHrResponse.js +11 -0
- package/dist/api/resources/hr/types/BusinessTripsListHrResponse.d.ts +36 -0
- package/dist/api/resources/hr/types/BusinessTripsListHrResponse.js +17 -0
- package/dist/api/resources/hr/types/PerDiemRatesCreateHrResponse.d.ts +7 -0
- package/dist/api/resources/hr/types/PerDiemRatesCreateHrResponse.js +3 -0
- package/dist/api/resources/hr/types/PerDiemRatesDeleteHrResponse.d.ts +3 -0
- package/dist/api/resources/hr/types/PerDiemRatesDeleteHrResponse.js +3 -0
- package/dist/api/resources/hr/types/PerDiemRatesListHrResponse.d.ts +21 -0
- package/dist/api/resources/hr/types/PerDiemRatesListHrResponse.js +3 -0
- package/dist/api/resources/hr/types/index.d.ts +8 -0
- package/dist/api/resources/hr/types/index.js +8 -0
- package/dist/api/resources/ledger/client/requests/PostingRulesUpdateLedgerRequest.d.ts +2 -0
- package/dist/api/resources/ledger/client/requests/PostingRulesUpdateLedgerRequest.js +2 -0
- package/dist/api/resources/partners/client/Client.d.ts +23 -0
- package/dist/api/resources/partners/client/Client.js +78 -0
- package/dist/api/resources/partners/client/requests/MergePartnersRequest.d.ts +11 -0
- package/dist/api/resources/partners/client/requests/MergePartnersRequest.js +3 -0
- package/dist/api/resources/partners/client/requests/index.d.ts +1 -0
- package/dist/api/resources/partners/types/MergePartnersResponse.d.ts +15 -0
- package/dist/api/resources/partners/types/MergePartnersResponse.js +3 -0
- package/dist/api/resources/partners/types/index.d.ts +1 -0
- package/dist/api/resources/partners/types/index.js +1 -0
- package/dist/api/resources/payroll/client/Client.d.ts +23 -0
- package/dist/api/resources/payroll/client/Client.js +81 -0
- package/dist/api/resources/payroll/client/requests/RunsReversePayrollRequest.d.ts +11 -0
- package/dist/api/resources/payroll/client/requests/RunsReversePayrollRequest.js +3 -0
- package/dist/api/resources/payroll/client/requests/index.d.ts +1 -0
- package/dist/api/resources/payroll/types/RunsApprovePayrollResponse.d.ts +4 -0
- package/dist/api/resources/payroll/types/RunsApprovePayrollResponse.js +1 -0
- package/dist/api/resources/payroll/types/RunsCreatePayrollResponse.d.ts +4 -0
- package/dist/api/resources/payroll/types/RunsCreatePayrollResponse.js +1 -0
- package/dist/api/resources/payroll/types/RunsGetPayrollResponse.d.ts +4 -0
- package/dist/api/resources/payroll/types/RunsGetPayrollResponse.js +1 -0
- package/dist/api/resources/payroll/types/RunsListPayrollResponse.d.ts +4 -0
- package/dist/api/resources/payroll/types/RunsListPayrollResponse.js +1 -0
- package/dist/api/resources/payroll/types/RunsReversePayrollResponse.d.ts +51 -0
- package/dist/api/resources/payroll/types/RunsReversePayrollResponse.js +25 -0
- package/dist/api/resources/payroll/types/index.d.ts +1 -0
- package/dist/api/resources/payroll/types/index.js +1 -0
- package/dist/api/resources/pos/client/Client.d.ts +156 -0
- package/dist/api/resources/pos/client/Client.js +541 -0
- package/dist/api/resources/pos/client/requests/ReceiptsCreatePosRequest.d.ts +29 -0
- package/dist/api/resources/pos/client/requests/ReceiptsCreatePosRequest.js +3 -0
- package/dist/api/resources/pos/client/requests/ReceiptsGetPosRequest.d.ts +9 -0
- package/dist/api/resources/pos/client/requests/ReceiptsGetPosRequest.js +3 -0
- package/dist/api/resources/pos/client/requests/ReceiptsListPosRequest.d.ts +48 -0
- package/dist/api/resources/pos/client/requests/ReceiptsListPosRequest.js +31 -0
- package/dist/api/resources/pos/client/requests/ShiftsClosePosRequest.d.ts +13 -0
- package/dist/api/resources/pos/client/requests/ShiftsClosePosRequest.js +3 -0
- package/dist/api/resources/pos/client/requests/ShiftsGetPosRequest.d.ts +9 -0
- package/dist/api/resources/pos/client/requests/ShiftsGetPosRequest.js +3 -0
- package/dist/api/resources/pos/client/requests/ShiftsListPosRequest.d.ts +48 -0
- package/dist/api/resources/pos/client/requests/ShiftsListPosRequest.js +31 -0
- package/dist/api/resources/pos/client/requests/ShiftsOpenPosRequest.d.ts +11 -0
- package/dist/api/resources/pos/client/requests/ShiftsOpenPosRequest.js +3 -0
- package/dist/api/resources/pos/client/requests/index.d.ts +7 -0
- package/dist/api/resources/pos/client/requests/index.js +5 -1
- package/dist/api/resources/pos/types/ReceiptsCreatePosResponse.d.ts +28 -0
- package/dist/api/resources/pos/types/ReceiptsCreatePosResponse.js +3 -0
- package/dist/api/resources/pos/types/ReceiptsGetPosResponse.d.ts +28 -0
- package/dist/api/resources/pos/types/ReceiptsGetPosResponse.js +3 -0
- package/dist/api/resources/pos/types/ReceiptsListPosResponse.d.ts +25 -0
- package/dist/api/resources/pos/types/ReceiptsListPosResponse.js +3 -0
- package/dist/api/resources/pos/types/ShiftsClosePosResponse.d.ts +21 -0
- package/dist/api/resources/pos/types/ShiftsClosePosResponse.js +11 -0
- package/dist/api/resources/pos/types/ShiftsGetPosResponse.d.ts +19 -0
- package/dist/api/resources/pos/types/ShiftsGetPosResponse.js +11 -0
- package/dist/api/resources/pos/types/ShiftsListPosResponse.d.ts +33 -0
- package/dist/api/resources/pos/types/ShiftsListPosResponse.js +17 -0
- package/dist/api/resources/pos/types/ShiftsOpenPosResponse.d.ts +19 -0
- package/dist/api/resources/pos/types/ShiftsOpenPosResponse.js +11 -0
- package/dist/api/resources/pos/types/index.d.ts +7 -0
- package/dist/api/resources/pos/types/index.js +7 -0
- package/dist/api/resources/purchases/client/Client.d.ts +40 -0
- package/dist/api/resources/purchases/client/Client.js +156 -0
- package/dist/api/resources/purchases/client/requests/DeferralsListPurchasesRequest.d.ts +48 -0
- package/dist/api/resources/purchases/client/requests/DeferralsListPurchasesRequest.js +31 -0
- package/dist/api/resources/purchases/client/requests/DeferralsPostPurchasesRequest.d.ts +7 -0
- package/dist/api/resources/purchases/client/requests/DeferralsPostPurchasesRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/InvoicesCreatePurchasesRequest.d.ts +2 -0
- package/dist/api/resources/purchases/client/requests/InvoicesUpdatePurchasesRequest.d.ts +2 -0
- package/dist/api/resources/purchases/client/requests/OrdersCreatePurchasesRequest.d.ts +2 -0
- package/dist/api/resources/purchases/client/requests/OrdersUpdatePurchasesRequest.d.ts +2 -0
- package/dist/api/resources/purchases/client/requests/index.d.ts +2 -0
- package/dist/api/resources/purchases/client/requests/index.js +3 -1
- package/dist/api/resources/purchases/types/DeferralsListPurchasesResponse.d.ts +34 -0
- package/dist/api/resources/purchases/types/DeferralsListPurchasesResponse.js +18 -0
- package/dist/api/resources/purchases/types/DeferralsPostPurchasesResponse.d.ts +5 -0
- package/dist/api/resources/purchases/types/DeferralsPostPurchasesResponse.js +3 -0
- package/dist/api/resources/purchases/types/InvoicesCreatePurchasesResponse.d.ts +2 -0
- package/dist/api/resources/purchases/types/InvoicesGetPurchasesResponse.d.ts +2 -0
- package/dist/api/resources/purchases/types/InvoicesRegisterPurchasesResponse.d.ts +2 -0
- package/dist/api/resources/purchases/types/InvoicesUpdatePurchasesResponse.d.ts +2 -0
- package/dist/api/resources/purchases/types/index.d.ts +2 -0
- package/dist/api/resources/purchases/types/index.js +2 -0
- package/dist/api/resources/reports/types/AdvanceReconciliationReportsResponse.d.ts +1 -0
- package/dist/api/resources/sales/client/requests/InvoicesIssueSalesRequest.d.ts +1 -0
- package/dist/api/resources/webhooks/client/requests/SubscriptionsCreateWebhooksRequest.d.ts +1 -0
- package/dist/api/resources/webhooks/client/requests/SubscriptionsCreateWebhooksRequest.js +1 -0
- package/dist/api/resources/webhooks/client/requests/SubscriptionsUpdateWebhooksRequest.d.ts +1 -0
- package/dist/api/resources/webhooks/client/requests/SubscriptionsUpdateWebhooksRequest.js +1 -0
- package/package.json +1 -1
|
@@ -1861,6 +1861,84 @@ class PartnersClient {
|
|
|
1861
1861
|
}
|
|
1862
1862
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/partners/delete");
|
|
1863
1863
|
}
|
|
1864
|
+
/**
|
|
1865
|
+
* @param {NordletApi.MergePartnersRequest} request
|
|
1866
|
+
* @param {PartnersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1867
|
+
*
|
|
1868
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
1869
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
1870
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
1871
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
1872
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
1873
|
+
* @throws {@link NordletApi.ConflictError}
|
|
1874
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
1875
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
1876
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
1877
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
1878
|
+
*
|
|
1879
|
+
* @example
|
|
1880
|
+
* await client.partners.merge({
|
|
1881
|
+
* sourceId: "sourceId",
|
|
1882
|
+
* targetId: "targetId"
|
|
1883
|
+
* })
|
|
1884
|
+
*/
|
|
1885
|
+
merge(request, requestOptions) {
|
|
1886
|
+
return core.HttpResponsePromise.fromPromise(this.__merge(request, requestOptions));
|
|
1887
|
+
}
|
|
1888
|
+
async __merge(request, requestOptions) {
|
|
1889
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1890
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1891
|
+
const _response = await core.fetcher({
|
|
1892
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1893
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1894
|
+
environments.NordletApiEnvironment.Production, "v1/partners/merge"),
|
|
1895
|
+
method: "POST",
|
|
1896
|
+
headers: _headers,
|
|
1897
|
+
contentType: "application/json",
|
|
1898
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1899
|
+
requestType: "json",
|
|
1900
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
1901
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1902
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1903
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1904
|
+
fetchFn: this._options?.fetch,
|
|
1905
|
+
logging: this._options.logging,
|
|
1906
|
+
});
|
|
1907
|
+
if (_response.ok) {
|
|
1908
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1909
|
+
}
|
|
1910
|
+
if (_response.error.reason === "status-code") {
|
|
1911
|
+
switch (_response.error.statusCode) {
|
|
1912
|
+
case 400:
|
|
1913
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1914
|
+
case 401:
|
|
1915
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1916
|
+
case 402:
|
|
1917
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
1918
|
+
case 403:
|
|
1919
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1920
|
+
case 404:
|
|
1921
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1922
|
+
case 409:
|
|
1923
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
1924
|
+
case 413:
|
|
1925
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
1926
|
+
case 422:
|
|
1927
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1928
|
+
case 429:
|
|
1929
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1930
|
+
case 500:
|
|
1931
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1932
|
+
default:
|
|
1933
|
+
throw new errors.NordletApiError({
|
|
1934
|
+
statusCode: _response.error.statusCode,
|
|
1935
|
+
body: _response.error.body,
|
|
1936
|
+
rawResponse: _response.rawResponse,
|
|
1937
|
+
});
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/partners/merge");
|
|
1941
|
+
}
|
|
1864
1942
|
/**
|
|
1865
1943
|
* Removes birth date, self-employment certificate number, email, phone, address, notes, contacts, addresses and bank accounts, then hides the partner. The name, code and VAT number stay because issued invoices must keep identifying the counterparty for the statutory retention period.
|
|
1866
1944
|
*
|
|
@@ -28,6 +28,7 @@ export type { InquiriesGetPartnersRequest } from "./InquiriesGetPartnersRequest.
|
|
|
28
28
|
export { InquiriesListPartnersRequest } from "./InquiriesListPartnersRequest.js";
|
|
29
29
|
export { InquiriesUpdatePartnersRequest } from "./InquiriesUpdatePartnersRequest.js";
|
|
30
30
|
export { ListPartnersRequest } from "./ListPartnersRequest.js";
|
|
31
|
+
export type { MergePartnersRequest } from "./MergePartnersRequest.js";
|
|
31
32
|
export type { StatusesCreatePartnersRequest } from "./StatusesCreatePartnersRequest.js";
|
|
32
33
|
export type { StatusesDeletePartnersRequest } from "./StatusesDeletePartnersRequest.js";
|
|
33
34
|
export type { StatusesListPartnersRequest } from "./StatusesListPartnersRequest.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface MergePartnersResponse {
|
|
2
|
+
targetId: string;
|
|
3
|
+
sourceId: string;
|
|
4
|
+
moved: MergePartnersResponse.Moved.Item[];
|
|
5
|
+
}
|
|
6
|
+
export declare namespace MergePartnersResponse {
|
|
7
|
+
type Moved = Moved.Item[];
|
|
8
|
+
namespace Moved {
|
|
9
|
+
interface Item {
|
|
10
|
+
table: string;
|
|
11
|
+
column: string;
|
|
12
|
+
rows: number;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -28,6 +28,7 @@ export * from "./InquiriesGetPartnersResponse.js";
|
|
|
28
28
|
export * from "./InquiriesListPartnersResponse.js";
|
|
29
29
|
export * from "./InquiriesUpdatePartnersResponse.js";
|
|
30
30
|
export * from "./ListPartnersResponse.js";
|
|
31
|
+
export * from "./MergePartnersResponse.js";
|
|
31
32
|
export * from "./StatusesCreatePartnersResponse.js";
|
|
32
33
|
export * from "./StatusesDeletePartnersResponse.js";
|
|
33
34
|
export * from "./StatusesListPartnersResponse.js";
|
|
@@ -44,6 +44,7 @@ __exportStar(require("./InquiriesGetPartnersResponse.js"), exports);
|
|
|
44
44
|
__exportStar(require("./InquiriesListPartnersResponse.js"), exports);
|
|
45
45
|
__exportStar(require("./InquiriesUpdatePartnersResponse.js"), exports);
|
|
46
46
|
__exportStar(require("./ListPartnersResponse.js"), exports);
|
|
47
|
+
__exportStar(require("./MergePartnersResponse.js"), exports);
|
|
47
48
|
__exportStar(require("./StatusesCreatePartnersResponse.js"), exports);
|
|
48
49
|
__exportStar(require("./StatusesDeletePartnersResponse.js"), exports);
|
|
49
50
|
__exportStar(require("./StatusesListPartnersResponse.js"), exports);
|
|
@@ -230,6 +230,29 @@ export declare class PayrollClient {
|
|
|
230
230
|
*/
|
|
231
231
|
runsApprove(request: NordletApi.RunsApprovePayrollRequest, requestOptions?: PayrollClient.RequestOptions): core.HttpResponsePromise<NordletApi.RunsApprovePayrollResponse>;
|
|
232
232
|
private __runsApprove;
|
|
233
|
+
/**
|
|
234
|
+
* @param {NordletApi.RunsReversePayrollRequest} request
|
|
235
|
+
* @param {PayrollClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
236
|
+
*
|
|
237
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
238
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
239
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
240
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
241
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
242
|
+
* @throws {@link NordletApi.ConflictError}
|
|
243
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
244
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
245
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
246
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
247
|
+
*
|
|
248
|
+
* @example
|
|
249
|
+
* await client.payroll.runsReverse({
|
|
250
|
+
* id: "id",
|
|
251
|
+
* reason: "reason"
|
|
252
|
+
* })
|
|
253
|
+
*/
|
|
254
|
+
runsReverse(request: NordletApi.RunsReversePayrollRequest, requestOptions?: PayrollClient.RequestOptions): core.HttpResponsePromise<NordletApi.RunsReversePayrollResponse>;
|
|
255
|
+
private __runsReverse;
|
|
233
256
|
/**
|
|
234
257
|
* @param {NordletApi.RunsCancelPayrollRequest} request
|
|
235
258
|
* @param {PayrollClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -835,6 +835,87 @@ class PayrollClient {
|
|
|
835
835
|
}
|
|
836
836
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/payroll/runs/approve");
|
|
837
837
|
}
|
|
838
|
+
/**
|
|
839
|
+
* @param {NordletApi.RunsReversePayrollRequest} request
|
|
840
|
+
* @param {PayrollClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
841
|
+
*
|
|
842
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
843
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
844
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
845
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
846
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
847
|
+
* @throws {@link NordletApi.ConflictError}
|
|
848
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
849
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
850
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
851
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
852
|
+
*
|
|
853
|
+
* @example
|
|
854
|
+
* await client.payroll.runsReverse({
|
|
855
|
+
* id: "id",
|
|
856
|
+
* reason: "reason"
|
|
857
|
+
* })
|
|
858
|
+
*/
|
|
859
|
+
runsReverse(request, requestOptions) {
|
|
860
|
+
return core.HttpResponsePromise.fromPromise(this.__runsReverse(request, requestOptions));
|
|
861
|
+
}
|
|
862
|
+
async __runsReverse(request, requestOptions) {
|
|
863
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
864
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
865
|
+
const _response = await core.fetcher({
|
|
866
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
867
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
868
|
+
environments.NordletApiEnvironment.Production, "v1/payroll/runs/reverse"),
|
|
869
|
+
method: "POST",
|
|
870
|
+
headers: _headers,
|
|
871
|
+
contentType: "application/json",
|
|
872
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
873
|
+
requestType: "json",
|
|
874
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
875
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
876
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
877
|
+
abortSignal: requestOptions?.abortSignal,
|
|
878
|
+
fetchFn: this._options?.fetch,
|
|
879
|
+
logging: this._options.logging,
|
|
880
|
+
});
|
|
881
|
+
if (_response.ok) {
|
|
882
|
+
return {
|
|
883
|
+
data: _response.body,
|
|
884
|
+
rawResponse: _response.rawResponse,
|
|
885
|
+
};
|
|
886
|
+
}
|
|
887
|
+
if (_response.error.reason === "status-code") {
|
|
888
|
+
switch (_response.error.statusCode) {
|
|
889
|
+
case 400:
|
|
890
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
891
|
+
case 401:
|
|
892
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
893
|
+
case 402:
|
|
894
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
895
|
+
case 403:
|
|
896
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
897
|
+
case 404:
|
|
898
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
899
|
+
case 409:
|
|
900
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
901
|
+
case 413:
|
|
902
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
903
|
+
case 422:
|
|
904
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
905
|
+
case 429:
|
|
906
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
907
|
+
case 500:
|
|
908
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
909
|
+
default:
|
|
910
|
+
throw new errors.NordletApiError({
|
|
911
|
+
statusCode: _response.error.statusCode,
|
|
912
|
+
body: _response.error.body,
|
|
913
|
+
rawResponse: _response.rawResponse,
|
|
914
|
+
});
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/payroll/runs/reverse");
|
|
918
|
+
}
|
|
838
919
|
/**
|
|
839
920
|
* @param {NordletApi.RunsCancelPayrollRequest} request
|
|
840
921
|
* @param {PayrollClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -8,5 +8,6 @@ export type { RunsCancelPayrollRequest } from "./RunsCancelPayrollRequest.js";
|
|
|
8
8
|
export type { RunsCreatePayrollRequest } from "./RunsCreatePayrollRequest.js";
|
|
9
9
|
export type { RunsGetPayrollRequest } from "./RunsGetPayrollRequest.js";
|
|
10
10
|
export { RunsListPayrollRequest } from "./RunsListPayrollRequest.js";
|
|
11
|
+
export type { RunsReversePayrollRequest } from "./RunsReversePayrollRequest.js";
|
|
11
12
|
export type { SchedulesCreatePayrollRequest } from "./SchedulesCreatePayrollRequest.js";
|
|
12
13
|
export type { SchedulesListPayrollRequest } from "./SchedulesListPayrollRequest.js";
|
|
@@ -17,11 +17,15 @@ export interface RunsApprovePayrollResponse {
|
|
|
17
17
|
warnings: string[];
|
|
18
18
|
createdAt: string;
|
|
19
19
|
approvedAt: string | null;
|
|
20
|
+
reversedAt: string | null;
|
|
21
|
+
reversalJournalTransactionId: string | null;
|
|
22
|
+
reversalReason: string | null;
|
|
20
23
|
}
|
|
21
24
|
export declare namespace RunsApprovePayrollResponse {
|
|
22
25
|
const Status: {
|
|
23
26
|
readonly Draft: "draft";
|
|
24
27
|
readonly Approved: "approved";
|
|
28
|
+
readonly Reversed: "reversed";
|
|
25
29
|
};
|
|
26
30
|
type Status = (typeof Status)[keyof typeof Status];
|
|
27
31
|
type ComponentTotals = ComponentTotals.Item[];
|
|
@@ -17,12 +17,16 @@ export interface RunsCreatePayrollResponse {
|
|
|
17
17
|
warnings: string[];
|
|
18
18
|
createdAt: string;
|
|
19
19
|
approvedAt: string | null;
|
|
20
|
+
reversedAt: string | null;
|
|
21
|
+
reversalJournalTransactionId: string | null;
|
|
22
|
+
reversalReason: string | null;
|
|
20
23
|
lines: RunsCreatePayrollResponse.Lines.Item[];
|
|
21
24
|
}
|
|
22
25
|
export declare namespace RunsCreatePayrollResponse {
|
|
23
26
|
const Status: {
|
|
24
27
|
readonly Draft: "draft";
|
|
25
28
|
readonly Approved: "approved";
|
|
29
|
+
readonly Reversed: "reversed";
|
|
26
30
|
};
|
|
27
31
|
type Status = (typeof Status)[keyof typeof Status];
|
|
28
32
|
type ComponentTotals = ComponentTotals.Item[];
|
|
@@ -17,12 +17,16 @@ export interface RunsGetPayrollResponse {
|
|
|
17
17
|
warnings: string[];
|
|
18
18
|
createdAt: string;
|
|
19
19
|
approvedAt: string | null;
|
|
20
|
+
reversedAt: string | null;
|
|
21
|
+
reversalJournalTransactionId: string | null;
|
|
22
|
+
reversalReason: string | null;
|
|
20
23
|
lines: RunsGetPayrollResponse.Lines.Item[];
|
|
21
24
|
}
|
|
22
25
|
export declare namespace RunsGetPayrollResponse {
|
|
23
26
|
const Status: {
|
|
24
27
|
readonly Draft: "draft";
|
|
25
28
|
readonly Approved: "approved";
|
|
29
|
+
readonly Reversed: "reversed";
|
|
26
30
|
};
|
|
27
31
|
type Status = (typeof Status)[keyof typeof Status];
|
|
28
32
|
type ComponentTotals = ComponentTotals.Item[];
|
|
@@ -29,11 +29,15 @@ export declare namespace RunsListPayrollResponse {
|
|
|
29
29
|
warnings: string[];
|
|
30
30
|
createdAt: string;
|
|
31
31
|
approvedAt: string | null;
|
|
32
|
+
reversedAt: string | null;
|
|
33
|
+
reversalJournalTransactionId: string | null;
|
|
34
|
+
reversalReason: string | null;
|
|
32
35
|
}
|
|
33
36
|
namespace Item {
|
|
34
37
|
const Status: {
|
|
35
38
|
readonly Draft: "draft";
|
|
36
39
|
readonly Approved: "approved";
|
|
40
|
+
readonly Reversed: "reversed";
|
|
37
41
|
};
|
|
38
42
|
type Status = (typeof Status)[keyof typeof Status];
|
|
39
43
|
type ComponentTotals = ComponentTotals.Item[];
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export interface RunsReversePayrollResponse {
|
|
2
|
+
id: string;
|
|
3
|
+
year: number;
|
|
4
|
+
month: number;
|
|
5
|
+
countryCode: string;
|
|
6
|
+
payDate: string | null;
|
|
7
|
+
status: RunsReversePayrollResponse.Status;
|
|
8
|
+
grossTotal: string;
|
|
9
|
+
taxAllowanceTotal: string;
|
|
10
|
+
incomeTaxTotal: string;
|
|
11
|
+
employeeContributionsTotal: string;
|
|
12
|
+
employerContributionsTotal: string;
|
|
13
|
+
componentTotals: RunsReversePayrollResponse.ComponentTotals.Item[];
|
|
14
|
+
netTotal: string;
|
|
15
|
+
journalTransactionId: string | null;
|
|
16
|
+
notes: string | null;
|
|
17
|
+
warnings: string[];
|
|
18
|
+
createdAt: string;
|
|
19
|
+
approvedAt: string | null;
|
|
20
|
+
reversedAt: string | null;
|
|
21
|
+
reversalJournalTransactionId: string | null;
|
|
22
|
+
reversalReason: string | null;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace RunsReversePayrollResponse {
|
|
25
|
+
const Status: {
|
|
26
|
+
readonly Draft: "draft";
|
|
27
|
+
readonly Approved: "approved";
|
|
28
|
+
readonly Reversed: "reversed";
|
|
29
|
+
};
|
|
30
|
+
type Status = (typeof Status)[keyof typeof Status];
|
|
31
|
+
type ComponentTotals = ComponentTotals.Item[];
|
|
32
|
+
namespace ComponentTotals {
|
|
33
|
+
interface Item {
|
|
34
|
+
code: string;
|
|
35
|
+
kind: Item.Kind;
|
|
36
|
+
amount: string;
|
|
37
|
+
rate?: string | undefined;
|
|
38
|
+
base?: string | undefined;
|
|
39
|
+
}
|
|
40
|
+
namespace Item {
|
|
41
|
+
const Kind: {
|
|
42
|
+
readonly Allowance: "allowance";
|
|
43
|
+
readonly EmployeeTax: "employee_tax";
|
|
44
|
+
readonly EmployeeContribution: "employee_contribution";
|
|
45
|
+
readonly EmployerContribution: "employer_contribution";
|
|
46
|
+
readonly EmployerPayment: "employer_payment";
|
|
47
|
+
};
|
|
48
|
+
type Kind = (typeof Kind)[keyof typeof Kind];
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.RunsReversePayrollResponse = void 0;
|
|
5
|
+
var RunsReversePayrollResponse;
|
|
6
|
+
(function (RunsReversePayrollResponse) {
|
|
7
|
+
RunsReversePayrollResponse.Status = {
|
|
8
|
+
Draft: "draft",
|
|
9
|
+
Approved: "approved",
|
|
10
|
+
Reversed: "reversed",
|
|
11
|
+
};
|
|
12
|
+
let ComponentTotals;
|
|
13
|
+
(function (ComponentTotals) {
|
|
14
|
+
let Item;
|
|
15
|
+
(function (Item) {
|
|
16
|
+
Item.Kind = {
|
|
17
|
+
Allowance: "allowance",
|
|
18
|
+
EmployeeTax: "employee_tax",
|
|
19
|
+
EmployeeContribution: "employee_contribution",
|
|
20
|
+
EmployerContribution: "employer_contribution",
|
|
21
|
+
EmployerPayment: "employer_payment",
|
|
22
|
+
};
|
|
23
|
+
})(Item = ComponentTotals.Item || (ComponentTotals.Item = {}));
|
|
24
|
+
})(ComponentTotals = RunsReversePayrollResponse.ComponentTotals || (RunsReversePayrollResponse.ComponentTotals = {}));
|
|
25
|
+
})(RunsReversePayrollResponse || (exports.RunsReversePayrollResponse = RunsReversePayrollResponse = {}));
|
|
@@ -8,5 +8,6 @@ export * from "./RunsCancelPayrollResponse.js";
|
|
|
8
8
|
export * from "./RunsCreatePayrollResponse.js";
|
|
9
9
|
export * from "./RunsGetPayrollResponse.js";
|
|
10
10
|
export * from "./RunsListPayrollResponse.js";
|
|
11
|
+
export * from "./RunsReversePayrollResponse.js";
|
|
11
12
|
export * from "./SchedulesCreatePayrollResponse.js";
|
|
12
13
|
export * from "./SchedulesListPayrollResponse.js";
|
|
@@ -24,5 +24,6 @@ __exportStar(require("./RunsCancelPayrollResponse.js"), exports);
|
|
|
24
24
|
__exportStar(require("./RunsCreatePayrollResponse.js"), exports);
|
|
25
25
|
__exportStar(require("./RunsGetPayrollResponse.js"), exports);
|
|
26
26
|
__exportStar(require("./RunsListPayrollResponse.js"), exports);
|
|
27
|
+
__exportStar(require("./RunsReversePayrollResponse.js"), exports);
|
|
27
28
|
__exportStar(require("./SchedulesCreatePayrollResponse.js"), exports);
|
|
28
29
|
__exportStar(require("./SchedulesListPayrollResponse.js"), exports);
|
|
@@ -145,4 +145,160 @@ export declare class PosClient {
|
|
|
145
145
|
*/
|
|
146
146
|
reportsList(request?: NordletApi.ReportsListPosRequest, requestOptions?: PosClient.RequestOptions): core.HttpResponsePromise<NordletApi.ReportsListPosResponse>;
|
|
147
147
|
private __reportsList;
|
|
148
|
+
/**
|
|
149
|
+
* @param {NordletApi.ShiftsOpenPosRequest} request
|
|
150
|
+
* @param {PosClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
151
|
+
*
|
|
152
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
153
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
154
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
155
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
156
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
157
|
+
* @throws {@link NordletApi.ConflictError}
|
|
158
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
159
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
160
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
161
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
162
|
+
*
|
|
163
|
+
* @example
|
|
164
|
+
* await client.pos.shiftsOpen({
|
|
165
|
+
* deviceId: "deviceId"
|
|
166
|
+
* })
|
|
167
|
+
*/
|
|
168
|
+
shiftsOpen(request: NordletApi.ShiftsOpenPosRequest, requestOptions?: PosClient.RequestOptions): core.HttpResponsePromise<NordletApi.ShiftsOpenPosResponse>;
|
|
169
|
+
private __shiftsOpen;
|
|
170
|
+
/**
|
|
171
|
+
* @param {NordletApi.ShiftsGetPosRequest} request
|
|
172
|
+
* @param {PosClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
173
|
+
*
|
|
174
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
175
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
176
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
177
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
178
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
179
|
+
* @throws {@link NordletApi.ConflictError}
|
|
180
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
181
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
182
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
183
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
* await client.pos.shiftsGet({
|
|
187
|
+
* id: "id"
|
|
188
|
+
* })
|
|
189
|
+
*/
|
|
190
|
+
shiftsGet(request: NordletApi.ShiftsGetPosRequest, requestOptions?: PosClient.RequestOptions): core.HttpResponsePromise<NordletApi.ShiftsGetPosResponse>;
|
|
191
|
+
private __shiftsGet;
|
|
192
|
+
/**
|
|
193
|
+
* @param {NordletApi.ShiftsListPosRequest} request
|
|
194
|
+
* @param {PosClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
195
|
+
*
|
|
196
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
197
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
198
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
199
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
200
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
201
|
+
* @throws {@link NordletApi.ConflictError}
|
|
202
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
203
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
204
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
205
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
206
|
+
*
|
|
207
|
+
* @example
|
|
208
|
+
* await client.pos.shiftsList()
|
|
209
|
+
*/
|
|
210
|
+
shiftsList(request?: NordletApi.ShiftsListPosRequest, requestOptions?: PosClient.RequestOptions): core.HttpResponsePromise<NordletApi.ShiftsListPosResponse>;
|
|
211
|
+
private __shiftsList;
|
|
212
|
+
/**
|
|
213
|
+
* @param {NordletApi.ReceiptsCreatePosRequest} request
|
|
214
|
+
* @param {PosClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
215
|
+
*
|
|
216
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
217
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
218
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
219
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
220
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
221
|
+
* @throws {@link NordletApi.ConflictError}
|
|
222
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
223
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
224
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
225
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
226
|
+
*
|
|
227
|
+
* @example
|
|
228
|
+
* await client.pos.receiptsCreate({
|
|
229
|
+
* shiftId: "shiftId",
|
|
230
|
+
* lines: [{
|
|
231
|
+
* quantity: "121.0000",
|
|
232
|
+
* unitPriceInclVat: "121.0000",
|
|
233
|
+
* vatRatePercent: "121.00"
|
|
234
|
+
* }]
|
|
235
|
+
* })
|
|
236
|
+
*/
|
|
237
|
+
receiptsCreate(request: NordletApi.ReceiptsCreatePosRequest, requestOptions?: PosClient.RequestOptions): core.HttpResponsePromise<NordletApi.ReceiptsCreatePosResponse>;
|
|
238
|
+
private __receiptsCreate;
|
|
239
|
+
/**
|
|
240
|
+
* @param {NordletApi.ReceiptsListPosRequest} request
|
|
241
|
+
* @param {PosClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
242
|
+
*
|
|
243
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
244
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
245
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
246
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
247
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
248
|
+
* @throws {@link NordletApi.ConflictError}
|
|
249
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
250
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
251
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
252
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
253
|
+
*
|
|
254
|
+
* @example
|
|
255
|
+
* await client.pos.receiptsList()
|
|
256
|
+
*/
|
|
257
|
+
receiptsList(request?: NordletApi.ReceiptsListPosRequest, requestOptions?: PosClient.RequestOptions): core.HttpResponsePromise<NordletApi.ReceiptsListPosResponse>;
|
|
258
|
+
private __receiptsList;
|
|
259
|
+
/**
|
|
260
|
+
* @param {NordletApi.ReceiptsGetPosRequest} request
|
|
261
|
+
* @param {PosClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
262
|
+
*
|
|
263
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
264
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
265
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
266
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
267
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
268
|
+
* @throws {@link NordletApi.ConflictError}
|
|
269
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
270
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
271
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
272
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
273
|
+
*
|
|
274
|
+
* @example
|
|
275
|
+
* await client.pos.receiptsGet({
|
|
276
|
+
* id: "id"
|
|
277
|
+
* })
|
|
278
|
+
*/
|
|
279
|
+
receiptsGet(request: NordletApi.ReceiptsGetPosRequest, requestOptions?: PosClient.RequestOptions): core.HttpResponsePromise<NordletApi.ReceiptsGetPosResponse>;
|
|
280
|
+
private __receiptsGet;
|
|
281
|
+
/**
|
|
282
|
+
* @param {NordletApi.ShiftsClosePosRequest} request
|
|
283
|
+
* @param {PosClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
284
|
+
*
|
|
285
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
286
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
287
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
288
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
289
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
290
|
+
* @throws {@link NordletApi.ConflictError}
|
|
291
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
292
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
293
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
294
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
295
|
+
*
|
|
296
|
+
* @example
|
|
297
|
+
* await client.pos.shiftsClose({
|
|
298
|
+
* id: "id",
|
|
299
|
+
* countedCash: "121.00"
|
|
300
|
+
* })
|
|
301
|
+
*/
|
|
302
|
+
shiftsClose(request: NordletApi.ShiftsClosePosRequest, requestOptions?: PosClient.RequestOptions): core.HttpResponsePromise<NordletApi.ShiftsClosePosResponse>;
|
|
303
|
+
private __shiftsClose;
|
|
148
304
|
}
|