pub struct CreateDraftInvoice {
pub invoice: InvoicePayload,
}Expand description
Creates a draft invoice. To move the invoice from a draft to payable state, you must send the invoice. Include invoice details including merchant information. The invoice object must include an items array.
Fields§
§invoice: InvoicePayloadThe invoice details.
Implementations§
Source§impl CreateDraftInvoice
impl CreateDraftInvoice
Sourcepub fn new(invoice: InvoicePayload) -> Self
pub fn new(invoice: InvoicePayload) -> Self
New constructor.
Trait Implementations§
Source§impl Clone for CreateDraftInvoice
impl Clone for CreateDraftInvoice
Source§fn clone(&self) -> CreateDraftInvoice
fn clone(&self) -> CreateDraftInvoice
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 CreateDraftInvoice
impl Debug for CreateDraftInvoice
Source§impl Endpoint for CreateDraftInvoice
impl Endpoint for CreateDraftInvoice
Source§type Body = InvoicePayload
type Body = InvoicePayload
The serializable body type.
Source§fn relative_path(&self) -> Cow<'_, str>
fn relative_path(&self) -> Cow<'_, str>
The endpoint relative path. Must start with a
/Auto Trait Implementations§
impl Freeze for CreateDraftInvoice
impl RefUnwindSafe for CreateDraftInvoice
impl Send for CreateDraftInvoice
impl Sync for CreateDraftInvoice
impl Unpin for CreateDraftInvoice
impl UnwindSafe for CreateDraftInvoice
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