/*
* Selling Partner API for Services
*
* With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// CreateReservationRequest : Request schema for the `createReservation` operation.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateReservationRequest {
/// Resource (store) identifier.
#[serde(rename = "resourceId")]
pub resource_id: String,
#[serde(rename = "reservation")]
pub reservation: Box<models::services::Reservation>,
}
impl CreateReservationRequest {
/// Request schema for the `createReservation` operation.
pub fn new(resource_id: String, reservation: models::services::Reservation) -> CreateReservationRequest {
CreateReservationRequest {
resource_id,
reservation: Box::new(reservation),
}
}
}