/*
* OANDA v20 API
*
* The full OANDA v20 API Specification. This specification defines how to interact with v20 Accounts, Trades, Orders, Pricing and more.
*
* The version of the OpenAPI document: 0.2.1
* Contact: jmicoud02@gmail.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// OrderCancel : An OrderCancel represents an Order cancellation in the client's Account.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct OrderCancel {
/// The ID of the Order cancelled
#[serde(rename = "orderID", skip_serializing_if = "Option::is_none")]
pub order_id: Option<i32>,
/// The client ID of the Order cancelled (only provided if the Order has a client Order ID).
#[serde(rename = "clientOrderID", skip_serializing_if = "Option::is_none")]
pub client_order_id: Option<String>,
}
impl OrderCancel {
/// An OrderCancel represents an Order cancellation in the client's Account.
pub fn new() -> OrderCancel {
OrderCancel {
order_id: None,
client_order_id: None,
}
}
}