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

/// GetPricingResponse : The response schema for the `getPricing` and `getCompetitivePricing` operations.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetPricingResponse {
    /// The payload for the `getPricing` and `getCompetitivePricing` operations.
    #[serde(rename = "payload", skip_serializing_if = "Option::is_none")]
    pub payload: Option<Vec<models::product_pricing_v0::Price>>,
    /// A list of error responses returned when a request is unsuccessful.
    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
    pub errors: Option<Vec<models::product_pricing_v0::Error>>,
}

impl GetPricingResponse {
    /// The response schema for the `getPricing` and `getCompetitivePricing` operations.
    pub fn new() -> GetPricingResponse {
        GetPricingResponse {
            payload: None,
            errors: None,
        }
    }
}