amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * The Selling Partner API for Invoices.
 *
 * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
 *
 * The version of the OpenAPI document: 2024-06-19
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// InvoicesAttributes : An object that contains the invoice attributes definition.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct InvoicesAttributes {
    /// A list of all the options that are available for the invoice status attribute.
    #[serde(rename = "invoiceStatusOptions", skip_serializing_if = "Option::is_none")]
    pub invoice_status_options: Option<Vec<models::invoices_2024_06_19::AttributeOption>>,
    /// A list of all the options that are available for the invoice type attribute.
    #[serde(rename = "invoiceTypeOptions", skip_serializing_if = "Option::is_none")]
    pub invoice_type_options: Option<Vec<models::invoices_2024_06_19::AttributeOption>>,
    /// A list of all the options that are available for the transaction identifier name attribute.
    #[serde(rename = "transactionIdentifierNameOptions", skip_serializing_if = "Option::is_none")]
    pub transaction_identifier_name_options: Option<Vec<models::invoices_2024_06_19::AttributeOption>>,
    /// A list of all the options that are available for the transaction type attribute.
    #[serde(rename = "transactionTypeOptions", skip_serializing_if = "Option::is_none")]
    pub transaction_type_options: Option<Vec<models::invoices_2024_06_19::AttributeOption>>,
}

impl InvoicesAttributes {
    /// An object that contains the invoice attributes definition.
    pub fn new() -> InvoicesAttributes {
        InvoicesAttributes {
            invoice_status_options: None,
            invoice_type_options: None,
            transaction_identifier_name_options: None,
            transaction_type_options: None,
        }
    }
}