UNPKG

@experteam-mx/ngx-services

Version:

Angular common services for Experteam apps

79 lines (78 loc) 2.4 kB
import { ActiveLessLaravelModel, LaravelModel } from './api.models'; import { IdentificationType } from './api-catalog.interfaces'; export interface Discount extends LaravelModel { code: string; company_country_id: number; name: string; description: string | null; account_number: string; percentage: string; start_date: string; end_date: string | null; start_weight: number; end_weight: number | null; shipment_scopes: number[]; country_reference_products: number[]; applies_to_all_locations: boolean; locations: number[] | null; reference_required: boolean; reference_restriction: boolean | null; reference_restriction_period: number | null; reference_restriction_amount: number | null; reference_restriction_message: string | null; shipment_scope_names: string; applies_to_all_locations_langs: { [key: string]: string; }; reference_required_langs: { [key: string]: string; }; status_langs: { [key: string]: string; }; applies_to_all_locations_lang: string | null; reference_required_lang: string | null; status_lang: string | null; } export interface TopCustomer extends ActiveLessLaravelModel { identification_type_id: number; identification_number: string; contact_name_1: string; contact_name_2: string; contact_name_3: string; email: string; phone_number: string; discount_percentage: string; account: string | null; shipment_scopes: string | null; company_country_id: number; company_name: string | null; level: string | null; } export interface LoyaltyPeriod extends LaravelModel { company_country_id: number; days: number; shipment_scopes: number[]; products: string[]; } export interface LoyaltyRule extends LaravelModel { name: string; loyalty_period_id: number; min_quantity: number; max_quantity: number; discount_percentage: number; account: string; products: string[]; valid_since: string; valid_until: string; } export interface CustomerRestriction extends ActiveLessLaravelModel { identification_type_id?: number; identification_number?: string; company_country_id: number; identificationType?: IdentificationType; email?: string; phone_number?: string; phone_code?: string; phone_country_code?: string; }