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.
- checksums.yaml +4 -4
- data/README.md +14 -15
- 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/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 +29 -27
- data/lib/shell_card_management_ap_is/models/card_details_response.rb +160 -8
- 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/filters2.rb +9 -3
- 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/order_card_enquiry_req.rb +9 -3
- 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 -1
- 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
@@ -32,7 +32,7 @@ module ShellCardManagementApIs
|
|
32
32
|
# to RFC 4122 standards) for requests and responses. This will be played
|
33
33
|
# back in the response from the request.
|
34
34
|
# @param [SearchCardRequest] body Optional parameter: requestbody
|
35
|
-
# @return [CardSearchResponse] response from the API call
|
35
|
+
# @return [CardSearchResponse] response from the API call.
|
36
36
|
def searchcard(request_id,
|
37
37
|
body: nil)
|
38
38
|
new_api_call_builder
|
@@ -46,30 +46,30 @@ module ShellCardManagementApIs
|
|
46
46
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
47
47
|
.auth(Single.new('BearerToken')))
|
48
48
|
.response(new_response_handler
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
49
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
50
|
+
.deserialize_into(CardSearchResponse.method(:from_hash))
|
51
|
+
.local_error('400',
|
52
|
+
'The server cannot or will not process the request due to'\
|
53
|
+
' something that is perceived to be a client error (e.g.,'\
|
54
|
+
' malformed request syntax, invalid request message framing, or'\
|
55
|
+
' deceptive request routing).',
|
56
|
+
ErrorObjectException)
|
57
|
+
.local_error('401',
|
58
|
+
'The request has not been applied because it lacks valid '\
|
59
|
+
' authentication credentials for the target resource.',
|
60
|
+
ErrorObjectException)
|
61
|
+
.local_error('403',
|
62
|
+
'Forbidden',
|
63
|
+
ErrorObjectException)
|
64
|
+
.local_error('404',
|
65
|
+
'The origin server did not find a current representation for'\
|
66
|
+
' the target resource or is not willing to disclose that one'\
|
67
|
+
' exists.',
|
68
|
+
ErrorObjectException)
|
69
|
+
.local_error('500',
|
70
|
+
'The server encountered an unexpected condition that prevented'\
|
71
|
+
' it from fulfilling the request.',
|
72
|
+
ErrorObjectException))
|
73
73
|
.execute
|
74
74
|
end
|
75
75
|
|
@@ -92,7 +92,7 @@ module ShellCardManagementApIs
|
|
92
92
|
# back in the response from the request.
|
93
93
|
# @param [CardSummaryRequest] body Optional parameter: summary request
|
94
94
|
# body
|
95
|
-
# @return [CardSummaryResponse] response from the API call
|
95
|
+
# @return [CardSummaryResponse] response from the API call.
|
96
96
|
def cardsummary(request_id,
|
97
97
|
body: nil)
|
98
98
|
new_api_call_builder
|
@@ -106,30 +106,30 @@ module ShellCardManagementApIs
|
|
106
106
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
107
107
|
.auth(Single.new('BearerToken')))
|
108
108
|
.response(new_response_handler
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
109
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
110
|
+
.deserialize_into(CardSummaryResponse.method(:from_hash))
|
111
|
+
.local_error('400',
|
112
|
+
'The server cannot or will not process the request due to'\
|
113
|
+
' something that is perceived to be a client error (e.g.,'\
|
114
|
+
' malformed request syntax, invalid request message framing, or'\
|
115
|
+
' deceptive request routing).',
|
116
|
+
ErrorObjectException)
|
117
|
+
.local_error('401',
|
118
|
+
'The request has not been applied because it lacks valid '\
|
119
|
+
' authentication credentials for the target resource.',
|
120
|
+
APIException)
|
121
|
+
.local_error('403',
|
122
|
+
'Forbidden',
|
123
|
+
APIException)
|
124
|
+
.local_error('404',
|
125
|
+
'The origin server did not find a current representation for'\
|
126
|
+
' the target resource or is not willing to disclose that one'\
|
127
|
+
' exists.',
|
128
|
+
APIException)
|
129
|
+
.local_error('500',
|
130
|
+
'The server encountered an unexpected condition that prevented'\
|
131
|
+
' it from fulfilling the request.',
|
132
|
+
ErrorObjectException))
|
133
133
|
.execute
|
134
134
|
end
|
135
135
|
|
@@ -171,7 +171,7 @@ module ShellCardManagementApIs
|
|
171
171
|
# back in the response from the request.
|
172
172
|
# @param [CardManagementV1OrdercardRequest] body Optional parameter: Order
|
173
173
|
# card request body
|
174
|
-
# @return [OrderCardResponse] response from the API call
|
174
|
+
# @return [OrderCardResponse] response from the API call.
|
175
175
|
def cardordercard(request_id,
|
176
176
|
body: nil)
|
177
177
|
new_api_call_builder
|
@@ -185,30 +185,30 @@ module ShellCardManagementApIs
|
|
185
185
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
186
186
|
.auth(Single.new('BearerToken')))
|
187
187
|
.response(new_response_handler
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
188
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
189
|
+
.deserialize_into(OrderCardResponse.method(:from_hash))
|
190
|
+
.local_error('400',
|
191
|
+
'The server cannot or will not process the request due to'\
|
192
|
+
' something that is perceived to be a client error (e.g.,'\
|
193
|
+
' malformed request syntax, invalid request message framing, or'\
|
194
|
+
' deceptive request routing).',
|
195
|
+
APIException)
|
196
|
+
.local_error('401',
|
197
|
+
'The request has not been applied because it lacks valid '\
|
198
|
+
' authentication credentials for the target resource.',
|
199
|
+
APIException)
|
200
|
+
.local_error('403',
|
201
|
+
'Forbidden',
|
202
|
+
APIException)
|
203
|
+
.local_error('404',
|
204
|
+
'The origin server did not find a current representation for'\
|
205
|
+
' the target resource or is not willing to disclose that one'\
|
206
|
+
' exists.',
|
207
|
+
APIException)
|
208
|
+
.local_error('500',
|
209
|
+
'The server encountered an unexpected condition that prevented'\
|
210
|
+
' it from fulfilling the request.',
|
211
|
+
APIException))
|
212
212
|
.execute
|
213
213
|
end
|
214
214
|
|
@@ -227,7 +227,7 @@ module ShellCardManagementApIs
|
|
227
227
|
# back in the response from the request.
|
228
228
|
# @param [OrderCardEnquiryRequest] body Optional parameter: Order Card
|
229
229
|
# Enquiry request body
|
230
|
-
# @return [OrderCardEnquiryResponse] response from the API call
|
230
|
+
# @return [OrderCardEnquiryResponse] response from the API call.
|
231
231
|
def cardordercardenquiry(request_id,
|
232
232
|
body: nil)
|
233
233
|
new_api_call_builder
|
@@ -241,30 +241,30 @@ module ShellCardManagementApIs
|
|
241
241
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
242
242
|
.auth(Single.new('BearerToken')))
|
243
243
|
.response(new_response_handler
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
244
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
245
|
+
.deserialize_into(OrderCardEnquiryResponse.method(:from_hash))
|
246
|
+
.local_error('400',
|
247
|
+
'The server cannot or will not process the request due to'\
|
248
|
+
' something that is perceived to be a client error (e.g.,'\
|
249
|
+
' malformed request syntax, invalid request message framing, or'\
|
250
|
+
' deceptive request routing).',
|
251
|
+
APIException)
|
252
|
+
.local_error('401',
|
253
|
+
'The request has not been applied because it lacks valid '\
|
254
|
+
' authentication credentials for the target resource.',
|
255
|
+
APIException)
|
256
|
+
.local_error('403',
|
257
|
+
'Forbidden',
|
258
|
+
APIException)
|
259
|
+
.local_error('404',
|
260
|
+
'The origin server did not find a current representation for'\
|
261
|
+
' the target resource or is not willing to disclose that one'\
|
262
|
+
' exists.',
|
263
|
+
APIException)
|
264
|
+
.local_error('500',
|
265
|
+
'The server encountered an unexpected condition that prevented'\
|
266
|
+
' it from fulfilling the request.',
|
267
|
+
APIException))
|
268
268
|
.execute
|
269
269
|
end
|
270
270
|
|
@@ -316,7 +316,7 @@ module ShellCardManagementApIs
|
|
316
316
|
# back in the response from the request.
|
317
317
|
# @param [CardManagementV1CancelRequest] body Optional parameter: Update
|
318
318
|
# status request body
|
319
|
-
# @return [CancelCardResponse] response from the API call
|
319
|
+
# @return [CancelCardResponse] response from the API call.
|
320
320
|
def cardcancel(request_id,
|
321
321
|
body: nil)
|
322
322
|
new_api_call_builder
|
@@ -330,30 +330,30 @@ module ShellCardManagementApIs
|
|
330
330
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
331
331
|
.auth(Single.new('BearerToken')))
|
332
332
|
.response(new_response_handler
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
333
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
334
|
+
.deserialize_into(CancelCardResponse.method(:from_hash))
|
335
|
+
.local_error('400',
|
336
|
+
'The server cannot or will not process the request due to'\
|
337
|
+
' something that is perceived to be a client error (e.g.,'\
|
338
|
+
' malformed request syntax, invalid request message framing, or'\
|
339
|
+
' deceptive request routing).',
|
340
|
+
ErrorObjectException)
|
341
|
+
.local_error('401',
|
342
|
+
'The request has not been applied because it lacks valid '\
|
343
|
+
' authentication credentials for the target resource.',
|
344
|
+
APIException)
|
345
|
+
.local_error('403',
|
346
|
+
'Forbidden',
|
347
|
+
APIException)
|
348
|
+
.local_error('404',
|
349
|
+
'The origin server did not find a current representation for'\
|
350
|
+
' the target resource or is not willing to disclose that one'\
|
351
|
+
' exists.',
|
352
|
+
APIException)
|
353
|
+
.local_error('500',
|
354
|
+
'The server encountered an unexpected condition that prevented'\
|
355
|
+
' it from fulfilling the request.',
|
356
|
+
APIException))
|
357
357
|
.execute
|
358
358
|
end
|
359
359
|
|
@@ -429,7 +429,7 @@ module ShellCardManagementApIs
|
|
429
429
|
# back in the response from the request.
|
430
430
|
# @param [CardManagementV1UpdatestatusRequest] body Optional parameter:
|
431
431
|
# Update status request body
|
432
|
-
# @return [UpdateCardStatusResponse] response from the API call
|
432
|
+
# @return [UpdateCardStatusResponse] response from the API call.
|
433
433
|
def cardupdatestatus(request_id,
|
434
434
|
body: nil)
|
435
435
|
new_api_call_builder
|
@@ -443,30 +443,30 @@ module ShellCardManagementApIs
|
|
443
443
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
444
444
|
.auth(Single.new('BearerToken')))
|
445
445
|
.response(new_response_handler
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
446
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
447
|
+
.deserialize_into(UpdateCardStatusResponse.method(:from_hash))
|
448
|
+
.local_error('400',
|
449
|
+
'The server cannot or will not process the request due to'\
|
450
|
+
' something that is perceived to be a client error (e.g.,'\
|
451
|
+
' malformed request syntax, invalid request message framing, or'\
|
452
|
+
' deceptive request routing).',
|
453
|
+
APIException)
|
454
|
+
.local_error('401',
|
455
|
+
'The request has not been applied because it lacks valid '\
|
456
|
+
' authentication credentials for the target resource.',
|
457
|
+
APIException)
|
458
|
+
.local_error('403',
|
459
|
+
'Forbidden',
|
460
|
+
APIException)
|
461
|
+
.local_error('404',
|
462
|
+
'The origin server did not find a current representation for'\
|
463
|
+
' the target resource or is not willing to disclose that one'\
|
464
|
+
' exists.',
|
465
|
+
APIException)
|
466
|
+
.local_error('500',
|
467
|
+
'The server encountered an unexpected condition that prevented'\
|
468
|
+
' it from fulfilling the request.',
|
469
|
+
APIException))
|
470
470
|
.execute
|
471
471
|
end
|
472
472
|
|
@@ -483,7 +483,7 @@ module ShellCardManagementApIs
|
|
483
483
|
# back in the response from the request.
|
484
484
|
# @param [PurchaseCategoryRequest] body Optional parameter: PurchaseCategory
|
485
485
|
# request body
|
486
|
-
# @return [PurchaseCategoryResponse] response from the API call
|
486
|
+
# @return [PurchaseCategoryResponse] response from the API call.
|
487
487
|
def purchase_category(apikey,
|
488
488
|
request_id,
|
489
489
|
body: nil)
|
@@ -499,30 +499,31 @@ module ShellCardManagementApIs
|
|
499
499
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
500
500
|
.auth(Single.new('BearerToken')))
|
501
501
|
.response(new_response_handler
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
'
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
'
|
525
|
-
|
502
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
503
|
+
.deserialize_into(PurchaseCategoryResponse.method(:from_hash))
|
504
|
+
.local_error('400',
|
505
|
+
"The server cannot or will not process the request due to'\
|
506
|
+
' something that is perceived to be a client\r\n error (e.g.,'\
|
507
|
+
' malformed request syntax, invalid \r\n request message'\
|
508
|
+
' framing, or deceptive request routing).",
|
509
|
+
APIException)
|
510
|
+
.local_error('401',
|
511
|
+
'The request has not been applied because it lacks valid '\
|
512
|
+
' authentication credentials for the target resource.',
|
513
|
+
APIException)
|
514
|
+
.local_error('403',
|
515
|
+
'The server understood the request but refuses to authorize it'\
|
516
|
+
'.',
|
517
|
+
APIException)
|
518
|
+
.local_error('404',
|
519
|
+
'The origin server did not find a current representation for'\
|
520
|
+
' the target resource or is not willing to disclose that one'\
|
521
|
+
' exists.',
|
522
|
+
APIException)
|
523
|
+
.local_error('500',
|
524
|
+
'The server encountered an unexpected condition the prevented'\
|
525
|
+
' it from fulfilling the request.',
|
526
|
+
APIException))
|
526
527
|
.execute
|
527
528
|
end
|
528
529
|
|
@@ -540,7 +541,7 @@ module ShellCardManagementApIs
|
|
540
541
|
# back in the response from the request.
|
541
542
|
# @param [CardDetailsRequest] body Optional parameter: Card details request
|
542
543
|
# body
|
543
|
-
# @return [CardDetailsResponse] response from the API call
|
544
|
+
# @return [CardDetailsResponse] response from the API call.
|
544
545
|
def carddetails(apikey,
|
545
546
|
request_id,
|
546
547
|
body: nil)
|
@@ -556,30 +557,31 @@ module ShellCardManagementApIs
|
|
556
557
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
557
558
|
.auth(Single.new('BearerToken')))
|
558
559
|
.response(new_response_handler
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
'
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
'
|
582
|
-
|
560
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
561
|
+
.deserialize_into(CardDetailsResponse.method(:from_hash))
|
562
|
+
.local_error('400',
|
563
|
+
"The server cannot or will not process the request due to'\
|
564
|
+
' something that is perceived to be a client\r\n error (e.g.,'\
|
565
|
+
' malformed request syntax, invalid \r\n request message'\
|
566
|
+
' framing, or deceptive request routing).",
|
567
|
+
APIException)
|
568
|
+
.local_error('401',
|
569
|
+
'The request has not been applied because it lacks valid '\
|
570
|
+
' authentication credentials for the target resource.',
|
571
|
+
APIException)
|
572
|
+
.local_error('403',
|
573
|
+
'The server understood the request but refuses to authorize it'\
|
574
|
+
'.',
|
575
|
+
APIException)
|
576
|
+
.local_error('404',
|
577
|
+
'The origin server did not find a current representation for'\
|
578
|
+
' the target resource or is not willing to disclose that one'\
|
579
|
+
' exists.',
|
580
|
+
APIException)
|
581
|
+
.local_error('500',
|
582
|
+
'The server encountered an unexpected condition the prevented'\
|
583
|
+
' it from fulfilling the request.',
|
584
|
+
APIException))
|
583
585
|
.execute
|
584
586
|
end
|
585
587
|
|
@@ -617,7 +619,7 @@ module ShellCardManagementApIs
|
|
617
619
|
# back in the response from the request.
|
618
620
|
# @param [CardMoveRequest] body Optional parameter: Move cards request
|
619
621
|
# body.
|
620
|
-
# @return [CardMoveResponse] response from the API call
|
622
|
+
# @return [CardMoveResponse] response from the API call.
|
621
623
|
def card_move(apikey,
|
622
624
|
request_id,
|
623
625
|
body: nil)
|
@@ -633,30 +635,31 @@ module ShellCardManagementApIs
|
|
633
635
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
634
636
|
.auth(Single.new('BearerToken')))
|
635
637
|
.response(new_response_handler
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
'
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
'
|
659
|
-
|
638
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
639
|
+
.deserialize_into(CardMoveResponse.method(:from_hash))
|
640
|
+
.local_error('400',
|
641
|
+
"The server cannot or will not process the request due to'\
|
642
|
+
' something that is perceived to be a client\r\n error (e.g.,'\
|
643
|
+
' malformed request syntax, invalid \r\n request message'\
|
644
|
+
' framing, or deceptive request routing).",
|
645
|
+
APIException)
|
646
|
+
.local_error('401',
|
647
|
+
'The request has not been applied because it lacks valid '\
|
648
|
+
' authentication credentials for the target resource.',
|
649
|
+
APIException)
|
650
|
+
.local_error('403',
|
651
|
+
'The server understood the request but refuses to authorize it'\
|
652
|
+
'.',
|
653
|
+
APIException)
|
654
|
+
.local_error('404',
|
655
|
+
'The origin server did not find a current representation for'\
|
656
|
+
' the target resource or is not willing to disclose that one'\
|
657
|
+
' exists.',
|
658
|
+
APIException)
|
659
|
+
.local_error('500',
|
660
|
+
'The server encountered an unexpected condition the prevented'\
|
661
|
+
' it from fulfilling the request.',
|
662
|
+
APIException))
|
660
663
|
.execute
|
661
664
|
end
|
662
665
|
|
@@ -691,7 +694,7 @@ module ShellCardManagementApIs
|
|
691
694
|
# back in the response from the request.
|
692
695
|
# @param [CardManagementV1PinreminderRequest] body Optional parameter: PIN
|
693
696
|
# reminder request body
|
694
|
-
# @return [PINReminderResponse] response from the API call
|
697
|
+
# @return [PINReminderResponse] response from the API call.
|
695
698
|
def cardpinreminder(request_id,
|
696
699
|
body: nil)
|
697
700
|
new_api_call_builder
|
@@ -705,30 +708,30 @@ module ShellCardManagementApIs
|
|
705
708
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
706
709
|
.auth(Single.new('BearerToken')))
|
707
710
|
.response(new_response_handler
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
711
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
712
|
+
.deserialize_into(PINReminderResponse.method(:from_hash))
|
713
|
+
.local_error('400',
|
714
|
+
'The server cannot or will not process the request due to'\
|
715
|
+
' something that is perceived to be a client error (e.g.,'\
|
716
|
+
' malformed request syntax, invalid request message framing, or'\
|
717
|
+
' deceptive request routing).',
|
718
|
+
ErrorObjectException)
|
719
|
+
.local_error('401',
|
720
|
+
'The request has not been applied because it lacks valid '\
|
721
|
+
' authentication credentials for the target resource.',
|
722
|
+
ErrorObjectException)
|
723
|
+
.local_error('403',
|
724
|
+
'Forbidden',
|
725
|
+
ErrorObjectException)
|
726
|
+
.local_error('404',
|
727
|
+
'The origin server did not find a current representation for'\
|
728
|
+
' the target resource or is not willing to disclose that one'\
|
729
|
+
' exists.',
|
730
|
+
ErrorObjectException)
|
731
|
+
.local_error('500',
|
732
|
+
'The server encountered an unexpected condition that prevented'\
|
733
|
+
' it from fulfilling the request.',
|
734
|
+
ErrorObjectException))
|
732
735
|
.execute
|
733
736
|
end
|
734
737
|
|
@@ -778,7 +781,7 @@ module ShellCardManagementApIs
|
|
778
781
|
# to RFC 4122 standards) for requests and responses. This will be played
|
779
782
|
# back in the response from the request.
|
780
783
|
# @param [ScheduleCardBlockRequest] body Optional parameter: request body
|
781
|
-
# @return [ScheduleCardBlockResponse] response from the API call
|
784
|
+
# @return [ScheduleCardBlockResponse] response from the API call.
|
782
785
|
def schedule_card_block(request_id,
|
783
786
|
body: nil)
|
784
787
|
new_api_call_builder
|
@@ -792,30 +795,30 @@ module ShellCardManagementApIs
|
|
792
795
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
793
796
|
.auth(Single.new('BearerToken')))
|
794
797
|
.response(new_response_handler
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
798
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
799
|
+
.deserialize_into(ScheduleCardBlockResponse.method(:from_hash))
|
800
|
+
.local_error('400',
|
801
|
+
'The server cannot or will not process the request due to'\
|
802
|
+
' something that is perceived to be a client error (e.g.,'\
|
803
|
+
' malformed request syntax, invalid request message framing, or'\
|
804
|
+
' deceptive request routing).',
|
805
|
+
APIException)
|
806
|
+
.local_error('401',
|
807
|
+
'The request has not been applied because it lacks valid '\
|
808
|
+
' authentication credentials for the target resource.',
|
809
|
+
APIException)
|
810
|
+
.local_error('403',
|
811
|
+
'Forbidden',
|
812
|
+
APIException)
|
813
|
+
.local_error('404',
|
814
|
+
'The origin server did not find a current representation for'\
|
815
|
+
' the target resource or is not willing to disclose that one'\
|
816
|
+
' exists.',
|
817
|
+
APIException)
|
818
|
+
.local_error('500',
|
819
|
+
'The server encountered an unexpected condition that prevented'\
|
820
|
+
' it from fulfilling the request.',
|
821
|
+
APIException))
|
819
822
|
.execute
|
820
823
|
end
|
821
824
|
|
@@ -845,7 +848,7 @@ module ShellCardManagementApIs
|
|
845
848
|
# back in the response from the request.
|
846
849
|
# @param [AutoRenewCardRequest] body Optional parameter: Auto renew request
|
847
850
|
# body
|
848
|
-
# @return [AutoRenewCardResponse] response from the API call
|
851
|
+
# @return [AutoRenewCardResponse] response from the API call.
|
849
852
|
def autorenew(request_id,
|
850
853
|
body: nil)
|
851
854
|
new_api_call_builder
|
@@ -859,46 +862,46 @@ module ShellCardManagementApIs
|
|
859
862
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
860
863
|
.auth(Single.new('BearerToken')))
|
861
864
|
.response(new_response_handler
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
865
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
866
|
+
.deserialize_into(AutoRenewCardResponse.method(:from_hash))
|
867
|
+
.local_error('400',
|
868
|
+
'The server cannot or will not process the request due to'\
|
869
|
+
' something that is perceived to be a client error (e.g.,'\
|
870
|
+
' malformed request syntax, invalid request message framing, or'\
|
871
|
+
' deceptive request routing).',
|
872
|
+
APIException)
|
873
|
+
.local_error('401',
|
874
|
+
'The request has not been applied because it lacks valid '\
|
875
|
+
' authentication credentials for the target resource.',
|
876
|
+
APIException)
|
877
|
+
.local_error('403',
|
878
|
+
'Forbidden',
|
879
|
+
APIException)
|
880
|
+
.local_error('404',
|
881
|
+
'The origin server did not find a current representation for'\
|
882
|
+
' the target resource or is not willing to disclose that one'\
|
883
|
+
' exists.',
|
884
|
+
APIException)
|
885
|
+
.local_error('500',
|
886
|
+
'The server encountered an unexpected condition that prevented'\
|
887
|
+
' it from fulfilling the request.',
|
888
|
+
APIException))
|
886
889
|
.execute
|
887
890
|
end
|
888
891
|
|
889
892
|
# This operation allows update the approval status of Mobile Payment
|
890
893
|
# Registration requests requiring for Fleet Manager approval.
|
891
894
|
# If the approval status is:
|
892
|
-
# *
|
895
|
+
# * “Approved” then the request status will be changed to Pending for
|
893
896
|
# processing.
|
894
|
-
# *
|
895
|
-
# error message.
|
897
|
+
# * “Rejected” then status will be updated to “CI” (Failed) with
|
898
|
+
# appropriate error message.
|
896
899
|
# @param [String] request_id Required parameter: Mandatory UUID (according
|
897
900
|
# to RFC 4122 standards) for requests and responses. This will be played
|
898
901
|
# back in the response from the request.
|
899
902
|
# @param [UpdateMPayRegStatusRequest] body Optional parameter: Request
|
900
903
|
# body
|
901
|
-
# @return [UpdateMPayRegStatusResponse] response from the API call
|
904
|
+
# @return [UpdateMPayRegStatusResponse] response from the API call.
|
902
905
|
def updatemobilepaymentregistrationstatus(request_id,
|
903
906
|
body: nil)
|
904
907
|
new_api_call_builder
|
@@ -912,30 +915,30 @@ module ShellCardManagementApIs
|
|
912
915
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
913
916
|
.auth(Single.new('BearerToken')))
|
914
917
|
.response(new_response_handler
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
918
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
919
|
+
.deserialize_into(UpdateMPayRegStatusResponse.method(:from_hash))
|
920
|
+
.local_error('400',
|
921
|
+
'The server cannot or will not process the request due to'\
|
922
|
+
' something that is perceived to be a client error (e.g.,'\
|
923
|
+
' malformed request syntax, invalid request message framing, or'\
|
924
|
+
' deceptive request routing).',
|
925
|
+
ErrorObjectException)
|
926
|
+
.local_error('401',
|
927
|
+
'The request has not been applied because it lacks valid '\
|
928
|
+
' authentication credentials for the target resource.',
|
929
|
+
APIException)
|
930
|
+
.local_error('403',
|
931
|
+
'Forbidden',
|
932
|
+
APIException)
|
933
|
+
.local_error('404',
|
934
|
+
'The origin server did not find a current representation for'\
|
935
|
+
' the target resource or is not willing to disclose that one'\
|
936
|
+
' exists.',
|
937
|
+
APIException)
|
938
|
+
.local_error('500',
|
939
|
+
'The server encountered an unexpected condition that prevented'\
|
940
|
+
' it from fulfilling the request.',
|
941
|
+
APIException))
|
939
942
|
.execute
|
940
943
|
end
|
941
944
|
|
@@ -950,7 +953,7 @@ module ShellCardManagementApIs
|
|
950
953
|
# true. If the parameter is true then public Key will be valid for 90 days.
|
951
954
|
# If the parameter is false then the key will be valid for one time. default
|
952
955
|
# value will be false.
|
953
|
-
# @return [GeneratePINKeyResponse] response from the API call
|
956
|
+
# @return [GeneratePINKeyResponse] response from the API call.
|
954
957
|
def getkey(request_id,
|
955
958
|
fleet: nil)
|
956
959
|
new_api_call_builder
|
@@ -962,30 +965,31 @@ module ShellCardManagementApIs
|
|
962
965
|
.header_param(new_parameter('application/json', key: 'accept'))
|
963
966
|
.auth(Single.new('BearerToken')))
|
964
967
|
.response(new_response_handler
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
'
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
'
|
988
|
-
|
968
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
969
|
+
.deserialize_into(GeneratePINKeyResponse.method(:from_hash))
|
970
|
+
.local_error('400',
|
971
|
+
"The server cannot or will not process the request due to'\
|
972
|
+
' something that is perceived to be a client\r\n error (e.g.,'\
|
973
|
+
' malformed request syntax, invalid \r\n request message'\
|
974
|
+
' framing, or deceptive request routing).",
|
975
|
+
APIException)
|
976
|
+
.local_error('401',
|
977
|
+
'The request has not been applied because it lacks valid '\
|
978
|
+
' authentication credentials for the target resource.',
|
979
|
+
APIException)
|
980
|
+
.local_error('403',
|
981
|
+
'The server understood the request but refuses to authorize it'\
|
982
|
+
'.',
|
983
|
+
APIException)
|
984
|
+
.local_error('404',
|
985
|
+
'The origin server did not find a current representation for'\
|
986
|
+
' the target resource or is not willing to disclose that one'\
|
987
|
+
' exists.',
|
988
|
+
APIException)
|
989
|
+
.local_error('500',
|
990
|
+
'The server encountered an unexpected condition the prevented'\
|
991
|
+
' it from fulfilling the request.',
|
992
|
+
APIException))
|
989
993
|
.execute
|
990
994
|
end
|
991
995
|
|
@@ -998,7 +1002,7 @@ module ShellCardManagementApIs
|
|
998
1002
|
# specific environment which needs to be passed by the client.
|
999
1003
|
# @param [DeliveryAddressUpdateRequest] body Optional parameter: Delivery
|
1000
1004
|
# Address Update Request Body
|
1001
|
-
# @return [DeliveryAddressUpdateResponse] response from the API call
|
1005
|
+
# @return [DeliveryAddressUpdateResponse] response from the API call.
|
1002
1006
|
def deliveryaddressupdate(apikey,
|
1003
1007
|
body: nil)
|
1004
1008
|
new_api_call_builder
|
@@ -1012,30 +1016,31 @@ module ShellCardManagementApIs
|
|
1012
1016
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
1013
1017
|
.auth(Single.new('BasicAuth')))
|
1014
1018
|
.response(new_response_handler
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
'
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
'
|
1038
|
-
|
1019
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
1020
|
+
.deserialize_into(DeliveryAddressUpdateResponse.method(:from_hash))
|
1021
|
+
.local_error('400',
|
1022
|
+
"The server cannot or will not process the request due to'\
|
1023
|
+
' something that is perceived to be a client\r\n error (e.g.,'\
|
1024
|
+
' malformed request syntax, invalid \r\n request message'\
|
1025
|
+
' framing, or deceptive request routing).",
|
1026
|
+
APIException)
|
1027
|
+
.local_error('401',
|
1028
|
+
'The request has not been applied because it lacks valid '\
|
1029
|
+
' authentication credentials for the target resource.',
|
1030
|
+
APIException)
|
1031
|
+
.local_error('403',
|
1032
|
+
'The server understood the request but refuses to authorize it'\
|
1033
|
+
'.',
|
1034
|
+
APIException)
|
1035
|
+
.local_error('404',
|
1036
|
+
'The origin server did not find a current representation for'\
|
1037
|
+
' the target resource or is not willing to disclose that one'\
|
1038
|
+
' exists.',
|
1039
|
+
APIException)
|
1040
|
+
.local_error('500',
|
1041
|
+
'The server encountered an unexpected condition the prevented'\
|
1042
|
+
' it from fulfilling the request.',
|
1043
|
+
APIException))
|
1039
1044
|
.execute
|
1040
1045
|
end
|
1041
1046
|
end
|