UNPKG

@shipengine/connect-fulfillment-provider-api

Version:

OpenAPI specification and TypeScript definitions for the Connect Fulfillment Provider API

30 lines (29 loc) 1.48 kB
import { BillingLineItem } from '../billing/billing-line-item'; import { TimeWindow } from '../time-window'; /** @description Basic structure for a rate */ export interface Rate { service_code?: string; /** @description ISO 8601 formatted date for shipment */ ship_datetime?: string; /** @description ISO 8601 formatted estimated delivery date */ estimated_delivery_datetime?: string; /** @description List of charge details for a rate */ billing_line_items?: BillingLineItem[]; /** @description Any error messages that resulted while trying to get the rate */ error_messages?: string[]; /** @description Any warning messages that resulted while trying to get the rate */ warning_messages?: string[]; /** @description Is the rate pre-negotiated? */ negotiated_rate?: boolean; /** @description The carrier pickup window is the time designated when the carrier will pickup your package from the initial location */ carrier_pickup_window?: TimeWindow; /** @description The delivery window is the time designated when the carrier will drop off the package to the recipient */ delivery_window?: TimeWindow; /** @description Unique identifier for the carrier rate */ carrier_rate_id?: string; /** @description DateTime after which the rate will no longer be accepted. * ISO 8601 format, with local offset. * Example: 2021-08-20T14:38:36.859237-05:00 */ expiration_datetime?: string; }