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, metadata: Option[Map[String, String]], name: String, statementDescriptor: Option[String], trialPeriodDays: Option[Long]) 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.

    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.

    name

    Display name of the plan

    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. 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], metadata: Option[Map[String, String]], statementDescriptor: Option[String], trialPeriodDays: Option[Long]) 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], endingBefore: Option[String], limit: Option[Long], startingAfter: Option[String]) 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 Plan extends Serializable

    Permalink
  6. object PlanInput extends Serializable

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

    Permalink
  8. object PlanListInput extends Serializable

    Permalink
  9. object Status extends Enum[Status]

    Permalink
  10. final def asInstanceOf[T0]: T0

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

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

    Permalink
  13. def delete(id: String)(idempotencyKey: Option[IdempotencyKey] = None)(implicit apiKey: ApiKey, endpoint: Endpoint): Future[Try[DeleteResponse]]

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. implicit val intervalFormats: Format[Interval]

    Permalink
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def list(planListInput: PlanListInput, includeTotalCount: Boolean)(implicit apiKey: ApiKey, endpoint: Endpoint): Future[Try[PlanList]]

    Permalink
  23. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  24. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  27. implicit val planInputReads: Reads[PlanInput]

    Permalink
  28. implicit val planInputWrites: Writes[PlanInput]

    Permalink
  29. implicit val planReads: Reads[Plan]

    Permalink
  30. implicit val planWrites: Writes[Plan]

    Permalink
  31. implicit val statusFormats: Format[Status]

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

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

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

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

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

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

Inherited from LazyLogging

Inherited from AnyRef

Inherited from Any

Ungrouped