Skip to main content

amazon_spapi/models/services/
buyer.rs

1/*
2 * Selling Partner API for Services
3 *
4 * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Buyer : Information about the buyer.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Buyer {
17    /// The identifier of the buyer.
18    #[serde(rename = "buyerId", skip_serializing_if = "Option::is_none")]
19    pub buyer_id: Option<String>,
20    /// The name of the buyer.
21    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
22    pub name: Option<String>,
23    /// The phone number of the buyer.
24    #[serde(rename = "phone", skip_serializing_if = "Option::is_none")]
25    pub phone: Option<String>,
26    /// When true, the service is for an Amazon Prime buyer.
27    #[serde(rename = "isPrimeMember", skip_serializing_if = "Option::is_none")]
28    pub is_prime_member: Option<bool>,
29}
30
31impl Buyer {
32    /// Information about the buyer.
33    pub fn new() -> Buyer {
34        Buyer {
35            buyer_id: None,
36            name: None,
37            phone: None,
38            is_prime_member: None,
39        }
40    }
41}
42