card-management-sdk 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -15
  3. data/lib/shell_card_management_ap_is/controllers/base_controller.rb +9 -9
  4. data/lib/shell_card_management_ap_is/controllers/card_controller.rb +383 -378
  5. data/lib/shell_card_management_ap_is/controllers/customer_controller.rb +234 -225
  6. data/lib/shell_card_management_ap_is/controllers/o_auth_authorization_controller.rb +9 -9
  7. data/lib/shell_card_management_ap_is/controllers/restriction_controller.rb +256 -248
  8. data/lib/shell_card_management_ap_is/exceptions/error_object_exception.rb +15 -15
  9. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_customer403_error_exception.rb +15 -15
  10. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_payers400_error_exception.rb +15 -15
  11. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_payers404_error_exception.rb +15 -15
  12. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser400_error_exception.rb +15 -15
  13. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser401_error_exception.rb +15 -15
  14. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser403_error_exception.rb +15 -15
  15. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser404_error_exception.rb +15 -15
  16. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser500_error_exception.rb +15 -15
  17. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard401_error_exception.rb +15 -15
  18. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard500_error_exception.rb +15 -15
  19. data/lib/shell_card_management_ap_is/exceptions/o_auth_provider_exception.rb +15 -15
  20. data/lib/shell_card_management_ap_is/models/account_request.rb +11 -11
  21. data/lib/shell_card_management_ap_is/models/account_response_accounts_items.rb +8 -8
  22. data/lib/shell_card_management_ap_is/models/account_restriction_request.rb +3 -4
  23. data/lib/shell_card_management_ap_is/models/audit_request.rb +29 -29
  24. data/lib/shell_card_management_ap_is/models/audit_response_audits_items.rb +41 -41
  25. data/lib/shell_card_management_ap_is/models/auto_renew_card_request_auto_renew_cards_items.rb +12 -1
  26. data/lib/shell_card_management_ap_is/models/auto_renew_card_response_data_items.rb +13 -2
  27. data/lib/shell_card_management_ap_is/models/bundle_restriction.rb +35 -22
  28. data/lib/shell_card_management_ap_is/models/bundle_restriction_update.rb +6 -8
  29. data/lib/shell_card_management_ap_is/models/bundled_restrictions_list.rb +10 -16
  30. data/lib/shell_card_management_ap_is/models/card.rb +25 -6
  31. data/lib/shell_card_management_ap_is/models/card_detail.rb +29 -27
  32. data/lib/shell_card_management_ap_is/models/card_details_response.rb +160 -8
  33. data/lib/shell_card_management_ap_is/models/card_group_request.rb +3 -3
  34. data/lib/shell_card_management_ap_is/models/card_settings.rb +10 -10
  35. data/lib/shell_card_management_ap_is/models/create_bundle_request.rb +2 -3
  36. data/lib/shell_card_management_ap_is/models/customer_detail_response.rb +18 -18
  37. data/lib/shell_card_management_ap_is/models/day_time_restriction.rb +2 -2
  38. data/lib/shell_card_management_ap_is/models/day_time_restrictions.rb +132 -0
  39. data/lib/shell_card_management_ap_is/models/filters.rb +6 -6
  40. data/lib/shell_card_management_ap_is/models/filters1.rb +6 -6
  41. data/lib/shell_card_management_ap_is/models/filters2.rb +9 -3
  42. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_customer_payers400_error1.rb +50 -0
  43. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_customer_payers404_error1.rb +50 -0
  44. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser400_error1.rb +50 -0
  45. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser401_error1.rb +50 -0
  46. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser404_error1.rb +50 -0
  47. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser500_error1.rb +50 -0
  48. data/lib/shell_card_management_ap_is/models/fleetmanagement_v2_restriction_searchcard401_error1.rb +50 -0
  49. data/lib/shell_card_management_ap_is/models/fleetmanagement_v2_restriction_searchcard500_error1.rb +50 -0
  50. data/lib/shell_card_management_ap_is/models/logged_in_user_response.rb +3 -3
  51. data/lib/shell_card_management_ap_is/models/order_card_enquiry.rb +27 -6
  52. data/lib/shell_card_management_ap_is/models/order_card_enquiry_req.rb +9 -3
  53. data/lib/shell_card_management_ap_is/models/payer_details.rb +10 -10
  54. data/lib/shell_card_management_ap_is/models/payer_request.rb +6 -6
  55. data/lib/shell_card_management_ap_is/models/pin_advice_types.rb +4 -4
  56. data/lib/shell_card_management_ap_is/models/pin_reminder_card_details.rb +11 -11
  57. data/lib/shell_card_management_ap_is/models/purchase_category1_all_of0.rb +8 -8
  58. data/lib/shell_card_management_ap_is/models/replace_card_settings.rb +10 -10
  59. data/lib/shell_card_management_ap_is/models/restriction.rb +10 -16
  60. data/lib/shell_card_management_ap_is/models/restriction_cards_list.rb +21 -17
  61. data/lib/shell_card_management_ap_is/models/schedule_card_block_cards_items.rb +39 -27
  62. data/lib/shell_card_management_ap_is/models/search_card.rb +13 -2
  63. data/lib/shell_card_management_ap_is/models/search_request.rb +6 -6
  64. data/lib/shell_card_management_ap_is/models/submitted_card.rb +22 -1
  65. data/lib/shell_card_management_ap_is/models/summary_request.rb +6 -6
  66. data/lib/shell_card_management_ap_is/models/update_bundle_request.rb +7 -7
  67. data/lib/shell_card_management_ap_is/models/update_card.rb +11 -1
  68. data/lib/shell_card_management_ap_is/models/update_card_group_request.rb +3 -3
  69. data/lib/shell_card_management_ap_is/models/update_card_renewal_address.rb +2 -2
  70. data/lib/shell_card_management_ap_is/models/update_card_renewal_address2.rb +2 -2
  71. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request_m_pay_requests_items.rb +1 -1
  72. data/lib/shell_card_management_ap_is/models/usage_restriction.rb +2 -2
  73. data/lib/shell_card_management_ap_is/utilities/file_wrapper.rb +9 -9
  74. data/lib/shell_card_management_ap_is.rb +17 -0
  75. metadata +17 -8
@@ -19,7 +19,7 @@ module ShellCardManagementApIs
19
19
  # back in the response from the request.
20
20
  # @param [FleetmanagementV1UserLoggedinuserRequest] body Optional parameter:
21
21
  # Logged in user request body
22
- # @return [LoggedInUserResponse] response from the API call
22
+ # @return [LoggedInUserResponse] response from the API call.
23
23
  def loggedinuser(apikey,
24
24
  request_id,
25
25
  body: nil)
@@ -35,30 +35,31 @@ module ShellCardManagementApIs
35
35
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
36
36
  .auth(Single.new('BasicAuth')))
37
37
  .response(new_response_handler
38
- .deserializer(APIHelper.method(:custom_type_deserializer))
39
- .deserialize_into(LoggedInUserResponse.method(:from_hash))
40
- .local_error('400',
41
- "The server cannot or will not process the request due to'\
42
- ' something that is perceived to be a client\r\n error (e.g.,'\
43
- ' malformed request syntax, invalid \r\n request message framing,'\
44
- ' or deceptive request routing).",
45
- FleetmanagementV1UserLoggedinuser400ErrorException)
46
- .local_error('401',
47
- 'The request has not been applied because it lacks valid '\
48
- ' authentication credentials for the target resource.',
49
- FleetmanagementV1UserLoggedinuser401ErrorException)
50
- .local_error('403',
51
- 'The server understood the request but refuses to authorize it.',
52
- FleetmanagementV1UserLoggedinuser403ErrorException)
53
- .local_error('404',
54
- 'The origin server did not find a current representation for'\
55
- ' the target resource or is not willing to disclose that one'\
56
- ' exists.',
57
- FleetmanagementV1UserLoggedinuser404ErrorException)
58
- .local_error('500',
59
- 'The server encountered an unexpected condition the prevented it'\
60
- ' from fulfilling the request.',
61
- FleetmanagementV1UserLoggedinuser500ErrorException))
38
+ .deserializer(APIHelper.method(:custom_type_deserializer))
39
+ .deserialize_into(LoggedInUserResponse.method(:from_hash))
40
+ .local_error('400',
41
+ "The server cannot or will not process the request due to'\
42
+ ' something that is perceived to be a client\r\n error (e.g.,'\
43
+ ' malformed request syntax, invalid \r\n request message'\
44
+ ' framing, or deceptive request routing).",
45
+ FleetmanagementV1UserLoggedinuser400ErrorException)
46
+ .local_error('401',
47
+ 'The request has not been applied because it lacks valid '\
48
+ ' authentication credentials for the target resource.',
49
+ FleetmanagementV1UserLoggedinuser401ErrorException)
50
+ .local_error('403',
51
+ 'The server understood the request but refuses to authorize it'\
52
+ '.',
53
+ FleetmanagementV1UserLoggedinuser403ErrorException)
54
+ .local_error('404',
55
+ 'The origin server did not find a current representation for'\
56
+ ' the target resource or is not willing to disclose that one'\
57
+ ' exists.',
58
+ FleetmanagementV1UserLoggedinuser404ErrorException)
59
+ .local_error('500',
60
+ 'The server encountered an unexpected condition the prevented'\
61
+ ' it from fulfilling the request.',
62
+ FleetmanagementV1UserLoggedinuser500ErrorException))
62
63
  .execute
63
64
  end
64
65
 
@@ -78,7 +79,7 @@ module ShellCardManagementApIs
78
79
  # back in the response from the request.
79
80
  # @param [PayerRequest] body Optional parameter: Serach payers request
80
81
  # body
81
- # @return [PayerResponse] response from the API call
82
+ # @return [PayerResponse] response from the API call.
82
83
  def payers(apikey,
83
84
  request_id,
84
85
  body: nil)
@@ -94,30 +95,31 @@ module ShellCardManagementApIs
94
95
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
95
96
  .auth(Single.new('BasicAuth')))
96
97
  .response(new_response_handler
97
- .deserializer(APIHelper.method(:custom_type_deserializer))
98
- .deserialize_into(PayerResponse.method(:from_hash))
99
- .local_error('400',
100
- "The server cannot or will not process the request due to'\
101
- ' something that is perceived to be a client\r\n error (e.g.,'\
102
- ' malformed request syntax, invalid \r\n request message framing,'\
103
- ' or deceptive request routing).",
104
- FleetmanagementV1CustomerPayers400ErrorException)
105
- .local_error('401',
106
- 'The request has not been applied because it lacks valid '\
107
- ' authentication credentials for the target resource.',
108
- APIException)
109
- .local_error('403',
110
- 'The server understood the request but refuses to authorize it.',
111
- APIException)
112
- .local_error('404',
113
- 'The origin server did not find a current representation for'\
114
- ' the target resource or is not willing to disclose that one'\
115
- ' exists.',
116
- FleetmanagementV1CustomerPayers404ErrorException)
117
- .local_error('500',
118
- 'The server encountered an unexpected condition the prevented it'\
119
- ' from fulfilling the request.',
120
- APIException))
98
+ .deserializer(APIHelper.method(:custom_type_deserializer))
99
+ .deserialize_into(PayerResponse.method(:from_hash))
100
+ .local_error('400',
101
+ "The server cannot or will not process the request due to'\
102
+ ' something that is perceived to be a client\r\n error (e.g.,'\
103
+ ' malformed request syntax, invalid \r\n request message'\
104
+ ' framing, or deceptive request routing).",
105
+ FleetmanagementV1CustomerPayers400ErrorException)
106
+ .local_error('401',
107
+ 'The request has not been applied because it lacks valid '\
108
+ ' authentication credentials for the target resource.',
109
+ APIException)
110
+ .local_error('403',
111
+ 'The server understood the request but refuses to authorize it'\
112
+ '.',
113
+ APIException)
114
+ .local_error('404',
115
+ 'The origin server did not find a current representation for'\
116
+ ' the target resource or is not willing to disclose that one'\
117
+ ' exists.',
118
+ FleetmanagementV1CustomerPayers404ErrorException)
119
+ .local_error('500',
120
+ 'The server encountered an unexpected condition the prevented'\
121
+ ' it from fulfilling the request.',
122
+ APIException))
121
123
  .execute
122
124
  end
123
125
 
@@ -131,7 +133,7 @@ module ShellCardManagementApIs
131
133
  # back in the response from the request.
132
134
  # @param [CustomerDetailRequest] body Optional parameter: Customerdetails
133
135
  # request body
134
- # @return [CustomerDetailResponse] response from the API call
136
+ # @return [CustomerDetailResponse] response from the API call.
135
137
  def customer(apikey,
136
138
  request_id,
137
139
  body: nil)
@@ -147,30 +149,31 @@ module ShellCardManagementApIs
147
149
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
148
150
  .auth(Single.new('BasicAuth')))
149
151
  .response(new_response_handler
150
- .deserializer(APIHelper.method(:custom_type_deserializer))
151
- .deserialize_into(CustomerDetailResponse.method(:from_hash))
152
- .local_error('400',
153
- "The server cannot or will not process the request due to'\
154
- ' something that is perceived to be a client\r\n error (e.g.,'\
155
- ' malformed request syntax, invalid \r\n request message framing,'\
156
- ' or deceptive request routing).",
157
- APIException)
158
- .local_error('401',
159
- 'The request has not been applied because it lacks valid '\
160
- ' authentication credentials for the target resource.',
161
- APIException)
162
- .local_error('403',
163
- 'The server understood the request but refuses to authorize it.',
164
- FleetmanagementV1CustomerCustomer403ErrorException)
165
- .local_error('404',
166
- 'The origin server did not find a current representation for'\
167
- ' the target resource or is not willing to disclose that one'\
168
- ' exists.',
169
- APIException)
170
- .local_error('500',
171
- 'The server encountered an unexpected condition the prevented it'\
172
- ' from fulfilling the request.',
173
- APIException))
152
+ .deserializer(APIHelper.method(:custom_type_deserializer))
153
+ .deserialize_into(CustomerDetailResponse.method(:from_hash))
154
+ .local_error('400',
155
+ "The server cannot or will not process the request due to'\
156
+ ' something that is perceived to be a client\r\n error (e.g.,'\
157
+ ' malformed request syntax, invalid \r\n request message'\
158
+ ' framing, or deceptive request routing).",
159
+ APIException)
160
+ .local_error('401',
161
+ 'The request has not been applied because it lacks valid '\
162
+ ' authentication credentials for the target resource.',
163
+ APIException)
164
+ .local_error('403',
165
+ 'The server understood the request but refuses to authorize it'\
166
+ '.',
167
+ FleetmanagementV1CustomerCustomer403ErrorException)
168
+ .local_error('404',
169
+ 'The origin server did not find a current representation for'\
170
+ ' the target resource or is not willing to disclose that one'\
171
+ ' exists.',
172
+ APIException)
173
+ .local_error('500',
174
+ 'The server encountered an unexpected condition the prevented'\
175
+ ' it from fulfilling the request.',
176
+ APIException))
174
177
  .execute
175
178
  end
176
179
 
@@ -183,7 +186,7 @@ module ShellCardManagementApIs
183
186
  # to RFC 4122 standards) for requests and responses. This will be played
184
187
  # back in the response from the request.
185
188
  # @param [AccountRequest] body Optional parameter: Example:
186
- # @return [AccountResponse] response from the API call
189
+ # @return [AccountResponse] response from the API call.
187
190
  def accounts(apikey,
188
191
  request_id,
189
192
  body: nil)
@@ -199,30 +202,31 @@ module ShellCardManagementApIs
199
202
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
200
203
  .auth(Single.new('BasicAuth')))
201
204
  .response(new_response_handler
202
- .deserializer(APIHelper.method(:custom_type_deserializer))
203
- .deserialize_into(AccountResponse.method(:from_hash))
204
- .local_error('400',
205
- "The server cannot or will not process the request due to'\
206
- ' something that is perceived to be a client\r\n error (e.g.,'\
207
- ' malformed request syntax, invalid \r\n request message framing,'\
208
- ' or deceptive request routing).",
209
- APIException)
210
- .local_error('401',
211
- 'The request has not been applied because it lacks valid '\
212
- ' authentication credentials for the target resource.',
213
- APIException)
214
- .local_error('403',
215
- 'The server understood the request but refuses to authorize it.',
216
- APIException)
217
- .local_error('404',
218
- 'The origin server did not find a current representation for'\
219
- ' the target resource or is not willing to disclose that one'\
220
- ' exists.',
221
- APIException)
222
- .local_error('500',
223
- 'The server encountered an unexpected condition the prevented it'\
224
- ' from fulfilling the request.',
225
- APIException))
205
+ .deserializer(APIHelper.method(:custom_type_deserializer))
206
+ .deserialize_into(AccountResponse.method(:from_hash))
207
+ .local_error('400',
208
+ "The server cannot or will not process the request due to'\
209
+ ' something that is perceived to be a client\r\n error (e.g.,'\
210
+ ' malformed request syntax, invalid \r\n request message'\
211
+ ' framing, or deceptive request routing).",
212
+ APIException)
213
+ .local_error('401',
214
+ 'The request has not been applied because it lacks valid '\
215
+ ' authentication credentials for the target resource.',
216
+ APIException)
217
+ .local_error('403',
218
+ 'The server understood the request but refuses to authorize it'\
219
+ '.',
220
+ APIException)
221
+ .local_error('404',
222
+ 'The origin server did not find a current representation for'\
223
+ ' the target resource or is not willing to disclose that one'\
224
+ ' exists.',
225
+ APIException)
226
+ .local_error('500',
227
+ 'The server encountered an unexpected condition the prevented'\
228
+ ' it from fulfilling the request.',
229
+ APIException))
226
230
  .execute
227
231
  end
228
232
 
@@ -235,7 +239,7 @@ module ShellCardManagementApIs
235
239
  # back in the response from the request.
236
240
  # @param [CardTypeRequest] body Optional parameter: Get CardType Request
237
241
  # Body
238
- # @return [CardTypeResponse] response from the API call
242
+ # @return [CardTypeResponse] response from the API call.
239
243
  def card_type(apikey,
240
244
  request_id,
241
245
  body: nil)
@@ -251,30 +255,31 @@ module ShellCardManagementApIs
251
255
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
252
256
  .auth(Single.new('BasicAuth')))
253
257
  .response(new_response_handler
254
- .deserializer(APIHelper.method(:custom_type_deserializer))
255
- .deserialize_into(CardTypeResponse.method(:from_hash))
256
- .local_error('400',
257
- "The server cannot or will not process the request due to'\
258
- ' something that is perceived to be a client\r\n error (e.g.,'\
259
- ' malformed request syntax, invalid \r\n request message framing,'\
260
- ' or deceptive request routing).",
261
- APIException)
262
- .local_error('401',
263
- 'The request has not been applied because it lacks valid '\
264
- ' authentication credentials for the target resource.',
265
- APIException)
266
- .local_error('403',
267
- 'The server understood the request but refuses to authorize it.',
268
- APIException)
269
- .local_error('404',
270
- 'The origin server did not find a current representation for'\
271
- ' the target resource or is not willing to disclose that one'\
272
- ' exists.',
273
- APIException)
274
- .local_error('500',
275
- 'The server encountered an unexpected condition the prevented it'\
276
- ' from fulfilling the request.',
277
- APIException))
258
+ .deserializer(APIHelper.method(:custom_type_deserializer))
259
+ .deserialize_into(CardTypeResponse.method(:from_hash))
260
+ .local_error('400',
261
+ "The server cannot or will not process the request due to'\
262
+ ' something that is perceived to be a client\r\n error (e.g.,'\
263
+ ' malformed request syntax, invalid \r\n request message'\
264
+ ' framing, or deceptive request routing).",
265
+ APIException)
266
+ .local_error('401',
267
+ 'The request has not been applied because it lacks valid '\
268
+ ' authentication credentials for the target resource.',
269
+ APIException)
270
+ .local_error('403',
271
+ 'The server understood the request but refuses to authorize it'\
272
+ '.',
273
+ APIException)
274
+ .local_error('404',
275
+ 'The origin server did not find a current representation for'\
276
+ ' the target resource or is not willing to disclose that one'\
277
+ ' exists.',
278
+ APIException)
279
+ .local_error('500',
280
+ 'The server encountered an unexpected condition the prevented'\
281
+ ' it from fulfilling the request.',
282
+ APIException))
278
283
  .execute
279
284
  end
280
285
 
@@ -294,7 +299,7 @@ module ShellCardManagementApIs
294
299
  # to RFC 4122 standards) for requests and responses. This will be played
295
300
  # back in the response from the request.
296
301
  # @param [CardGroupRequest] body Optional parameter: Request Body
297
- # @return [CardGroupResponse] response from the API call
302
+ # @return [CardGroupResponse] response from the API call.
298
303
  def cardgroups(apikey,
299
304
  request_id,
300
305
  body: nil)
@@ -310,30 +315,31 @@ module ShellCardManagementApIs
310
315
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
311
316
  .auth(Single.new('BasicAuth')))
312
317
  .response(new_response_handler
313
- .deserializer(APIHelper.method(:custom_type_deserializer))
314
- .deserialize_into(CardGroupResponse.method(:from_hash))
315
- .local_error('400',
316
- "The server cannot or will not process the request due to'\
317
- ' something that is perceived to be a client\r\n error (e.g.,'\
318
- ' malformed request syntax, invalid \r\n request message framing,'\
319
- ' or deceptive request routing).",
320
- APIException)
321
- .local_error('401',
322
- 'The request has not been applied because it lacks valid '\
323
- ' authentication credentials for the target resource.',
324
- APIException)
325
- .local_error('403',
326
- 'The server understood the request but refuses to authorize it.',
327
- APIException)
328
- .local_error('404',
329
- 'The origin server did not find a current representation for'\
330
- ' the target resource or is not willing to disclose that one'\
331
- ' exists.',
332
- APIException)
333
- .local_error('500',
334
- 'The server encountered an unexpected condition the prevented it'\
335
- ' from fulfilling the request.',
336
- APIException))
318
+ .deserializer(APIHelper.method(:custom_type_deserializer))
319
+ .deserialize_into(CardGroupResponse.method(:from_hash))
320
+ .local_error('400',
321
+ "The server cannot or will not process the request due to'\
322
+ ' something that is perceived to be a client\r\n error (e.g.,'\
323
+ ' malformed request syntax, invalid \r\n request message'\
324
+ ' framing, or deceptive request routing).",
325
+ APIException)
326
+ .local_error('401',
327
+ 'The request has not been applied because it lacks valid '\
328
+ ' authentication credentials for the target resource.',
329
+ APIException)
330
+ .local_error('403',
331
+ 'The server understood the request but refuses to authorize it'\
332
+ '.',
333
+ APIException)
334
+ .local_error('404',
335
+ 'The origin server did not find a current representation for'\
336
+ ' the target resource or is not willing to disclose that one'\
337
+ ' exists.',
338
+ APIException)
339
+ .local_error('500',
340
+ 'The server encountered an unexpected condition the prevented'\
341
+ ' it from fulfilling the request.',
342
+ APIException))
337
343
  .execute
338
344
  end
339
345
 
@@ -362,7 +368,7 @@ module ShellCardManagementApIs
362
368
  # to RFC 4122 standards) for requests and responses. This will be played
363
369
  # back in the response from the request.
364
370
  # @param [AuditRequest] body Optional parameter: request body
365
- # @return [AuditResponse] response from the API call
371
+ # @return [AuditResponse] response from the API call.
366
372
  def auditreport(apikey,
367
373
  request_id,
368
374
  body: nil)
@@ -378,30 +384,31 @@ module ShellCardManagementApIs
378
384
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
379
385
  .auth(Single.new('BasicAuth')))
380
386
  .response(new_response_handler
381
- .deserializer(APIHelper.method(:custom_type_deserializer))
382
- .deserialize_into(AuditResponse.method(:from_hash))
383
- .local_error('400',
384
- "The server cannot or will not process the request due to'\
385
- ' something that is perceived to be a client\r\n error (e.g.,'\
386
- ' malformed request syntax, invalid \r\n request message framing,'\
387
- ' or deceptive request routing).",
388
- APIException)
389
- .local_error('401',
390
- 'The request has not been applied because it lacks valid '\
391
- ' authentication credentials for the target resource.',
392
- APIException)
393
- .local_error('403',
394
- 'The server understood the request but refuses to authorize it.',
395
- APIException)
396
- .local_error('404',
397
- 'The origin server did not find a current representation for'\
398
- ' the target resource or is not willing to disclose that one'\
399
- ' exists.',
400
- APIException)
401
- .local_error('500',
402
- 'The server encountered an unexpected condition the prevented it'\
403
- ' from fulfilling the request.',
404
- APIException))
387
+ .deserializer(APIHelper.method(:custom_type_deserializer))
388
+ .deserialize_into(AuditResponse.method(:from_hash))
389
+ .local_error('400',
390
+ "The server cannot or will not process the request due to'\
391
+ ' something that is perceived to be a client\r\n error (e.g.,'\
392
+ ' malformed request syntax, invalid \r\n request message'\
393
+ ' framing, or deceptive request routing).",
394
+ APIException)
395
+ .local_error('401',
396
+ 'The request has not been applied because it lacks valid '\
397
+ ' authentication credentials for the target resource.',
398
+ APIException)
399
+ .local_error('403',
400
+ 'The server understood the request but refuses to authorize it'\
401
+ '.',
402
+ APIException)
403
+ .local_error('404',
404
+ 'The origin server did not find a current representation for'\
405
+ ' the target resource or is not willing to disclose that one'\
406
+ ' exists.',
407
+ APIException)
408
+ .local_error('500',
409
+ 'The server encountered an unexpected condition the prevented'\
410
+ ' it from fulfilling the request.',
411
+ APIException))
405
412
  .execute
406
413
  end
407
414
 
@@ -424,7 +431,7 @@ module ShellCardManagementApIs
424
431
  # back in the response from the request.
425
432
  # @param [CreateCardGroupRequest] body Optional parameter: CreateCardGroup
426
433
  # request body
427
- # @return [CreateCardGroupResponse] response from the API call
434
+ # @return [CreateCardGroupResponse] response from the API call.
428
435
  def createcardgroup(apikey,
429
436
  request_id,
430
437
  body: nil)
@@ -440,30 +447,31 @@ module ShellCardManagementApIs
440
447
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
441
448
  .auth(Single.new('BasicAuth')))
442
449
  .response(new_response_handler
443
- .deserializer(APIHelper.method(:custom_type_deserializer))
444
- .deserialize_into(CreateCardGroupResponse.method(:from_hash))
445
- .local_error('400',
446
- "The server cannot or will not process the request due to'\
447
- ' something that is perceived to be a client\r\n error (e.g.,'\
448
- ' malformed request syntax, invalid \r\n request message framing,'\
449
- ' or deceptive request routing).",
450
- APIException)
451
- .local_error('401',
452
- 'The request has not been applied because it lacks valid '\
453
- ' authentication credentials for the target resource.',
454
- APIException)
455
- .local_error('403',
456
- 'The server understood the request but refuses to authorize it.',
457
- APIException)
458
- .local_error('404',
459
- 'The origin server did not find a current representation for'\
460
- ' the target resource or is not willing to disclose that one'\
461
- ' exists.',
462
- APIException)
463
- .local_error('500',
464
- 'The server encountered an unexpected condition the prevented it'\
465
- ' from fulfilling the request.',
466
- APIException))
450
+ .deserializer(APIHelper.method(:custom_type_deserializer))
451
+ .deserialize_into(CreateCardGroupResponse.method(:from_hash))
452
+ .local_error('400',
453
+ "The server cannot or will not process the request due to'\
454
+ ' something that is perceived to be a client\r\n error (e.g.,'\
455
+ ' malformed request syntax, invalid \r\n request message'\
456
+ ' framing, or deceptive request routing).",
457
+ APIException)
458
+ .local_error('401',
459
+ 'The request has not been applied because it lacks valid '\
460
+ ' authentication credentials for the target resource.',
461
+ APIException)
462
+ .local_error('403',
463
+ 'The server understood the request but refuses to authorize it'\
464
+ '.',
465
+ APIException)
466
+ .local_error('404',
467
+ 'The origin server did not find a current representation for'\
468
+ ' the target resource or is not willing to disclose that one'\
469
+ ' exists.',
470
+ APIException)
471
+ .local_error('500',
472
+ 'The server encountered an unexpected condition the prevented'\
473
+ ' it from fulfilling the request.',
474
+ APIException))
467
475
  .execute
468
476
  end
469
477
 
@@ -482,7 +490,7 @@ module ShellCardManagementApIs
482
490
  # back in the response from the request.
483
491
  # @param [UpdateCardGroupRequest] body Optional parameter: request body of
484
492
  # customer card group
485
- # @return [UpdateCardGroupResponse] response from the API call
493
+ # @return [UpdateCardGroupResponse] response from the API call.
486
494
  def updatecardgroup(apikey,
487
495
  request_id,
488
496
  body: nil)
@@ -498,30 +506,31 @@ module ShellCardManagementApIs
498
506
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
499
507
  .auth(Single.new('BasicAuth')))
500
508
  .response(new_response_handler
501
- .deserializer(APIHelper.method(:custom_type_deserializer))
502
- .deserialize_into(UpdateCardGroupResponse.method(:from_hash))
503
- .local_error('400',
504
- "The server cannot or will not process the request due to'\
505
- ' something that is perceived to be a client\r\n error (e.g.,'\
506
- ' malformed request syntax, invalid \r\n request message framing,'\
507
- ' or deceptive request routing).",
508
- APIException)
509
- .local_error('401',
510
- 'The request has not been applied because it lacks valid '\
511
- ' authentication credentials for the target resource.',
512
- APIException)
513
- .local_error('403',
514
- 'The server understood the request but refuses to authorize it.',
515
- APIException)
516
- .local_error('404',
517
- 'The origin server did not find a current representation for'\
518
- ' the target resource or is not willing to disclose that one'\
519
- ' exists.',
520
- APIException)
521
- .local_error('500',
522
- 'The server encountered an unexpected condition the prevented it'\
523
- ' from fulfilling the request.',
524
- APIException))
509
+ .deserializer(APIHelper.method(:custom_type_deserializer))
510
+ .deserialize_into(UpdateCardGroupResponse.method(:from_hash))
511
+ .local_error('400',
512
+ "The server cannot or will not process the request due to'\
513
+ ' something that is perceived to be a client\r\n error (e.g.,'\
514
+ ' malformed request syntax, invalid \r\n request message'\
515
+ ' framing, or deceptive request routing).",
516
+ APIException)
517
+ .local_error('401',
518
+ 'The request has not been applied because it lacks valid '\
519
+ ' authentication credentials for the target resource.',
520
+ APIException)
521
+ .local_error('403',
522
+ 'The server understood the request but refuses to authorize it'\
523
+ '.',
524
+ APIException)
525
+ .local_error('404',
526
+ 'The origin server did not find a current representation for'\
527
+ ' the target resource or is not willing to disclose that one'\
528
+ ' exists.',
529
+ APIException)
530
+ .local_error('500',
531
+ 'The server encountered an unexpected condition the prevented'\
532
+ ' it from fulfilling the request.',
533
+ APIException))
525
534
  .execute
526
535
  end
527
536
  end