@myparcel/sdk
Version:
JavaScript SDK to connect to the MyParcel API via Node.js or browser
33 lines (31 loc) • 866 B
TypeScript
import { DeliveryTypeId, DeliveryTypeName } from '@myparcel/constants';
import { StartEndDate, Timestamp, Weekday } from '../../../types';
export interface PickupLocation {
address: {
cc: string;
city: string;
number: string;
number_suffix: string;
postal_code: string;
street: string;
};
location: {
distance: string;
latitude: string;
location_code: string;
location_name: string;
longitude: string;
opening_hours: Record<Weekday, StartEndDate[]>;
phone_number: string | null;
retail_network_id: string;
};
possibilities: PickupPossibility[];
}
export interface PickupPossibility {
delivery_type_id: DeliveryTypeId;
delivery_type_name: DeliveryTypeName;
moment: {
start: Timestamp;
};
price?: number;
}