Class PaymentLink.CustomField

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.PaymentLink.CustomField
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
PaymentLink

public static class PaymentLink.CustomField extends StripeObject
Determines the position and visibility of the payment method reuse agreement in the UI. When set to auto, Stripe's defaults will be used.

When set to hidden, the payment method reuse agreement text will always be hidden in the UI.

One of auto, or hidden.

  • Constructor Details

    • CustomField

      public CustomField()
  • Method Details

    • getDropdown

      public PaymentLink.CustomField.Dropdown getDropdown()
    • getKey

      public String getKey()
      String of your choice that your integration can use to reconcile this field. Must be unique to this field, alphanumeric, and up to 200 characters.
    • getLabel

      public PaymentLink.CustomField.Label getLabel()
    • getNumeric

      public PaymentLink.CustomField.Numeric getNumeric()
    • getOptional

      public Boolean getOptional()
      Whether the customer is required to complete the field before completing the Checkout Session. Defaults to false.
    • getText

      public PaymentLink.CustomField.Text getText()
    • getType

      public String getType()
      The type of the field.

      One of dropdown, numeric, or text.

    • setDropdown

      public void setDropdown(PaymentLink.CustomField.Dropdown dropdown)
    • setKey

      public void setKey(String key)
      String of your choice that your integration can use to reconcile this field. Must be unique to this field, alphanumeric, and up to 200 characters.
    • setLabel

      public void setLabel(PaymentLink.CustomField.Label label)
    • setNumeric

      public void setNumeric(PaymentLink.CustomField.Numeric numeric)
    • setOptional

      public void setOptional(Boolean optional)
      Whether the customer is required to complete the field before completing the Checkout Session. Defaults to false.
    • setText

      public void setText(PaymentLink.CustomField.Text text)
    • setType

      public void setType(String type)
      The type of the field.

      One of dropdown, numeric, or text.

    • 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