import { AxiosResponse } from "axios"; import { ApiRequest } from "../client/ApiRequest"; import { IOptions, IRequestOptions, IStandardParameters, IStandardResponse } from "../types"; export interface IShippingUpgrade { /** * Identifier for the parent shipping profile */ shipping_profile_id: number; /** * Identifier for the value */ value_id: number; /** * Name of the shipping upgrade, e.g. USPS Priority */ value: string; /** * Additional cost of adding the shipping upgrade */ price: number; /** * Additional cost of adding the shipping upgrade with another item */ secondary_price: number; /** * Currency for the price */ currency_code: string; /** * Domestic (0) or international (1) */ type: number; /** * Display order */ order: number; /** * Language code */ language: number; /** * The minimum delivery time that a shipment will take, in days. */ min_delivery_time: number; /** * The maximum delivery time that a shipment will take, in days. */ max_delivery_time: number; /** * The numeric ID of the shipping carrier. */ shipping_carrier_id: number; /** * The string representation of a shipping carrier's mail class. */ mail_class: string; } export interface IGetListingShippingUpgradesParameters { listing_id: number; } export interface ICreateListingShippingUpgradeParameters { listing_id: number; type: number; value: string; price: number; secondary_price: number; shipping_carrier_id?: number; mail_class?: string; min_delivery_time?: number; max_delivery_time?: number; } export interface IUpdateListingShippingUpgradeParameters { listing_id: number; value_id: number; type: number; price: number; secondary_price: number; shipping_carrier_id?: number; mail_class?: string; min_delivery_time?: number; max_delivery_time?: number; } export interface IDeleteListingShippingUpgradeParameters { listing_id: number; value_id: number; type: number; } export declare class ShippingUpgrade extends ApiRequest { constructor(options: IOptions); /** * Get the shipping upgrades available for a listing. */ getListingShippingUpgrades(params: IGetListingShippingUpgradesParameters & IStandardParameters, extra?: IRequestOptions): Promise>>; /** * Creates a new ShippingUpgrade for the listing. Will unlink the listing if linked to a ShippingTemplate. */ createListingShippingUpgrade(params: ICreateListingShippingUpgradeParameters & IStandardParameters, extra?: IRequestOptions): Promise>>; /** * Updates a ShippingUpgrade on a listing. Will unlink the listing if linked to a ShippingTemplate. */ updateListingShippingUpgrade(params: IUpdateListingShippingUpgradeParameters & IStandardParameters, extra?: IRequestOptions): Promise>>; /** * Deletes the ShippingUpgrade from the listing. Will unlink the listing if linked to a ShippingTemplate. */ deleteListingShippingUpgrade(params: IDeleteListingShippingUpgradeParameters & IStandardParameters, extra?: IRequestOptions): Promise>>; }