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.
- checksums.yaml +4 -4
- data/README.md +15 -16
- data/lib/shell_card_management_ap_is/controllers/base_controller.rb +9 -9
- data/lib/shell_card_management_ap_is/controllers/card_controller.rb +383 -378
- data/lib/shell_card_management_ap_is/controllers/customer_controller.rb +234 -225
- data/lib/shell_card_management_ap_is/controllers/o_auth_authorization_controller.rb +9 -9
- data/lib/shell_card_management_ap_is/controllers/restriction_controller.rb +256 -248
- data/lib/shell_card_management_ap_is/exceptions/error_object_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_customer403_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_payers400_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_payers404_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser400_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser401_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser403_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser404_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser500_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard401_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard500_error_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/exceptions/o_auth_provider_exception.rb +15 -15
- data/lib/shell_card_management_ap_is/models/account_request.rb +11 -11
- data/lib/shell_card_management_ap_is/models/account_response_accounts_items.rb +8 -8
- data/lib/shell_card_management_ap_is/models/account_restriction_request.rb +3 -4
- data/lib/shell_card_management_ap_is/models/audit_request.rb +29 -29
- data/lib/shell_card_management_ap_is/models/audit_response_audits_items.rb +41 -41
- data/lib/shell_card_management_ap_is/models/auto_renew_card_request_auto_renew_cards_items.rb +12 -1
- data/lib/shell_card_management_ap_is/models/auto_renew_card_response_data_items.rb +13 -2
- data/lib/shell_card_management_ap_is/models/base_model.rb +76 -28
- data/lib/shell_card_management_ap_is/models/bundle_restriction.rb +35 -22
- data/lib/shell_card_management_ap_is/models/bundle_restriction_update.rb +6 -8
- data/lib/shell_card_management_ap_is/models/bundled_restrictions_list.rb +10 -16
- data/lib/shell_card_management_ap_is/models/card.rb +25 -6
- data/lib/shell_card_management_ap_is/models/card_detail.rb +24 -24
- data/lib/shell_card_management_ap_is/models/card_group_request.rb +3 -3
- data/lib/shell_card_management_ap_is/models/card_settings.rb +10 -10
- data/lib/shell_card_management_ap_is/models/create_bundle_request.rb +2 -3
- data/lib/shell_card_management_ap_is/models/customer_detail_response.rb +18 -18
- data/lib/shell_card_management_ap_is/models/day_time_restriction.rb +2 -2
- data/lib/shell_card_management_ap_is/models/day_time_restrictions.rb +132 -0
- data/lib/shell_card_management_ap_is/models/filters.rb +6 -6
- data/lib/shell_card_management_ap_is/models/filters1.rb +6 -6
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_customer_payers400_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_customer_payers404_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser400_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser401_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser404_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser500_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v2_restriction_searchcard401_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v2_restriction_searchcard500_error1.rb +50 -0
- data/lib/shell_card_management_ap_is/models/logged_in_user_response.rb +3 -3
- data/lib/shell_card_management_ap_is/models/order_card_enquiry.rb +27 -6
- data/lib/shell_card_management_ap_is/models/payer_details.rb +10 -10
- data/lib/shell_card_management_ap_is/models/payer_request.rb +6 -6
- data/lib/shell_card_management_ap_is/models/pin_advice_types.rb +4 -4
- data/lib/shell_card_management_ap_is/models/pin_reminder_card_details.rb +11 -11
- data/lib/shell_card_management_ap_is/models/purchase_category1_all_of0.rb +8 -8
- data/lib/shell_card_management_ap_is/models/replace_card_settings.rb +10 -10
- data/lib/shell_card_management_ap_is/models/restriction.rb +10 -16
- data/lib/shell_card_management_ap_is/models/restriction_cards_list.rb +21 -17
- data/lib/shell_card_management_ap_is/models/schedule_card_block_cards_items.rb +39 -27
- data/lib/shell_card_management_ap_is/models/search_card.rb +13 -2
- data/lib/shell_card_management_ap_is/models/search_request.rb +6 -6
- data/lib/shell_card_management_ap_is/models/submitted_card.rb +22 -1
- data/lib/shell_card_management_ap_is/models/summary_request.rb +6 -6
- data/lib/shell_card_management_ap_is/models/update_bundle_request.rb +7 -7
- data/lib/shell_card_management_ap_is/models/update_card.rb +11 -60
- data/lib/shell_card_management_ap_is/models/update_card_group_request.rb +3 -3
- data/lib/shell_card_management_ap_is/models/update_card_renewal_address.rb +2 -2
- data/lib/shell_card_management_ap_is/models/update_card_renewal_address2.rb +2 -2
- data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request_m_pay_requests_items.rb +1 -1
- data/lib/shell_card_management_ap_is/models/usage_restriction.rb +2 -2
- data/lib/shell_card_management_ap_is/utilities/file_wrapper.rb +9 -9
- data/lib/shell_card_management_ap_is.rb +17 -0
- 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
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
'
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
'
|
61
|
-
|
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
|
-
# •
|
85
|
-
# •
|
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
|
-
# •
|
89
|
-
# set to ‘True’ or applied on the card.
|
90
|
-
# •
|
91
|
-
# ‘0’/null.
|
92
|
-
# •
|
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
|
-
# •
|
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
|
-
# •
|
104
|
-
# However, if the card type limit is NULL for the same field, then no
|
105
|
-
# will be applied in Gateway.
|
106
|
-
# •
|
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
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
'
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
'
|
155
|
-
|
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
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
'
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
'
|
234
|
-
|
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
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
'
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
'
|
321
|
-
|
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
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
'
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
'
|
384
|
-
|
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
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
'
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
'
|
445
|
-
|
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
|
-
# •
|
453
|
-
# •
|
454
|
-
# the account, on all days of the week.
|
455
|
-
# •
|
456
|
-
# new restriction values provided for the account.
|
457
|
-
# •
|
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
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
'
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
'
|
508
|
-
|
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
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
'
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
'
|
561
|
-
|
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
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
'
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
'
|
614
|
-
|
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
|