Struct paypal_rs::invoice::InvoiceDetail
source · [−]pub struct InvoiceDetail {
pub reference: Option<String>,
pub currency_code: Currency,
pub note: Option<String>,
pub terms_and_conditions: Option<String>,
pub memo: Option<String>,
pub attachments: Option<Vec<FileReference>>,
pub invoice_number: Option<String>,
pub invoice_date: Option<NaiveDate>,
pub payment_term: Option<PaymentTerm>,
pub metadata: Option<Metadata>,
}
Expand description
The details of the invoice. Includes the invoice number, date, payment terms, and audit metadata.
Fields
reference: Option<String>
The reference data. Includes a post office (PO) number.
currency_code: Currency
The three-character ISO-4217 currency code that identifies the currency.
note: Option<String>
A note to the invoice recipient. Also appears on the invoice notification email.
terms_and_conditions: Option<String>
The general terms of the invoice. Can include return or cancellation policy and other terms and conditions.
memo: Option<String>
A private bookkeeping memo for the user.
attachments: Option<Vec<FileReference>>
An array of PayPal IDs for the files that are attached to an invoice.
invoice_number: Option<String>
The invoice number. Default is the number that is auto-incremented number from the last number.
invoice_date: Option<NaiveDate>
The invoice date as specificed by the sender
payment_term: Option<PaymentTerm>
The payment due date for the invoice.
metadata: Option<Metadata>
The audit metadata
Trait Implementations
sourceimpl Debug for InvoiceDetail
impl Debug for InvoiceDetail
sourceimpl Default for InvoiceDetail
impl Default for InvoiceDetail
sourcefn default() -> InvoiceDetail
fn default() -> InvoiceDetail
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for InvoiceDetail
impl<'de> Deserialize<'de> for InvoiceDetail
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 Serialize for InvoiceDetail
impl Serialize for InvoiceDetail
Auto Trait Implementations
impl RefUnwindSafe for InvoiceDetail
impl Send for InvoiceDetail
impl Sync for InvoiceDetail
impl Unpin for InvoiceDetail
impl UnwindSafe for InvoiceDetail
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more