@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.
- package/esm2022/lib/apis/api-invoices.service.mjs +6 -4
- package/esm2022/lib/apis/api-shipments.service.mjs +2 -2
- package/esm2022/lib/apis/models/api-catalog.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-invoices.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-shipments.types.mjs +1 -1
- package/fesm2022/experteam-mx-ngx-services.mjs +6 -4
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-invoices.service.d.ts +7 -5
- package/lib/apis/api-shipments.service.d.ts +2 -2
- package/lib/apis/models/api-catalog.interfaces.d.ts +1 -0
- package/lib/apis/models/api-invoices.types.d.ts +3 -0
- package/lib/apis/models/api-shipments.types.d.ts +3 -1
- package/package.json +1 -1
|
@@ -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,
|
|
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
|
-
*
|
|
48
|
+
* Sends a POST request to cancel billing for a specific operation.
|
|
49
49
|
*
|
|
50
|
-
* @param {Object}
|
|
51
|
-
* @
|
|
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,
|
|
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
|
/**
|
|
@@ -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
|
|
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
|
};
|