UNPKG

@pfantato/printful-ts

Version:

Typescript SDK to integrate with Printful

26 lines (25 loc) 933 B
import type { Options } from 'ky'; import { CalculateShippingRatesBody } from '@printful-ts/schemas'; import { PrintfulApiService } from './printful-api.service'; export declare class ShippingRateService extends PrintfulApiService { calculateShippingRates(body: CalculateShippingRatesBody, options?: Options): Promise<{ data?: { currency?: string; shipping?: string; shipments?: { shipment_items?: { quantity?: number; catalog_variant_id?: number; }[]; departure_country?: string; custom_fees_possible?: boolean; }[]; shipping_method_name?: string; rate?: string; min_delivery_days?: number; max_delivery_days?: number; min_delivery_date?: string; max_delivery_date?: string; }; }>; }