Sha256: 86ac5c350898942545b0de69c99f0b0398e19d6c28074963d33f65eaa1511d6d

Contents?: true

Size: 1.43 KB

Versions: 6

Compression:

Stored size: 1.43 KB

Contents

# typed: strong
# frozen_string_literal: true

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

        fields(
          CreditNoteNumber: {
            name: :credit_note_number,
            type: :String,
          },
          CreditNoteDate: {
            name: :credit_note_date,
            type: :Date,
          },
          Status: {
            name: :status,
            type: :String,
          },
          Lines: {
            name: :lines,
            type: :Array,
            model: DearInventory::Models::Purchases::InvoiceLine,
          },
          AdditionalCharges: {
            name: :additional_charges,
            type: :Array,
            model: DearInventory::Models::Purchases::InvoiceAdditionalCharge,
          },
          Refunds: {
            name: :refunds,
            type: :Array,
            model: DearInventory::Models::Sales::PaymentLine,
          },
          Unstock: {
            name: :unstock,
            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/credit_note.rb
dear_inventory-1.3.0 lib/dear_inventory/models/purchases/credit_note.rb
dear_inventory-1.2.0 lib/dear_inventory/models/purchases/credit_note.rb
dear_inventory-1.1.1 lib/dear_inventory/models/purchases/credit_note.rb
dear_inventory-1.1.0 lib/dear_inventory/models/purchases/credit_note.rb
dear_inventory-1.0.0 lib/dear_inventory/models/purchases/credit_note.rb