Sha256: 8405777b00797bf6f4543945cbf21e65c9ebe8599895eb4fb35bdcf7375d2c56

Contents?: true

Size: 1.23 KB

Versions: 8

Compression:

Stored size: 1.23 KB

Contents

module Asaas
  class Transfer < Model
    Status = Types::Strict::String.enum('PENDING', 'BANK_PROCESSING', 'DONE',
                                        'CANCELLED', 'FAILED')
    AccountType = Types::Strict::String.enum('BANK_ACCOUNT','ASAAS_ACCOUNT')

    attribute :id, Types::Coercible::String.optional.default(nil)
    attribute :dateCreated, Types::Coercible::String.optional.default(nil)
    attribute :value, Types::Coercible::Decimal.optional.default(nil)
    attribute :netValue, Types::Coercible::Decimal.optional.default(nil)
    attribute :transferFee, Types::Coercible::Decimal.optional.default(nil)
    attribute :status, Status.optional.default(nil)
    attribute :effectiveDate, Types::Coercible::String.optional.default(nil)
    attribute :scheduleDate, Types::Coercible::String.optional.default(nil)
    attribute :authorized, Types::Coercible::String.optional.default(nil)
    attribute :transactionReceiptUrl, Types::Coercible::String.optional.default(nil)
    attribute :bankAccount, Types::Coercible::Hash.optional.default(nil)
    attribute :type, AccountType.optional.default(nil)
    attribute :walletId, Types::Coercible::String.optional.default(nil)
    attribute :account, Types::Coercible::Hash.optional.default(nil)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
asaas-ruby-0.2.30 lib/asaas/models/transfer.rb
asaas-ruby-0.2.29 lib/asaas/models/transfer.rb
asaas-ruby-0.2.28 lib/asaas/models/transfer.rb
asaas-ruby-0.2.27 lib/asaas/models/transfer.rb
asaas-ruby-0.2.26 lib/asaas/models/transfer.rb
asaas-ruby-0.2.25 lib/asaas/models/transfer.rb
asaas-ruby-0.2.18 lib/asaas/models/transfer.rb
asaas-ruby-0.2.17 lib/asaas/models/transfer.rb