Object

org.mdedetrich.stripe.v1

Plans

Related Doc: package v1

Permalink

object Plans extends LazyLogging

Linear Supertypes
LazyLogging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Plans
  2. LazyLogging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed abstract class Interval extends EnumEntry

    Permalink
  2. case class Plan(id: String, amount: BigDecimal, created: OffsetDateTime, currency: Currency, interval: Interval, intervalCount: Long, livemode: Boolean, name: String, metadata: Option[Map[String, String]] = None, statementDescriptor: Option[String] = None, trialPeriodDays: Option[Long] = None) extends Product with Serializable

    Permalink

    amount

    The amount in cents to be charged on the interval specified

    currency

    Currency in which subscription will be charged

    interval

    One of Interval.Day, Interval.Week, Interval.Month or Interval.Year. The frequency with which a subscription should be billed.

    intervalCount

    The number of intervals (specified in the interval property) between each subscription billing. For example, \interval=Interval.Month and intervalCount=3 bills every 3 months.

    name

    Display name of the plan

    metadata

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

    statementDescriptor

    Extra information about a charge for the customer’s credit card statement.

    trialPeriodDays

    Number of trial period days granted when subscribing a customer to this plan. scala.None if the plan has no trial period.

    See also

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

  3. case class PlanInput(id: String, amount: BigDecimal, currency: Currency, interval: Interval, name: String, intervalCount: Option[Long] = None, metadata: Option[Map[String, String]] = None, statementDescriptor: Option[String] = None, trialPeriodDays: Option[Long] = None) extends Product with Serializable

    Permalink

    id

    Unique string of your choice that will be used to identify this plan when subscribing a customer. This could be an identifier like “gold” or a primary key from your own database.

    amount

    A positive integer in cents (or 0 for a free plan) representing how much to charge (on a recurring basis).

    currency

    3-letter ISO code for currency.

    interval

    Specifies billing frequency. Either Interval.Day, Interval.Week, Interval.Month or Interval.Year.

    name

    Name of the plan, to be displayed on invoices and in the web interface.

    intervalCount

    The number of intervals between each subscription billing. For example, interval=Interval.Month and intervalCount=3 bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).

    metadata

    A set of key/value pairs that you can attach to a plan object. It can be useful for storing additional information about the plan in a structured format. This will be unset if you POST an empty value.

    statementDescriptor

    An arbitrary string to be displayed on your customer’s credit card statement. This may be up to 22 characters. As an example, if your website is RunClub and the item you’re charging for is your Silver Plan, you may want to specify a statementDescriptor of RunClub Silver Plan. The statement description may not include <>"' characters, and will appear on your customer’s statement in capital letters. Non-ASCII characters are automatically stripped. While most banks display this information consistently, some may display it incorrectly or not at all.

    trialPeriodDays

    Specifies a trial period in (an integer number of) days. If you include a trial period, the customer won’t be billed for the first time until the trial period ends. If the customer cancels before the trial period is over, she’ll never be billed at all.

    Exceptions thrown

    StatementDescriptorInvalidCharacter - If statementDescriptor has an invalid character

    StatementDescriptorTooLong - If statementDescriptor is longer than 22 characters

    See also

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

  4. case class PlanList(url: String, hasMore: Boolean, data: List[Plan], totalCount: Option[Long]) extends List[Plan] with Product with Serializable

    Permalink
  5. case class PlanListInput(created: Option[ListFilterInput] = None, endingBefore: Option[String] = None, limit: Option[Long] = None, startingAfter: Option[String] = None) extends Product with Serializable

    Permalink

    created

    A filter on the list based on the object created field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with the following options:

    endingBefore

    A cursor for use in pagination. endingBefore is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_bar, your subsequent call can include endingBefore=obj_bar in order to fetch the previous page of the list.

    limit

    A limit on the number of objects to be returned. Limit can range between 1 and 100 items.

    startingAfter

    A cursor for use in pagination. startingAfter is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include startingAfter=obj_foo in order to fetch the next page of the list.

    See also

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

  6. sealed abstract class Status extends EnumEntry

    Permalink

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. object Interval extends Enum[Interval]

    Permalink
  5. object PlanList extends ListJsonMappers[Plan] with Serializable

    Permalink
  6. object Status extends Enum[Status]

    Permalink
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def create(planInput: PlanInput)(idempotencyKey: Option[IdempotencyKey] = None)(implicit apiKey: ApiKey, endpoint: Endpoint, client: HttpExt, materializer: Materializer, executionContext: ExecutionContext): Future[Try[Plan]]

    Permalink
  10. def delete(id: String)(idempotencyKey: Option[IdempotencyKey] = None)(implicit apiKey: ApiKey, endpoint: Endpoint, client: HttpExt, materializer: Materializer, executionContext: ExecutionContext): Future[Try[DeleteResponse]]

    Permalink
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def get(id: String)(implicit apiKey: ApiKey, endpoint: Endpoint, client: HttpExt, materializer: Materializer, executionContext: ExecutionContext): Future[Try[Plan]]

    Permalink
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def list(planListInput: PlanListInput, includeTotalCount: Boolean)(implicit apiKey: ApiKey, endpoint: Endpoint, client: HttpExt, materializer: Materializer, executionContext: ExecutionContext): Future[Try[PlanList]]

    Permalink
  19. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  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. implicit val planDecoder: Decoder[Plan]

    Permalink
  24. implicit val planEncoder: Encoder[Plan]

    Permalink
  25. implicit val planInputDecoder: Decoder[PlanInput]

    Permalink
  26. implicit val planInputEncoder: Encoder[PlanInput]

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

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

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

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

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

Inherited from LazyLogging

Inherited from AnyRef

Inherited from Any

Ungrouped