ongkir
Version:
Shipping charges from logistic services in Indonesia
32 lines (31 loc) • 1.03 kB
TypeScript
import { AxiosInstance } from 'axios';
import { ExpeditionType } from '.';
import { LocationType } from '../Geolocation';
export declare class BaseExpedition {
protected axios: AxiosInstance;
protected expedition: ExpeditionType;
protected mappingTableResult: {
service: number;
price: number;
etd: number;
};
protected weight: number;
protected origin?: LocationType;
protected destination?: LocationType;
constructor(expedition: ExpeditionType);
queryOrigins(query: string): Promise<LocationType[]>;
queryDestinations(query: string): Promise<LocationType[]>;
setOrigin(location: LocationType): void;
setDestination(location: LocationType): void;
setWeight(weight: number): void;
getShippingCharges(): Promise<{
expedition: string;
customerService: string;
fees: {
service: string;
price: string;
etd?: string | null | undefined;
}[];
}>;
protected buildParams(): any;
}