class TaxCloud::TaxCode::Groups

Tax Code Groups.

A TaxCloud::TaxCode::Group organizes tax codes in a logical group.

Constants

ADMINISTRATIVE

Administrative

Clothing and Related Products

Computer Related Products

DIGITAL_PRODUCTS

Digital Products

DRUGS

Drugs

DURABLE_MEDICAL_EQUIPMENT

Durable Medical Equipment

FOOD_AND_FOOD_PRODUCTS

Food and Food Products

MOBILTY_ENHANCING_EQUIPMENT

Mobilty Enhancing Equipment

PREPARED_FOOD

Prepared Food

PROSTHETIC_DEVICES

Prosthetic Devices

School Related Products

TELECOMMUNICATIONS

Telecommunications

Public Class Methods

[](group_id) click to toggle source

Lookup a tax code group by ID.

Parameters

group_id

Group ID.

# File lib/tax_cloud/tax_code_groups.rb, line 21
def [](group_id)
  all[group_id]
end
all() click to toggle source

All tax code groups.

# File lib/tax_cloud/tax_code_groups.rb, line 9
def all
  @all ||= begin
    response = TaxCloud.client.request :get_tic_groups
    tax_code_groups = TaxCloud::Responses::TaxCodeGroups.parse response
    Hash[tax_code_groups.map { |tax_code_group| [tax_code_group.group_id, tax_code_group] }]
  end
end