Sha256: 907a289ddc50923057664342b568452765e95025aadb502b8837524c1a91807d

Contents?: true

Size: 777 Bytes

Versions: 3

Compression:

Stored size: 777 Bytes

Contents

# typed: strong
# frozen_string_literal: true

module DearInventory
  module Models
    class Transaction < DearInventory::Model
      extend T::Sig

      fields(
        TaskID: {
          name: :task_id,
          type: :Guid,
        },
        TransactionID: {
          name: :transaction_id,
          type: :Guid,
        },
        Debit: {
          name: :debit,
          type: :String,
        },
        Credit: {
          name: :credit,
          type: :String,
        },
        Description: {
          name: :description,
          type: :String,
        },
        Amount: {
          name: :credit,
          type: :Numeric,
        },
        EffectiveDate: {
          name: :description,
          type: :DateTime,
        }
      )
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dear_inventory-0.4.1 lib/dear_inventory/models/transaction.rb
dear_inventory-0.4.0 lib/dear_inventory/models/transaction.rb
dear_inventory-0.3.0 lib/dear_inventory/models/transaction.rb