@experteam-mx/ngx-services 20.10.9 → 20.10.12

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.
@@ -4278,6 +4278,16 @@ class ApiInvoicesService {
4278
4278
  return this.http.put(`${this.url}/payment-type-field-accounts/${id}`, body)
4279
4279
  .pipe(map(({ data }) => data));
4280
4280
  }
4281
+ /**
4282
+ * Deletes an existing payment type field account.
4283
+ *
4284
+ * @param {number} id - The ID of the payment type field account to delete.
4285
+ * @returns {Observable<{}>} An observable that emits the result of the delete operation.
4286
+ */
4287
+ deleteCountryPaymentTypeFieldAccount(id) {
4288
+ return this.http.delete(`${this.url}/payment-type-field-accounts/${id}`)
4289
+ .pipe(map(({ data }) => data));
4290
+ }
4281
4291
  /**
4282
4292
  * Fetches tolerance data from the server based on the provided query parameters.
4283
4293
  *
@@ -4450,6 +4460,36 @@ class ApiInvoicesService {
4450
4460
  return this.http.put(`${this.url}/operation/document/${id}/customer`, data)
4451
4461
  .pipe(map(({ data }) => data));
4452
4462
  }
4463
+ /**
4464
+ * Fetches withholdings for a document.
4465
+ *
4466
+ * @param {number} id - The ID of the document.
4467
+ * @return {Observable<InvoiceWithholdingsOut>} An observable that emits the withholdings.
4468
+ */
4469
+ getWithholdings(id) {
4470
+ return this.http.get(`${this.url}/withholdings/${id}`)
4471
+ .pipe(map(({ data }) => data));
4472
+ }
4473
+ /**
4474
+ * Creates withholdings for invoices.
4475
+ *
4476
+ * @param {InvoiceWithholdingsIn} body - The withholdings data to create.
4477
+ * @return {Observable<InvoiceWithholdingsOut>} An observable that emits the result of the create operation.
4478
+ */
4479
+ postWithholdings(body) {
4480
+ return this.http.post(`${this.url}/withholdings`, body)
4481
+ .pipe(map(({ data }) => data));
4482
+ }
4483
+ /**
4484
+ * Retrieves withholding-related payments based on the provided query parameters.
4485
+ *
4486
+ * @param {QueryParams} params - The query parameters used to filter the related withholding payments.
4487
+ * @return {Observable<PaymentsRelatedWithholdingOut>} An observable that emits the related withholding payments.
4488
+ */
4489
+ getPaymentsRelatedWithholding(params) {
4490
+ return this.http.get(`${this.url}/payments/related-withholding`, { params })
4491
+ .pipe(map(({ data }) => data));
4492
+ }
4453
4493
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiInvoicesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4454
4494
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiInvoicesService, providedIn: 'root' });
4455
4495
  }
@@ -6040,6 +6080,7 @@ var PaymentTypeCode;
6040
6080
  PaymentTypeCode["DEBIT_CARD"] = "debit_card";
6041
6081
  PaymentTypeCode["ELECTRONIC_TRANSFER"] = "electronic_transfer";
6042
6082
  PaymentTypeCode["DEPOSIT"] = "deposit";
6083
+ PaymentTypeCode["WITHHOLDING"] = "withholding";
6043
6084
  })(PaymentTypeCode || (PaymentTypeCode = {}));
6044
6085
 
6045
6086
  var DocumentStatusCode;
@@ -6048,6 +6089,7 @@ var DocumentStatusCode;
6048
6089
  DocumentStatusCode[DocumentStatusCode["COMPLETED"] = 1] = "COMPLETED";
6049
6090
  DocumentStatusCode[DocumentStatusCode["PROCESSING"] = 0] = "PROCESSING";
6050
6091
  DocumentStatusCode[DocumentStatusCode["WITH_ERRORS"] = 3] = "WITH_ERRORS";
6092
+ DocumentStatusCode[DocumentStatusCode["PENDING_WITHHOLDINGS"] = 4] = "PENDING_WITHHOLDINGS";
6051
6093
  })(DocumentStatusCode || (DocumentStatusCode = {}));
6052
6094
 
6053
6095
  var CustomerRoleType;