Sha256: 6569a5fc6a58f023b9608a242a58a60a3433d2a5a4479afa253c3f1a0b912aca

Contents?: true

Size: 1.83 KB

Versions: 11

Compression:

Stored size: 1.83 KB

Contents

# typed: strong
# frozen_string_literal: true

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

        fields(
          TaskID: {
            name: :task_id,
            type: :Guid,
          },
          CreditNoteInvoiceNumber: {
            name: :credit_note_invoice_number,
            type: :String,
          },
          Memo: {
            name: :memo,
            type: :String,
          },
          Status: {
            name: :status,
            type: :String,
          },
          CreditNoteDate: {
            name: :credit_note_date,
            type: :Date,
          },
          CreditNoteNumber: {
            name: :credit_note_number,
            type: :String,
          },
          CreditNoteConversionRate: {
            name: :credit_note_conversion_rate,
            type: :BigDecimal,
          },
          Lines: {
            name: :lines,
            type: :Array,
            model: DearInventory::Models::Sales::InvoiceLine,
          },
          AdditionalCharges: {
            name: :additional_charges,
            type: :Array,
            model: DearInventory::Models::Sales::InvoiceAdditionalCharge,
          },
          Refunds: {
            name: :refunds,
            type: :Array,
            model: DearInventory::Models::Sales::PaymentLine,
          },
          Restock: {
            name: :restock,
            type: :Array,
            model: DearInventory::Models::Sales::Fulfilments::PickPackLine,
          },
          TotalBeforeTax: {
            name: :total_before_tax,
            type: :BigDecimal,
          },
          Tax: {
            name: :tax,
            type: :BigDecimal,
          },
          Total: {
            name: :total,
            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/sales/credit_note.rb
dear_inventory-0.7.4 lib/dear_inventory/models/sales/credit_note.rb
dear_inventory-0.7.3 lib/dear_inventory/models/sales/credit_note.rb
dear_inventory-0.7.2 lib/dear_inventory/models/sales/credit_note.rb
dear_inventory-0.7.1 lib/dear_inventory/models/sales/credit_note.rb
dear_inventory-0.7.0 lib/dear_inventory/models/sales/credit_note.rb
dear_inventory-0.6.3 lib/dear_inventory/models/sales/credit_note.rb
dear_inventory-0.6.2 lib/dear_inventory/models/sales/credit_note.rb
dear_inventory-0.6.1 lib/dear_inventory/models/sales/credit_note.rb
dear_inventory-0.6.0 lib/dear_inventory/models/sales/credit_note.rb
dear_inventory-0.5.0 lib/dear_inventory/models/sales/credit_note.rb