Sha256: e1ce9ee3e8914a80bba97a3c5dc2ef9f985f8d9d66d21e50a58518f7402a0478
Contents?: true
Size: 1.53 KB
Versions: 3
Compression:
Stored size: 1.53 KB
Contents
module Recurly module Resources class CouponRedemption < Resource # @!attribute account_id # @return [String] The Account ID on which the coupon was applied. define_attribute :account_id, String # @!attribute coupon # @return [Coupon] define_attribute :coupon, :Coupon # @!attribute [r] created_at # @return [DateTime] Created at define_attribute :created_at, DateTime, {:read_only => true} # @!attribute currency # @return [String] 3-letter ISO 4217 currency code. define_attribute :currency, String # @!attribute discounted # @return [String] The amount that was discounted upon the application of the coupon, formatted with the currency. define_attribute :discounted, String # @!attribute [r] id # @return [String] Coupon Redemption ID define_attribute :id, String, {:read_only => true} # @!attribute [r] object # @return [String] Will always be `coupon`. define_attribute :object, String, {:read_only => true} # @!attribute removed_at # @return [DateTime] The date and time the redemption was removed from the account (un-redeemed). define_attribute :removed_at, DateTime # @!attribute state # @return [String] Coupon Redemption state define_attribute :state, String, {:enum => ["active", "inactive"]} # @!attribute [r] updated_at # @return [DateTime] Last updated at define_attribute :updated_at, DateTime, {:read_only => true} end end end
Version data entries
3 entries across 3 versions & 1 rubygems