Sha256: 1051bd234c120298ca79e2ebe550073fa931d768602636d68d4c13d884bdc0a9

Contents?: true

Size: 927 Bytes

Versions: 1

Compression:

Stored size: 927 Bytes

Contents

module Asaas
  class Payment < Model
    BillingTypes = Types::Strict::String.enum('BOLETO', 'CREDIT_CARD', 'UNDEFINED')

    attribute :id, Types::Coercible::String.optional.default(nil)
    attribute :customer, Types::Coercible::String
    attribute :billingType, BillingTypes.optional.default(nil)
    attribute :value, Types::Coercible::Decimal.optional.default(nil)
    attribute :dueDate, Types::Coercible::String.optional.default(nil)
    attribute :description, Types::Coercible::String.optional.default(nil)
    attribute :externalReference, Types::Coercible::String.optional.default(nil)
    attribute :installmentCount, Types::Coercible::String.optional.default(nil)
    attribute :installmentValue, Types::Coercible::String.optional.default(nil)
    attribute :discount, Discount.optional.default(nil)
    attribute :interest, Interest.optional.default(nil)
    attribute :fine, Fine.optional.default(nil)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asaas-ruby-0.2.0 lib/asaas/models/payment.rb