pub struct IncrementAuthorizationPaymentIntentAmountDetails {
pub discount_amount: Option<i64>,
pub line_items: Option<Vec<IncrementAuthorizationPaymentIntentAmountDetailsLineItems>>,
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<IncrementAuthorizationPaymentIntentAmountDetailsLineItems>>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 IncrementAuthorizationPaymentIntentAmountDetails
impl Clone for IncrementAuthorizationPaymentIntentAmountDetails
Source§fn clone(&self) -> IncrementAuthorizationPaymentIntentAmountDetails
fn clone(&self) -> IncrementAuthorizationPaymentIntentAmountDetails
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 IncrementAuthorizationPaymentIntentAmountDetails
impl RefUnwindSafe for IncrementAuthorizationPaymentIntentAmountDetails
impl Send for IncrementAuthorizationPaymentIntentAmountDetails
impl Sync for IncrementAuthorizationPaymentIntentAmountDetails
impl Unpin for IncrementAuthorizationPaymentIntentAmountDetails
impl UnwindSafe for IncrementAuthorizationPaymentIntentAmountDetails
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