Sha256: 82a8bfad9ba0dd1f7e7d91b861c60d527f6a0be1676632402221a750fe6252f6

Contents?: true

Size: 969 Bytes

Versions: 3

Compression:

Stored size: 969 Bytes

Contents

# frozen_string_literal: true

module YouCanBookMe
  # YouCanBookMe's Transaction model.
  class Transaction
    include ModelUtils

    ASSOCIATION = {
      linked: Transaction,
      purchase: Purchase,
    }.freeze

    # @return [String]
    attr_accessor :account
    # @return [String]
    attr_accessor :createdAt
    # @return [String]
    attr_accessor :description
    # @return [Integer]
    attr_accessor :gross
    # @return [String]
    attr_accessor :id
    # @return [YouCanBookMe::Transaction]
    attr_accessor :linked
    # @return [String]
    attr_accessor :localAccountId
    # @return [Integer]
    attr_accessor :net
    # @return [YouCanBookMe::Purchase]
    attr_accessor :purchase
    # @return [String]
    attr_accessor :purchaseId
    # @return [String]
    attr_accessor :remoteId
    # @return [Integer]
    attr_accessor :tax
    # @return [String]
    attr_accessor :type
    # @return [String]
    attr_accessor :updatedAt
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
youcanbookme-0.0.3.alpha lib/youcanbookme/models/transaction.rb
youcanbookme-0.0.2.alpha lib/youcanbookme/models/transaction.rb
youcanbookme-0.0.1.alpha lib/youcanbookme/models/transaction.rb