pub struct InvoiceMetadata {Show 16 fields
pub order_id: Option<String>,
pub order_url: Option<String>,
pub pos_data: Option<String>,
pub buyer_name: Option<String>,
pub buyer_email: Option<String>,
pub buyer_country: Option<String>,
pub buyer_zip: Option<String>,
pub buyer_state: Option<String>,
pub buyer_city: Option<String>,
pub buyer_address1: Option<String>,
pub buyer_address2: Option<String>,
pub buyer_phone: Option<String>,
pub item_desc: Option<String>,
pub item_code: Option<String>,
pub physical: Option<String>,
pub tax_included: Option<f32>,
}Expand description
InvoiceMetadata : Additional information around the invoice that can be supplied. The mentioned properties are all optional and you can introduce any json format you wish.
Fields§
§order_id: Option<String>You can use this property to store the ID of an external system. We allow you to search in the invoice list based on this ID.
order_url: Option<String>You can use this property to store the URL to the order of an external system. This makes navigating to the order easier.
pos_data: Option<String>§buyer_name: Option<String>§buyer_email: Option<String>§buyer_country: Option<String>§buyer_zip: Option<String>§buyer_state: Option<String>§buyer_city: Option<String>§buyer_address1: Option<String>§buyer_address2: Option<String>§buyer_phone: Option<String>§item_desc: Option<String>§item_code: Option<String>§physical: Option<String>§tax_included: Option<f32>Implementations§
Source§impl InvoiceMetadata
impl InvoiceMetadata
Sourcepub fn new() -> InvoiceMetadata
pub fn new() -> InvoiceMetadata
Additional information around the invoice that can be supplied. The mentioned properties are all optional and you can introduce any json format you wish.
Trait Implementations§
Source§impl Clone for InvoiceMetadata
impl Clone for InvoiceMetadata
Source§fn clone(&self) -> InvoiceMetadata
fn clone(&self) -> InvoiceMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InvoiceMetadata
impl Debug for InvoiceMetadata
Source§impl Default for InvoiceMetadata
impl Default for InvoiceMetadata
Source§fn default() -> InvoiceMetadata
fn default() -> InvoiceMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InvoiceMetadata
impl<'de> Deserialize<'de> for InvoiceMetadata
Source§fn 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
Source§impl PartialEq for InvoiceMetadata
impl PartialEq for InvoiceMetadata
Source§impl Serialize for InvoiceMetadata
impl Serialize for InvoiceMetadata
impl StructuralPartialEq for InvoiceMetadata
Auto Trait Implementations§
impl Freeze for InvoiceMetadata
impl RefUnwindSafe for InvoiceMetadata
impl Send for InvoiceMetadata
impl Sync for InvoiceMetadata
impl Unpin for InvoiceMetadata
impl UnwindSafe for InvoiceMetadata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more