Class Quote.SubscriptionData

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Quote.SubscriptionData
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
Quote

public static class Quote.SubscriptionData extends StripeObject
  • Constructor Details

    • SubscriptionData

      public SubscriptionData()
  • Method Details

    • getFromSchedule

      public String getFromSchedule()
      Get ID of expandable fromSchedule object.
    • setFromSchedule

      public void setFromSchedule(String id)
    • getFromScheduleObject

      public SubscriptionSchedule getFromScheduleObject()
      Get expanded fromSchedule.
    • setFromScheduleObject

      public void setFromScheduleObject(SubscriptionSchedule expandableObject)
    • getFromSubscription

      public String getFromSubscription()
      Get ID of expandable fromSubscription object.
    • setFromSubscription

      public void setFromSubscription(String id)
    • getFromSubscriptionObject

      public Subscription getFromSubscriptionObject()
      Get expanded fromSubscription.
    • setFromSubscriptionObject

      public void setFromSubscriptionObject(Subscription expandableObject)
    • getBillOnAcceptance

      public Quote.SubscriptionData.BillOnAcceptance getBillOnAcceptance()
      Describes the period to bill for upon accepting the quote.
    • getBillingBehavior

      public String getBillingBehavior()
      Configures when the subscription schedule generates prorations for phase transitions. Possible values are prorate_on_next_phase or prorate_up_front with the default being prorate_on_next_phase. prorate_on_next_phase will apply phase changes and generate prorations at transition time.prorate_up_front will bill for all phases within the current billing cycle up front.

      One of prorate_on_next_phase, or prorate_up_front.

    • getBillingCycleAnchor

      public String getBillingCycleAnchor()
      Whether the subscription will always start a new billing period when the quote is accepted.

      Equal to reset.

    • getDescription

      public String getDescription()
      The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
    • getEffectiveDate

      public Long getEffectiveDate()
      When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. This date is ignored if it is in the past when the quote is accepted. Measured in seconds since the Unix epoch.
    • getEndBehavior

      public String getEndBehavior()
      Behavior of the subscription schedule and underlying subscription when it ends.

      One of cancel, or release.

    • getPrebilling

      public Quote.SubscriptionData.Prebilling getPrebilling()
      If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with effective_date.
    • getProrationBehavior

      public String getProrationBehavior()
      Determines how to handle prorations when the quote is accepted.

      One of always_invoice, create_prorations, or none.

    • getTrialPeriodDays

      public Long getTrialPeriodDays()
      Integer representing the number of trial period days before the customer is charged for the first time.
    • setBillOnAcceptance

      public void setBillOnAcceptance(Quote.SubscriptionData.BillOnAcceptance billOnAcceptance)
      Describes the period to bill for upon accepting the quote.
    • setBillingBehavior

      public void setBillingBehavior(String billingBehavior)
      Configures when the subscription schedule generates prorations for phase transitions. Possible values are prorate_on_next_phase or prorate_up_front with the default being prorate_on_next_phase. prorate_on_next_phase will apply phase changes and generate prorations at transition time.prorate_up_front will bill for all phases within the current billing cycle up front.

      One of prorate_on_next_phase, or prorate_up_front.

    • setBillingCycleAnchor

      public void setBillingCycleAnchor(String billingCycleAnchor)
      Whether the subscription will always start a new billing period when the quote is accepted.

      Equal to reset.

    • setDescription

      public void setDescription(String description)
      The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
    • setEffectiveDate

      public void setEffectiveDate(Long effectiveDate)
      When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. This date is ignored if it is in the past when the quote is accepted. Measured in seconds since the Unix epoch.
    • setEndBehavior

      public void setEndBehavior(String endBehavior)
      Behavior of the subscription schedule and underlying subscription when it ends.

      One of cancel, or release.

    • setPrebilling

      public void setPrebilling(Quote.SubscriptionData.Prebilling prebilling)
      If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with effective_date.
    • setProrationBehavior

      public void setProrationBehavior(String prorationBehavior)
      Determines how to handle prorations when the quote is accepted.

      One of always_invoice, create_prorations, or none.

    • setTrialPeriodDays

      public void setTrialPeriodDays(Long trialPeriodDays)
      Integer representing the number of trial period days before the customer is charged for the first time.
    • 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