Sha256: 407cb3eb1ff880dad3f1357434465daa9e612ff8a750b49acc065409ef654299

Contents?: true

Size: 1.66 KB

Versions: 6

Compression:

Stored size: 1.66 KB

Contents

# typed: strong
# frozen_string_literal: true

module DearInventory
  module Models
    class Purchases < DearInventory::Model
      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

6 entries across 6 versions & 1 rubygems

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