Class PaymentIntentAmountDetailsLineItem

java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.PaymentIntentAmountDetailsLineItem
All Implemented Interfaces:
HasId, StripeActiveObject, StripeObjectInterface

public class PaymentIntentAmountDetailsLineItem extends ApiResource implements HasId
  • Constructor Details

    • PaymentIntentAmountDetailsLineItem

      public PaymentIntentAmountDetailsLineItem()
  • Method Details

    • list

      Lists all LineItems of a given PaymentIntent.
      Throws:
      StripeException
    • list

      public static PaymentIntentAmountDetailsLineItemCollection list(String intent, Map<String,Object> params, RequestOptions options) throws StripeException
      Lists all LineItems of a given PaymentIntent.
      Throws:
      StripeException
    • list

      Lists all LineItems of a given PaymentIntent.
      Throws:
      StripeException
    • list

      Lists all LineItems of a given PaymentIntent.
      Throws:
      StripeException
    • setResponseGetter

      public void setResponseGetter(StripeResponseGetter responseGetter)
      Description copied from interface: StripeActiveObject
      Method is used by the containing object or StripeResponseGetter implementations to set the StripeResponseGetter instance used to make further requests.
      Specified by:
      setResponseGetter in interface StripeActiveObject
      Overrides:
      setResponseGetter in class ApiResource
      Parameters:
      responseGetter - the StripeResponseGetter instance to use for making further requests.
    • 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.

    • getObject

      public String getObject()
      String representing the object's type. Objects of the same type share the same value.

      Equal to payment_intent_amount_details_line_item.

    • 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()
      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()
      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()
      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. Required for L3 rates. At most 12 alphanumeric characters long.
    • setDiscountAmount

      public void setDiscountAmount(Long discountAmount)
      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.

    • setId

      public void setId(String id)
      Unique identifier for the object.
    • setObject

      public void setObject(String object)
      String representing the object's type. Objects of the same type share the same value.

      Equal to payment_intent_amount_details_line_item.

    • setPaymentMethodOptions

      public void setPaymentMethodOptions(PaymentIntentAmountDetailsLineItem.PaymentMethodOptions paymentMethodOptions)
      Payment method-specific information for line items.
    • setProductCode

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

      public void setProductName(String productName)
      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.

    • setQuantity

      public void setQuantity(Long quantity)
      The quantity of items. Required for L3 rates. An integer greater than 0.
    • setTax

      public void setTax(PaymentIntentAmountDetailsLineItem.Tax tax)
      Contains information about the tax on the item.
    • setUnitCost

      public void setUnitCost(Long unitCost)
      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.
    • setUnitOfMeasure

      public void setUnitOfMeasure(String unitOfMeasure)
      A unit of measure for the line item, such as gallons, feet, meters, etc. Required for L3 rates. At most 12 alphanumeric characters long.
    • 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
    • getId

      public String getId()
      Unique identifier for the object.
      Specified by:
      getId in interface HasId