amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * The Selling Partner API for Finances
 *
 * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
 *
 * The version of the OpenAPI document: 2024-06-19
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// AmazonPayContext : Additional information related to Amazon Pay.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AmazonPayContext {
    /// Store name related to transaction.
    #[serde(rename = "storeName", skip_serializing_if = "Option::is_none")]
    pub store_name: Option<String>,
    /// Order type of the transaction.
    #[serde(rename = "orderType", skip_serializing_if = "Option::is_none")]
    pub order_type: Option<String>,
    /// Channel details of related transaction.
    #[serde(rename = "channel", skip_serializing_if = "Option::is_none")]
    pub channel: Option<String>,
}

impl AmazonPayContext {
    /// Additional information related to Amazon Pay.
    pub fn new() -> AmazonPayContext {
        AmazonPayContext {
            store_name: None,
            order_type: None,
            channel: None,
        }
    }
}