Sha256: ce759816ef28e964d951a64a8bf0a42ae60184f290bacd1ef8e129ccbf51bd01

Contents?: true

Size: 1.64 KB

Versions: 11

Compression:

Stored size: 1.64 KB

Contents

# typed: strong
# frozen_string_literal: true

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

        fields(
          TaskID: {
            name: :task_id,
            type: :Guid,
          },
          CombineAdditionalCharges: {
            name: :combine_additional_charges,
            type: :Boolean,
          },
          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,
          },
          TotalBeforeTax: {
            name: :total_before_tax,
            type: :BigDecimal,
          },
          Tax: {
            name: :tax,
            type: :BigDecimal,
          },
          Total: {
            name: :total,
            type: :BigDecimal,
          },
          InvoiceTotalAmount: {
            name: :invoice_total_amount,
            type: :BigDecimal,
          },
          InvoiceTotalTaxAmount: {
            name: :invoice_total_tax_amount,
            type: :BigDecimal,
          }
        )
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dear_inventory-0.7.5 lib/dear_inventory/models/purchases/invoice.rb
dear_inventory-0.7.4 lib/dear_inventory/models/purchases/invoice.rb
dear_inventory-0.7.3 lib/dear_inventory/models/purchases/invoice.rb
dear_inventory-0.7.2 lib/dear_inventory/models/purchases/invoice.rb
dear_inventory-0.7.1 lib/dear_inventory/models/purchases/invoice.rb
dear_inventory-0.7.0 lib/dear_inventory/models/purchases/invoice.rb
dear_inventory-0.6.3 lib/dear_inventory/models/purchases/invoice.rb
dear_inventory-0.6.2 lib/dear_inventory/models/purchases/invoice.rb
dear_inventory-0.6.1 lib/dear_inventory/models/purchases/invoice.rb
dear_inventory-0.6.0 lib/dear_inventory/models/purchases/invoice.rb
dear_inventory-0.5.0 lib/dear_inventory/models/purchases/invoice.rb