class ShipCompliant::ProductSalesTaxRate

ShipCompliant::ProductSalesTaxRate

ProductSalesTaxRate wraps the SalesTaxRate value object. It provides methods to easily access various attributes about each product.

Public Instance Methods

brand_key() click to toggle source

Returns the product's brand key.

product_tax_rate.brand_key #=> 'BrandKey123'
# File lib/ship_compliant/product_sales_tax_rate.rb, line 18
def brand_key
  sales_tax[:brand_key]
end
product_key() click to toggle source

Returns the product's key.

product_tax_rate.product_key #=> 'ProductKey123'
# File lib/ship_compliant/product_sales_tax_rate.rb, line 11
def product_key
  sales_tax[:product_key]
end