@experteam-mx/ngx-services 20.10.8 → 20.10.11
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.
|
@@ -4450,6 +4450,36 @@ class ApiInvoicesService {
|
|
|
4450
4450
|
return this.http.put(`${this.url}/operation/document/${id}/customer`, data)
|
|
4451
4451
|
.pipe(map(({ data }) => data));
|
|
4452
4452
|
}
|
|
4453
|
+
/**
|
|
4454
|
+
* Fetches withholdings for a document.
|
|
4455
|
+
*
|
|
4456
|
+
* @param {number} id - The ID of the document.
|
|
4457
|
+
* @return {Observable<InvoiceWithholdingsOut>} An observable that emits the withholdings.
|
|
4458
|
+
*/
|
|
4459
|
+
getWithholdings(id) {
|
|
4460
|
+
return this.http.get(`${this.url}/withholdings/${id}`)
|
|
4461
|
+
.pipe(map(({ data }) => data));
|
|
4462
|
+
}
|
|
4463
|
+
/**
|
|
4464
|
+
* Creates withholdings for invoices.
|
|
4465
|
+
*
|
|
4466
|
+
* @param {InvoiceWithholdingsIn} body - The withholdings data to create.
|
|
4467
|
+
* @return {Observable<InvoiceWithholdingsOut>} An observable that emits the result of the create operation.
|
|
4468
|
+
*/
|
|
4469
|
+
postWithholdings(body) {
|
|
4470
|
+
return this.http.post(`${this.url}/withholdings`, body)
|
|
4471
|
+
.pipe(map(({ data }) => data));
|
|
4472
|
+
}
|
|
4473
|
+
/**
|
|
4474
|
+
* Retrieves withholding-related payments based on the provided query parameters.
|
|
4475
|
+
*
|
|
4476
|
+
* @param {QueryParams} params - The query parameters used to filter the related withholding payments.
|
|
4477
|
+
* @return {Observable<PaymentsRelatedWithholdingOut>} An observable that emits the related withholding payments.
|
|
4478
|
+
*/
|
|
4479
|
+
getPaymentsRelatedWithholding(params) {
|
|
4480
|
+
return this.http.get(`${this.url}/payments/related-withholding`, { params })
|
|
4481
|
+
.pipe(map(({ data }) => data));
|
|
4482
|
+
}
|
|
4453
4483
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiInvoicesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4454
4484
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiInvoicesService, providedIn: 'root' });
|
|
4455
4485
|
}
|
|
@@ -5044,6 +5074,18 @@ class ApiSecurityService {
|
|
|
5044
5074
|
return this.http.get(`${this.url}/roles`, { params })
|
|
5045
5075
|
.pipe(map(({ data }) => data));
|
|
5046
5076
|
}
|
|
5077
|
+
/**
|
|
5078
|
+
* Downloads a PDF export of roles filtered by the provided query parameters (no pagination).
|
|
5079
|
+
*
|
|
5080
|
+
* @param {QueryParams} params - Filter query parameters mirroring the roles list (without limit/offset).
|
|
5081
|
+
* @return {Observable<Blob>} An observable that emits the PDF file blob.
|
|
5082
|
+
*/
|
|
5083
|
+
getRolesExportPdf(params) {
|
|
5084
|
+
return this.http.get(`${this.url}/roles/exportPdf`, {
|
|
5085
|
+
params,
|
|
5086
|
+
responseType: 'blob'
|
|
5087
|
+
});
|
|
5088
|
+
}
|
|
5047
5089
|
/**
|
|
5048
5090
|
* Retrieves roles by the specified ID.
|
|
5049
5091
|
*
|
|
@@ -6028,6 +6070,7 @@ var PaymentTypeCode;
|
|
|
6028
6070
|
PaymentTypeCode["DEBIT_CARD"] = "debit_card";
|
|
6029
6071
|
PaymentTypeCode["ELECTRONIC_TRANSFER"] = "electronic_transfer";
|
|
6030
6072
|
PaymentTypeCode["DEPOSIT"] = "deposit";
|
|
6073
|
+
PaymentTypeCode["WITHHOLDING"] = "withholding";
|
|
6031
6074
|
})(PaymentTypeCode || (PaymentTypeCode = {}));
|
|
6032
6075
|
|
|
6033
6076
|
var DocumentStatusCode;
|
|
@@ -6036,6 +6079,7 @@ var DocumentStatusCode;
|
|
|
6036
6079
|
DocumentStatusCode[DocumentStatusCode["COMPLETED"] = 1] = "COMPLETED";
|
|
6037
6080
|
DocumentStatusCode[DocumentStatusCode["PROCESSING"] = 0] = "PROCESSING";
|
|
6038
6081
|
DocumentStatusCode[DocumentStatusCode["WITH_ERRORS"] = 3] = "WITH_ERRORS";
|
|
6082
|
+
DocumentStatusCode[DocumentStatusCode["PENDING_WITHHOLDINGS"] = 4] = "PENDING_WITHHOLDINGS";
|
|
6039
6083
|
})(DocumentStatusCode || (DocumentStatusCode = {}));
|
|
6040
6084
|
|
|
6041
6085
|
var CustomerRoleType;
|