amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * Selling Partner API for Pricing
 *
 * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
 *
 * The version of the OpenAPI document: v0
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// BatchOffersResponse : Common schema that present in `ItemOffersResponse` and `ListingOffersResponse`
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BatchOffersResponse {
    #[serde(rename = "headers", skip_serializing_if = "Option::is_none")]
    pub headers: Option<models::product_pricing_v0::HttpResponseHeaders>,
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<Box<models::product_pricing_v0::GetOffersHttpStatusLine>>,
    #[serde(rename = "body")]
    pub body: Box<models::product_pricing_v0::GetOffersResponse>,
}

impl BatchOffersResponse {
    /// Common schema that present in `ItemOffersResponse` and `ListingOffersResponse`
    pub fn new(body: models::product_pricing_v0::GetOffersResponse) -> BatchOffersResponse {
        BatchOffersResponse {
            headers: None,
            status: None,
            body: Box::new(body),
        }
    }
}