card-management-sdk 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -16
  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/base_model.rb +76 -28
  28. data/lib/shell_card_management_ap_is/models/bundle_restriction.rb +35 -22
  29. data/lib/shell_card_management_ap_is/models/bundle_restriction_update.rb +6 -8
  30. data/lib/shell_card_management_ap_is/models/bundled_restrictions_list.rb +10 -16
  31. data/lib/shell_card_management_ap_is/models/card.rb +25 -6
  32. data/lib/shell_card_management_ap_is/models/card_detail.rb +24 -24
  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/fleetmanagement_v1_customer_payers400_error1.rb +50 -0
  42. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_customer_payers404_error1.rb +50 -0
  43. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser400_error1.rb +50 -0
  44. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser401_error1.rb +50 -0
  45. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser404_error1.rb +50 -0
  46. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser500_error1.rb +50 -0
  47. data/lib/shell_card_management_ap_is/models/fleetmanagement_v2_restriction_searchcard401_error1.rb +50 -0
  48. data/lib/shell_card_management_ap_is/models/fleetmanagement_v2_restriction_searchcard500_error1.rb +50 -0
  49. data/lib/shell_card_management_ap_is/models/logged_in_user_response.rb +3 -3
  50. data/lib/shell_card_management_ap_is/models/order_card_enquiry.rb +27 -6
  51. data/lib/shell_card_management_ap_is/models/payer_details.rb +10 -10
  52. data/lib/shell_card_management_ap_is/models/payer_request.rb +6 -6
  53. data/lib/shell_card_management_ap_is/models/pin_advice_types.rb +4 -4
  54. data/lib/shell_card_management_ap_is/models/pin_reminder_card_details.rb +11 -11
  55. data/lib/shell_card_management_ap_is/models/purchase_category1_all_of0.rb +8 -8
  56. data/lib/shell_card_management_ap_is/models/replace_card_settings.rb +10 -10
  57. data/lib/shell_card_management_ap_is/models/restriction.rb +10 -16
  58. data/lib/shell_card_management_ap_is/models/restriction_cards_list.rb +21 -17
  59. data/lib/shell_card_management_ap_is/models/schedule_card_block_cards_items.rb +39 -27
  60. data/lib/shell_card_management_ap_is/models/search_card.rb +13 -2
  61. data/lib/shell_card_management_ap_is/models/search_request.rb +6 -6
  62. data/lib/shell_card_management_ap_is/models/submitted_card.rb +22 -1
  63. data/lib/shell_card_management_ap_is/models/summary_request.rb +6 -6
  64. data/lib/shell_card_management_ap_is/models/update_bundle_request.rb +7 -7
  65. data/lib/shell_card_management_ap_is/models/update_card.rb +11 -60
  66. data/lib/shell_card_management_ap_is/models/update_card_group_request.rb +3 -3
  67. data/lib/shell_card_management_ap_is/models/update_card_renewal_address.rb +2 -2
  68. data/lib/shell_card_management_ap_is/models/update_card_renewal_address2.rb +2 -2
  69. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request_m_pay_requests_items.rb +1 -1
  70. data/lib/shell_card_management_ap_is/models/usage_restriction.rb +2 -2
  71. data/lib/shell_card_management_ap_is/utilities/file_wrapper.rb +9 -9
  72. data/lib/shell_card_management_ap_is.rb +17 -0
  73. metadata +17 -8
@@ -11,7 +11,6 @@ module ShellCardManagementApIs
11
11
  # #### Supported operations
12
12
  # * Search by list of cards or bundle
13
13
  # * Include card bundle details (optional)
14
- #
15
14
  # @param [String] apikey Required parameter: This is the API key of the
16
15
  # specific environment which needs to be passed by the client.
17
16
  # @param [String] request_id Required parameter: Mandatory UUID (according
@@ -19,7 +18,7 @@ module ShellCardManagementApIs
19
18
  # back in the response from the request.
20
19
  # @param [SearchCardRestrictionReq] body Optional parameter: Restriction
21
20
  # search card request body
22
- # @return [SearchCardRestrictionRes] response from the API call
21
+ # @return [SearchCardRestrictionRes] response from the API call.
23
22
  def search_card_restriction(apikey,
24
23
  request_id,
25
24
  body: nil)
@@ -35,30 +34,31 @@ module ShellCardManagementApIs
35
34
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
36
35
  .auth(Single.new('BasicAuth')))
37
36
  .response(new_response_handler
38
- .deserializer(APIHelper.method(:custom_type_deserializer))
39
- .deserialize_into(SearchCardRestrictionRes.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
- APIException)
46
- .local_error('401',
47
- 'The request has not been applied because it lacks valid '\
48
- ' authentication credentials for the target resource.',
49
- FleetmanagementV2RestrictionSearchcard401ErrorException)
50
- .local_error('403',
51
- 'The server understood the request but refuses to authorize it.',
52
- APIException)
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
- APIException)
58
- .local_error('500',
59
- 'The server encountered an unexpected condition the prevented it'\
60
- ' from fulfilling the request.',
61
- FleetmanagementV2RestrictionSearchcard500ErrorException))
37
+ .deserializer(APIHelper.method(:custom_type_deserializer))
38
+ .deserialize_into(SearchCardRestrictionRes.method(:from_hash))
39
+ .local_error('400',
40
+ "The server cannot or will not process the request due to'\
41
+ ' something that is perceived to be a client\r\n error (e.g.,'\
42
+ ' malformed request syntax, invalid \r\n request message'\
43
+ ' framing, or deceptive request routing).",
44
+ APIException)
45
+ .local_error('401',
46
+ 'The request has not been applied because it lacks valid '\
47
+ ' authentication credentials for the target resource.',
48
+ FleetmanagementV2RestrictionSearchcard401ErrorException)
49
+ .local_error('403',
50
+ 'The server understood the request but refuses to authorize it'\
51
+ '.',
52
+ APIException)
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
+ APIException)
58
+ .local_error('500',
59
+ 'The server encountered an unexpected condition the prevented'\
60
+ ' it from fulfilling the request.',
61
+ FleetmanagementV2RestrictionSearchcard500ErrorException))
62
62
  .execute
63
63
  end
64
64
 
@@ -81,30 +81,30 @@ module ShellCardManagementApIs
81
81
  # restrictions on existing cards. (For up to 3 cards in a single call).
82
82
  # All restrictions of the cards are submitted and executed after successful
83
83
  # below condition.
84
- # • The card exists.
85
- # • Day time restriction cannot be set to restrict the use of a card on all
86
- # days of the week i.e., the values for all the days in the restriction
84
+ # • The card exists.
85
+ # • Day time restriction cannot be set to restrict the use of a card on
86
+ # all days of the week i.e., the values for all the days in the restriction
87
87
  # cannot be set to false.
88
- # • Either of the usage, daytime, location or product restriction ‘Reset’ is
89
- # set to ‘True’ or applied on the card.
90
- # • All the limits in the usage restriction profile for a card is not set to
91
- # ‘0’/null.
92
- # • If IsVelocityCeiling is ‘true’, API will validate below condition:
88
+ # • Either of the usage, daytime, location or product restriction ‘Reset’
89
+ # is set to ‘True’ or applied on the card.
90
+ # • All the limits in the usage restriction profile for a card is not set
91
+ # to ‘0’/null.
92
+ # • If IsVelocityCeiling is ‘true’, API will validate below condition:
93
93
  # Usage restrictions for a card are lower than Customer Card Type level
94
94
  # limits, if there are no customer level overrides available then lower than
95
95
  # OU card type limits.
96
- # • In usage restrictions, the limits per transaction should be less than or
97
- # equal to Daily, Daily should be less than or equal to Weekly, Weekly
96
+ # • In usage restrictions, the limits per transaction should be less than
97
+ # or equal to Daily, Daily should be less than or equal to Weekly, Weekly
98
98
  # should be less than or equal to Monthly, Monthly should be less than or
99
99
  # equal to Yearly (Annually). Exception being null/blank will be skipped.
100
100
  # i.e., Daily value should be less than equal to Monthly value if Weekly
101
101
  # value is null/blank. Lifetime limit is not considered for usage
102
102
  # restrictions limits validation.
103
- # • Apply the card type limit to Gateway when a value is NULL in the input.
104
- # However, if the card type limit is NULL for the same field, then no limit
105
- # will be applied in Gateway.
106
- # • If ‘SetDefaultOnVelocityUpdate’ is ‘true’ then the operation will apply
107
- # customer cardtype or OU level velocity limits on existing cards when
103
+ # • Apply the card type limit to Gateway when a value is NULL in the
104
+ # input. However, if the card type limit is NULL for the same field, then no
105
+ # limit will be applied in Gateway.
106
+ # • If ‘SetDefaultOnVelocityUpdate’ is ‘true’ then the operation will
107
+ # apply customer cardtype or OU level velocity limits on existing cards when
108
108
  # restrictions are modified without providing custom values for all fields.
109
109
  # @param [String] apikey Required parameter: This is the API key of the
110
110
  # specific environment which needs to be passed by the client.
@@ -113,7 +113,7 @@ module ShellCardManagementApIs
113
113
  # back in the response from the request.
114
114
  # @param [CardRestrictionReq] body Optional parameter: Card Restriction
115
115
  # request body
116
- # @return [CardRestrictionResponse] response from the API call
116
+ # @return [CardRestrictionResponse] response from the API call.
117
117
  def apply_restriction(apikey,
118
118
  request_id,
119
119
  body: nil)
@@ -129,30 +129,31 @@ module ShellCardManagementApIs
129
129
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
130
130
  .auth(Single.new('BasicAuth')))
131
131
  .response(new_response_handler
132
- .deserializer(APIHelper.method(:custom_type_deserializer))
133
- .deserialize_into(CardRestrictionResponse.method(:from_hash))
134
- .local_error('400',
135
- "The server cannot or will not process the request due to'\
136
- ' something that is perceived to be a client\r\n error (e.g.,'\
137
- ' malformed request syntax, invalid \r\n request message framing,'\
138
- ' or deceptive request routing).",
139
- APIException)
140
- .local_error('401',
141
- 'The request has not been applied because it lacks valid '\
142
- ' authentication credentials for the target resource.',
143
- APIException)
144
- .local_error('403',
145
- 'The server understood the request but refuses to authorize it.',
146
- APIException)
147
- .local_error('404',
148
- 'The origin server did not find a current representation for'\
149
- ' the target resource or is not willing to disclose that one'\
150
- ' exists.',
151
- APIException)
152
- .local_error('500',
153
- 'The server encountered an unexpected condition the prevented it'\
154
- ' from fulfilling the request.',
155
- APIException))
132
+ .deserializer(APIHelper.method(:custom_type_deserializer))
133
+ .deserialize_into(CardRestrictionResponse.method(:from_hash))
134
+ .local_error('400',
135
+ "The server cannot or will not process the request due to'\
136
+ ' something that is perceived to be a client\r\n error (e.g.,'\
137
+ ' malformed request syntax, invalid \r\n request message'\
138
+ ' framing, or deceptive request routing).",
139
+ APIException)
140
+ .local_error('401',
141
+ 'The request has not been applied because it lacks valid '\
142
+ ' authentication credentials for the target resource.',
143
+ APIException)
144
+ .local_error('403',
145
+ 'The server understood the request but refuses to authorize it'\
146
+ '.',
147
+ APIException)
148
+ .local_error('404',
149
+ 'The origin server did not find a current representation for'\
150
+ ' the target resource or is not willing to disclose that one'\
151
+ ' exists.',
152
+ APIException)
153
+ .local_error('500',
154
+ 'The server encountered an unexpected condition the prevented'\
155
+ ' it from fulfilling the request.',
156
+ APIException))
156
157
  .execute
157
158
  end
158
159
 
@@ -192,7 +193,7 @@ module ShellCardManagementApIs
192
193
  # back in the response from the request.
193
194
  # @param [CreateBundleRequest] body Optional parameter: CreateBundle request
194
195
  # body
195
- # @return [CreateBundleResponse] response from the API call
196
+ # @return [CreateBundleResponse] response from the API call.
196
197
  def create_bundle(apikey,
197
198
  request_id,
198
199
  body: nil)
@@ -208,30 +209,31 @@ module ShellCardManagementApIs
208
209
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
209
210
  .auth(Single.new('BasicAuth')))
210
211
  .response(new_response_handler
211
- .deserializer(APIHelper.method(:custom_type_deserializer))
212
- .deserialize_into(CreateBundleResponse.method(:from_hash))
213
- .local_error('400',
214
- "The server cannot or will not process the request due to'\
215
- ' something that is perceived to be a client\r\n error (e.g.,'\
216
- ' malformed request syntax, invalid \r\n request message framing,'\
217
- ' or deceptive request routing).",
218
- APIException)
219
- .local_error('401',
220
- 'The request has not been applied because it lacks valid '\
221
- ' authentication credentials for the target resource.',
222
- APIException)
223
- .local_error('403',
224
- 'The server understood the request but refuses to authorize it.',
225
- APIException)
226
- .local_error('404',
227
- 'The origin server did not find a current representation for'\
228
- ' the target resource or is not willing to disclose that one'\
229
- ' exists.',
230
- APIException)
231
- .local_error('500',
232
- 'The server encountered an unexpected condition the prevented it'\
233
- ' from fulfilling the request.',
234
- APIException))
212
+ .deserializer(APIHelper.method(:custom_type_deserializer))
213
+ .deserialize_into(CreateBundleResponse.method(:from_hash))
214
+ .local_error('400',
215
+ "The server cannot or will not process the request due to'\
216
+ ' something that is perceived to be a client\r\n error (e.g.,'\
217
+ ' malformed request syntax, invalid \r\n request message'\
218
+ ' framing, or deceptive request routing).",
219
+ APIException)
220
+ .local_error('401',
221
+ 'The request has not been applied because it lacks valid '\
222
+ ' authentication credentials for the target resource.',
223
+ APIException)
224
+ .local_error('403',
225
+ 'The server understood the request but refuses to authorize it'\
226
+ '.',
227
+ APIException)
228
+ .local_error('404',
229
+ 'The origin server did not find a current representation for'\
230
+ ' the target resource or is not willing to disclose that one'\
231
+ ' exists.',
232
+ APIException)
233
+ .local_error('500',
234
+ 'The server encountered an unexpected condition the prevented'\
235
+ ' it from fulfilling the request.',
236
+ APIException))
235
237
  .execute
236
238
  end
237
239
 
@@ -279,7 +281,7 @@ module ShellCardManagementApIs
279
281
  # back in the response from the request.
280
282
  # @param [UpdateBundleRequest] body Optional parameter: Update Bundle
281
283
  # request body
282
- # @return [UpdateBundleResponse] response from the API call
284
+ # @return [UpdateBundleResponse] response from the API call.
283
285
  def update_bundle(apikey,
284
286
  request_id,
285
287
  body: nil)
@@ -295,30 +297,31 @@ module ShellCardManagementApIs
295
297
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
296
298
  .auth(Single.new('BasicAuth')))
297
299
  .response(new_response_handler
298
- .deserializer(APIHelper.method(:custom_type_deserializer))
299
- .deserialize_into(UpdateBundleResponse.method(:from_hash))
300
- .local_error('400',
301
- "The server cannot or will not process the request due to'\
302
- ' something that is perceived to be a client\r\n error (e.g.,'\
303
- ' malformed request syntax, invalid \r\n request message framing,'\
304
- ' or deceptive request routing).",
305
- APIException)
306
- .local_error('401',
307
- 'The request has not been applied because it lacks valid '\
308
- ' authentication credentials for the target resource.',
309
- APIException)
310
- .local_error('403',
311
- 'The server understood the request but refuses to authorize it.',
312
- APIException)
313
- .local_error('404',
314
- 'The origin server did not find a current representation for'\
315
- ' the target resource or is not willing to disclose that one'\
316
- ' exists.',
317
- APIException)
318
- .local_error('500',
319
- 'The server encountered an unexpected condition the prevented it'\
320
- ' from fulfilling the request.',
321
- APIException))
300
+ .deserializer(APIHelper.method(:custom_type_deserializer))
301
+ .deserialize_into(UpdateBundleResponse.method(:from_hash))
302
+ .local_error('400',
303
+ "The server cannot or will not process the request due to'\
304
+ ' something that is perceived to be a client\r\n error (e.g.,'\
305
+ ' malformed request syntax, invalid \r\n request message'\
306
+ ' framing, or deceptive request routing).",
307
+ APIException)
308
+ .local_error('401',
309
+ 'The request has not been applied because it lacks valid '\
310
+ ' authentication credentials for the target resource.',
311
+ APIException)
312
+ .local_error('403',
313
+ 'The server understood the request but refuses to authorize it'\
314
+ '.',
315
+ APIException)
316
+ .local_error('404',
317
+ 'The origin server did not find a current representation for'\
318
+ ' the target resource or is not willing to disclose that one'\
319
+ ' exists.',
320
+ APIException)
321
+ .local_error('500',
322
+ 'The server encountered an unexpected condition the prevented'\
323
+ ' it from fulfilling the request.',
324
+ APIException))
322
325
  .execute
323
326
  end
324
327
 
@@ -342,7 +345,7 @@ module ShellCardManagementApIs
342
345
  # back in the response from the request.
343
346
  # @param [DeleteBundleRequest] body Optional parameter: Update Bundle
344
347
  # request body
345
- # @return [DeleteBundleResponse] response from the API call
348
+ # @return [DeleteBundleResponse] response from the API call.
346
349
  def delete_bundle(apikey,
347
350
  request_id,
348
351
  body: nil)
@@ -358,30 +361,31 @@ module ShellCardManagementApIs
358
361
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
359
362
  .auth(Single.new('BasicAuth')))
360
363
  .response(new_response_handler
361
- .deserializer(APIHelper.method(:custom_type_deserializer))
362
- .deserialize_into(DeleteBundleResponse.method(:from_hash))
363
- .local_error('400',
364
- "The server cannot or will not process the request due to'\
365
- ' something that is perceived to be a client\r\n error (e.g.,'\
366
- ' malformed request syntax, invalid \r\n request message framing,'\
367
- ' or deceptive request routing).",
368
- APIException)
369
- .local_error('401',
370
- 'The request has not been applied because it lacks valid '\
371
- ' authentication credentials for the target resource.',
372
- APIException)
373
- .local_error('403',
374
- 'The server understood the request but refuses to authorize it.',
375
- APIException)
376
- .local_error('404',
377
- 'The origin server did not find a current representation for'\
378
- ' the target resource or is not willing to disclose that one'\
379
- ' exists.',
380
- APIException)
381
- .local_error('500',
382
- 'The server encountered an unexpected condition the prevented it'\
383
- ' from fulfilling the request.',
384
- APIException))
364
+ .deserializer(APIHelper.method(:custom_type_deserializer))
365
+ .deserialize_into(DeleteBundleResponse.method(:from_hash))
366
+ .local_error('400',
367
+ "The server cannot or will not process the request due to'\
368
+ ' something that is perceived to be a client\r\n error (e.g.,'\
369
+ ' malformed request syntax, invalid \r\n request message'\
370
+ ' framing, or deceptive request routing).",
371
+ APIException)
372
+ .local_error('401',
373
+ 'The request has not been applied because it lacks valid '\
374
+ ' authentication credentials for the target resource.',
375
+ APIException)
376
+ .local_error('403',
377
+ 'The server understood the request but refuses to authorize it'\
378
+ '.',
379
+ APIException)
380
+ .local_error('404',
381
+ 'The origin server did not find a current representation for'\
382
+ ' the target resource or is not willing to disclose that one'\
383
+ ' exists.',
384
+ APIException)
385
+ .local_error('500',
386
+ 'The server encountered an unexpected condition the prevented'\
387
+ ' it from fulfilling the request.',
388
+ APIException))
385
389
  .execute
386
390
  end
387
391
 
@@ -403,7 +407,7 @@ module ShellCardManagementApIs
403
407
  # back in the response from the request.
404
408
  # @param [SummaryofbundlerRequest] body Optional parameter: Summary of
405
409
  # Bundle request body
406
- # @return [SummaryofbundleResponse] response from the API call
410
+ # @return [SummaryofbundleResponse] response from the API call.
407
411
  def summaryofbundles(apikey,
408
412
  request_id,
409
413
  body: nil)
@@ -419,43 +423,44 @@ module ShellCardManagementApIs
419
423
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
420
424
  .auth(Single.new('BasicAuth')))
421
425
  .response(new_response_handler
422
- .deserializer(APIHelper.method(:custom_type_deserializer))
423
- .deserialize_into(SummaryofbundleResponse.method(:from_hash))
424
- .local_error('400',
425
- "The server cannot or will not process the request due to'\
426
- ' something that is perceived to be a client\r\n error (e.g.,'\
427
- ' malformed request syntax, invalid \r\n request message framing,'\
428
- ' or deceptive request routing).",
429
- APIException)
430
- .local_error('401',
431
- 'The request has not been applied because it lacks valid '\
432
- ' authentication credentials for the target resource.',
433
- APIException)
434
- .local_error('403',
435
- 'The server understood the request but refuses to authorize it.',
436
- APIException)
437
- .local_error('404',
438
- 'The origin server did not find a current representation for'\
439
- ' the target resource or is not willing to disclose that one'\
440
- ' exists.',
441
- APIException)
442
- .local_error('500',
443
- 'The server encountered an unexpected condition the prevented it'\
444
- ' from fulfilling the request.',
445
- APIException))
426
+ .deserializer(APIHelper.method(:custom_type_deserializer))
427
+ .deserialize_into(SummaryofbundleResponse.method(:from_hash))
428
+ .local_error('400',
429
+ "The server cannot or will not process the request due to'\
430
+ ' something that is perceived to be a client\r\n error (e.g.,'\
431
+ ' malformed request syntax, invalid \r\n request message'\
432
+ ' framing, or deceptive request routing).",
433
+ APIException)
434
+ .local_error('401',
435
+ 'The request has not been applied because it lacks valid '\
436
+ ' authentication credentials for the target resource.',
437
+ APIException)
438
+ .local_error('403',
439
+ 'The server understood the request but refuses to authorize it'\
440
+ '.',
441
+ APIException)
442
+ .local_error('404',
443
+ 'The origin server did not find a current representation for'\
444
+ ' the target resource or is not willing to disclose that one'\
445
+ ' exists.',
446
+ APIException)
447
+ .local_error('500',
448
+ 'The server encountered an unexpected condition the prevented'\
449
+ ' it from fulfilling the request.',
450
+ APIException))
446
451
  .execute
447
452
  end
448
453
 
449
454
  # This API allows setting or updating the usage restrictions of an existing
450
455
  # account.
451
456
  # Then validation rules applied for this API.
452
- # • The account exists.
453
- # • Day time restriction cannot be set to restrict the use of a card, under
454
- # the account, on all days of the week.
455
- # • Either of the usage, daytime or location is either marked for reset or
456
- # new restriction values provided for the account.
457
- # • In usage restrictions, the limits per transaction should be less than or
458
- # equal to Daily, Daily should be less than or equal to Weekly, Weekly
457
+ # • The account exists.
458
+ # • Day time restriction cannot be set to restrict the use of a card,
459
+ # under the account, on all days of the week.
460
+ # • Either of the usage, daytime or location is either marked for reset
461
+ # or new restriction values provided for the account.
462
+ # • In usage restrictions, the limits per transaction should be less than
463
+ # or equal to Daily, Daily should be less than or equal to Weekly, Weekly
459
464
  # should be less than or equal to Monthly. Exception being 0/blank will be
460
465
  # skipped, i.e., Daily value should be less than equal to Monthly value if
461
466
  # Weekly value is 0/blank.
@@ -466,7 +471,7 @@ module ShellCardManagementApIs
466
471
  # back in the response from the request.
467
472
  # @param [AccountRestrictionRequest] body Optional parameter: Account
468
473
  # Restriction request body
469
- # @return [AccountRestrictionResponse] response from the API call
474
+ # @return [AccountRestrictionResponse] response from the API call.
470
475
  def restriction_account(apikey,
471
476
  request_id,
472
477
  body: nil)
@@ -482,30 +487,31 @@ module ShellCardManagementApIs
482
487
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
483
488
  .auth(Single.new('BearerToken')))
484
489
  .response(new_response_handler
485
- .deserializer(APIHelper.method(:custom_type_deserializer))
486
- .deserialize_into(AccountRestrictionResponse.method(:from_hash))
487
- .local_error('400',
488
- "The server cannot or will not process the request due to'\
489
- ' something that is perceived to be a client\r\n error (e.g.,'\
490
- ' malformed request syntax, invalid \r\n request message framing,'\
491
- ' or deceptive request routing).",
492
- APIException)
493
- .local_error('401',
494
- 'The request has not been applied because it lacks valid '\
495
- ' authentication credentials for the target resource.',
496
- APIException)
497
- .local_error('403',
498
- 'The server understood the request but refuses to authorize it.',
499
- APIException)
500
- .local_error('404',
501
- 'The origin server did not find a current representation for'\
502
- ' the target resource or is not willing to disclose that one'\
503
- ' exists.',
504
- APIException)
505
- .local_error('500',
506
- 'The server encountered an unexpected condition the prevented it'\
507
- ' from fulfilling the request.',
508
- APIException))
490
+ .deserializer(APIHelper.method(:custom_type_deserializer))
491
+ .deserialize_into(AccountRestrictionResponse.method(:from_hash))
492
+ .local_error('400',
493
+ "The server cannot or will not process the request due to'\
494
+ ' something that is perceived to be a client\r\n error (e.g.,'\
495
+ ' malformed request syntax, invalid \r\n request message'\
496
+ ' framing, or deceptive request routing).",
497
+ APIException)
498
+ .local_error('401',
499
+ 'The request has not been applied because it lacks valid '\
500
+ ' authentication credentials for the target resource.',
501
+ APIException)
502
+ .local_error('403',
503
+ 'The server understood the request but refuses to authorize it'\
504
+ '.',
505
+ APIException)
506
+ .local_error('404',
507
+ 'The origin server did not find a current representation for'\
508
+ ' the target resource or is not willing to disclose that one'\
509
+ ' exists.',
510
+ APIException)
511
+ .local_error('500',
512
+ 'The server encountered an unexpected condition the prevented'\
513
+ ' it from fulfilling the request.',
514
+ APIException))
509
515
  .execute
510
516
  end
511
517
 
@@ -519,7 +525,7 @@ module ShellCardManagementApIs
519
525
  # back in the response from the request.
520
526
  # @param [SearchAccountLimitRequest] body Optional parameter: Search Account
521
527
  # Limit RequestBody
522
- # @return [SearchAccountLimitResponse] response from the API call
528
+ # @return [SearchAccountLimitResponse] response from the API call.
523
529
  def search_account_limit(apikey,
524
530
  request_id,
525
531
  body: nil)
@@ -535,30 +541,31 @@ module ShellCardManagementApIs
535
541
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
536
542
  .auth(Single.new('BasicAuth')))
537
543
  .response(new_response_handler
538
- .deserializer(APIHelper.method(:custom_type_deserializer))
539
- .deserialize_into(SearchAccountLimitResponse.method(:from_hash))
540
- .local_error('400',
541
- "The server cannot or will not process the request due to'\
542
- ' something that is perceived to be a client\r\n error (e.g.,'\
543
- ' malformed request syntax, invalid \r\n request message framing,'\
544
- ' or deceptive request routing).",
545
- APIException)
546
- .local_error('401',
547
- 'The request has not been applied because it lacks valid '\
548
- ' authentication credentials for the target resource.',
549
- APIException)
550
- .local_error('403',
551
- 'The server understood the request but refuses to authorize it.',
552
- APIException)
553
- .local_error('404',
554
- 'The origin server did not find a current representation for'\
555
- ' the target resource or is not willing to disclose that one'\
556
- ' exists.',
557
- APIException)
558
- .local_error('500',
559
- 'The server encountered an unexpected condition the prevented it'\
560
- ' from fulfilling the request.',
561
- APIException))
544
+ .deserializer(APIHelper.method(:custom_type_deserializer))
545
+ .deserialize_into(SearchAccountLimitResponse.method(:from_hash))
546
+ .local_error('400',
547
+ "The server cannot or will not process the request due to'\
548
+ ' something that is perceived to be a client\r\n error (e.g.,'\
549
+ ' malformed request syntax, invalid \r\n request message'\
550
+ ' framing, or deceptive request routing).",
551
+ APIException)
552
+ .local_error('401',
553
+ 'The request has not been applied because it lacks valid '\
554
+ ' authentication credentials for the target resource.',
555
+ APIException)
556
+ .local_error('403',
557
+ 'The server understood the request but refuses to authorize it'\
558
+ '.',
559
+ APIException)
560
+ .local_error('404',
561
+ 'The origin server did not find a current representation for'\
562
+ ' the target resource or is not willing to disclose that one'\
563
+ ' exists.',
564
+ APIException)
565
+ .local_error('500',
566
+ 'The server encountered an unexpected condition the prevented'\
567
+ ' it from fulfilling the request.',
568
+ APIException))
562
569
  .execute
563
570
  end
564
571
 
@@ -572,7 +579,7 @@ module ShellCardManagementApIs
572
579
  # back in the response from the request.
573
580
  # @param [BudleDetailsRequest] body Optional parameter: Bundle Details
574
581
  # Request body
575
- # @return [BundleDetailsResponse] response from the API call
582
+ # @return [BundleDetailsResponse] response from the API call.
576
583
  def bundledetails(apikey,
577
584
  request_id,
578
585
  body: nil)
@@ -588,30 +595,31 @@ module ShellCardManagementApIs
588
595
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
589
596
  .auth(Single.new('BasicAuth')))
590
597
  .response(new_response_handler
591
- .deserializer(APIHelper.method(:custom_type_deserializer))
592
- .deserialize_into(BundleDetailsResponse.method(:from_hash))
593
- .local_error('400',
594
- "The server cannot or will not process the request due to'\
595
- ' something that is perceived to be a client\r\n error (e.g.,'\
596
- ' malformed request syntax, invalid \r\n request message framing,'\
597
- ' or deceptive request routing).",
598
- APIException)
599
- .local_error('401',
600
- 'The request has not been applied because it lacks valid '\
601
- ' authentication credentials for the target resource.',
602
- APIException)
603
- .local_error('403',
604
- 'The server understood the request but refuses to authorize it.',
605
- APIException)
606
- .local_error('404',
607
- 'The origin server did not find a current representation for'\
608
- ' the target resource or is not willing to disclose that one'\
609
- ' exists.',
610
- APIException)
611
- .local_error('500',
612
- 'The server encountered an unexpected condition the prevented it'\
613
- ' from fulfilling the request.',
614
- APIException))
598
+ .deserializer(APIHelper.method(:custom_type_deserializer))
599
+ .deserialize_into(BundleDetailsResponse.method(:from_hash))
600
+ .local_error('400',
601
+ "The server cannot or will not process the request due to'\
602
+ ' something that is perceived to be a client\r\n error (e.g.,'\
603
+ ' malformed request syntax, invalid \r\n request message'\
604
+ ' framing, or deceptive request routing).",
605
+ APIException)
606
+ .local_error('401',
607
+ 'The request has not been applied because it lacks valid '\
608
+ ' authentication credentials for the target resource.',
609
+ APIException)
610
+ .local_error('403',
611
+ 'The server understood the request but refuses to authorize it'\
612
+ '.',
613
+ APIException)
614
+ .local_error('404',
615
+ 'The origin server did not find a current representation for'\
616
+ ' the target resource or is not willing to disclose that one'\
617
+ ' exists.',
618
+ APIException)
619
+ .local_error('500',
620
+ 'The server encountered an unexpected condition the prevented'\
621
+ ' it from fulfilling the request.',
622
+ APIException))
615
623
  .execute
616
624
  end
617
625
  end