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

/// GetInvoicesResponse : Success.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetInvoicesResponse {
    /// A list of invoices.
    #[serde(rename = "invoices", skip_serializing_if = "Option::is_none")]
    pub invoices: Option<Vec<models::invoices_2024_06_19::Invoice>>,
    /// This token is returned when the number of results exceeds the specified `pageSize` value. To get the next page of results, call the `getInvoices` operation and include this token with the previous call parameters.
    #[serde(rename = "nextToken", skip_serializing_if = "Option::is_none")]
    pub next_token: Option<String>,
}

impl GetInvoicesResponse {
    /// Success.
    pub fn new() -> GetInvoicesResponse {
        GetInvoicesResponse {
            invoices: None,
            next_token: None,
        }
    }
}