@experteam-mx/ngx-services 20.10.9 → 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
|
}
|
|
@@ -6040,6 +6070,7 @@ var PaymentTypeCode;
|
|
|
6040
6070
|
PaymentTypeCode["DEBIT_CARD"] = "debit_card";
|
|
6041
6071
|
PaymentTypeCode["ELECTRONIC_TRANSFER"] = "electronic_transfer";
|
|
6042
6072
|
PaymentTypeCode["DEPOSIT"] = "deposit";
|
|
6073
|
+
PaymentTypeCode["WITHHOLDING"] = "withholding";
|
|
6043
6074
|
})(PaymentTypeCode || (PaymentTypeCode = {}));
|
|
6044
6075
|
|
|
6045
6076
|
var DocumentStatusCode;
|
|
@@ -6048,6 +6079,7 @@ var DocumentStatusCode;
|
|
|
6048
6079
|
DocumentStatusCode[DocumentStatusCode["COMPLETED"] = 1] = "COMPLETED";
|
|
6049
6080
|
DocumentStatusCode[DocumentStatusCode["PROCESSING"] = 0] = "PROCESSING";
|
|
6050
6081
|
DocumentStatusCode[DocumentStatusCode["WITH_ERRORS"] = 3] = "WITH_ERRORS";
|
|
6082
|
+
DocumentStatusCode[DocumentStatusCode["PENDING_WITHHOLDINGS"] = 4] = "PENDING_WITHHOLDINGS";
|
|
6051
6083
|
})(DocumentStatusCode || (DocumentStatusCode = {}));
|
|
6052
6084
|
|
|
6053
6085
|
var CustomerRoleType;
|