Class: TreezorClient::MerchantIdRestrictionGroupsApi
- Inherits:
-
Object
- Object
- TreezorClient::MerchantIdRestrictionGroupsApi
- Defined in:
- lib/treezor_client/api/merchant_id_restriction_groups_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#delete_merchant_id_restriction_groups(id, opts = {}) ⇒ InlineResponse20016
cancel a merchant id restriction group Cancel a merchant id restriction group from the system.
-
#delete_merchant_id_restriction_groups_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse20016, Fixnum, Hash)>
cancel a merchant id restriction group Cancel a merchant id restriction group from the system.
-
#get_merchant_id_restriction_group(opts = {}) ⇒ InlineResponse20016
search merchant id restriction groups Get merchant ID restriction groups that match search criteria.
-
#get_merchant_id_restriction_group_with_http_info(opts = {}) ⇒ Array<(InlineResponse20016, Fixnum, Hash)>
search merchant id restriction groups Get merchant ID restriction groups that match search criteria.
-
#get_merchant_id_restriction_groups_id(id, opts = {}) ⇒ InlineResponse20016
get a merchant ID restriction group Get a merchant ID restriction group from the system.
-
#get_merchant_id_restriction_groups_id_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse20016, Fixnum, Hash)>
get a merchant ID restriction group Get a merchant ID restriction group from the system.
-
#initialize(api_client = ApiClient.default) ⇒ MerchantIdRestrictionGroupsApi
constructor
A new instance of MerchantIdRestrictionGroupsApi.
-
#post_merchant_id_restriction_group(opts = {}) ⇒ InlineResponse20016
create a merchantIdRestrictionGroup Create a new merchant ID restriction group in the system.
-
#post_merchant_id_restriction_group_with_http_info(opts = {}) ⇒ Array<(InlineResponse20016, Fixnum, Hash)>
create a merchantIdRestrictionGroup Create a new merchant ID restriction group in the system.
-
#put_merchant_id_restriction_groups(id, opts = {}) ⇒ InlineResponse20016
edit a merchant id restriction group Edit a merchant id restriction group in the system.
-
#put_merchant_id_restriction_groups_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse20016, Fixnum, Hash)>
edit a merchant id restriction group Edit a merchant id restriction group in the system.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ MerchantIdRestrictionGroupsApi
Returns a new instance of MerchantIdRestrictionGroupsApi.
19 20 21 |
# File 'lib/treezor_client/api/merchant_id_restriction_groups_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/treezor_client/api/merchant_id_restriction_groups_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#delete_merchant_id_restriction_groups(id, opts = {}) ⇒ InlineResponse20016
cancel a merchant id restriction group Cancel a merchant id restriction group from the system.
28 29 30 31 |
# File 'lib/treezor_client/api/merchant_id_restriction_groups_api.rb', line 28 def delete_merchant_id_restriction_groups(id, opts = {}) data, _status_code, _headers = delete_merchant_id_restriction_groups_with_http_info(id, opts) data end |
#delete_merchant_id_restriction_groups_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse20016, Fixnum, Hash)>
cancel a merchant id restriction group Cancel a merchant id restriction group from the system.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/treezor_client/api/merchant_id_restriction_groups_api.rb', line 39 def delete_merchant_id_restriction_groups_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MerchantIdRestrictionGroupsApi.delete_merchant_id_restriction_groups ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling MerchantIdRestrictionGroupsApi.delete_merchant_id_restriction_groups" end # resource path local_var_path = '/merchantIdRestrictionGroups/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['api_key'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'InlineResponse20016') if @api_client.config.debugging @api_client.config.logger.debug "API called: MerchantIdRestrictionGroupsApi#delete_merchant_id_restriction_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_merchant_id_restriction_group(opts = {}) ⇒ InlineResponse20016
search merchant id restriction groups Get merchant ID restriction groups that match search criteria.
93 94 95 96 |
# File 'lib/treezor_client/api/merchant_id_restriction_groups_api.rb', line 93 def get_merchant_id_restriction_group(opts = {}) data, _status_code, _headers = get_merchant_id_restriction_group_with_http_info(opts) data end |
#get_merchant_id_restriction_group_with_http_info(opts = {}) ⇒ Array<(InlineResponse20016, Fixnum, Hash)>
search merchant id restriction groups Get merchant ID restriction groups that match search criteria.
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
# File 'lib/treezor_client/api/merchant_id_restriction_groups_api.rb', line 112 def get_merchant_id_restriction_group_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MerchantIdRestrictionGroupsApi.get_merchant_id_restriction_group ...' end # resource path local_var_path = '/merchantIdRestrictionGroups' # query parameters query_params = {} query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil? query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil? query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil? query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil? query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'pageNumber'] = opts[:'page_number'] if !opts[:'page_number'].nil? query_params[:'pageCount'] = opts[:'page_count'] if !opts[:'page_count'].nil? query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? query_params[:'sortOrder'] = opts[:'sort_order'] if !opts[:'sort_order'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['api_key'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'InlineResponse20016') if @api_client.config.debugging @api_client.config.logger.debug "API called: MerchantIdRestrictionGroupsApi#get_merchant_id_restriction_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_merchant_id_restriction_groups_id(id, opts = {}) ⇒ InlineResponse20016
get a merchant ID restriction group Get a merchant ID restriction group from the system.
163 164 165 166 |
# File 'lib/treezor_client/api/merchant_id_restriction_groups_api.rb', line 163 def get_merchant_id_restriction_groups_id(id, opts = {}) data, _status_code, _headers = get_merchant_id_restriction_groups_id_with_http_info(id, opts) data end |
#get_merchant_id_restriction_groups_id_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse20016, Fixnum, Hash)>
get a merchant ID restriction group Get a merchant ID restriction group from the system.
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 |
# File 'lib/treezor_client/api/merchant_id_restriction_groups_api.rb', line 174 def get_merchant_id_restriction_groups_id_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MerchantIdRestrictionGroupsApi.get_merchant_id_restriction_groups_id ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling MerchantIdRestrictionGroupsApi.get_merchant_id_restriction_groups_id" end # resource path local_var_path = '/merchantIdRestrictionGroups/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['api_key'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'InlineResponse20016') if @api_client.config.debugging @api_client.config.logger.debug "API called: MerchantIdRestrictionGroupsApi#get_merchant_id_restriction_groups_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_merchant_id_restriction_group(opts = {}) ⇒ InlineResponse20016
create a merchantIdRestrictionGroup Create a new merchant ID restriction group in the system.
223 224 225 226 |
# File 'lib/treezor_client/api/merchant_id_restriction_groups_api.rb', line 223 def post_merchant_id_restriction_group(opts = {}) data, _status_code, _headers = post_merchant_id_restriction_group_with_http_info(opts) data end |
#post_merchant_id_restriction_group_with_http_info(opts = {}) ⇒ Array<(InlineResponse20016, Fixnum, Hash)>
create a merchantIdRestrictionGroup Create a new merchant ID restriction group in the system.
237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 |
# File 'lib/treezor_client/api/merchant_id_restriction_groups_api.rb', line 237 def post_merchant_id_restriction_group_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MerchantIdRestrictionGroupsApi.post_merchant_id_restriction_group ...' end # resource path local_var_path = '/merchantIdRestrictionGroups' # query parameters query_params = {} query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil? query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil? query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil? query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'body']) auth_names = ['api_key'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'InlineResponse20016') if @api_client.config.debugging @api_client.config.logger.debug "API called: MerchantIdRestrictionGroupsApi#post_merchant_id_restriction_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_merchant_id_restriction_groups(id, opts = {}) ⇒ InlineResponse20016
edit a merchant id restriction group Edit a merchant id restriction group in the system.
286 287 288 289 |
# File 'lib/treezor_client/api/merchant_id_restriction_groups_api.rb', line 286 def put_merchant_id_restriction_groups(id, opts = {}) data, _status_code, _headers = put_merchant_id_restriction_groups_with_http_info(id, opts) data end |
#put_merchant_id_restriction_groups_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse20016, Fixnum, Hash)>
edit a merchant id restriction group Edit a merchant id restriction group in the system.
301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 |
# File 'lib/treezor_client/api/merchant_id_restriction_groups_api.rb', line 301 def put_merchant_id_restriction_groups_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MerchantIdRestrictionGroupsApi.put_merchant_id_restriction_groups ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling MerchantIdRestrictionGroupsApi.put_merchant_id_restriction_groups" end # resource path local_var_path = '/merchantIdRestrictionGroups/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil? query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil? query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil? query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'body']) auth_names = ['api_key'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'InlineResponse20016') if @api_client.config.debugging @api_client.config.logger.debug "API called: MerchantIdRestrictionGroupsApi#put_merchant_id_restriction_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |