paystack/models/
customer.rs

1use serde::{Deserialize, Serialize};
2
3/// This struct represents the Paystack customer data
4#[derive(Debug, Deserialize, Serialize, Clone, Default)]
5pub struct Customer {
6    /// Customer's Id.
7    pub id: u32,
8    /// Customer's first name.
9    pub first_name: Option<String>,
10    /// Customer's last name.
11    pub last_name: Option<String>,
12    /// Customer's email address.
13    pub email: String,
14    /// Customer's code.
15    pub customer_code: String,
16    /// Customer's phone number.
17    pub phone: Option<String>,
18    /// Customer's risk action.
19    pub risk_action: Option<String>,
20    /// Customer's phone number in international format.
21    pub international_format_phone: Option<String>,
22}