@experteam-mx/ngx-services 18.5.8 → 18.5.10

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.
@@ -1,7 +1,7 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { Environment } from '../ngx-services.models';
4
- import { CancelPaymentReceiptIn, CountryPaymentTypeIn, CountryPaymentTypesOut, CountryPaymentTypeOut, CountryPaymentTypeFieldIn, CountryPaymentTypeFieldOut, CountryPaymentTypeFieldsOut, CustomerDocumentTypesOut, CustomersOut, CustomerTypesOut, OperationAccountPaymentIn, OperationAccountPaymentOut, OperationCancelBillingIn, OperationDocumentIn, OperationDocumentOut, OperationPrintDocumentOut, OperationShipmentExternalIn, OperationShipmentExternalOut, PaymentTypeFieldAccountIn, PaymentTypeFieldAccountOut, PaymentTypeFieldAccountsOut, PaymentTypeFieldCardTypeIn, PaymentTypeFieldCardTypeOut, PaymentTypeFieldCardTypesOut, PrintCollectionReceiptOut, PaymentTypesOut } from './models/api-invoices.types';
4
+ import { CancelPaymentReceiptIn, CountryPaymentTypeFieldIn, CountryPaymentTypeFieldOut, CountryPaymentTypeFieldsOut, CountryPaymentTypeIn, CountryPaymentTypeOut, CountryPaymentTypesOut, CustomerDocumentTypesOut, CustomersOut, CustomerTypesOut, OperationAccountPaymentIn, OperationAccountPaymentOut, OperationCancelBillingIn, OperationCancelBillingOut, OperationDocumentIn, OperationDocumentOut, OperationPrintDocumentOut, OperationShipmentExternalIn, OperationShipmentExternalOut, PaymentTypeFieldAccountIn, PaymentTypeFieldAccountOut, PaymentTypeFieldAccountsOut, PaymentTypeFieldCardTypeIn, PaymentTypeFieldCardTypeOut, PaymentTypeFieldCardTypesOut, PaymentTypesOut, PrintCollectionReceiptOut } from './models/api-invoices.types';
5
5
  import { QueryParams } from './models/api.models';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class ApiInvoicesService {
@@ -45,12 +45,14 @@ export declare class ApiInvoicesService {
45
45
  */
46
46
  postOperationCancelDocument(body: CancelPaymentReceiptIn): Observable<{}>;
47
47
  /**
48
- * Cancels an invoice based on the provided invoice ID and additional parameters.
48
+ * Sends a POST request to cancel billing for a specific operation.
49
49
  *
50
- * @param {Object} parameters - The parameters required to cancel the invoice, encapsulated in a CancelBillingIn object.
51
- * @return {Observable<Object>} An observable that emits the response of the cancellation operation.
50
+ * @param {Object} params - The parameters for the cancellation request.
51
+ * @param {string} params.invoiceId - The ID of the invoice to be canceled.
52
+ * @param {Object} params.body - Additional data to be sent in the request body.
53
+ * @return {Observable<OperationCancelBillingOut>} An observable emitting the result of the cancellation operation.
52
54
  */
53
- postOperationCancelBilling({ invoiceId, ...body }: OperationCancelBillingIn): Observable<{}>;
55
+ postOperationCancelBilling({ invoiceId, ...body }: OperationCancelBillingIn): Observable<OperationCancelBillingOut>;
54
56
  /**
55
57
  * Fetches a list of customer types from the server.
56
58
  *
@@ -1,7 +1,7 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { Environment } from '../ngx-services.models';
4
- import { ManifestMultipleIn, ManifestMultipleOut, ShipmentEmployeeCustomer, ShipmentCancellationIn, ShipmentCancellationOut, ValidateAccountIn, ValidateAccountOut } from './models/api-shipments.types';
4
+ import { ManifestMultipleIn, ManifestMultipleOut, ShipmentCancellationIn, ShipmentCancellationOut, ShipmentEmployeeCustomer, ValidateAccountIn, ValidateAccountOut } from './models/api-shipments.types';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class ApiShipmentsService {
7
7
  private environments;
@@ -31,8 +31,8 @@ export declare class ApiShipmentsService {
31
31
  /**
32
32
  * Validates and obtains the number of shipments allowed by an employee customer
33
33
  *
34
- * @param {id} params - The id employee customer
35
34
  * @return {Observable<ShipmentEmployeeCustomer>} An observable containing the shipments allowed by an employee
35
+ * @param id
36
36
  */
37
37
  getEmployeeCustomer(id: number): Observable<ShipmentEmployeeCustomer>;
38
38
  /**
@@ -133,6 +133,7 @@ export interface Unit extends SymfonyModel {
133
133
  dimension: string;
134
134
  }
135
135
  export interface ShipmentScope extends SymfonyModel {
136
+ code: string;
136
137
  name: string;
137
138
  }
138
139
  export interface ShipmentContentType extends SymfonyModel {
@@ -43,6 +43,9 @@ export type OperationCancelBillingIn = {
43
43
  cancel_payment: boolean;
44
44
  send_shipments: boolean;
45
45
  };
46
+ export type OperationCancelBillingOut = {
47
+ creditNoteDocument: Document | null;
48
+ };
46
49
  export type OperationDocumentIn = {
47
50
  country_document_type_id: number;
48
51
  customer: {
@@ -1,4 +1,5 @@
1
- import { ShipmentEmployeeCustomers } from "./api-shipments.interfaces";
1
+ import { ShipmentEmployeeCustomers } from './api-shipments.interfaces';
2
+ import { Document } from './api-invoices.interfaces';
2
3
  export type ValidateAccountIn = {
3
4
  accountValue: string;
4
5
  };
@@ -84,4 +85,5 @@ export type ShipmentCancellationIn = {
84
85
  };
85
86
  export type ShipmentCancellationOut = {
86
87
  emailList: string[];
88
+ creditNoteDocument: Document | null;
87
89
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experteam-mx/ngx-services",
3
- "version": "18.5.8",
3
+ "version": "18.5.10",
4
4
  "description": "Angular common services for Experteam apps",
5
5
  "author": "Experteam Cía. Ltda.",
6
6
  "keywords": [