Sha256: a4e1258cf80b5eebd6033d6b0a5cf5534797fb5db5a900b2c9a60fe527506204

Contents?: true

Size: 844 Bytes

Versions: 3

Compression:

Stored size: 844 Bytes

Contents

# typed: strong
# frozen_string_literal: true

module DearInventory
  module Models
    class AdditionalCharge < DearInventory::Model
      extend T::Sig

      fields(
        Description: {
          name: :description,
          type: :String,
        },
        Price: {
          name: :price,
          type: :Numeric,
        },
        Quantity: {
          name: :quantity,
          type: :Numeric,
        },
        Discount: {
          name: :discount,
          type: :Numeric,
        },
        Tax: {
          name: :tax,
          type: :Numeric,
        },
        Total: {
          name: :total,
          type: :Numeric,
        },
        TaxRule: {
          name: :tax_rule,
          type: :String,
        },
        Comment: {
          name: :comment,
          type: :String,
        }
      )
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dear_inventory-0.4.1 lib/dear_inventory/models/additional_charge.rb
dear_inventory-0.4.0 lib/dear_inventory/models/additional_charge.rb
dear_inventory-0.3.0 lib/dear_inventory/models/additional_charge.rb