1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
//! Response struct for the Create Card API
use serde::Deserialize;
use super::errors::Error;
use super::Card;
/// This is a model struct for CreateCardResponse type.
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
pub struct CreateCardResponse {
/// Any errors that occurred during the request.
pub errors: Option<Vec<Error>>,
/// Represents the payment details of a card to be used for payments. These details are
/// determined by the payment token generated by Web Payments SDK.
pub card: Card,
}