pub struct CreateReversalTaxTransactionLineItems {
pub amount: i64,
pub amount_tax: i64,
pub metadata: Option<HashMap<String, String>>,
pub original_line_item: String,
pub quantity: Option<u64>,
pub reference: String,
}Expand description
The line item amounts to reverse.
Fields§
§amount: i64The amount to reverse, in the smallest currency unit in negative.
amount_tax: i64The amount of tax to reverse, in the smallest currency unit in negative.
metadata: Option<HashMap<String, String>>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.
original_line_item: StringThe id of the line item to reverse in the original transaction.
quantity: Option<u64>The quantity reversed. Appears in tax exports, but does not affect the amount of tax reversed.
reference: StringA custom identifier for this line item in the reversal transaction, such as ‘L1-refund’.
Implementations§
Trait Implementations§
Source§impl Clone for CreateReversalTaxTransactionLineItems
impl Clone for CreateReversalTaxTransactionLineItems
Source§fn clone(&self) -> CreateReversalTaxTransactionLineItems
fn clone(&self) -> CreateReversalTaxTransactionLineItems
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 moreAuto Trait Implementations§
impl Freeze for CreateReversalTaxTransactionLineItems
impl RefUnwindSafe for CreateReversalTaxTransactionLineItems
impl Send for CreateReversalTaxTransactionLineItems
impl Sync for CreateReversalTaxTransactionLineItems
impl Unpin for CreateReversalTaxTransactionLineItems
impl UnwindSafe for CreateReversalTaxTransactionLineItems
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