bazzar/vendor/t_pay/src/models/blik_response.rs

31 lines
2.0 KiB
Rust
Raw Normal View History

/*
* Tpay.com Technical Documentation
*
* <p class=\"changes-disclaimer\"> Demo transaction/masspayments api key: <input type=\"text\" id=\"transaction_key\" value=\"75f86137a6635df826e3efe2e66f7c9a946fdde1\" class=\"ui-form-control\"/><label for=\"transaction_key\" style=\"display: none;\" id=\"tr_api_label\">COPIED!</label><br/><br/> Demo cards api key: <input type=\"text\" id=\"cards_key\" value=\"bda5eda723bf1ae71a82e90a249803d3f852248d\" class=\"ui-form-control\"/><label for=\"cards_key\" style=\"display: none;\" id=\"cards_api_label\">COPIED!</label><br/><br/> The terms seller and merchant are used interchangeably and they both refer to a person or a company registered at tpay.com to accept online payments. <br/> Whenever term merchant panel is used it refers to the part of tpay.com website located at <a href=\"https://secure.tpay.com/panel\" target=\"_blank\">secure.tpay.com/panel</a>. <br/><br/> For sandbox purposes use merchant demo account <br/><br/> ID - 1010, Password - demo<br/><br/>Remember that this is a shared account, so all data passed through will be publicly visible.</p>
*
* The version of the OpenAPI document: 1.2.1
* Contact: pt@tpay.com
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct BlikResponse {
/// Attention! result: 1 does not indicate transfer of funds! This is successful user app popup indicator.
#[serde(rename = "result", skip_serializing_if = "Option::is_none")]
pub result: Option<i32>,
#[serde(rename = "availableUserApps", skip_serializing_if = "Option::is_none")]
pub available_user_apps: Option<Vec<crate::models::BlikAliasResponse>>,
#[serde(rename = "err", skip_serializing_if = "Option::is_none")]
pub err: Option<crate::models::TransactionErrorCodes>,
}
impl BlikResponse {
pub fn new() -> BlikResponse {
BlikResponse {
result: None,
available_user_apps: None,
err: None,
}
}
}