pub struct P2pAdvertUpdateRequest {Show 23 fields
pub contact_info: Option<String>,
pub delete: Option<Delete>,
pub description: Option<String>,
pub eligible_countries: Option<String>,
pub id: String,
pub is_active: Option<IsActive>,
pub local_currency: Option<String>,
pub loginid: Option<String>,
pub max_order_amount: Option<String>,
pub min_completion_rate: Option<String>,
pub min_join_days: Option<String>,
pub min_order_amount: Option<String>,
pub min_rating: Option<String>,
pub order_expiry_period: Option<i64>,
pub p2p_advert_update: Value,
pub passthrough: Option<Value>,
pub payment_info: Option<String>,
pub payment_method_ids: Option<Vec<i64>>,
pub payment_method_names: Option<Vec<String>>,
pub rate: Option<String>,
pub rate_type: Option<RateType>,
pub remaining_amount: Option<String>,
pub req_id: Option<i64>,
}
Expand description
Updates a P2P advert. Can only be used by the advertiser.
Fields§
§contact_info: Option<String>
[Optional] Advertiser contact information.\n
delete: Option<Delete>
[Optional] If set to 1, permanently deletes the advert.\n
description: Option<String>
[Optional] General information about the advert.\n
eligible_countries: Option<String>
[Optional] 2 letter country codes. Counterparties who do not live in these countries will not be allowed to place orders against this advert. An empty array or null value will clear the condition.\n
id: String
The unique identifier for this advert.\n
is_active: Option<IsActive>
[Optional] Activate or deactivate the advert.\n
local_currency: Option<String>
[Optional] Local currency for this advert.\n
loginid: Option<String>
[Optional] The login id of the user. Mandatory when multiple tokens were provided during authorize.\n
max_order_amount: Option<String>
[Optional] Maximum allowed amount for the orders of this advert, in advertiser’s account_currency
. Should be more than or equal to min_order_amount
.\n
min_completion_rate: Option<String>
[Optional] Counterparties who have a 30 day completion rate less than this value will not be allowed to place orders against this advert. A an empty array or null value will clear the condition.\n
min_join_days: Option<String>
[Optional] Counterparties who joined less than this number of days ago will not be allowed to place orders against this advert. A null value will clear the condition.\n
min_order_amount: Option<String>
[Optional] Minimum allowed amount for the orders of this advert, in advertiser’s account_currency
. Should be less than or equal to max_order_amount
.\n
min_rating: Option<String>
[Optional] Counterparties who have an average rating less than this value will not be allowed to place orders against this advert. A null value will clear the condition.\n
order_expiry_period: Option<i64>
[Optional] Expiry period (seconds) for order created against this ad.\n
p2p_advert_update: Value
Field ‘p2p_advert_update’ mapped to Value due to complexity/potential issues.\n
passthrough: Option<Value>
[Optional] Used to pass data through the websocket, which may be retrieved via the echo_req
output field.\n
payment_info: Option<String>
[Optional] Payment instructions.\n
payment_method_ids: Option<Vec<i64>>
[Optional] IDs of previously saved payment methods as returned from p2p_advertiser_payment_methods, only applicable for sell ads. Exisiting methods will be replaced.\n
payment_method_names: Option<Vec<String>>
[Optional] Payment method identifiers as returned from p2p_payment_methods, only applicable for buy ads. Exisiting methods will be replaced.\n
rate: Option<String>
[Optional] Conversion rate from advertiser’s account currency to local_currency
. An absolute rate value (fixed), or percentage offset from current market rate (floating).\n
rate_type: Option<RateType>
[Optional] Type of rate, fixed or floating.\n
remaining_amount: Option<String>
[Optional] The total available amount of the advert, in advertiser’s account currency.\n
req_id: Option<i64>
[Optional] Used to map request to response.\n
Trait Implementations§
Source§impl Clone for P2pAdvertUpdateRequest
impl Clone for P2pAdvertUpdateRequest
Source§fn clone(&self) -> P2pAdvertUpdateRequest
fn clone(&self) -> P2pAdvertUpdateRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more