Struct amazon_sp_vendor_invoices::models::invoice_item::InvoiceItem
source · [−]pub struct InvoiceItem {
pub item_sequence_number: i32,
pub amazon_product_identifier: Option<String>,
pub vendor_product_identifier: Option<String>,
pub invoiced_quantity: Box<ItemQuantity>,
pub net_cost: Box<Money>,
pub purchase_order_number: Option<String>,
pub hsn_code: Option<String>,
pub credit_note_details: Option<Box<CreditNoteDetails>>,
pub tax_details: Option<Vec<TaxDetails>>,
pub charge_details: Option<Vec<ChargeDetails>>,
pub allowance_details: Option<Vec<AllowanceDetails>>,
}Expand description
InvoiceItem : Details of the item being invoiced.
Fields
item_sequence_number: i32Unique number related to this line item.
amazon_product_identifier: Option<String>Amazon Standard Identification Number (ASIN) of an item.
vendor_product_identifier: Option<String>The vendor selected product identifier of the item. Should be the same as was provided in the purchase order.
invoiced_quantity: Box<ItemQuantity>net_cost: Box<Money>purchase_order_number: Option<String>The Amazon purchase order number for this invoiced line item. Formatting Notes: 8-character alpha-numeric code. This value is mandatory only when invoiceType is Invoice, and is not required when invoiceType is CreditNote.
hsn_code: Option<String>HSN Tax code. The HSN number cannot contain alphabets.
credit_note_details: Option<Box<CreditNoteDetails>>tax_details: Option<Vec<TaxDetails>>Individual tax details per line item.
charge_details: Option<Vec<ChargeDetails>>Individual charge details per line item.
allowance_details: Option<Vec<AllowanceDetails>>Individual allowance details per line item.
Implementations
sourceimpl InvoiceItem
impl InvoiceItem
sourcepub fn new(
item_sequence_number: i32,
invoiced_quantity: ItemQuantity,
net_cost: Money
) -> InvoiceItem
pub fn new(
item_sequence_number: i32,
invoiced_quantity: ItemQuantity,
net_cost: Money
) -> InvoiceItem
Details of the item being invoiced.
Trait Implementations
sourceimpl Clone for InvoiceItem
impl Clone for InvoiceItem
sourcefn clone(&self) -> InvoiceItem
fn clone(&self) -> InvoiceItem
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for InvoiceItem
impl Debug for InvoiceItem
sourceimpl Default for InvoiceItem
impl Default for InvoiceItem
sourcefn default() -> InvoiceItem
fn default() -> InvoiceItem
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for InvoiceItem
impl<'de> Deserialize<'de> for InvoiceItem
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<InvoiceItem> for InvoiceItem
impl PartialEq<InvoiceItem> for InvoiceItem
sourcefn eq(&self, other: &InvoiceItem) -> bool
fn eq(&self, other: &InvoiceItem) -> bool
sourceimpl Serialize for InvoiceItem
impl Serialize for InvoiceItem
impl StructuralPartialEq for InvoiceItem
Auto Trait Implementations
impl RefUnwindSafe for InvoiceItem
impl Send for InvoiceItem
impl Sync for InvoiceItem
impl Unpin for InvoiceItem
impl UnwindSafe for InvoiceItem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more