lib/tsubaiso_sdk.rb in tsubaiso-sdk-1.2.8 vs lib/tsubaiso_sdk.rb in tsubaiso-sdk-1.2.9

- old
+ new

@@ -315,10 +315,16 @@ params = { 'format' => 'json' } uri = URI.parse(@base_url + '/tags/list') api_request(uri, 'GET', params) end + def list_tag_groups + params = { 'format' => 'json' } + uri = URI.parse(@base_url + '/tag_groups/index') + api_request(uri, 'GET', params) + end + def list_bonuses(bonus_no, target_year) params = { 'format' => 'json', 'bonus_no' => bonus_no, 'target_year' => target_year @@ -1107,9 +1113,21 @@ :finish_ymd ] params = create_parameters(candidate_keys,options) params['format'] = 'json' uri = URI.parse(@base_url + "/tags/update/#{tag_id}") + api_request(uri, 'POST', params) + end + + def update_tag_group(tag_group_id, options) + params = {} + candidate_keys = [ + :code, + :name + ] + params = create_parameters(candidate_keys,options) + params['format'] = 'json' + uri = URI.parse(@base_url + "/tag_groups/update/#{tag_group_id}") api_request(uri, 'POST', params) end def update_petty_cash_reason_master(petty_cash_reason_master_id, options) params = {}