@experteam-mx/ngx-services
Version:
Angular common services for Experteam apps
58 lines (57 loc) • 1.23 kB
TypeScript
import { Facility, ServiceArea } from './api-services.interfaces';
export type ServiceAreaIn = {
countryCodes: string[];
};
export type ServiceAreasOut = {
serviceAreas: ServiceArea[];
total: number;
};
export type ValidateFacilityOut = {
facility: Facility;
transactionId: string;
};
export type ValidateFacilityIn = {
facilityIdentifier: string;
};
export type EmailErrorIn = {
transactionId: string;
details: string;
extraFields: {
[key: string]: string;
};
};
export type PromotionIn = {
code: string;
destinationCountryCode: string;
shipmentDatetime: string;
shipper: {
countryCode: string;
accountNumber: string;
};
};
export type PromotionOut = {
promotion: {
accountNumber: string;
};
transactionId: string;
};
export type ValidateNIPOut = {
nip: {
valid: string;
message: string;
};
};
export type ValidateNIPIn = {
accountValue: string;
nip: string;
user: number;
};
export type ValidateIdentificationBROut = {
identification: {
valid: boolean;
};
};
export type ValidateIdentificationBRIn = {
identification_number: string;
validate_state_tax: boolean;
};