UNPKG

@myparcel/sdk

Version:

JavaScript SDK to connect to the MyParcel API via Node.js or browser

19 lines (17 loc) 757 B
import { AbstractPublicEndpoint } from '../../../model/endpoint/AbstractPublicEndpoint'; import { CreateDefinition } from '../../../model/endpoint/AbstractEndpoint.types'; import { PickupLocation } from './PickupLocation.types'; import { DeliveryOptionsParameters } from '../..'; export type GetPickupLocationsDefinition = CreateDefinition<{ name: typeof GetPickupLocations.name; parameters: DeliveryOptionsParameters; response: PickupLocation[]; }>; /** * Get available pickup locations for given location. */ export declare class GetPickupLocations extends AbstractPublicEndpoint<GetPickupLocationsDefinition> { readonly name = "getPickupLocations"; readonly path = "pickup_locations"; readonly property = "pickup_locations"; }