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