Sha256: 7d2efa7e3978a1b3134ee72480ad4172d500f3a008dfd9a4a9f36326903d5185
Contents?: true
Size: 1.67 KB
Versions: 1
Compression:
Stored size: 1.67 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, { :enum => ["single_code", "bulk"] } # @!attribute discount # @return [CouponDiscount] 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 [r] id # @return [String] Coupon ID define_attribute :id, String, { :read_only => true } # @!attribute name # @return [String] The internal name for the coupon. define_attribute :name, String # @!attribute [r] object # @return [String] Object type define_attribute :object, String, { :read_only => true } # @!attribute state # @return [String] Indicates if the coupon is redeemable, and if it is not, why. define_attribute :state, String, { :enum => ["redeemable", "maxed_out", "expired"] } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
recurly-3.0.0.beta.4 | lib/recurly/resources/coupon_mini.rb |