Sha256: 69f61c1331ccc9160afe9464f95d3ad9b0165f11e6c3c3cd71a1e95b96c74d96

Contents?: true

Size: 953 Bytes

Versions: 7

Compression:

Stored size: 953 Bytes

Contents

# typed: strong
# frozen_string_literal: true

module DearInventory
  module Models
    module Sales
      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,
          },
          Comment: {
            name: :comment,
            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/sales/additional_charge.rb
dear_inventory-0.7.4 lib/dear_inventory/models/sales/additional_charge.rb
dear_inventory-0.7.3 lib/dear_inventory/models/sales/additional_charge.rb
dear_inventory-0.7.2 lib/dear_inventory/models/sales/additional_charge.rb
dear_inventory-0.7.1 lib/dear_inventory/models/sales/additional_charge.rb
dear_inventory-0.7.0 lib/dear_inventory/models/sales/additional_charge.rb
dear_inventory-0.6.3 lib/dear_inventory/models/sales/additional_charge.rb