Class

org.mdedetrich.stripe.v1.Coupons

CouponInput

Related Doc: package Coupons

Permalink

case class CouponInput(duration: Duration, id: Option[String] = None, amountOff: Option[Long] = None, currency: Option[Currency] = None, durationInMonths: Option[Long] = None, maxRedemptions: Option[Long] = None, metadata: Option[Map[String, String]] = None, percentOff: Option[BigDecimal] = None, redeemBy: Option[OffsetDateTime] = None) extends Product with Serializable

duration

Specifies how long the discount will be in effect. Can be Duration.Forever, Duration.Once, or Duration.Repeating.

id

Unique string of your choice that will be used to identify this coupon when applying it to a customer. This is often a specific code you’ll give to your customer to use when signing up (e.g. FALL25OFF). If you don’t want to specify a particular code, you can leave the ID blank and we’ll generate a random code for you.

amountOff

A positive integer representing the amount to subtract from an invoice total (required if percentOff is not passed)

currency

Currency of the amountOff parameter (required if amountOff is passed)

durationInMonths

Required only if duration is Duration.Repeating, in which case it must be a positive integer that specifies the number of months the discount will be in effect.

maxRedemptions

A positive integer specifying the number of times the coupon can be redeemed before it’s no longer valid. For example, you might have a 50% off coupon that the first 20 readers of your blog can use.

metadata

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

percentOff

A positive integer between 1 and 100 that represents the discount the coupon will apply (required if amountOff is not passed)

redeemBy

Unix timestamp specifying the last time at which the coupon can be redeemed. After the redeemBy date, the coupon can no longer be applied to new customers.

See also

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

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CouponInput
  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 CouponInput(duration: Duration, id: Option[String] = None, amountOff: Option[Long] = None, currency: Option[Currency] = None, durationInMonths: Option[Long] = None, maxRedemptions: Option[Long] = None, metadata: Option[Map[String, String]] = None, percentOff: Option[BigDecimal] = None, redeemBy: Option[OffsetDateTime] = None)

    Permalink

    duration

    Specifies how long the discount will be in effect. Can be Duration.Forever, Duration.Once, or Duration.Repeating.

    id

    Unique string of your choice that will be used to identify this coupon when applying it to a customer. This is often a specific code you’ll give to your customer to use when signing up (e.g. FALL25OFF). If you don’t want to specify a particular code, you can leave the ID blank and we’ll generate a random code for you.

    amountOff

    A positive integer representing the amount to subtract from an invoice total (required if percentOff is not passed)

    currency

    Currency of the amountOff parameter (required if amountOff is passed)

    durationInMonths

    Required only if duration is Duration.Repeating, in which case it must be a positive integer that specifies the number of months the discount will be in effect.

    maxRedemptions

    A positive integer specifying the number of times the coupon can be redeemed before it’s no longer valid. For example, you might have a 50% off coupon that the first 20 readers of your blog can use.

    metadata

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

    percentOff

    A positive integer between 1 and 100 that represents the discount the coupon will apply (required if amountOff is not passed)

    redeemBy

    Unix timestamp specifying the last time at which the coupon can be redeemed. After the redeemBy date, the coupon can no longer be applied to new customers.

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 amountOff: Option[Long]

    Permalink

    A positive integer representing the amount to subtract from an invoice total (required if percentOff is not passed)

  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val currency: Option[Currency]

    Permalink

    Currency of the amountOff parameter (required if amountOff is passed)

  8. val duration: Duration

    Permalink

    Specifies how long the discount will be in effect.

    Specifies how long the discount will be in effect. Can be Duration.Forever, Duration.Once, or Duration.Repeating.

  9. val durationInMonths: Option[Long]

    Permalink

    Required only if duration is Duration.Repeating, in which case it must be a positive integer that specifies the number of months the discount will be in effect.

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. val id: Option[String]

    Permalink

    Unique string of your choice that will be used to identify this coupon when applying it to a customer.

    Unique string of your choice that will be used to identify this coupon when applying it to a customer. This is often a specific code you’ll give to your customer to use when signing up (e.g. FALL25OFF). If you don’t want to specify a particular code, you can leave the ID blank and we’ll generate a random code for you.

  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. val maxRedemptions: Option[Long]

    Permalink

    A positive integer specifying the number of times the coupon can be redeemed before it’s no longer valid.

    A positive integer specifying the number of times the coupon can be redeemed before it’s no longer valid. For example, you might have a 50% off coupon that the first 20 readers of your blog can use.

  16. val metadata: Option[Map[String, String]]

    Permalink

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  20. val percentOff: Option[BigDecimal]

    Permalink

    A positive integer between 1 and 100 that represents the discount the coupon will apply (required if amountOff is not passed)

  21. val redeemBy: Option[OffsetDateTime]

    Permalink

    Unix timestamp specifying the last time at which the coupon can be redeemed.

    Unix timestamp specifying the last time at which the coupon can be redeemed. After the redeemBy date, the coupon can no longer be applied to new customers.

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

    Permalink
    Definition Classes
    AnyRef
  23. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. 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