Class SubscriptionSchedule.DefaultSettings

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.SubscriptionSchedule.DefaultSettings
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
SubscriptionSchedule

public static class SubscriptionSchedule.DefaultSettings extends StripeObject
  • Constructor Details

    • DefaultSettings

      public DefaultSettings()
  • Method Details

    • getDefaultPaymentMethod

      public String getDefaultPaymentMethod()
      Get ID of expandable defaultPaymentMethod object.
    • setDefaultPaymentMethod

      public void setDefaultPaymentMethod(String id)
    • getDefaultPaymentMethodObject

      public PaymentMethod getDefaultPaymentMethodObject()
      Get expanded defaultPaymentMethod.
    • setDefaultPaymentMethodObject

      public void setDefaultPaymentMethodObject(PaymentMethod expandableObject)
    • getApplicationFeePercent

      public BigDecimal getApplicationFeePercent()
      A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account during this phase of the schedule.
    • getAutomaticTax

    • getBillingCycleAnchor

      public String getBillingCycleAnchor()
      Possible values are phase_start or automatic. If phase_start then billing cycle anchor of the subscription is set to the start of the phase when entering the phase. If automatic then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle documentation.

      One of automatic, or phase_start.

    • getBillingThresholds

      public Subscription.BillingThresholds getBillingThresholds()
      Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.
    • getCollectionMethod

      public String getCollectionMethod()
      Either charge_automatically, or send_invoice. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions.

      One of charge_automatically, or send_invoice.

    • getInvoiceSettings

      public SubscriptionSchedule.InvoiceSettings getInvoiceSettings()
      The subscription schedule's default invoice settings.
    • getTransferData

      public Subscription.TransferData getTransferData()
      The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
    • setApplicationFeePercent

      public void setApplicationFeePercent(BigDecimal applicationFeePercent)
      A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account during this phase of the schedule.
    • setAutomaticTax

      public void setAutomaticTax(SubscriptionSchedule.DefaultSettings.AutomaticTax automaticTax)
    • setBillingCycleAnchor

      public void setBillingCycleAnchor(String billingCycleAnchor)
      Possible values are phase_start or automatic. If phase_start then billing cycle anchor of the subscription is set to the start of the phase when entering the phase. If automatic then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle documentation.

      One of automatic, or phase_start.

    • setBillingThresholds

      public void setBillingThresholds(Subscription.BillingThresholds billingThresholds)
      Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.
    • setCollectionMethod

      public void setCollectionMethod(String collectionMethod)
      Either charge_automatically, or send_invoice. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions.

      One of charge_automatically, or send_invoice.

    • setInvoiceSettings

      public void setInvoiceSettings(SubscriptionSchedule.InvoiceSettings invoiceSettings)
      The subscription schedule's default invoice settings.
    • setTransferData

      public void setTransferData(Subscription.TransferData transferData)
      The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
    • 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