pub struct CreateReversalTaxTransaction { /* private fields */ }Expand description
Partially or fully reverses a previously created Transaction.
Implementations§
Source§impl CreateReversalTaxTransaction
impl CreateReversalTaxTransaction
Sourcepub fn new(
mode: impl Into<CreateReversalTaxTransactionMode>,
original_transaction: impl Into<String>,
reference: impl Into<String>,
) -> Self
pub fn new( mode: impl Into<CreateReversalTaxTransactionMode>, original_transaction: impl Into<String>, reference: impl Into<String>, ) -> Self
Construct a new CreateReversalTaxTransaction.
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 flat_amount(self, flat_amount: impl Into<i64>) -> Self
pub fn flat_amount(self, flat_amount: impl Into<i64>) -> Self
A flat amount to reverse across the entire transaction, in the smallest currency unit in negative. This value represents the total amount to refund from the transaction, including taxes.
Sourcepub fn line_items(
self,
line_items: impl Into<Vec<CreateReversalTaxTransactionLineItems>>,
) -> Self
pub fn line_items( self, line_items: impl Into<Vec<CreateReversalTaxTransactionLineItems>>, ) -> Self
The line item amounts to reverse.
Sourcepub fn metadata(self, metadata: impl Into<HashMap<String, String>>) -> Self
pub fn metadata(self, 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.
Sourcepub fn shipping_cost(
self,
shipping_cost: impl Into<CreateReversalTaxTransactionShippingCost>,
) -> Self
pub fn shipping_cost( self, shipping_cost: impl Into<CreateReversalTaxTransactionShippingCost>, ) -> Self
The shipping cost to reverse.
Source§impl CreateReversalTaxTransaction
impl CreateReversalTaxTransaction
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 CreateReversalTaxTransaction
impl Clone for CreateReversalTaxTransaction
Source§fn clone(&self) -> CreateReversalTaxTransaction
fn clone(&self) -> CreateReversalTaxTransaction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more