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};

/// TransactionsPayload : The payload for the `listTransactions` operation.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TransactionsPayload {
    /// When present and not empty, pass this string token in the next request to return the next response page.
    #[serde(rename = "nextToken", skip_serializing_if = "Option::is_none")]
    pub next_token: Option<String>,
    /// Contains transactions within a given time period.
    #[serde(rename = "transactions", skip_serializing_if = "Option::is_none")]
    pub transactions: Option<Vec<models::finances_2024_06_19::Transaction>>,
}

impl TransactionsPayload {
    /// The payload for the `listTransactions` operation.
    pub fn new() -> TransactionsPayload {
        TransactionsPayload {
            next_token: None,
            transactions: None,
        }
    }
}