Class

org.mdedetrich.stripe.v1.Coupons

Coupon

Related Doc: package Coupons

Permalink

case class Coupon(id: String, created: OffsetDateTime, duration: Duration, livemode: Boolean, timesRedeemed: Long, valid: Boolean, 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 StripeObject with Product with Serializable

duration

One of Duration.Forever, Duration.Once, and Duration.Repeating. Describes how long a customer who applies this coupon will get the discount.

timesRedeemed

Number of times this coupon has been applied to a customer.

valid

Taking account of the above properties, whether this coupon can still be applied to a customer

amountOff

Amount (in the currency specified) that will be taken off the subtotal of any invoices for this customer.

currency

If amountOff has been set, the currency of the amount to take off.

durationInMonths

If duration is repeating, the number of months the coupon applies. None if coupon duration is forever or once.

maxRedemptions

Maximum number of times this coupon can be redeemed, in total, before it is no longer valid.

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.

percentOff

Percent that will be taken off the subtotal of any invoices for this customer for the duration of the coupon. For example, a coupon with percentOff of 50 will make a $100 invoice $50 instead.

redeemBy

Date after which the coupon can no longer be redeemed

See also

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

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

Instance Constructors

  1. new Coupon(id: String, created: OffsetDateTime, duration: Duration, livemode: Boolean, timesRedeemed: Long, valid: Boolean, 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

    One of Duration.Forever, Duration.Once, and Duration.Repeating. Describes how long a customer who applies this coupon will get the discount.

    timesRedeemed

    Number of times this coupon has been applied to a customer.

    valid

    Taking account of the above properties, whether this coupon can still be applied to a customer

    amountOff

    Amount (in the currency specified) that will be taken off the subtotal of any invoices for this customer.

    currency

    If amountOff has been set, the currency of the amount to take off.

    durationInMonths

    If duration is repeating, the number of months the coupon applies. None if coupon duration is forever or once.

    maxRedemptions

    Maximum number of times this coupon can be redeemed, in total, before it is no longer valid.

    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.

    percentOff

    Percent that will be taken off the subtotal of any invoices for this customer for the duration of the coupon. For example, a coupon with percentOff of 50 will make a $100 invoice $50 instead.

    redeemBy

    Date after which the coupon can no longer be redeemed

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

    Amount (in the currency specified) that will be taken off the subtotal of any invoices for this customer.

  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 created: OffsetDateTime

    Permalink
  8. val currency: Option[Currency]

    Permalink

    If amountOff has been set, the currency of the amount to take off.

  9. val duration: Duration

    Permalink

    One of Duration.Forever, Duration.Once, and Duration.Repeating.

    One of Duration.Forever, Duration.Once, and Duration.Repeating. Describes how long a customer who applies this coupon will get the discount.

  10. val durationInMonths: Option[Long]

    Permalink

    If duration is repeating, the number of months the coupon applies.

    If duration is repeating, the number of months the coupon applies. None if coupon duration is forever or once.

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

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

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

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

    Permalink
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. val livemode: Boolean

    Permalink
  17. val maxRedemptions: Option[Long]

    Permalink

    Maximum number of times this coupon can be redeemed, in total, before it is no longer valid.

  18. 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.

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

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

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

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

    Permalink

    Percent that will be taken off the subtotal of any invoices for this customer for the duration of the coupon.

    Percent that will be taken off the subtotal of any invoices for this customer for the duration of the coupon. For example, a coupon with percentOff of 50 will make a $100 invoice $50 instead.

  23. val redeemBy: Option[OffsetDateTime]

    Permalink

    Date after which the coupon can no longer be redeemed

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

    Permalink
    Definition Classes
    AnyRef
  25. val timesRedeemed: Long

    Permalink

    Number of times this coupon has been applied to a customer.

  26. val valid: Boolean

    Permalink

    Taking account of the above properties, whether this coupon can still be applied to a customer

  27. final def wait(): Unit

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped