Sha256: 711905a9c4af2a375339404bcff7057a1f30bcba806782d5544438668bc9aa55

Contents?: true

Size: 1.68 KB

Versions: 6

Compression:

Stored size: 1.68 KB

Contents

# typed: strong
# frozen_string_literal: true

module DearInventory
  module Models
    class Purchases < DearInventory::Model
      module Advanced
        class Invoice < DearInventory::Model
          extend T::Sig

          fields(
            TaskID: {
              name: :task_id,
              type: :Guid,
            },
            InvoiceDate: {
              name: :invoice_date,
              type: :Date,
            },
            InvoiceDueDate: {
              name: :invoice_due_date,
              type: :Date,
            },
            InvoiceNumber: {
              name: :invoice_number,
              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::InvoiceAdditionalCharge,
            },
            Payments: {
              name: :payments,
              type: :Array,
              model: DearInventory::Models::Purchases::PaymentLine,
            },
            TotalBeforeTax: {
              name: :total_before_tax,
              type: :BigDecimal,
            },
            Tax: {
              name: :tax,
              type: :BigDecimal,
            },
            Total: {
              name: :total,
              type: :BigDecimal,
            },
            Paid: {
              name: :paid,
              type: :BigDecimal,
            }
          )
        end
      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/advanced/invoice.rb
dear_inventory-1.3.0 lib/dear_inventory/models/purchases/advanced/invoice.rb
dear_inventory-1.2.0 lib/dear_inventory/models/purchases/advanced/invoice.rb
dear_inventory-1.1.1 lib/dear_inventory/models/purchases/advanced/invoice.rb
dear_inventory-1.1.0 lib/dear_inventory/models/purchases/advanced/invoice.rb
dear_inventory-1.0.0 lib/dear_inventory/models/purchases/advanced/invoice.rb