@experteam-mx/ngx-services 18.5.5 → 18.5.7
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 +155 -1
- package/esm2022/lib/apis/api-reports.service.mjs +12 -1
- package/esm2022/lib/apis/models/api-invoices.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-invoices.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-reports.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-reports.types.mjs +1 -1
- package/fesm2022/experteam-mx-ngx-services.mjs +165 -0
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-invoices.service.d.ts +110 -1
- package/lib/apis/api-reports.service.d.ts +8 -1
- package/lib/apis/models/api-invoices.interfaces.d.ts +46 -1
- package/lib/apis/models/api-invoices.types.d.ts +66 -1
- package/lib/apis/models/api-reports.interfaces.d.ts +25 -0
- package/lib/apis/models/api-reports.types.d.ts +7 -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, CustomerDocumentTypesOut, CustomersOut, CustomerTypesOut, OperationAccountPaymentIn, OperationAccountPaymentOut, OperationCancelBillingIn, OperationDocumentIn, OperationDocumentOut, OperationPrintDocumentOut, OperationShipmentExternalIn, OperationShipmentExternalOut, PrintCollectionReceiptOut } from './models/api-invoices.types';
|
|
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';
|
|
5
5
|
import { QueryParams } from './models/api.models';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class ApiInvoicesService {
|
|
@@ -93,6 +93,115 @@ export declare class ApiInvoicesService {
|
|
|
93
93
|
* @return {Observable<OperationPrintDocumentOut>} An observable emitting the print billing operation details for the specified document.
|
|
94
94
|
*/
|
|
95
95
|
getOperationPrintDocument(documentId: number): Observable<OperationPrintDocumentOut>;
|
|
96
|
+
/**
|
|
97
|
+
* Fetches all country payment types.
|
|
98
|
+
*
|
|
99
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
100
|
+
* @return {Observable<CountryPaymentTypesOut>} An observable emitting the country payment types fetched from the server.
|
|
101
|
+
*/
|
|
102
|
+
getCountryPaymentTypes(params: QueryParams): Observable<CountryPaymentTypesOut>;
|
|
103
|
+
/**
|
|
104
|
+
* Updates an existing country payment type.
|
|
105
|
+
*
|
|
106
|
+
* @param {number} id - The ID of the country payment type to update.
|
|
107
|
+
* @param {CountryPaymentTypeIn} body - The updated data for the country payment type.
|
|
108
|
+
* @returns {Observable<CountryPaymentTypeOut>} An observable that emits the result of the update operation.
|
|
109
|
+
*/
|
|
110
|
+
putCountryPaymentType(id: number, body: CountryPaymentTypeIn): Observable<CountryPaymentTypeOut>;
|
|
111
|
+
/**
|
|
112
|
+
* Delete an existing country payment type.
|
|
113
|
+
*
|
|
114
|
+
* @param {number} id - The unique identifier of the country payment type to be deleted.
|
|
115
|
+
* @returns {Observable<CountryPaymentTypeOut>} An observable that emits the result of the delete operation.
|
|
116
|
+
*/
|
|
117
|
+
deleteCountryPaymentType(id: number): Observable<CountryPaymentTypeOut>;
|
|
118
|
+
/**
|
|
119
|
+
* Create a new country payment type resource.
|
|
120
|
+
*
|
|
121
|
+
* @param {CountryPaymentTypeIn} body - The input parameters required for create a new country payment type.
|
|
122
|
+
* @return {Observable<CountryPaymentTypeOut>} An observable that emits the result of create operation.
|
|
123
|
+
*/
|
|
124
|
+
postCountryPaymentType(body: CountryPaymentTypeIn): Observable<CountryPaymentTypeOut>;
|
|
125
|
+
/**
|
|
126
|
+
* Retrieves and returns a country payment type for a given ID.
|
|
127
|
+
*
|
|
128
|
+
* @param {number} id - The ID of the country payment type.
|
|
129
|
+
* @return {Observable<CountryPaymentTypeOut>} An observable that emits the result of show operation.
|
|
130
|
+
*/
|
|
131
|
+
getCountryPaymentType(id: number): Observable<CountryPaymentTypeOut>;
|
|
132
|
+
/**
|
|
133
|
+
* Fetches all country payment type fields.
|
|
134
|
+
*
|
|
135
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
136
|
+
* @return {Observable<CountryPaymentTypeFieldsOut>} An observable emitting the country payment type fields fetched from the server.
|
|
137
|
+
*/
|
|
138
|
+
getCountryPaymentTypeFields(params: QueryParams): Observable<CountryPaymentTypeFieldsOut>;
|
|
139
|
+
/**
|
|
140
|
+
* Create a new country payment type field resource.
|
|
141
|
+
*
|
|
142
|
+
* @param {CountryPaymentTypeFieldIn} body - The input parameters required for create a new country payment type field.
|
|
143
|
+
* @return {Observable<CountryPaymentTypeFieldOut>} An observable that emits the result of create operation.
|
|
144
|
+
*/
|
|
145
|
+
postCountryPaymentTypeField(body: CountryPaymentTypeFieldIn): Observable<CountryPaymentTypeFieldOut>;
|
|
146
|
+
/**
|
|
147
|
+
* Updates an existing country payment type field.
|
|
148
|
+
*
|
|
149
|
+
* @param {number} id - The ID of the country payment type field to update.
|
|
150
|
+
* @param {CountryPaymentTypeFieldIn} body - The updated data for the country payment type field.
|
|
151
|
+
* @returns {Observable<CountryPaymentTypeFieldOut>} An observable that emits the result of the update operation.
|
|
152
|
+
*/
|
|
153
|
+
putCountryPaymentTypeField(id: number, body: CountryPaymentTypeFieldIn): Observable<CountryPaymentTypeFieldOut>;
|
|
154
|
+
/**
|
|
155
|
+
* Fetches all payment types.
|
|
156
|
+
*
|
|
157
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
158
|
+
* @return {Observable<PaymentTypesOut>} An observable emitting the payment types fetched from the server.
|
|
159
|
+
*/
|
|
160
|
+
getPaymentTypes(params: QueryParams): Observable<PaymentTypesOut>;
|
|
161
|
+
/**
|
|
162
|
+
* Fetches all payment type fields card.
|
|
163
|
+
*
|
|
164
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
165
|
+
* @return {Observable<PaymentTypeFieldCardTypesOut>} An observable emitting the payment type fields card fetched from the server.
|
|
166
|
+
*/
|
|
167
|
+
getPaymentTypeFieldCardTypes(params: QueryParams): Observable<PaymentTypeFieldCardTypesOut>;
|
|
168
|
+
/**
|
|
169
|
+
* Create a new payment type field card resource.
|
|
170
|
+
*
|
|
171
|
+
* @param {PaymentTypeFieldCardTypeIn} body - The input parameters required for create a new payment type field card.
|
|
172
|
+
* @return {Observable<PaymentTypeFieldCardTypeOut>} An observable that emits the result of create operation.
|
|
173
|
+
*/
|
|
174
|
+
postCountryPaymentTypeFieldCardType(body: PaymentTypeFieldCardTypeIn): Observable<PaymentTypeFieldCardTypeOut>;
|
|
175
|
+
/**
|
|
176
|
+
* Updates an existing payment type field card.
|
|
177
|
+
*
|
|
178
|
+
* @param {number} id - The ID of the payment type field card to update.
|
|
179
|
+
* @param {PaymentTypeFieldCardTypeIn} body - The updated data for the payment type field card.
|
|
180
|
+
* @returns {Observable<PaymentTypeFieldCardTypeOut>} An observable that emits the result of the update operation.
|
|
181
|
+
*/
|
|
182
|
+
putCountryPaymentTypeFieldCardType(id: number, body: PaymentTypeFieldCardTypeIn): Observable<PaymentTypeFieldCardTypeOut>;
|
|
183
|
+
/**
|
|
184
|
+
* Fetches all payment type fields accounts.
|
|
185
|
+
*
|
|
186
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
187
|
+
* @return {Observable<PaymentTypeFieldAccountsOut>} An observable emitting the payment type fields accounts fetched from the server.
|
|
188
|
+
*/
|
|
189
|
+
getPaymentTypeFieldAccounts(params: QueryParams): Observable<PaymentTypeFieldAccountsOut>;
|
|
190
|
+
/**
|
|
191
|
+
* Create a new payment type field account resource.
|
|
192
|
+
*
|
|
193
|
+
* @param {PaymentTypeFieldAccountIn} body - The input parameters required for create a new payment type field account.
|
|
194
|
+
* @return {Observable<PaymentTypeFieldAccountOut>} An observable that emits the result of create operation.
|
|
195
|
+
*/
|
|
196
|
+
postCountryPaymentTypeFieldAccount(body: PaymentTypeFieldAccountIn): Observable<PaymentTypeFieldAccountOut>;
|
|
197
|
+
/**
|
|
198
|
+
* Updates an existing payment type field account.
|
|
199
|
+
*
|
|
200
|
+
* @param {number} id - The ID of the payment type field account to update.
|
|
201
|
+
* @param {PaymentTypeFieldAccountIn} body - The updated data for the payment type field account.
|
|
202
|
+
* @returns {Observable<PaymentTypeFieldAccountOut>} An observable that emits the result of the update operation.
|
|
203
|
+
*/
|
|
204
|
+
putCountryPaymentTypeFieldAccount(id: number, body: PaymentTypeFieldAccountIn): Observable<PaymentTypeFieldAccountOut>;
|
|
96
205
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiInvoicesService, never>;
|
|
97
206
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiInvoicesService>;
|
|
98
207
|
}
|
|
@@ -2,7 +2,7 @@ import { Environment } from '../ngx-services.models';
|
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { QueryParams } from './models/api.models';
|
|
5
|
-
import { CollectionPaymentsOut, ExistPendingInvoicesIn, ExistPendingPaymentsIn, ExternalShipmentsOut, ShipmentsReportOut } from './models/api-reports.types';
|
|
5
|
+
import { CollectionPaymentsOut, ExistPendingInvoicesIn, ExistPendingPaymentsIn, ExternalShipmentsOut, PromotionCodeDiscountsOut, ShipmentsReportOut } from './models/api-reports.types';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class ApiReportsService {
|
|
8
8
|
private environments;
|
|
@@ -51,6 +51,13 @@ export declare class ApiReportsService {
|
|
|
51
51
|
* @return {Observable<ExternalShipmentsOut>} An observable that emits the external shipments report data.
|
|
52
52
|
*/
|
|
53
53
|
getExternalShipmentsReport(params: QueryParams): Observable<ExternalShipmentsOut>;
|
|
54
|
+
/**
|
|
55
|
+
* Retrieves a report of promotion code discounts based on the provided query parameters.
|
|
56
|
+
*
|
|
57
|
+
* @param {QueryParams} params - An object representing the query parameters for filtering the promotion code discounts report.
|
|
58
|
+
* @return {Observable<PromotionCodeDiscountsOut>} An observable that emits the promotion code discounts report data.
|
|
59
|
+
*/
|
|
60
|
+
getPromotionCodeDiscounts(params: QueryParams): Observable<PromotionCodeDiscountsOut>;
|
|
54
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiReportsService, never>;
|
|
55
62
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiReportsService>;
|
|
56
63
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LaravelModel } from './api.models';
|
|
2
|
-
import { IdentificationType } from './api-catalog.interfaces';
|
|
2
|
+
import { Currency, IdentificationType } from './api-catalog.interfaces';
|
|
3
3
|
export interface Document extends LaravelModel {
|
|
4
4
|
document_type_range_id: number;
|
|
5
5
|
document_number: number;
|
|
@@ -171,3 +171,48 @@ export interface IdentificationTypeCustomer extends LaravelModel {
|
|
|
171
171
|
customer_id: number | null;
|
|
172
172
|
identificationType: IdentificationType;
|
|
173
173
|
}
|
|
174
|
+
export interface CountryPaymentType extends LaravelModel {
|
|
175
|
+
payment_type_id: number;
|
|
176
|
+
country_id: number;
|
|
177
|
+
name: string;
|
|
178
|
+
billing_payment_code: string;
|
|
179
|
+
can_tolerance: boolean;
|
|
180
|
+
code: string;
|
|
181
|
+
country_payment_type_fields: CountryPaymentTypeField[];
|
|
182
|
+
payment_type: PaymentType;
|
|
183
|
+
}
|
|
184
|
+
export interface CountryPaymentTypeField extends LaravelModel {
|
|
185
|
+
country_payment_type_id: number;
|
|
186
|
+
code: string;
|
|
187
|
+
name: string;
|
|
188
|
+
description: string;
|
|
189
|
+
format: string;
|
|
190
|
+
is_required: boolean;
|
|
191
|
+
catalog: [] | null;
|
|
192
|
+
regex: string | null;
|
|
193
|
+
is_interface: boolean;
|
|
194
|
+
value?: string;
|
|
195
|
+
is_bank_reference: boolean;
|
|
196
|
+
}
|
|
197
|
+
export interface PaymentType extends LaravelModel {
|
|
198
|
+
code: string;
|
|
199
|
+
fields: {
|
|
200
|
+
[key: string]: string;
|
|
201
|
+
};
|
|
202
|
+
name: string;
|
|
203
|
+
}
|
|
204
|
+
export interface PaymentTypeFieldCardType extends LaravelModel {
|
|
205
|
+
country_payment_type_field_id: number;
|
|
206
|
+
name: string;
|
|
207
|
+
code: string;
|
|
208
|
+
accountable_account: string;
|
|
209
|
+
accountable_account_usd: string | null;
|
|
210
|
+
}
|
|
211
|
+
export interface PaymentTypeFieldAccount extends LaravelModel {
|
|
212
|
+
country_payment_type_field_id: number;
|
|
213
|
+
name: string;
|
|
214
|
+
account: string;
|
|
215
|
+
accountable_account: string;
|
|
216
|
+
currency_id: number;
|
|
217
|
+
currency: Currency;
|
|
218
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Customer, CustomerType, Document } from './api-invoices.interfaces';
|
|
1
|
+
import { CountryPaymentType, CountryPaymentTypeField, Customer, CustomerType, Document, PaymentType, PaymentTypeFieldAccount, PaymentTypeFieldCardType } from './api-invoices.interfaces';
|
|
2
2
|
import { CustomerCountryDocumentType } from './api-billing.interfaces';
|
|
3
3
|
export interface OperationAccountPaymentIn {
|
|
4
4
|
document_type_range_id: number | null;
|
|
@@ -94,3 +94,68 @@ export type CustomerDocumentTypesOut = {
|
|
|
94
94
|
customer_country_document_types: CustomerCountryDocumentType[];
|
|
95
95
|
total: number;
|
|
96
96
|
};
|
|
97
|
+
export type CountryPaymentTypesOut = {
|
|
98
|
+
country_payment_types: CountryPaymentType[];
|
|
99
|
+
total: number;
|
|
100
|
+
};
|
|
101
|
+
export type CountryPaymentTypeOut = {
|
|
102
|
+
country_payment_type: CountryPaymentType;
|
|
103
|
+
};
|
|
104
|
+
export type CountryPaymentTypeIn = {
|
|
105
|
+
payment_type_id: number;
|
|
106
|
+
country_id: number;
|
|
107
|
+
name: string;
|
|
108
|
+
billing_payment_code: string;
|
|
109
|
+
can_tolerance: boolean;
|
|
110
|
+
is_active: boolean;
|
|
111
|
+
};
|
|
112
|
+
export type CountryPaymentTypeFieldsOut = {
|
|
113
|
+
country_payment_type_fields: CountryPaymentTypeField[];
|
|
114
|
+
total: number;
|
|
115
|
+
};
|
|
116
|
+
export type CountryPaymentTypeFieldOut = {
|
|
117
|
+
country_payment_type_field: CountryPaymentTypeField;
|
|
118
|
+
};
|
|
119
|
+
export type CountryPaymentTypeFieldIn = {
|
|
120
|
+
country_payment_type_id: number;
|
|
121
|
+
code: string;
|
|
122
|
+
name: string;
|
|
123
|
+
description: string;
|
|
124
|
+
format: string;
|
|
125
|
+
is_required: boolean;
|
|
126
|
+
catalog: [] | null;
|
|
127
|
+
is_interface: boolean;
|
|
128
|
+
};
|
|
129
|
+
export type PaymentTypesOut = {
|
|
130
|
+
payment_types: PaymentType[];
|
|
131
|
+
total: number;
|
|
132
|
+
};
|
|
133
|
+
export type PaymentTypeFieldCardTypesOut = {
|
|
134
|
+
country_payment_type_field_card_types: PaymentTypeFieldCardType[];
|
|
135
|
+
total: number;
|
|
136
|
+
};
|
|
137
|
+
export type PaymentTypeFieldCardTypeIn = {
|
|
138
|
+
country_payment_type_field_id: number;
|
|
139
|
+
name: string;
|
|
140
|
+
code: string;
|
|
141
|
+
accountable_account: string;
|
|
142
|
+
is_active: boolean;
|
|
143
|
+
};
|
|
144
|
+
export type PaymentTypeFieldCardTypeOut = {
|
|
145
|
+
country_payment_type_field_card_type: PaymentTypeFieldCardType;
|
|
146
|
+
};
|
|
147
|
+
export type PaymentTypeFieldAccountsOut = {
|
|
148
|
+
country_payment_type_field_accounts: PaymentTypeFieldAccount[];
|
|
149
|
+
total: number;
|
|
150
|
+
};
|
|
151
|
+
export type PaymentTypeFieldAccountIn = {
|
|
152
|
+
country_payment_type_field_id: number;
|
|
153
|
+
name: string;
|
|
154
|
+
account: string;
|
|
155
|
+
accountable_account: string;
|
|
156
|
+
currency_id: number;
|
|
157
|
+
is_active: boolean;
|
|
158
|
+
};
|
|
159
|
+
export type PaymentTypeFieldAccountOut = {
|
|
160
|
+
country_payment_type_field_account: PaymentTypeFieldAccount;
|
|
161
|
+
};
|
|
@@ -229,3 +229,28 @@ export interface ReportExternalShipmentAddress extends ApiModel {
|
|
|
229
229
|
role_type: string;
|
|
230
230
|
service_area_code: string;
|
|
231
231
|
}
|
|
232
|
+
export interface PromotionCodeDiscount extends ApiModel {
|
|
233
|
+
country_id: number;
|
|
234
|
+
company_country_id: number;
|
|
235
|
+
location_id: number;
|
|
236
|
+
installation_id: number;
|
|
237
|
+
user_id: number;
|
|
238
|
+
user_username: string;
|
|
239
|
+
updated_at: Date | string;
|
|
240
|
+
tracking_number: string;
|
|
241
|
+
product_id: number;
|
|
242
|
+
product_global_code: string;
|
|
243
|
+
product_global_name: string;
|
|
244
|
+
origin_facility_code: string;
|
|
245
|
+
destination_facility_code: string;
|
|
246
|
+
origin_company_name: string;
|
|
247
|
+
origin_full_name: string;
|
|
248
|
+
promotion_code: string;
|
|
249
|
+
product_subtotals: ProductSubtotal[];
|
|
250
|
+
}
|
|
251
|
+
export interface ProductSubtotal {
|
|
252
|
+
country_reference_currency_id: number;
|
|
253
|
+
currency_id: number;
|
|
254
|
+
currency_code: string;
|
|
255
|
+
value: number;
|
|
256
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CollectionPayment, ReportExternalShipment, Shipment } from './api-reports.interfaces';
|
|
1
|
+
import { CollectionPayment, PromotionCodeDiscount, ReportExternalShipment, Shipment } from './api-reports.interfaces';
|
|
2
2
|
export type CollectionPaymentsOut = {
|
|
3
3
|
collection_payments: CollectionPayment[];
|
|
4
4
|
total: number;
|
|
@@ -17,3 +17,9 @@ export type ExternalShipmentsOut = {
|
|
|
17
17
|
external_shipments: ReportExternalShipment[];
|
|
18
18
|
total: number;
|
|
19
19
|
};
|
|
20
|
+
export type PromotionCodeDiscountsOut = {
|
|
21
|
+
total: number;
|
|
22
|
+
promotion_code_discounts: PromotionCodeDiscount[];
|
|
23
|
+
} | {
|
|
24
|
+
transaction_id: string;
|
|
25
|
+
};
|