feat: add Service api with interface
This commit is contained in:
parent
ab7a02bcca
commit
a440f954ad
35 changed files with 1027 additions and 23 deletions
|
|
@ -0,0 +1,19 @@
|
|||
export interface GetCustomerOutputInterface {
|
||||
id?: string;
|
||||
idCompany?: string;
|
||||
idSubsidiary?: number;
|
||||
name?: string;
|
||||
lastname?: string;
|
||||
idTypeCustomer?: string;
|
||||
dni?: string;
|
||||
idGender?: string;
|
||||
idMaritalStatus?: string;
|
||||
address?: string;
|
||||
mail?: string;
|
||||
phone?: string;
|
||||
idUser?: string;
|
||||
status?: any;
|
||||
validateOnline?: boolean;
|
||||
size?: number;
|
||||
page?: number;
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
export interface GetTypeDNIOutputInterface {
|
||||
id?: string;
|
||||
name?: string;
|
||||
alias?: string;
|
||||
longitude?: string;
|
||||
status?: any;
|
||||
idMethodValidation?: string;
|
||||
nameMethodValidation?: string;
|
||||
idUser?: string;
|
||||
dataType?: string;
|
||||
size?: number;
|
||||
page?: number;
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
export interface GetTypeValidationOutputInrerface {
|
||||
id?: string;
|
||||
idCountry?: string;
|
||||
name?: string;
|
||||
alias?: string;
|
||||
status?: string | null;
|
||||
idUser?: string;
|
||||
page?: number;
|
||||
size?: number;
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
export interface SaveCustomerOutputInteface {
|
||||
id?: string;
|
||||
idCompany?: string;
|
||||
idSubsidiary?: string;
|
||||
name?: string;
|
||||
secondName?: string;
|
||||
firstSurname?: string;
|
||||
secondSurname?: string;
|
||||
idTypeCustomer?: string;
|
||||
dni?: string;
|
||||
idGender?: string;
|
||||
idMaritalStatus?: string;
|
||||
address?: string;
|
||||
mail?: string;
|
||||
phone?: string;
|
||||
idUser?: string;
|
||||
status?: any;
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
export interface SaveTypeDniOutputInterface {
|
||||
id?: string;
|
||||
name?: string;
|
||||
alias?: string;
|
||||
longitude?: number;
|
||||
status?: any;
|
||||
idMethodValidation?: string;
|
||||
idUser?: string;
|
||||
dataType?: string;
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
export interface SaveTypeValidationOutputInterface {
|
||||
id?: string;
|
||||
idCountry?: string;
|
||||
name?: string;
|
||||
alias?: string;
|
||||
status?: any;
|
||||
idUser?: string;
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
interface Product {
|
||||
sku: string;
|
||||
value: number;
|
||||
}
|
||||
|
||||
export interface AddProductsOutputInterface {
|
||||
idTransaction?: string;
|
||||
storeNumber?: string;
|
||||
idSubsidiary?: number;
|
||||
clientNit?: string;
|
||||
idUser?: string;
|
||||
localDate?: Date;
|
||||
pos?: string;
|
||||
products: Product[];
|
||||
}
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
export interface Payment {
|
||||
type: string;
|
||||
approvalCode: string;
|
||||
receiptNumber: string;
|
||||
value: number;
|
||||
cardNumber: string;
|
||||
cardType: string;
|
||||
comment: string;
|
||||
}
|
||||
|
||||
export interface InfoPos {
|
||||
addressPos: string;
|
||||
codeMunPos: string;
|
||||
nameMunPos: string;
|
||||
codeDepPos: string;
|
||||
nameDepPos: string;
|
||||
pos: string;
|
||||
}
|
||||
|
||||
export interface EndSaleOutputInterface {
|
||||
idTransaction: string;
|
||||
storeNumber: string;
|
||||
idSubsidiary: number;
|
||||
idUser: string;
|
||||
localDate: string;
|
||||
pos: string;
|
||||
comment: string;
|
||||
payment: Payment[];
|
||||
infoPos: InfoPos;
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
export interface GetSaleOutputInterface {
|
||||
idTransaction?: string;
|
||||
storeNumber?: number;
|
||||
idSubsidiary?: string;
|
||||
idUser?: string;
|
||||
pos?: string;
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
export interface Product {
|
||||
sku: string;
|
||||
value: number;
|
||||
}
|
||||
|
||||
export interface Transaction {
|
||||
idTransaction: string;
|
||||
storeNumber: string;
|
||||
idSubsidiary: number;
|
||||
clientNit: string;
|
||||
idUser: string;
|
||||
localDate: string;
|
||||
pos: string;
|
||||
products: Product[];
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
export interface StartSaleOutputInterface {
|
||||
storeNumber?: string;
|
||||
idSubsidiary?: number;
|
||||
idClient?: string;
|
||||
clientDni?: string;
|
||||
idType?: string;
|
||||
idGroup?: string;
|
||||
invoiceName?: string;
|
||||
invoiceTypeNit?: string;
|
||||
invoiceNit?: string;
|
||||
invoiceDirection?: string;
|
||||
invoiceCellPhone?: string;
|
||||
invoiceEmail?: string;
|
||||
idUser?: string;
|
||||
localDate?: string;
|
||||
pos?: string;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue