Sha256: 859ab78cfa8292ce72aa8f4e3d566fa10f9395f325c3669557e4f8851a49c0be

Contents?: true

Size: 1.05 KB

Versions: 6

Compression:

Stored size: 1.05 KB

Contents

# typed: strong
# frozen_string_literal: true

module DearInventory
  module Models
    class Purchases < DearInventory::Model
      class PaymentLine < DearInventory::Model
        extend T::Sig

        fields(
          ID: {
            name: :id,
            type: :Guid,
          },
          PurchaseID: {
            name: :purchase_id,
            type: :Guid,
          },
          TaskID: {
            name: :task_id,
            type: :Guid,
          },
          Reference: {
            name: :reference,
            type: :String,
          },
          Amount: {
            name: :amount,
            type: :BigDecimal,
          },
          DatePaid: {
            name: :date_paid,
            type: :DateTime,
          },
          Account: {
            name: :account,
            type: :String,
          },
          CurrencyRate: {
            name: :currency_rate,
            type: :BigDecimal,
          },
          DateCreated: {
            name: :date_created,
            type: :DateTime,
          }
        )
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dear_inventory-1.4.0 lib/dear_inventory/models/purchases/payment_line.rb
dear_inventory-1.3.0 lib/dear_inventory/models/purchases/payment_line.rb
dear_inventory-1.2.0 lib/dear_inventory/models/purchases/payment_line.rb
dear_inventory-1.1.1 lib/dear_inventory/models/purchases/payment_line.rb
dear_inventory-1.1.0 lib/dear_inventory/models/purchases/payment_line.rb
dear_inventory-1.0.0 lib/dear_inventory/models/purchases/payment_line.rb