Sha256: 72a3c1da59e676ea974ac5475c4d49d09f05d5c227f25b2ba10dc7248803dc4e

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 KB

Contents

# typed: strong
# frozen_string_literal: true

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

        fields({
          Memo: {
            name: :memo,
            type: :String,
          },
          Status: {
            name: :status,
            type: :String,
          },
          Prepayments: {
            name: :prepayments,
            type: :Array,
            model: DearInventory::Models::Sales::PaymentLine,
          },
          Lines: {
            name: :lines,
            type: :Array,
            model: DearInventory::Models::Sales::Line,
          },
          AdditionalCharges: {
            name: :additional_charges,
            type: :Array,
            model: DearInventory::Models::AdditionalCharge,
          },
          TotalBeforeTax: {
            name: :total_before_tax,
            type: :Numeric,
          },
          Tax: {
            name: :tax,
            type: :Numeric,
          },
          Total: {
            name: :total,
            type: :Numeric,
          },
        })
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dear_inventory-0.2.0 lib/dear_inventory/models/sales/quote.rb