Sha256: bf19b6210be2e7dd00757a0576f48a2742c38edb7b9e1eb871c4b20c8d26bd65

Contents?: true

Size: 1.66 KB

Versions: 86

Compression:

Stored size: 1.66 KB

Contents

# This file is automatically created by Recurly's OpenAPI generation process
# and thus any edits you make by hand will be lost. If you wish to make a
# change to this file, please create a Github issue explaining the changes you
# need and we will usher them to the appropriate places.
module Recurly
  module Resources
    class CouponMini < Resource

      # @!attribute code
      #   @return [String] The code the customer enters to redeem the coupon.
      define_attribute :code, String

      # @!attribute coupon_type
      #   @return [String] Whether the coupon is "single_code" or "bulk". Bulk coupons will require a `unique_code_template` and will generate unique codes through the `/generate` endpoint.
      define_attribute :coupon_type, String

      # @!attribute discount
      #   @return [CouponDiscount] Details of the discount a coupon applies. Will contain a `type` property and one of the following properties: `percent`, `fixed`, `trial`.
      define_attribute :discount, :CouponDiscount

      # @!attribute expired_at
      #   @return [DateTime] The date and time the coupon was expired early or reached its `max_redemptions`.
      define_attribute :expired_at, DateTime

      # @!attribute id
      #   @return [String] Coupon ID
      define_attribute :id, String

      # @!attribute name
      #   @return [String] The internal name for the coupon.
      define_attribute :name, String

      # @!attribute object
      #   @return [String] Object type
      define_attribute :object, String

      # @!attribute state
      #   @return [String] Indicates if the coupon is redeemable, and if it is not, why.
      define_attribute :state, String
    end
  end
end

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
recurly-3.22.0 lib/recurly/resources/coupon_mini.rb
recurly-4.21.1 lib/recurly/resources/coupon_mini.rb
recurly-4.21.0 lib/recurly/resources/coupon_mini.rb
recurly-4.20.0 lib/recurly/resources/coupon_mini.rb
recurly-3.21.0 lib/recurly/resources/coupon_mini.rb
recurly-4.19.0 lib/recurly/resources/coupon_mini.rb
recurly-3.20.0 lib/recurly/resources/coupon_mini.rb
recurly-4.18.0 lib/recurly/resources/coupon_mini.rb
recurly-4.17.0 lib/recurly/resources/coupon_mini.rb
recurly-3.19.0 lib/recurly/resources/coupon_mini.rb
recurly-4.15.0 lib/recurly/resources/coupon_mini.rb
recurly-4.14.0 lib/recurly/resources/coupon_mini.rb
recurly-4.13.0 lib/recurly/resources/coupon_mini.rb
recurly-4.12.0 lib/recurly/resources/coupon_mini.rb
recurly-4.11.0 lib/recurly/resources/coupon_mini.rb
recurly-4.10.0 lib/recurly/resources/coupon_mini.rb
recurly-4.9.0 lib/recurly/resources/coupon_mini.rb
recurly-4.8.0 lib/recurly/resources/coupon_mini.rb
recurly-4.7.0 lib/recurly/resources/coupon_mini.rb
recurly-4.6.0 lib/recurly/resources/coupon_mini.rb