Sha256: f01b7aaa7eb00ccb048f25f7880506547f79f1316ebbf8ea5f4368890acb5754

Contents?: true

Size: 311 Bytes

Versions: 17

Compression:

Stored size: 311 Bytes

Contents

module Asaas
  class Discount < Model
    transform_keys(&:to_sym)
    
    DiscountTypes = Types::Strict::String.enum('FIXED', 'PERCENTAGE')
    attribute :value, Types::Coercible::Float
    attribute :dueDateLimitDays, Types::Coercible::Integer.optional.default(0)
    attribute :type, DiscountTypes
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
asaas-ruby-0.2.30 lib/asaas/models/discount.rb
asaas-ruby-0.2.29 lib/asaas/models/discount.rb
asaas-ruby-0.2.28 lib/asaas/models/discount.rb
asaas-ruby-0.2.27 lib/asaas/models/discount.rb
asaas-ruby-0.2.26 lib/asaas/models/discount.rb
asaas-ruby-0.2.25 lib/asaas/models/discount.rb
asaas-ruby-0.2.18 lib/asaas/models/discount.rb
asaas-ruby-0.2.17 lib/asaas/models/discount.rb
asaas-ruby-0.2.12 lib/asaas/models/discount.rb
asaas-ruby-0.2.11 lib/asaas/models/discount.rb
asaas-ruby-0.2.10 lib/asaas/models/discount.rb
asaas-ruby-0.2.9 lib/asaas/models/discount.rb
asaas-ruby-0.2.8 lib/asaas/models/discount.rb
asaas-ruby-0.2.7 lib/asaas/models/discount.rb
asaas-ruby-0.2.6 lib/asaas/models/discount.rb
asaas-ruby-0.2.5 lib/asaas/models/discount.rb
asaas-ruby-0.2.4 lib/asaas/models/discount.rb