Skip to main content

amazon_spapi/models/product_pricing_v0/
price.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/// Price : Schema for price info in `getPricing` response
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Price {
17    /// The status of the operation.
18    #[serde(rename = "status")]
19    pub status: String,
20    /// The seller stock keeping unit (SKU) of the item.
21    #[serde(rename = "SellerSKU", skip_serializing_if = "Option::is_none")]
22    pub seller_sku: Option<String>,
23    /// The Amazon Standard Identification Number (ASIN) of the item.
24    #[serde(rename = "ASIN", skip_serializing_if = "Option::is_none")]
25    pub asin: Option<String>,
26    #[serde(rename = "Product", skip_serializing_if = "Option::is_none")]
27    pub product: Option<Box<models::product_pricing_v0::Product>>,
28}
29
30impl Price {
31    /// Schema for price info in `getPricing` response
32    pub fn new(status: String) -> Price {
33        Price {
34            status,
35            seller_sku: None,
36            asin: None,
37            product: None,
38        }
39    }
40}
41