Class PaymentIntentCaptureParams.AmountDetails

java.lang.Object
com.stripe.param.PaymentIntentCaptureParams.AmountDetails
Enclosing class:
PaymentIntentCaptureParams

public static class PaymentIntentCaptureParams.AmountDetails extends Object
  • Method Details

    • builder

    • getDiscountAmount

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

    • getEnforceArithmeticValidation

      public Boolean getEnforceArithmeticValidation()
      Set to false to return arithmetic validation errors in the response without failing the request. Use this when you want the operation to proceed regardless of arithmetic errors in the line item data.

      Omit or set to true to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies.

      For card payments, Stripe doesn't send line item data if there's an arithmetic validation error to card networks.

    • 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.
    • getLineItems

      public Object getLineItems()
      A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
    • getShipping

      public Object getShipping()
      Contains information about the shipping portion of the amount.
    • getTax

      public Object getTax()
      Contains information about the tax portion of the amount.
    • 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