import { EstimateErrors, Estimates } from "@deliverysolutions/rule-engine/src/pojos/Estimates"; import { RemoteZipCode } from "./postal-codes.interface"; import { CorporateDsp } from "@deliverysolutions/rule-engine/src/pojos/CorporateDsp"; import { PostalService, ServiceData, ServiceDetails } from "./postal-services.interface"; import { OrderDTO } from "../dtos/order.dto"; export namespace ZoneRatesParameters { export interface GetRate { providerDisplayName: string; serviceId: string; tenantId: string; weight: number; zone: string; version: number; }; export interface GetZones { provider: string; sourcePostalCode: string; destinationPostalCode: string; }; export interface GetActiveRateVersion { tenantId: string; providerDisplayName: string; serviceId: string; }; export interface ProcessEstimates { estimate: Estimates; zones: PostalService[]; finalEstimates: Estimates[], finalErrors: EstimateErrors[], billableWeights: number[], order: OrderDTO, remoteZipCodes: RemoteZipCode[], corporateDsp: CorporateDsp } export interface CalculateRateForService { order: OrderDTO; providerDisplayName: string; serviceId: string; zone: any; billableWeights: number[]; remoteZipCodes: RemoteZipCode[]; corporateDsp: CorporateDsp; finalErrors: EstimateErrors[]; } export interface GetRatesForAllPackages { order: OrderDTO, providerDisplayName: string, serviceId: string, zone: string, billableWeights: number[], finalErrors: EstimateErrors[] } export interface GetSurchargesForAllPackages { order: OrderDTO; billableWeights: number[]; zone: PostalService; serviceId: string; remoteZipCodes: RemoteZipCode[]; baseRate?: number; finalErrors: EstimateErrors[]; corporateDsp: CorporateDsp; } export interface CalculateRateForPackage { order: OrderDTO, providerDisplayName: string, serviceId: string, zone: string, weight: number } } export interface EstimatesReponse { estimates: ServiceData[]; errors: EstimateErrors[]; }