Sha256: 8e73b6866908bc6da952b9706378930adf9daac10ded94ddde745d0960492be9

Contents?: true

Size: 1.15 KB

Versions: 6

Compression:

Stored size: 1.15 KB

Contents

# typed: strong
# frozen_string_literal: true

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

        fields(
          Memo: {
            name: :memo,
            type: :String,
          },
          Status: {
            name: :status,
            type: :String,
          },
          Lines: {
            name: :lines,
            type: :Array,
            model: DearInventory::Models::Purchases::Line,
          },
          AdditionalCharges: {
            name: :additional_charges,
            type: :Array,
            model: DearInventory::Models::Purchases::AdditionalCharge,
          },
          Prepayments: {
            name: :prepayments,
            type: :Array,
            model: DearInventory::Models::Sales::PaymentLine,
          },
          TotalBeforeTax: {
            name: :total_before_tax,
            type: :BigDecimal,
          },
          Tax: {
            name: :tax,
            type: :BigDecimal,
          },
          Total: {
            name: :total,
            type: :BigDecimal,
          }
        )
      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/order.rb
dear_inventory-1.3.0 lib/dear_inventory/models/purchases/order.rb
dear_inventory-1.2.0 lib/dear_inventory/models/purchases/order.rb
dear_inventory-1.1.1 lib/dear_inventory/models/purchases/order.rb
dear_inventory-1.1.0 lib/dear_inventory/models/purchases/order.rb
dear_inventory-1.0.0 lib/dear_inventory/models/purchases/order.rb