hydrogen-electron-api 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +86 -0
  4. data/Rakefile +8 -0
  5. data/electron_api.gemspec +46 -0
  6. data/git_push.sh +55 -0
  7. data/lib/electron_api/api/ach_api.rb +75 -0
  8. data/lib/electron_api/api/card_api.rb +639 -0
  9. data/lib/electron_api/api_client.rb +391 -0
  10. data/lib/electron_api/api_error.rb +38 -0
  11. data/lib/electron_api/auth_configuration.rb +181 -0
  12. data/lib/electron_api/configuration.rb +209 -0
  13. data/lib/electron_api/environment.rb +36 -0
  14. data/lib/electron_api/models/ach_card_request_co.rb +180 -0
  15. data/lib/electron_api/models/ach_card_response_vo.rb +216 -0
  16. data/lib/electron_api/models/base_response_vo.rb +198 -0
  17. data/lib/electron_api/models/card_base_request_co.rb +200 -0
  18. data/lib/electron_api/models/card_client_request_co.rb +191 -0
  19. data/lib/electron_api/models/card_load_request_co.rb +189 -0
  20. data/lib/electron_api/models/card_load_unload_response_vo.rb +234 -0
  21. data/lib/electron_api/models/card_replace_response_vo.rb +234 -0
  22. data/lib/electron_api/models/card_reserve_account_response_vo.rb +234 -0
  23. data/lib/electron_api/models/card_spending_control_request_co.rb +180 -0
  24. data/lib/electron_api/models/card_spending_control_response_vo.rb +216 -0
  25. data/lib/electron_api/models/card_unload_request_co.rb +189 -0
  26. data/lib/electron_api/models/create_card_client_response_vo.rb +216 -0
  27. data/lib/electron_api/models/spending_control_vendor_request_data_vo.rb +254 -0
  28. data/lib/electron_api/models/update_card_client_response_vo.rb +216 -0
  29. data/lib/electron_api/version.rb +15 -0
  30. data/lib/electron_api.rb +57 -0
  31. data/spec/api/ach_api_spec.rb +46 -0
  32. data/spec/api/card_api_spec.rb +166 -0
  33. data/spec/api_client_spec.rb +243 -0
  34. data/spec/configuration_spec.rb +42 -0
  35. data/spec/models/ach_card_request_co_spec.rb +41 -0
  36. data/spec/models/ach_card_response_vo_spec.rb +65 -0
  37. data/spec/models/base_response_vo_spec.rb +53 -0
  38. data/spec/models/card_base_request_co_spec.rb +53 -0
  39. data/spec/models/card_client_request_co_spec.rb +47 -0
  40. data/spec/models/card_load_request_co_spec.rb +47 -0
  41. data/spec/models/card_load_unload_response_vo_spec.rb +77 -0
  42. data/spec/models/card_replace_response_vo_spec.rb +77 -0
  43. data/spec/models/card_reserve_account_response_vo_spec.rb +77 -0
  44. data/spec/models/card_spending_control_request_co_spec.rb +41 -0
  45. data/spec/models/card_spending_control_response_vo_spec.rb +65 -0
  46. data/spec/models/card_unload_request_co_spec.rb +47 -0
  47. data/spec/models/create_card_client_response_vo_spec.rb +65 -0
  48. data/spec/models/spending_control_vendor_request_data_vo_spec.rb +89 -0
  49. data/spec/models/update_card_client_response_vo_spec.rb +65 -0
  50. data/spec/spec_helper.rb +111 -0
  51. metadata +312 -0
@@ -0,0 +1,639 @@
1
+ =begin
2
+ #Hydrogen Electron API
3
+
4
+ #The Hydrogen Electron API
5
+
6
+ OpenAPI spec version: 1.3.1
7
+ Contact: info@hydrogenplatform.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.24
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+
15
+ module ElectronApi
16
+ class CardApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # close a card
23
+ # @param close_request closeRequest
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [BaseResponseVO]
26
+ def create_card_close_using_post(close_request, opts = {})
27
+ data, _status_code, _headers = create_card_close_using_post_with_http_info(close_request, opts)
28
+ data
29
+ end
30
+
31
+ # close a card
32
+ # @param close_request closeRequest
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(BaseResponseVO, Fixnum, Hash)>] BaseResponseVO data, response status code and response headers
35
+ def create_card_close_using_post_with_http_info(close_request, opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: CardApi.create_card_close_using_post ...'
38
+ end
39
+ # verify the required parameter 'close_request' is set
40
+ if @api_client.config.client_side_validation && close_request.nil?
41
+ fail ArgumentError, "Missing the required parameter 'close_request' when calling CardApi.create_card_close_using_post"
42
+ end
43
+ # resource path
44
+ local_var_path = '/card/close'
45
+
46
+ # query parameters
47
+ query_params = {}
48
+
49
+ # header parameters
50
+ header_params = {}
51
+ # HTTP header 'Accept' (if needed)
52
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
53
+ # HTTP header 'Content-Type'
54
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
55
+
56
+ # form parameters
57
+ form_params = {}
58
+
59
+ # http body (model)
60
+ post_body = @api_client.object_to_http_body(close_request)
61
+ auth_names = ['oauth2']
62
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
63
+ :header_params => header_params,
64
+ :query_params => query_params,
65
+ :form_params => form_params,
66
+ :body => post_body,
67
+ :auth_names => auth_names,
68
+ :return_type => 'BaseResponseVO')
69
+ if @api_client.config.debugging
70
+ @api_client.config.logger.debug "API called: CardApi#create_card_close_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
71
+ end
72
+ return data, status_code, headers
73
+ end
74
+ # issue a card
75
+ # @param issue_request issueRequest
76
+ # @param [Hash] opts the optional parameters
77
+ # @return [BaseResponseVO]
78
+ def create_card_issue_using_post(issue_request, opts = {})
79
+ data, _status_code, _headers = create_card_issue_using_post_with_http_info(issue_request, opts)
80
+ data
81
+ end
82
+
83
+ # issue a card
84
+ # @param issue_request issueRequest
85
+ # @param [Hash] opts the optional parameters
86
+ # @return [Array<(BaseResponseVO, Fixnum, Hash)>] BaseResponseVO data, response status code and response headers
87
+ def create_card_issue_using_post_with_http_info(issue_request, opts = {})
88
+ if @api_client.config.debugging
89
+ @api_client.config.logger.debug 'Calling API: CardApi.create_card_issue_using_post ...'
90
+ end
91
+ # verify the required parameter 'issue_request' is set
92
+ if @api_client.config.client_side_validation && issue_request.nil?
93
+ fail ArgumentError, "Missing the required parameter 'issue_request' when calling CardApi.create_card_issue_using_post"
94
+ end
95
+ # resource path
96
+ local_var_path = '/card/issue'
97
+
98
+ # query parameters
99
+ query_params = {}
100
+
101
+ # header parameters
102
+ header_params = {}
103
+ # HTTP header 'Accept' (if needed)
104
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
105
+ # HTTP header 'Content-Type'
106
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
107
+
108
+ # form parameters
109
+ form_params = {}
110
+
111
+ # http body (model)
112
+ post_body = @api_client.object_to_http_body(issue_request)
113
+ auth_names = ['oauth2']
114
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
115
+ :header_params => header_params,
116
+ :query_params => query_params,
117
+ :form_params => form_params,
118
+ :body => post_body,
119
+ :auth_names => auth_names,
120
+ :return_type => 'BaseResponseVO')
121
+ if @api_client.config.debugging
122
+ @api_client.config.logger.debug "API called: CardApi#create_card_issue_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
123
+ end
124
+ return data, status_code, headers
125
+ end
126
+ # Create a card load
127
+ # @param load_request loadRequest
128
+ # @param [Hash] opts the optional parameters
129
+ # @return [CardLoadUnloadResponseVO]
130
+ def create_card_load_using_post(load_request, opts = {})
131
+ data, _status_code, _headers = create_card_load_using_post_with_http_info(load_request, opts)
132
+ data
133
+ end
134
+
135
+ # Create a card load
136
+ # @param load_request loadRequest
137
+ # @param [Hash] opts the optional parameters
138
+ # @return [Array<(CardLoadUnloadResponseVO, Fixnum, Hash)>] CardLoadUnloadResponseVO data, response status code and response headers
139
+ def create_card_load_using_post_with_http_info(load_request, opts = {})
140
+ if @api_client.config.debugging
141
+ @api_client.config.logger.debug 'Calling API: CardApi.create_card_load_using_post ...'
142
+ end
143
+ # verify the required parameter 'load_request' is set
144
+ if @api_client.config.client_side_validation && load_request.nil?
145
+ fail ArgumentError, "Missing the required parameter 'load_request' when calling CardApi.create_card_load_using_post"
146
+ end
147
+ # resource path
148
+ local_var_path = '/card/load'
149
+
150
+ # query parameters
151
+ query_params = {}
152
+
153
+ # header parameters
154
+ header_params = {}
155
+ # HTTP header 'Accept' (if needed)
156
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
157
+ # HTTP header 'Content-Type'
158
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
159
+
160
+ # form parameters
161
+ form_params = {}
162
+
163
+ # http body (model)
164
+ post_body = @api_client.object_to_http_body(load_request)
165
+ auth_names = ['oauth2']
166
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
167
+ :header_params => header_params,
168
+ :query_params => query_params,
169
+ :form_params => form_params,
170
+ :body => post_body,
171
+ :auth_names => auth_names,
172
+ :return_type => 'CardLoadUnloadResponseVO')
173
+ if @api_client.config.debugging
174
+ @api_client.config.logger.debug "API called: CardApi#create_card_load_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
175
+ end
176
+ return data, status_code, headers
177
+ end
178
+ # reactivate card
179
+ # @param reactivate_request reactivateRequest
180
+ # @param [Hash] opts the optional parameters
181
+ # @return [BaseResponseVO]
182
+ def create_card_reactivate_using_post(reactivate_request, opts = {})
183
+ data, _status_code, _headers = create_card_reactivate_using_post_with_http_info(reactivate_request, opts)
184
+ data
185
+ end
186
+
187
+ # reactivate card
188
+ # @param reactivate_request reactivateRequest
189
+ # @param [Hash] opts the optional parameters
190
+ # @return [Array<(BaseResponseVO, Fixnum, Hash)>] BaseResponseVO data, response status code and response headers
191
+ def create_card_reactivate_using_post_with_http_info(reactivate_request, opts = {})
192
+ if @api_client.config.debugging
193
+ @api_client.config.logger.debug 'Calling API: CardApi.create_card_reactivate_using_post ...'
194
+ end
195
+ # verify the required parameter 'reactivate_request' is set
196
+ if @api_client.config.client_side_validation && reactivate_request.nil?
197
+ fail ArgumentError, "Missing the required parameter 'reactivate_request' when calling CardApi.create_card_reactivate_using_post"
198
+ end
199
+ # resource path
200
+ local_var_path = '/card/reactivate'
201
+
202
+ # query parameters
203
+ query_params = {}
204
+
205
+ # header parameters
206
+ header_params = {}
207
+ # HTTP header 'Accept' (if needed)
208
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
209
+ # HTTP header 'Content-Type'
210
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
211
+
212
+ # form parameters
213
+ form_params = {}
214
+
215
+ # http body (model)
216
+ post_body = @api_client.object_to_http_body(reactivate_request)
217
+ auth_names = ['oauth2']
218
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
219
+ :header_params => header_params,
220
+ :query_params => query_params,
221
+ :form_params => form_params,
222
+ :body => post_body,
223
+ :auth_names => auth_names,
224
+ :return_type => 'BaseResponseVO')
225
+ if @api_client.config.debugging
226
+ @api_client.config.logger.debug "API called: CardApi#create_card_reactivate_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
227
+ end
228
+ return data, status_code, headers
229
+ end
230
+ # Create card replace
231
+ # @param request request
232
+ # @param [Hash] opts the optional parameters
233
+ # @return [CardReplaceResponseVO]
234
+ def create_card_replace_using_post(request, opts = {})
235
+ data, _status_code, _headers = create_card_replace_using_post_with_http_info(request, opts)
236
+ data
237
+ end
238
+
239
+ # Create card replace
240
+ # @param request request
241
+ # @param [Hash] opts the optional parameters
242
+ # @return [Array<(CardReplaceResponseVO, Fixnum, Hash)>] CardReplaceResponseVO data, response status code and response headers
243
+ def create_card_replace_using_post_with_http_info(request, opts = {})
244
+ if @api_client.config.debugging
245
+ @api_client.config.logger.debug 'Calling API: CardApi.create_card_replace_using_post ...'
246
+ end
247
+ # verify the required parameter 'request' is set
248
+ if @api_client.config.client_side_validation && request.nil?
249
+ fail ArgumentError, "Missing the required parameter 'request' when calling CardApi.create_card_replace_using_post"
250
+ end
251
+ # resource path
252
+ local_var_path = '/card/replace'
253
+
254
+ # query parameters
255
+ query_params = {}
256
+
257
+ # header parameters
258
+ header_params = {}
259
+ # HTTP header 'Accept' (if needed)
260
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
261
+ # HTTP header 'Content-Type'
262
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
263
+
264
+ # form parameters
265
+ form_params = {}
266
+
267
+ # http body (model)
268
+ post_body = @api_client.object_to_http_body(request)
269
+ auth_names = ['oauth2']
270
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
271
+ :header_params => header_params,
272
+ :query_params => query_params,
273
+ :form_params => form_params,
274
+ :body => post_body,
275
+ :auth_names => auth_names,
276
+ :return_type => 'CardReplaceResponseVO')
277
+ if @api_client.config.debugging
278
+ @api_client.config.logger.debug "API called: CardApi#create_card_replace_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
279
+ end
280
+ return data, status_code, headers
281
+ end
282
+ # Create card spending control
283
+ # @param request request
284
+ # @param [Hash] opts the optional parameters
285
+ # @return [CardSpendingControlResponseVO]
286
+ def create_card_spending_control_using_post(request, opts = {})
287
+ data, _status_code, _headers = create_card_spending_control_using_post_with_http_info(request, opts)
288
+ data
289
+ end
290
+
291
+ # Create card spending control
292
+ # @param request request
293
+ # @param [Hash] opts the optional parameters
294
+ # @return [Array<(CardSpendingControlResponseVO, Fixnum, Hash)>] CardSpendingControlResponseVO data, response status code and response headers
295
+ def create_card_spending_control_using_post_with_http_info(request, opts = {})
296
+ if @api_client.config.debugging
297
+ @api_client.config.logger.debug 'Calling API: CardApi.create_card_spending_control_using_post ...'
298
+ end
299
+ # verify the required parameter 'request' is set
300
+ if @api_client.config.client_side_validation && request.nil?
301
+ fail ArgumentError, "Missing the required parameter 'request' when calling CardApi.create_card_spending_control_using_post"
302
+ end
303
+ # resource path
304
+ local_var_path = '/card/spending_control'
305
+
306
+ # query parameters
307
+ query_params = {}
308
+
309
+ # header parameters
310
+ header_params = {}
311
+ # HTTP header 'Accept' (if needed)
312
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
313
+ # HTTP header 'Content-Type'
314
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
315
+
316
+ # form parameters
317
+ form_params = {}
318
+
319
+ # http body (model)
320
+ post_body = @api_client.object_to_http_body(request)
321
+ auth_names = ['oauth2']
322
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
323
+ :header_params => header_params,
324
+ :query_params => query_params,
325
+ :form_params => form_params,
326
+ :body => post_body,
327
+ :auth_names => auth_names,
328
+ :return_type => 'CardSpendingControlResponseVO')
329
+ if @api_client.config.debugging
330
+ @api_client.config.logger.debug "API called: CardApi#create_card_spending_control_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
331
+ end
332
+ return data, status_code, headers
333
+ end
334
+ # suspend card
335
+ # @param suspend_request suspendRequest
336
+ # @param [Hash] opts the optional parameters
337
+ # @return [BaseResponseVO]
338
+ def create_card_suspend_using_post(suspend_request, opts = {})
339
+ data, _status_code, _headers = create_card_suspend_using_post_with_http_info(suspend_request, opts)
340
+ data
341
+ end
342
+
343
+ # suspend card
344
+ # @param suspend_request suspendRequest
345
+ # @param [Hash] opts the optional parameters
346
+ # @return [Array<(BaseResponseVO, Fixnum, Hash)>] BaseResponseVO data, response status code and response headers
347
+ def create_card_suspend_using_post_with_http_info(suspend_request, opts = {})
348
+ if @api_client.config.debugging
349
+ @api_client.config.logger.debug 'Calling API: CardApi.create_card_suspend_using_post ...'
350
+ end
351
+ # verify the required parameter 'suspend_request' is set
352
+ if @api_client.config.client_side_validation && suspend_request.nil?
353
+ fail ArgumentError, "Missing the required parameter 'suspend_request' when calling CardApi.create_card_suspend_using_post"
354
+ end
355
+ # resource path
356
+ local_var_path = '/card/suspend'
357
+
358
+ # query parameters
359
+ query_params = {}
360
+
361
+ # header parameters
362
+ header_params = {}
363
+ # HTTP header 'Accept' (if needed)
364
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
365
+ # HTTP header 'Content-Type'
366
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
367
+
368
+ # form parameters
369
+ form_params = {}
370
+
371
+ # http body (model)
372
+ post_body = @api_client.object_to_http_body(suspend_request)
373
+ auth_names = ['oauth2']
374
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
375
+ :header_params => header_params,
376
+ :query_params => query_params,
377
+ :form_params => form_params,
378
+ :body => post_body,
379
+ :auth_names => auth_names,
380
+ :return_type => 'BaseResponseVO')
381
+ if @api_client.config.debugging
382
+ @api_client.config.logger.debug "API called: CardApi#create_card_suspend_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
383
+ end
384
+ return data, status_code, headers
385
+ end
386
+ # Create a card upload
387
+ # @param reload_request reloadRequest
388
+ # @param [Hash] opts the optional parameters
389
+ # @return [CardLoadUnloadResponseVO]
390
+ def create_card_unload_using_post(reload_request, opts = {})
391
+ data, _status_code, _headers = create_card_unload_using_post_with_http_info(reload_request, opts)
392
+ data
393
+ end
394
+
395
+ # Create a card upload
396
+ # @param reload_request reloadRequest
397
+ # @param [Hash] opts the optional parameters
398
+ # @return [Array<(CardLoadUnloadResponseVO, Fixnum, Hash)>] CardLoadUnloadResponseVO data, response status code and response headers
399
+ def create_card_unload_using_post_with_http_info(reload_request, opts = {})
400
+ if @api_client.config.debugging
401
+ @api_client.config.logger.debug 'Calling API: CardApi.create_card_unload_using_post ...'
402
+ end
403
+ # verify the required parameter 'reload_request' is set
404
+ if @api_client.config.client_side_validation && reload_request.nil?
405
+ fail ArgumentError, "Missing the required parameter 'reload_request' when calling CardApi.create_card_unload_using_post"
406
+ end
407
+ # resource path
408
+ local_var_path = '/card/unload'
409
+
410
+ # query parameters
411
+ query_params = {}
412
+
413
+ # header parameters
414
+ header_params = {}
415
+ # HTTP header 'Accept' (if needed)
416
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
417
+ # HTTP header 'Content-Type'
418
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
419
+
420
+ # form parameters
421
+ form_params = {}
422
+
423
+ # http body (model)
424
+ post_body = @api_client.object_to_http_body(reload_request)
425
+ auth_names = ['oauth2']
426
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
427
+ :header_params => header_params,
428
+ :query_params => query_params,
429
+ :form_params => form_params,
430
+ :body => post_body,
431
+ :auth_names => auth_names,
432
+ :return_type => 'CardLoadUnloadResponseVO')
433
+ if @api_client.config.debugging
434
+ @api_client.config.logger.debug "API called: CardApi#create_card_unload_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
435
+ end
436
+ return data, status_code, headers
437
+ end
438
+ # Create a card client
439
+ # @param card_client_request_co cardClientRequestCO
440
+ # @param [Hash] opts the optional parameters
441
+ # @return [CreateCardClientResponseVO]
442
+ def create_client_card_using_post(card_client_request_co, opts = {})
443
+ data, _status_code, _headers = create_client_card_using_post_with_http_info(card_client_request_co, opts)
444
+ data
445
+ end
446
+
447
+ # Create a card client
448
+ # @param card_client_request_co cardClientRequestCO
449
+ # @param [Hash] opts the optional parameters
450
+ # @return [Array<(CreateCardClientResponseVO, Fixnum, Hash)>] CreateCardClientResponseVO data, response status code and response headers
451
+ def create_client_card_using_post_with_http_info(card_client_request_co, opts = {})
452
+ if @api_client.config.debugging
453
+ @api_client.config.logger.debug 'Calling API: CardApi.create_client_card_using_post ...'
454
+ end
455
+ # verify the required parameter 'card_client_request_co' is set
456
+ if @api_client.config.client_side_validation && card_client_request_co.nil?
457
+ fail ArgumentError, "Missing the required parameter 'card_client_request_co' when calling CardApi.create_client_card_using_post"
458
+ end
459
+ # resource path
460
+ local_var_path = '/card/client'
461
+
462
+ # query parameters
463
+ query_params = {}
464
+
465
+ # header parameters
466
+ header_params = {}
467
+ # HTTP header 'Accept' (if needed)
468
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
469
+ # HTTP header 'Content-Type'
470
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
471
+
472
+ # form parameters
473
+ form_params = {}
474
+
475
+ # http body (model)
476
+ post_body = @api_client.object_to_http_body(card_client_request_co)
477
+ auth_names = ['oauth2']
478
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
479
+ :header_params => header_params,
480
+ :query_params => query_params,
481
+ :form_params => form_params,
482
+ :body => post_body,
483
+ :auth_names => auth_names,
484
+ :return_type => 'CreateCardClientResponseVO')
485
+ if @api_client.config.debugging
486
+ @api_client.config.logger.debug "API called: CardApi#create_client_card_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
487
+ end
488
+ return data, status_code, headers
489
+ end
490
+ # Card reserve account
491
+ # @param [Hash] opts the optional parameters
492
+ # @return [CardReserveAccountResponseVO]
493
+ def get_card_reserve_account_details_using_get(opts = {})
494
+ data, _status_code, _headers = get_card_reserve_account_details_using_get_with_http_info(opts)
495
+ data
496
+ end
497
+
498
+ # Card reserve account
499
+ # @param [Hash] opts the optional parameters
500
+ # @return [Array<(CardReserveAccountResponseVO, Fixnum, Hash)>] CardReserveAccountResponseVO data, response status code and response headers
501
+ def get_card_reserve_account_details_using_get_with_http_info(opts = {})
502
+ if @api_client.config.debugging
503
+ @api_client.config.logger.debug 'Calling API: CardApi.get_card_reserve_account_details_using_get ...'
504
+ end
505
+ # resource path
506
+ local_var_path = '/card/reserve'
507
+
508
+ # query parameters
509
+ query_params = {}
510
+
511
+ # header parameters
512
+ header_params = {}
513
+ # HTTP header 'Accept' (if needed)
514
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
515
+
516
+ # form parameters
517
+ form_params = {}
518
+
519
+ # http body (model)
520
+ post_body = nil
521
+ auth_names = ['oauth2']
522
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
523
+ :header_params => header_params,
524
+ :query_params => query_params,
525
+ :form_params => form_params,
526
+ :body => post_body,
527
+ :auth_names => auth_names,
528
+ :return_type => 'CardReserveAccountResponseVO')
529
+ if @api_client.config.debugging
530
+ @api_client.config.logger.debug "API called: CardApi#get_card_reserve_account_details_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
531
+ end
532
+ return data, status_code, headers
533
+ end
534
+ # Update a card spending control
535
+ # @param nucleus_spending_control_id nucleus_spending_control_id
536
+ # @param [Hash] opts the optional parameters
537
+ # @return [CardSpendingControlResponseVO]
538
+ def update_card_spending_control_using_put(nucleus_spending_control_id, opts = {})
539
+ data, _status_code, _headers = update_card_spending_control_using_put_with_http_info(nucleus_spending_control_id, opts)
540
+ data
541
+ end
542
+
543
+ # Update a card spending control
544
+ # @param nucleus_spending_control_id nucleus_spending_control_id
545
+ # @param [Hash] opts the optional parameters
546
+ # @return [Array<(CardSpendingControlResponseVO, Fixnum, Hash)>] CardSpendingControlResponseVO data, response status code and response headers
547
+ def update_card_spending_control_using_put_with_http_info(nucleus_spending_control_id, opts = {})
548
+ if @api_client.config.debugging
549
+ @api_client.config.logger.debug 'Calling API: CardApi.update_card_spending_control_using_put ...'
550
+ end
551
+ # verify the required parameter 'nucleus_spending_control_id' is set
552
+ if @api_client.config.client_side_validation && nucleus_spending_control_id.nil?
553
+ fail ArgumentError, "Missing the required parameter 'nucleus_spending_control_id' when calling CardApi.update_card_spending_control_using_put"
554
+ end
555
+ # resource path
556
+ local_var_path = '/card/spending_control/{nucleus_spending_control_id}'.sub('{' + 'nucleus_spending_control_id' + '}', nucleus_spending_control_id.to_s)
557
+
558
+ # query parameters
559
+ query_params = {}
560
+
561
+ # header parameters
562
+ header_params = {}
563
+ # HTTP header 'Accept' (if needed)
564
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
565
+ # HTTP header 'Content-Type'
566
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
567
+
568
+ # form parameters
569
+ form_params = {}
570
+
571
+ # http body (model)
572
+ post_body = nil
573
+ auth_names = ['oauth2']
574
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
575
+ :header_params => header_params,
576
+ :query_params => query_params,
577
+ :form_params => form_params,
578
+ :body => post_body,
579
+ :auth_names => auth_names,
580
+ :return_type => 'CardSpendingControlResponseVO')
581
+ if @api_client.config.debugging
582
+ @api_client.config.logger.debug "API called: CardApi#update_card_spending_control_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
583
+ end
584
+ return data, status_code, headers
585
+ end
586
+ # Update a card client
587
+ # @param nucleus_client_id nucleus_client_id
588
+ # @param [Hash] opts the optional parameters
589
+ # @return [UpdateCardClientResponseVO]
590
+ def update_client_card_using_put(nucleus_client_id, opts = {})
591
+ data, _status_code, _headers = update_client_card_using_put_with_http_info(nucleus_client_id, opts)
592
+ data
593
+ end
594
+
595
+ # Update a card client
596
+ # @param nucleus_client_id nucleus_client_id
597
+ # @param [Hash] opts the optional parameters
598
+ # @return [Array<(UpdateCardClientResponseVO, Fixnum, Hash)>] UpdateCardClientResponseVO data, response status code and response headers
599
+ def update_client_card_using_put_with_http_info(nucleus_client_id, opts = {})
600
+ if @api_client.config.debugging
601
+ @api_client.config.logger.debug 'Calling API: CardApi.update_client_card_using_put ...'
602
+ end
603
+ # verify the required parameter 'nucleus_client_id' is set
604
+ if @api_client.config.client_side_validation && nucleus_client_id.nil?
605
+ fail ArgumentError, "Missing the required parameter 'nucleus_client_id' when calling CardApi.update_client_card_using_put"
606
+ end
607
+ # resource path
608
+ local_var_path = '/card/client/{nucleus_client_id}'.sub('{' + 'nucleus_client_id' + '}', nucleus_client_id.to_s)
609
+
610
+ # query parameters
611
+ query_params = {}
612
+
613
+ # header parameters
614
+ header_params = {}
615
+ # HTTP header 'Accept' (if needed)
616
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
617
+ # HTTP header 'Content-Type'
618
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
619
+
620
+ # form parameters
621
+ form_params = {}
622
+
623
+ # http body (model)
624
+ post_body = nil
625
+ auth_names = ['oauth2']
626
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
627
+ :header_params => header_params,
628
+ :query_params => query_params,
629
+ :form_params => form_params,
630
+ :body => post_body,
631
+ :auth_names => auth_names,
632
+ :return_type => 'UpdateCardClientResponseVO')
633
+ if @api_client.config.debugging
634
+ @api_client.config.logger.debug "API called: CardApi#update_client_card_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
635
+ end
636
+ return data, status_code, headers
637
+ end
638
+ end
639
+ end