Skip to main content

amazon_spapi/models/product_pricing_v0/
batch_offers_response.rs

1/*
2 * Selling Partner API for Pricing
3 *
4 * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
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/// BatchOffersResponse : Common schema that present in `ItemOffersResponse` and `ListingOffersResponse`
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct BatchOffersResponse {
17    #[serde(rename = "headers", skip_serializing_if = "Option::is_none")]
18    pub headers: Option<models::product_pricing_v0::HttpResponseHeaders>,
19    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
20    pub status: Option<Box<models::product_pricing_v0::GetOffersHttpStatusLine>>,
21    #[serde(rename = "body")]
22    pub body: Box<models::product_pricing_v0::GetOffersResponse>,
23}
24
25impl BatchOffersResponse {
26    /// Common schema that present in `ItemOffersResponse` and `ListingOffersResponse`
27    pub fn new(body: models::product_pricing_v0::GetOffersResponse) -> BatchOffersResponse {
28        BatchOffersResponse {
29            headers: None,
30            status: None,
31            body: Box::new(body),
32        }
33    }
34}
35