pub struct AddLinesInvoice { /* private fields */ }
Expand description
Adds multiple line items to an invoice. This is only possible when an invoice is still a draft.
Implementations§
Source§impl AddLinesInvoice
impl AddLinesInvoice
Sourcepub fn new(
invoice: impl Into<InvoiceId>,
lines: impl Into<Vec<AddLinesInvoiceLines>>,
) -> Self
pub fn new( invoice: impl Into<InvoiceId>, lines: impl Into<Vec<AddLinesInvoiceLines>>, ) -> Self
Construct a new AddLinesInvoice
.
Sourcepub fn expand(self, expand: impl Into<Vec<String>>) -> Self
pub fn expand(self, expand: impl Into<Vec<String>>) -> Self
Specifies which fields in the response should be expanded.
Sourcepub fn invoice_metadata(
self,
invoice_metadata: impl Into<HashMap<String, String>>,
) -> Self
pub fn invoice_metadata( self, invoice_metadata: impl Into<HashMap<String, String>>, ) -> Self
Set of key-value pairs that you can attach to an object.
This can be useful for storing additional information about the object in a structured format.
Individual keys can be unset by posting an empty value to them.
All keys can be unset by posting an empty value to metadata
.
Source§impl AddLinesInvoice
impl AddLinesInvoice
Sourcepub async fn send<C: StripeClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub async fn send<C: StripeClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response.
Sourcepub fn send_blocking<C: StripeBlockingClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub fn send_blocking<C: StripeBlockingClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response, blocking until completion.
Trait Implementations§
Source§impl Clone for AddLinesInvoice
impl Clone for AddLinesInvoice
Source§fn clone(&self) -> AddLinesInvoice
fn clone(&self) -> AddLinesInvoice
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 AddLinesInvoice
impl Debug for AddLinesInvoice
Source§impl Serialize for AddLinesInvoice
impl Serialize for AddLinesInvoice
Source§impl StripeRequest for AddLinesInvoice
impl StripeRequest for AddLinesInvoice
Source§fn build(&self) -> RequestBuilder
fn build(&self) -> RequestBuilder
Convert the struct into library-agnostic data that can be used by compatible
clients to make API calls.
Source§fn customize(&self) -> CustomizableStripeRequest<Self::Output>
fn customize(&self) -> CustomizableStripeRequest<Self::Output>
Convert to a builder allowing per-request customization.
Auto Trait Implementations§
impl Freeze for AddLinesInvoice
impl RefUnwindSafe for AddLinesInvoice
impl Send for AddLinesInvoice
impl Sync for AddLinesInvoice
impl Unpin for AddLinesInvoice
impl UnwindSafe for AddLinesInvoice
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