Sha256: 977e3329eea1d3475d489724b4d54f8a47e674ff117d53e0145c6fe617bd0b7b

Contents?: true

Size: 868 Bytes

Versions: 7

Compression:

Stored size: 868 Bytes

Contents

# typed: strong
# frozen_string_literal: true

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dear_inventory-0.7.5 lib/dear_inventory/models/purchases/additional_charge.rb
dear_inventory-0.7.4 lib/dear_inventory/models/purchases/additional_charge.rb
dear_inventory-0.7.3 lib/dear_inventory/models/purchases/additional_charge.rb
dear_inventory-0.7.2 lib/dear_inventory/models/purchases/additional_charge.rb
dear_inventory-0.7.1 lib/dear_inventory/models/purchases/additional_charge.rb
dear_inventory-0.7.0 lib/dear_inventory/models/purchases/additional_charge.rb
dear_inventory-0.6.3 lib/dear_inventory/models/purchases/additional_charge.rb