pub struct CreateQuoteRequest {Show 14 fields
pub pickup_address: String,
pub dropoff_address: String,
pub dropoff_latitude: Option<f64>,
pub dropoff_longitude: Option<f64>,
pub dropoff_phone_number: Option<String>,
pub pickup_latitude: Option<f64>,
pub pickup_longitude: Option<f64>,
pub pickup_phone_number: Option<String>,
pub pickup_ready_dt: Option<LocalDateTime>,
pub pickup_deadline_dt: Option<LocalDateTime>,
pub dropoff_ready_dt: Option<LocalDateTime>,
pub dropoff_deadline_dt: Option<LocalDateTime>,
pub manifest_total_value: Option<i64>,
pub external_store_id: Option<String>,
}Expand description
§Request Body Parameters
| Name | Type | Description |
|---|---|---|
| dropoff_address | string | (required) Dropoff address in Street Address, City, State, Zip format |
| pickup_address | string | (required) Pickup address in Street Address, City, State, Zip format |
| dropoff_latitude | double | Dropoff latitude coordinate |
| dropoff_longitude | double | Dropoff longitude coordinate |
| dropoff_phone_number | string | Phone number of recipient |
| pickup_latitude | double | Pickup latitude coordinate |
| pickup_longitude | double | Pickup longitude coordinate |
| pickup_phone_number | string | Phone number of sender/store |
| pickup_ready_dt | timestamp (RFC 3339) | Beginning of the window when an order must be picked up. Must be less than 30 days in the future. |
| pickup_deadline_dt | timestamp (RFC 3339) | End of the window when an order may be picked up. Must be at least 10 mins later than pickup_ready_dt and at least 20 minutes in the future from now. |
| dropoff_ready_dt | timestamp (RFC 3339) | Beginning of the window when an order must be dropped off. Must be less than or equal to pickup_deadline_dt |
| dropoff_deadline_dt | timestamp (RFC 3339) | End of the window when an order must be dropped off. Must be at least 20 mins later than dropoff_ready_dt and must be greater than or equal to pickup_deadline_dt. |
| manifest_total_value | integer | Value (in US cents) of the items in the delivery. i.e.: $10.99 => 1099. |
| external_store_id | string | (Optional) Unique identifier used by our Partners to reference a Store or Location |
Fields§
§pickup_address: String§dropoff_address: String§dropoff_latitude: Option<f64>§dropoff_longitude: Option<f64>§dropoff_phone_number: Option<String>§pickup_latitude: Option<f64>§pickup_longitude: Option<f64>§pickup_phone_number: Option<String>§pickup_ready_dt: Option<LocalDateTime>§pickup_deadline_dt: Option<LocalDateTime>§dropoff_ready_dt: Option<LocalDateTime>§dropoff_deadline_dt: Option<LocalDateTime>§manifest_total_value: Option<i64>§external_store_id: Option<String>Implementations§
Trait Implementations§
Source§impl Debug for CreateQuoteRequest
impl Debug for CreateQuoteRequest
Source§impl Default for CreateQuoteRequest
impl Default for CreateQuoteRequest
Source§fn default() -> CreateQuoteRequest
fn default() -> CreateQuoteRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateQuoteRequest
impl RefUnwindSafe for CreateQuoteRequest
impl Send for CreateQuoteRequest
impl Sync for CreateQuoteRequest
impl Unpin for CreateQuoteRequest
impl UnwindSafe for CreateQuoteRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more