bitwarden_api_api/models/
tokenized_payment_source_request_body.rsuse serde::{Deserialize, Serialize};
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TokenizedPaymentSourceRequestBody {
#[serde(rename = "type")]
pub r#type: models::PaymentMethodType,
#[serde(rename = "token")]
pub token: String,
}
impl TokenizedPaymentSourceRequestBody {
pub fn new(
r#type: models::PaymentMethodType,
token: String,
) -> TokenizedPaymentSourceRequestBody {
TokenizedPaymentSourceRequestBody { r#type, token }
}
}