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-4.56.0 lib/recurly/resources/coupon_mini.rb
recurly-4.55.0 lib/recurly/resources/coupon_mini.rb
recurly-4.54.0 lib/recurly/resources/coupon_mini.rb
recurly-4.53.0 lib/recurly/resources/coupon_mini.rb
recurly-4.52.0 lib/recurly/resources/coupon_mini.rb
recurly-4.49.0 lib/recurly/resources/coupon_mini.rb
recurly-4.48.1 lib/recurly/resources/coupon_mini.rb
recurly-4.48.0 lib/recurly/resources/coupon_mini.rb
recurly-4.47.0 lib/recurly/resources/coupon_mini.rb
recurly-4.46.0 lib/recurly/resources/coupon_mini.rb
recurly-4.45.0 lib/recurly/resources/coupon_mini.rb
recurly-4.44.0 lib/recurly/resources/coupon_mini.rb
recurly-4.43.0 lib/recurly/resources/coupon_mini.rb
recurly-4.42.0 lib/recurly/resources/coupon_mini.rb
recurly-4.41.0 lib/recurly/resources/coupon_mini.rb
recurly-4.40.0 lib/recurly/resources/coupon_mini.rb
recurly-4.39.0 lib/recurly/resources/coupon_mini.rb
recurly-4.38.0 lib/recurly/resources/coupon_mini.rb
recurly-4.37.0 lib/recurly/resources/coupon_mini.rb
recurly-3.28.0 lib/recurly/resources/coupon_mini.rb