amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * Selling Partner API for Direct Fulfillment Payments
 *
 * The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor's invoice data.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// ItemQuantity : Details of item quantity.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ItemQuantity {
    /// Quantity of units available for a specific item.
    #[serde(rename = "amount")]
    pub amount: i32,
    /// Unit of measure for the available quantity.
    #[serde(rename = "unitOfMeasure")]
    pub unit_of_measure: String,
}

impl ItemQuantity {
    /// Details of item quantity.
    pub fn new(amount: i32, unit_of_measure: String) -> ItemQuantity {
        ItemQuantity {
            amount,
            unit_of_measure,
        }
    }
}