Class PaymentIntentConfirmParams.AmountDetails.LineItem

java.lang.Object
com.stripe.param.PaymentIntentConfirmParams.AmountDetails.LineItem
Enclosing class:
PaymentIntentConfirmParams.AmountDetails

public static class PaymentIntentConfirmParams.AmountDetails.LineItem extends Object
  • Method Details

    • builder

    • getDiscountAmount

      public Long getDiscountAmount()
      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.

    • getExtraParams

      public Map<String,Object> getExtraParams()
      Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's @SerializedName value. Instead, each key/value pair is serialized as if the key is a root-level field (serialized) name in this param object. Effectively, this map is flattened to its parent instance.
    • getPaymentMethodOptions

      Payment method-specific information for line items.
    • getProductCode

      public String getProductCode()
      The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long.
    • getProductName

      public String getProductName()
      Required. The 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.

    • getQuantity

      public Long getQuantity()
      Required. The quantity of items. Required for L3 rates. An integer greater than 0.
    • getTax

      Contains information about the tax on the item.
    • getUnitCost

      public Long getUnitCost()
      Required. The unit cost of the line item represented in the smallest currency unit. Required for L3 rates. An integer greater than or equal to 0.
    • getUnitOfMeasure

      public String getUnitOfMeasure()
      A unit of measure for the line item, such as gallons, feet, meters, etc.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object