Class Subscription.Prebilling

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Subscription.Prebilling
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
Subscription

public static class Subscription.Prebilling extends StripeObject
Prebilling stores the time period and invoice for a Subscription billed in advance.
  • Constructor Details

    • Prebilling

      public Prebilling()
  • Method Details

    • getInvoice

      public String getInvoice()
      Get ID of expandable invoice object.
    • setInvoice

      public void setInvoice(String id)
    • getInvoiceObject

      public Invoice getInvoiceObject()
      Get expanded invoice.
    • setInvoiceObject

      public void setInvoiceObject(Invoice expandableObject)
    • getPeriodEnd

      public Long getPeriodEnd()
      The end of the last period for which the invoice pre-bills.
    • getPeriodStart

      public Long getPeriodStart()
      The start of the first period for which the invoice pre-bills.
    • getUpdateBehavior

      public String getUpdateBehavior()
      Whether to cancel or preserve prebilling if the subscription is updated during the prebilled period.

      One of prebill, or reset.

    • setPeriodEnd

      public void setPeriodEnd(Long periodEnd)
      The end of the last period for which the invoice pre-bills.
    • setPeriodStart

      public void setPeriodStart(Long periodStart)
      The start of the first period for which the invoice pre-bills.
    • setUpdateBehavior

      public void setUpdateBehavior(String updateBehavior)
      Whether to cancel or preserve prebilling if the subscription is updated during the prebilled period.

      One of prebill, or reset.

    • 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