Skip to main content

amazon_spapi/models/finances_2024_06_19/
amazon_pay_context.rs

1/*
2 * The Selling Partner API for Finances
3 *
4 * 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.
5 *
6 * The version of the OpenAPI document: 2024-06-19
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// AmazonPayContext : Additional information related to Amazon Pay.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AmazonPayContext {
17    /// Store name related to transaction.
18    #[serde(rename = "storeName", skip_serializing_if = "Option::is_none")]
19    pub store_name: Option<String>,
20    /// Order type of the transaction.
21    #[serde(rename = "orderType", skip_serializing_if = "Option::is_none")]
22    pub order_type: Option<String>,
23    /// Channel details of related transaction.
24    #[serde(rename = "channel", skip_serializing_if = "Option::is_none")]
25    pub channel: Option<String>,
26}
27
28impl AmazonPayContext {
29    /// Additional information related to Amazon Pay.
30    pub fn new() -> AmazonPayContext {
31        AmazonPayContext {
32            store_name: None,
33            order_type: None,
34            channel: None,
35        }
36    }
37}
38