amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * The Selling Partner API for FBA inbound operations.
 *
 * The Selling Partner API for Fulfillment By Amazon (FBA) Inbound. The FBA Inbound API enables building inbound workflows to create, manage, and send shipments into Amazon's fulfillment network. The API has interoperability with the Send-to-Amazon user interface.
 *
 * The version of the OpenAPI document: 2024-03-20
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// ContactInformation : The seller's contact information.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ContactInformation {
    /// The email address.
    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
    pub email: Option<String>,
    /// The contact's name.
    #[serde(rename = "name")]
    pub name: String,
    /// The phone number.
    #[serde(rename = "phoneNumber")]
    pub phone_number: String,
}

impl ContactInformation {
    /// The seller's contact information.
    pub fn new(name: String, phone_number: String) -> ContactInformation {
        ContactInformation {
            email: None,
            name,
            phone_number,
        }
    }
}