pub struct CapturePaymentIntentAmountDetails {
pub discount_amount: Option<i64>,
pub line_items: Option<Vec<CapturePaymentIntentAmountDetailsLineItems>>,
pub shipping: Option<AmountDetailsShippingParam>,
pub tax: Option<AmountDetailsTaxParam>,
}Expand description
Provides industry-specific information about the amount.
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<Vec<CapturePaymentIntentAmountDetailsLineItems>>A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
shipping: Option<AmountDetailsShippingParam>Contains information about the shipping portion of the amount.
tax: Option<AmountDetailsTaxParam>Contains information about the tax portion of the amount.
Implementations§
Trait Implementations§
Source§impl Clone for CapturePaymentIntentAmountDetails
impl Clone for CapturePaymentIntentAmountDetails
Source§fn clone(&self) -> CapturePaymentIntentAmountDetails
fn clone(&self) -> CapturePaymentIntentAmountDetails
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 CapturePaymentIntentAmountDetails
impl RefUnwindSafe for CapturePaymentIntentAmountDetails
impl Send for CapturePaymentIntentAmountDetails
impl Sync for CapturePaymentIntentAmountDetails
impl Unpin for CapturePaymentIntentAmountDetails
impl UnwindSafe for CapturePaymentIntentAmountDetails
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