pub struct CreatePaymentIntentAmountDetails {
pub discount_amount: Option<i64>,
pub line_items: Option<Vec<CreatePaymentIntentAmountDetailsLineItems>>,
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<CreatePaymentIntentAmountDetailsLineItems>>A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 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 CreatePaymentIntentAmountDetails
impl Clone for CreatePaymentIntentAmountDetails
Source§fn clone(&self) -> CreatePaymentIntentAmountDetails
fn clone(&self) -> CreatePaymentIntentAmountDetails
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 CreatePaymentIntentAmountDetails
impl RefUnwindSafe for CreatePaymentIntentAmountDetails
impl Send for CreatePaymentIntentAmountDetails
impl Sync for CreatePaymentIntentAmountDetails
impl Unpin for CreatePaymentIntentAmountDetails
impl UnwindSafe for CreatePaymentIntentAmountDetails
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