paystack/models/customers.rs
1//! Customers
2//! ==========
3//! This file contains the models for working with the customers endpoint.
4
5use serde::{Deserialize, Serialize};
6
7/// This struct represents the Paystack customer data
8#[derive(Debug, Deserialize, Serialize, Clone)]
9pub struct Customer {
10 /// Customer's Id.
11 pub id: Option<u32>,
12 /// Customer's first name.
13 pub first_name: Option<String>,
14 /// Customer's last name.
15 pub last_name: Option<String>,
16 /// Customer's email address.
17 pub email: Option<String>,
18 /// Customer's code.
19 pub customer_code: String,
20 /// Customer's phone number.
21 pub phone: Option<String>,
22 /// Customer's metadata.
23 pub metadata: Option<String>,
24 /// Customer's risk action.
25 pub risk_action: Option<String>,
26 /// Customer's phone number in international format.
27 pub international_format_phone: Option<String>,
28}