UNPKG

@selldone/sdk-storefront

Version:

A TypeScript SDK to connect to your shop and build a fully functional storefront and website by simply developing a frontend web application. All backend operations are seamlessly managed by the serverless Selldone solution.

15 lines (14 loc) 766 B
import { Currency } from "../../enums/payment/Currency"; import { Shop } from "../../models/shop/shop.model"; import { Transportation } from "../../models/shop/transportation/transportation.model"; export declare class LogisticHelper { static calculateWeightBasket(basket: any): number; static calculateVolumeBasket(basket: any): { width: number; length: number; height: number; }; static calculateDistanceBasket(origin: any, target: any): number; static GPSCalculateDistance(lat1: any, lon1: any, lat2: any, lon2: any): number; static calculateShipping(shop: Shop, to_currency: keyof typeof Currency, distance: number, weight: number, basket_total_price: number, transportation: Transportation): number | "خطا"; }