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