pub struct PaymentFlowsAmountDetails {
pub discount_amount: Option<i64>,
pub line_items: Option<List<PaymentIntentAmountDetailsLineItem>>,
pub shipping: Option<PaymentFlowsAmountDetailsResourceShipping>,
pub tax: Option<PaymentFlowsAmountDetailsResourceTax>,
pub tip: Option<PaymentFlowsAmountDetailsClientResourceTip>,
}Fields§
§discount_amount: Option<i64>The total discount applied on the transaction represented in the smallest currency unit. An integer greater than 0.
This field is mutually exclusive with the amount_details[line_items][#][discount_amount] field.
line_items: Option<List<PaymentIntentAmountDetailsLineItem>>A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
shipping: Option<PaymentFlowsAmountDetailsResourceShipping>§tax: Option<PaymentFlowsAmountDetailsResourceTax>§tip: Option<PaymentFlowsAmountDetailsClientResourceTip>Trait Implementations§
Source§impl Clone for PaymentFlowsAmountDetails
impl Clone for PaymentFlowsAmountDetails
Source§fn clone(&self) -> PaymentFlowsAmountDetails
fn clone(&self) -> PaymentFlowsAmountDetails
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 PaymentFlowsAmountDetails
impl Debug for PaymentFlowsAmountDetails
Source§impl FromValueOpt for PaymentFlowsAmountDetails
impl FromValueOpt for PaymentFlowsAmountDetails
fn from_value(v: Value) -> Option<Self>
Auto Trait Implementations§
impl Freeze for PaymentFlowsAmountDetails
impl RefUnwindSafe for PaymentFlowsAmountDetails
impl Send for PaymentFlowsAmountDetails
impl Sync for PaymentFlowsAmountDetails
impl Unpin for PaymentFlowsAmountDetails
impl UnwindSafe for PaymentFlowsAmountDetails
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