pub struct UpdateLinesInvoice { /* private fields */ }
Expand description
Updates multiple line items on an invoice. This is only possible when an invoice is still a draft.
Implementations§
Source§impl UpdateLinesInvoice
impl UpdateLinesInvoice
Sourcepub fn new(
invoice: impl Into<InvoiceId>,
lines: impl Into<Vec<UpdateLinesInvoiceLines>>,
) -> Self
pub fn new( invoice: impl Into<InvoiceId>, lines: impl Into<Vec<UpdateLinesInvoiceLines>>, ) -> Self
Construct a new UpdateLinesInvoice
.
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
.
For type=subscription line items, the incoming metadata specified on the request is directly used to set this value, in contrast to type=invoiceitem line items, where any existing metadata on the invoice line is merged with the incoming data.
Source§impl UpdateLinesInvoice
impl UpdateLinesInvoice
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 UpdateLinesInvoice
impl Clone for UpdateLinesInvoice
Source§fn clone(&self) -> UpdateLinesInvoice
fn clone(&self) -> UpdateLinesInvoice
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more