@experteam-mx/ngx-services 18.7.8 → 18.7.9
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 +52 -1
- package/esm2022/lib/apis/models/api-invoices.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-invoices.types.mjs +1 -1
- package/fesm2022/experteam-mx-ngx-services.mjs +51 -0
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-invoices.service.d.ts +37 -1
- package/lib/apis/models/api-invoices.interfaces.d.ts +8 -3
- package/lib/apis/models/api-invoices.types.d.ts +16 -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, 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';
|
|
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, ToleranceIn, ToleranceOut, TolerancesOut } 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 {
|
|
@@ -204,6 +204,42 @@ export declare class ApiInvoicesService {
|
|
|
204
204
|
* @returns {Observable<PaymentTypeFieldAccountOut>} An observable that emits the result of the update operation.
|
|
205
205
|
*/
|
|
206
206
|
putCountryPaymentTypeFieldAccount(id: number, body: PaymentTypeFieldAccountIn): Observable<PaymentTypeFieldAccountOut>;
|
|
207
|
+
/**
|
|
208
|
+
* Fetches tolerance data from the server based on the provided query parameters.
|
|
209
|
+
*
|
|
210
|
+
* @param {QueryParams} params - The parameters to use for querying tolerances.
|
|
211
|
+
* @return {Observable<TolerancesOut>} An observable emitting the tolerance data.
|
|
212
|
+
*/
|
|
213
|
+
getTolerances(params: QueryParams): Observable<TolerancesOut>;
|
|
214
|
+
/**
|
|
215
|
+
* Retrieves the tolerance detail for a given identifier.
|
|
216
|
+
*
|
|
217
|
+
* @param {number} id - The unique identifier for the tolerance to retrieve.
|
|
218
|
+
* @return {Observable<ToleranceOut>} An observable containing the tolerance data.
|
|
219
|
+
*/
|
|
220
|
+
getTolerance(id: number): Observable<ToleranceOut>;
|
|
221
|
+
/**
|
|
222
|
+
* Sends a request to update or create a tolerance record using the provided data.
|
|
223
|
+
*
|
|
224
|
+
* @param {ToleranceIn} body - The tolerance input object containing the data to be sent in the request.
|
|
225
|
+
* @return {Observable<ToleranceOut>} An observable that emits the updated or created tolerance output object.
|
|
226
|
+
*/
|
|
227
|
+
postTolerance(body: ToleranceIn): Observable<ToleranceOut>;
|
|
228
|
+
/**
|
|
229
|
+
* Updates the tolerance with the specified ID using the provided data.
|
|
230
|
+
*
|
|
231
|
+
* @param {number} id - The unique identifier of the tolerance to update.
|
|
232
|
+
* @param {ToleranceIn} body - The data to update the tolerance with.
|
|
233
|
+
* @return {Observable<ToleranceOut>} An observable containing the updated tolerance information.
|
|
234
|
+
*/
|
|
235
|
+
putTolerance(id: number, body: ToleranceIn): Observable<ToleranceOut>;
|
|
236
|
+
/**
|
|
237
|
+
* Deletes the tolerance entry corresponding to the given ID.
|
|
238
|
+
*
|
|
239
|
+
* @param {number} id - The unique identifier of the tolerance to be deleted.
|
|
240
|
+
* @return {Observable<{}>} An Observable that emits the result of the delete operation.
|
|
241
|
+
*/
|
|
242
|
+
deleteTolerance(id: number): Observable<{}>;
|
|
207
243
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiInvoicesService, never>;
|
|
208
244
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiInvoicesService>;
|
|
209
245
|
}
|
|
@@ -179,13 +179,12 @@ export interface CountryPaymentTypeField extends LaravelModel {
|
|
|
179
179
|
country_payment_type_id: number;
|
|
180
180
|
code: string;
|
|
181
181
|
name: string;
|
|
182
|
-
description: string;
|
|
182
|
+
description: string | null;
|
|
183
183
|
format: string;
|
|
184
184
|
is_required: boolean;
|
|
185
|
-
catalog: [] | null;
|
|
185
|
+
catalog: string[] | null;
|
|
186
186
|
regex: string | null;
|
|
187
187
|
is_interface: boolean;
|
|
188
|
-
value?: string;
|
|
189
188
|
is_bank_reference: boolean;
|
|
190
189
|
}
|
|
191
190
|
export interface PaymentType extends LaravelModel {
|
|
@@ -210,3 +209,9 @@ export interface PaymentTypeFieldAccount extends LaravelModel {
|
|
|
210
209
|
currency_id: number;
|
|
211
210
|
currency: Currency;
|
|
212
211
|
}
|
|
212
|
+
export interface Tolerance extends LaravelModel {
|
|
213
|
+
tolerance_type: number;
|
|
214
|
+
min_amount: number;
|
|
215
|
+
max_amount: number;
|
|
216
|
+
tolerance: number;
|
|
217
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CountryPaymentType, CountryPaymentTypeField, Customer, CustomerType, Document, PaymentType, PaymentTypeFieldAccount, PaymentTypeFieldCardType } from './api-invoices.interfaces';
|
|
1
|
+
import { CountryPaymentType, CountryPaymentTypeField, Customer, CustomerType, Document, PaymentType, PaymentTypeFieldAccount, PaymentTypeFieldCardType, Tolerance } 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;
|
|
@@ -165,3 +165,18 @@ export type PaymentTypeFieldAccountIn = {
|
|
|
165
165
|
export type PaymentTypeFieldAccountOut = {
|
|
166
166
|
country_payment_type_field_account: PaymentTypeFieldAccount;
|
|
167
167
|
};
|
|
168
|
+
export type TolerancesOut = {
|
|
169
|
+
tolerances: Tolerance[];
|
|
170
|
+
total: number;
|
|
171
|
+
};
|
|
172
|
+
export type ToleranceIn = {
|
|
173
|
+
company_country_id: number;
|
|
174
|
+
tolerance_type: number;
|
|
175
|
+
min_amount: number;
|
|
176
|
+
max_amount: number;
|
|
177
|
+
tolerance: number;
|
|
178
|
+
is_active: boolean;
|
|
179
|
+
};
|
|
180
|
+
export type ToleranceOut = {
|
|
181
|
+
tolerance: Tolerance;
|
|
182
|
+
};
|