pub struct PaymentIntentAmountDetailsLineItem {
pub discount_amount: Option<i64>,
pub id: PaymentIntentAmountDetailsLineItemId,
pub payment_method_options: Option<PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourcePaymentMethodOptions>,
pub product_code: Option<String>,
pub product_name: String,
pub quantity: u64,
pub tax: Option<PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourceTax>,
pub unit_cost: i64,
pub unit_of_measure: Option<String>,
}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.
id: PaymentIntentAmountDetailsLineItemIdUnique identifier for the object.
payment_method_options: Option<PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourcePaymentMethodOptions>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<PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourceTax>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. Required for L3 rates. At most 12 alphanumeric characters long.
Trait Implementations§
Source§impl Clone for PaymentIntentAmountDetailsLineItem
impl Clone for PaymentIntentAmountDetailsLineItem
Source§fn clone(&self) -> PaymentIntentAmountDetailsLineItem
fn clone(&self) -> PaymentIntentAmountDetailsLineItem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more