Class Intent

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.billing.Intent
All Implemented Interfaces:
HasId, StripeObjectInterface

public class Intent extends StripeObject implements HasId
  • Constructor Details

    • Intent

      public Intent()
  • Method Details

    • getAmountDetails

      public Intent.AmountDetails getAmountDetails()
      Breakdown of the amount for this Billing Intent.
    • getCadence

      public String getCadence()
      ID of an existing Cadence to use.
    • getCreated

      public Instant getCreated()
      Time at which the object was created.
    • getCurrency

      public String getCurrency()
      Three-letter ISO currency code, in lowercase. Must be a supported currency.
    • getLivemode

      public Boolean getLivemode()
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • getObject

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

      Equal to v2.billing.intent.

    • getStatus

      public String getStatus()
      Current status of the Billing Intent.

      One of canceled, committed, draft, or reserved.

    • getStatusTransitions

      public Intent.StatusTransitions getStatusTransitions()
      Timestamps for status transitions of the Billing Intent.
    • setAmountDetails

      public void setAmountDetails(Intent.AmountDetails amountDetails)
      Breakdown of the amount for this Billing Intent.
    • setCadence

      public void setCadence(String cadence)
      ID of an existing Cadence to use.
    • setCreated

      public void setCreated(Instant created)
      Time at which the object was created.
    • setCurrency

      public void setCurrency(String currency)
      Three-letter ISO currency code, in lowercase. Must be a supported currency.
    • setId

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

      public void setLivemode(Boolean livemode)
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • setObject

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

      Equal to v2.billing.intent.

    • setStatus

      public void setStatus(String status)
      Current status of the Billing Intent.

      One of canceled, committed, draft, or reserved.

    • setStatusTransitions

      public void setStatusTransitions(Intent.StatusTransitions statusTransitions)
      Timestamps for status transitions of the Billing Intent.
    • 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