pub struct IncrementAuthorizationPaymentIntentAmountDetailsLineItems {
pub discount_amount: Option<i64>,
pub payment_method_options: Option<IncrementAuthorizationPaymentIntentAmountDetailsLineItemsPaymentMethodOptions>,
pub product_code: Option<String>,
pub product_name: String,
pub quantity: u64,
pub tax: Option<AmountDetailsLineItemTaxParam>,
pub unit_cost: i64,
pub unit_of_measure: Option<String>,
}Expand description
A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
Fields§
§discount_amount: Option<i64>The discount applied on this line item represented in the smallest currency unit. An integer greater than 0.
This field is mutually exclusive with the amount_details[discount_amount] field.
payment_method_options: Option<IncrementAuthorizationPaymentIntentAmountDetailsLineItemsPaymentMethodOptions>Payment method-specific information for line items.
product_code: Option<String>The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long.
product_name: StringThe product name of the line item. Required for L3 rates. At most 1024 characters long.
For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters.
quantity: u64The quantity of items. Required for L3 rates. An integer greater than 0.
tax: Option<AmountDetailsLineItemTaxParam>Contains information about the tax on the item.
unit_cost: i64The unit cost of the line item represented in the smallest currency unit. Required for L3 rates. An integer greater than or equal to 0.
unit_of_measure: Option<String>A unit of measure for the line item, such as gallons, feet, meters, etc.
Implementations§
Trait Implementations§
Source§impl Clone for IncrementAuthorizationPaymentIntentAmountDetailsLineItems
impl Clone for IncrementAuthorizationPaymentIntentAmountDetailsLineItems
Source§fn clone(&self) -> IncrementAuthorizationPaymentIntentAmountDetailsLineItems
fn clone(&self) -> IncrementAuthorizationPaymentIntentAmountDetailsLineItems
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more