Class/Object

org.mdedetrich.stripe.v1.Subscriptions

Subscription

Related Docs: object Subscription | package Subscriptions

Permalink

case class Subscription(id: String, applicationFeePercent: Option[BigDecimal], cancelAtPeriodEnd: Boolean, canceledAt: Option[OffsetDateTime], currentPeriodEnd: OffsetDateTime, currentPeriodStart: OffsetDateTime, customer: String, discount: Option[Discount], endedAt: Option[OffsetDateTime], metadata: Option[Map[String, String]], plan: Plan, quantity: Long, start: OffsetDateTime, status: Status, taxPercent: Option[BigDecimal], trialEnd: Option[OffsetDateTime], trialStart: Option[OffsetDateTime]) extends Product with Serializable

applicationFeePercent

A positive decimal that represents the fee percentage of the subscription invoice amount that will be transferred to the application owner’s Stripe account each billing period.

cancelAtPeriodEnd

If the subscription has been canceled with the at_period_end flag set to true, cancelAtPeriodEnd on the subscription will be true. You can use this attribute to determine whether a subscription that has a status of active is scheduled to be canceled at the end of the current period.

canceledAt

If the subscription has been canceled, the date of that cancellation. If the subscription was canceled with cancelAtPeriodEnd, canceledAt will still reflect the date of the initial cancellation request, not the end of the subscription period when the subscription is automatically moved to a canceled state.

currentPeriodEnd

End of the current period that the subscription has been invoiced for. At the end of this period, a new invoice will be created.

currentPeriodStart

Start of the current period that the subscription has been invoiced for

discount

Describes the current discount applied to this subscription, if there is one. When billing, a discount applied to a subscription overrides a discount applied on a customer-wide basis.

endedAt

If the subscription has ended (either because it was canceled or because the customer was switched to a subscription to a new plan), the date the subscription ended

metadata

A set of key/value pairs that you can attach to a subscription object. It can be useful for storing additional information about the subscription in a structured format.

plan

Hash describing the plan the customer is subscribed to

start

Date the subscription started

status

Possible values are Status.Trialing, Status.Active, Status.PastDue, Status.Canceled, or Status.Unpaid. A subscription still in its trial period is trialing and moves to active when the trial period is over. When payment to renew the subscription fails, the subscription becomes Status.PastDue. After Stripe has exhausted all payment retry attempts, the subscription ends up with a status of either Status.Canceled or Status.Unpaid depending on your retry settings. Note that when a subscription has a status of Status.Unpaid, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed. Additionally, updating customer card details will not lead to Stripe retrying the latest invoice.). After receiving updated card details from a customer, you may choose to reopen and pay their closed invoices.

taxPercent

If provided, each invoice created by this subscription will apply the tax rate, increasing the amount billed to the customer.

trialEnd

If the subscription has a trial, the end of that trial.

trialStart

If the subscription has a trial, the beginning of that trial.

See also

https://stripe.com/docs/api#subscription_object

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Subscription
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Subscription(id: String, applicationFeePercent: Option[BigDecimal], cancelAtPeriodEnd: Boolean, canceledAt: Option[OffsetDateTime], currentPeriodEnd: OffsetDateTime, currentPeriodStart: OffsetDateTime, customer: String, discount: Option[Discount], endedAt: Option[OffsetDateTime], metadata: Option[Map[String, String]], plan: Plan, quantity: Long, start: OffsetDateTime, status: Status, taxPercent: Option[BigDecimal], trialEnd: Option[OffsetDateTime], trialStart: Option[OffsetDateTime])

    Permalink

    applicationFeePercent

    A positive decimal that represents the fee percentage of the subscription invoice amount that will be transferred to the application owner’s Stripe account each billing period.

    cancelAtPeriodEnd

    If the subscription has been canceled with the at_period_end flag set to true, cancelAtPeriodEnd on the subscription will be true. You can use this attribute to determine whether a subscription that has a status of active is scheduled to be canceled at the end of the current period.

    canceledAt

    If the subscription has been canceled, the date of that cancellation. If the subscription was canceled with cancelAtPeriodEnd, canceledAt will still reflect the date of the initial cancellation request, not the end of the subscription period when the subscription is automatically moved to a canceled state.

    currentPeriodEnd

    End of the current period that the subscription has been invoiced for. At the end of this period, a new invoice will be created.

    currentPeriodStart

    Start of the current period that the subscription has been invoiced for

    discount

    Describes the current discount applied to this subscription, if there is one. When billing, a discount applied to a subscription overrides a discount applied on a customer-wide basis.

    endedAt

    If the subscription has ended (either because it was canceled or because the customer was switched to a subscription to a new plan), the date the subscription ended

    metadata

    A set of key/value pairs that you can attach to a subscription object. It can be useful for storing additional information about the subscription in a structured format.

    plan

    Hash describing the plan the customer is subscribed to

    start

    Date the subscription started

    status

    Possible values are Status.Trialing, Status.Active, Status.PastDue, Status.Canceled, or Status.Unpaid. A subscription still in its trial period is trialing and moves to active when the trial period is over. When payment to renew the subscription fails, the subscription becomes Status.PastDue. After Stripe has exhausted all payment retry attempts, the subscription ends up with a status of either Status.Canceled or Status.Unpaid depending on your retry settings. Note that when a subscription has a status of Status.Unpaid, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed. Additionally, updating customer card details will not lead to Stripe retrying the latest invoice.). After receiving updated card details from a customer, you may choose to reopen and pay their closed invoices.

    taxPercent

    If provided, each invoice created by this subscription will apply the tax rate, increasing the amount billed to the customer.

    trialEnd

    If the subscription has a trial, the end of that trial.

    trialStart

    If the subscription has a trial, the beginning of that trial.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val applicationFeePercent: Option[BigDecimal]

    Permalink

    A positive decimal that represents the fee percentage of the subscription invoice amount that will be transferred to the application owner’s Stripe account each billing period.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val cancelAtPeriodEnd: Boolean

    Permalink

    If the subscription has been canceled with the at_period_end flag set to true, cancelAtPeriodEnd on the subscription will be true.

    If the subscription has been canceled with the at_period_end flag set to true, cancelAtPeriodEnd on the subscription will be true. You can use this attribute to determine whether a subscription that has a status of active is scheduled to be canceled at the end of the current period.

  7. val canceledAt: Option[OffsetDateTime]

    Permalink

    If the subscription has been canceled, the date of that cancellation.

    If the subscription has been canceled, the date of that cancellation. If the subscription was canceled with cancelAtPeriodEnd, canceledAt will still reflect the date of the initial cancellation request, not the end of the subscription period when the subscription is automatically moved to a canceled state.

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val currentPeriodEnd: OffsetDateTime

    Permalink

    End of the current period that the subscription has been invoiced for.

    End of the current period that the subscription has been invoiced for. At the end of this period, a new invoice will be created.

  10. val currentPeriodStart: OffsetDateTime

    Permalink

    Start of the current period that the subscription has been invoiced for

  11. val customer: String

    Permalink
  12. val discount: Option[Discount]

    Permalink

    Describes the current discount applied to this subscription, if there is one.

    Describes the current discount applied to this subscription, if there is one. When billing, a discount applied to a subscription overrides a discount applied on a customer-wide basis.

  13. val endedAt: Option[OffsetDateTime]

    Permalink

    If the subscription has ended (either because it was canceled or because the customer was switched to a subscription to a new plan), the date the subscription ended

  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. val id: String

    Permalink
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. val metadata: Option[Map[String, String]]

    Permalink

    A set of key/value pairs that you can attach to a subscription object.

    A set of key/value pairs that you can attach to a subscription object. It can be useful for storing additional information about the subscription in a structured format.

  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. val plan: Plan

    Permalink

    Hash describing the plan the customer is subscribed to

  24. val quantity: Long

    Permalink
  25. val start: OffsetDateTime

    Permalink

    Date the subscription started

  26. val status: Status

    Permalink

    Possible values are Status.Trialing, Status.Active, Status.PastDue, Status.Canceled, or Status.Unpaid.

    Possible values are Status.Trialing, Status.Active, Status.PastDue, Status.Canceled, or Status.Unpaid. A subscription still in its trial period is trialing and moves to active when the trial period is over. When payment to renew the subscription fails, the subscription becomes Status.PastDue. After Stripe has exhausted all payment retry attempts, the subscription ends up with a status of either Status.Canceled or Status.Unpaid depending on your retry settings. Note that when a subscription has a status of Status.Unpaid, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed. Additionally, updating customer card details will not lead to Stripe retrying the latest invoice.). After receiving updated card details from a customer, you may choose to reopen and pay their closed invoices.

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. val taxPercent: Option[BigDecimal]

    Permalink

    If provided, each invoice created by this subscription will apply the tax rate, increasing the amount billed to the customer.

  29. val trialEnd: Option[OffsetDateTime]

    Permalink

    If the subscription has a trial, the end of that trial.

  30. val trialStart: Option[OffsetDateTime]

    Permalink

    If the subscription has a trial, the beginning of that trial.

  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped