amazon_spapi/models/shipment_invoicing_v0/get_invoice_status_response.rs
1/*
2 * Selling Partner API for Shipment Invoicing
3 *
4 * The Selling Partner API for Shipment Invoicing helps you programmatically retrieve shipment invoice information in the Brazil marketplace for a selling partner’s Fulfillment by Amazon (FBA) orders.
5 *
6 * The version of the OpenAPI document: v0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// GetInvoiceStatusResponse : The response schema for the getInvoiceStatus operation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GetInvoiceStatusResponse {
17 #[serde(rename = "payload", skip_serializing_if = "Option::is_none")]
18 pub payload: Option<Box<models::shipment_invoicing_v0::ShipmentInvoiceStatusResponse>>,
19 /// A list of error responses returned when a request is unsuccessful.
20 #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
21 pub errors: Option<Vec<models::shipment_invoicing_v0::Error>>,
22}
23
24impl GetInvoiceStatusResponse {
25 /// The response schema for the getInvoiceStatus operation.
26 pub fn new() -> GetInvoiceStatusResponse {
27 GetInvoiceStatusResponse {
28 payload: None,
29 errors: None,
30 }
31 }
32}
33