Sha256: 24c1277d373fb91741b6cee368490c1db618d6893049cb0ad9437db72ff23e83

Contents?: true

Size: 1.85 KB

Versions: 6

Compression:

Stored size: 1.85 KB

Contents

# typed: strong
# frozen_string_literal: true

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

6 entries across 6 versions & 1 rubygems

Version Path
dear_inventory-1.4.0 lib/dear_inventory/models/sales/credit_note.rb
dear_inventory-1.3.0 lib/dear_inventory/models/sales/credit_note.rb
dear_inventory-1.2.0 lib/dear_inventory/models/sales/credit_note.rb
dear_inventory-1.1.1 lib/dear_inventory/models/sales/credit_note.rb
dear_inventory-1.1.0 lib/dear_inventory/models/sales/credit_note.rb
dear_inventory-1.0.0 lib/dear_inventory/models/sales/credit_note.rb