Sha256: 63adbedc802740a3f60e5f6b8ce445a55b9c9db2b480e2e9e3d44c91adffca2c

Contents?: true

Size: 670 Bytes

Versions: 2

Compression:

Stored size: 670 Bytes

Contents

module Recurly
  module Resources
    class CouponDiscount < Resource

      # @!attribute currencies
      #   @return [Array[String]] This is only present when `type=fixed`.
      define_attribute :currencies, Array, {:item_type => String}

      # @!attribute percent
      #   @return [Integer] This is only present when `type=percent`.
      define_attribute :percent, Integer

      # @!attribute trial
      #   @return [Hash] This is only present when `type=free_trial`.
      define_attribute :trial, Hash

      # @!attribute type
      #   @return [String]
      define_attribute :type, String, {:enum => ["percent", "fixed", "free_trial"]}
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
recurly-3.0.0.beta.2 lib/recurly/resources/coupon_discount.rb
recurly-3.0.0.beta.1 lib/recurly/resources/coupon_discount.rb