paymentlib/dto/
payment_setup.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
use serde::{Deserialize, Serialize};

use crate::dto::credit_card::CreditCard;
use crate::dto::merchant::Merchant;

#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct PaymentSetup {
    pub payment_method: String,
    pub stopped: bool,
    pub credit_card: CreditCard,
    pub merchant: Merchant,
}