card-management-sdk 1.0.0 → 1.1.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 +28 -19
- data/lib/shell_card_management_ap_is/client.rb +2 -3
- data/lib/shell_card_management_ap_is/configuration.rb +15 -22
- data/lib/shell_card_management_ap_is/controllers/card_controller.rb +227 -232
- data/lib/shell_card_management_ap_is/controllers/customer_controller.rb +135 -145
- data/lib/shell_card_management_ap_is/controllers/o_auth_authorization_controller.rb +2 -2
- data/lib/shell_card_management_ap_is/controllers/restriction_controller.rb +351 -229
- data/lib/shell_card_management_ap_is/exceptions/{error_user_access_error1_exception.rb → fleetmanagement_v1_customer_customer403_error_exception.rb} +2 -2
- data/lib/shell_card_management_ap_is/exceptions/{default_error_exception.rb → fleetmanagement_v1_customer_payers400_error_exception.rb} +5 -5
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_payers404_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser400_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser401_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser403_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser404_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser500_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard401_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard500_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/http/auth/bearer_token.rb +54 -10
- data/lib/shell_card_management_ap_is/models/account_access.rb +3 -8
- data/lib/shell_card_management_ap_is/models/account_request.rb +6 -15
- data/lib/shell_card_management_ap_is/models/account_response.rb +2 -6
- data/lib/shell_card_management_ap_is/models/account_response_accounts_items.rb +21 -45
- data/lib/shell_card_management_ap_is/models/account_restriction_request.rb +28 -9
- data/lib/shell_card_management_ap_is/models/account_restriction_response.rb +60 -11
- data/lib/shell_card_management_ap_is/models/account_velocity_limit.rb +11 -19
- data/lib/shell_card_management_ap_is/models/accounts.rb +1 -2
- data/lib/shell_card_management_ap_is/models/address.rb +4 -11
- data/lib/shell_card_management_ap_is/models/audit_request.rb +25 -21
- data/lib/shell_card_management_ap_is/models/audit_response.rb +2 -6
- data/lib/shell_card_management_ap_is/models/audit_response_audits_items.rb +9 -22
- data/lib/shell_card_management_ap_is/models/auto_renew_card_request.rb +2 -5
- data/lib/shell_card_management_ap_is/models/auto_renew_card_request_auto_renew_cards_items.rb +2 -5
- data/lib/shell_card_management_ap_is/models/auto_renew_card_response.rb +1 -3
- data/lib/shell_card_management_ap_is/models/auto_renew_card_response_data_items.rb +1 -2
- data/lib/shell_card_management_ap_is/models/bank_account.rb +5 -13
- data/lib/shell_card_management_ap_is/models/{search_account_limit_request_filters.rb → budle_details_request.rb} +29 -22
- data/lib/shell_card_management_ap_is/models/{create_bundle_response_data_items_cards_items.rb → bundle_card_restriction_status.rb} +4 -3
- data/lib/shell_card_management_ap_is/models/bundle_details_response.rb +181 -0
- data/lib/shell_card_management_ap_is/models/bundle_restriction.rb +73 -103
- data/lib/shell_card_management_ap_is/models/bundle_restriction_update.rb +187 -0
- data/lib/shell_card_management_ap_is/models/bundled_details_product_list.rb +116 -0
- data/lib/shell_card_management_ap_is/models/bundled_restrictions_list.rb +88 -0
- data/lib/shell_card_management_ap_is/models/cancel_card_request.rb +1 -3
- data/lib/shell_card_management_ap_is/models/cancel_card_response.rb +3 -6
- data/lib/shell_card_management_ap_is/models/card.rb +23 -50
- data/lib/shell_card_management_ap_is/models/card_block_schedule.rb +1 -2
- data/lib/shell_card_management_ap_is/models/{summary_of_bundle_response_data_items_card_bundles_items.rb → card_bundle.rb} +11 -18
- data/lib/shell_card_management_ap_is/models/card_contact.rb +222 -0
- data/lib/shell_card_management_ap_is/models/card_day_time_restrictions.rb +3 -9
- data/lib/shell_card_management_ap_is/models/card_delivery_address.rb +218 -0
- data/lib/shell_card_management_ap_is/models/card_delivery_contact.rb +7 -14
- data/lib/shell_card_management_ap_is/models/card_detail.rb +36 -49
- data/lib/shell_card_management_ap_is/models/card_details_request.rb +6 -14
- data/lib/shell_card_management_ap_is/models/card_details_response.rb +60 -249
- data/lib/shell_card_management_ap_is/models/card_details_response_card_block_schedules_items_all_of0.rb +1 -2
- data/lib/shell_card_management_ap_is/models/card_details_response_card_delivery_address.rb +6 -15
- data/lib/shell_card_management_ap_is/models/card_details_response_fuel_sets_items.rb +1 -2
- data/lib/shell_card_management_ap_is/models/card_details_response_non_fuel_sets_items.rb +1 -2
- data/lib/shell_card_management_ap_is/models/card_details_response_pin_delivery_address.rb +6 -15
- data/lib/shell_card_management_ap_is/models/card_group_request.rb +3 -9
- data/lib/shell_card_management_ap_is/models/card_group_response.rb +2 -6
- data/lib/shell_card_management_ap_is/models/card_group_response_card_groups_items.rb +10 -20
- data/lib/shell_card_management_ap_is/models/card_management_v1_cancel_request.rb +104 -0
- data/lib/shell_card_management_ap_is/models/card_management_v1_ordercard_request.rb +59 -0
- data/lib/shell_card_management_ap_is/models/card_management_v1_pinreminder_request.rb +130 -0
- data/lib/shell_card_management_ap_is/models/card_management_v1_updatestatus_request.rb +122 -0
- data/lib/shell_card_management_ap_is/models/card_move_request.rb +4 -9
- data/lib/shell_card_management_ap_is/models/card_move_request_cards_items.rb +1 -3
- data/lib/shell_card_management_ap_is/models/card_move_response.rb +2 -4
- data/lib/shell_card_management_ap_is/models/card_move_response_error_cards_items.rb +2 -5
- data/lib/shell_card_management_ap_is/models/card_move_response_successful_requests_items.rb +2 -5
- data/lib/shell_card_management_ap_is/models/{restriction_card_request.rb → card_restriction_req.rb} +42 -50
- data/lib/shell_card_management_ap_is/models/card_restriction_response.rb +96 -0
- data/lib/shell_card_management_ap_is/models/card_search_response.rb +2 -7
- data/lib/shell_card_management_ap_is/models/card_settings.rb +626 -0
- data/lib/shell_card_management_ap_is/models/card_summary_request.rb +3 -5
- data/lib/shell_card_management_ap_is/models/card_summary_response.rb +1 -3
- data/lib/shell_card_management_ap_is/models/card_type_request.rb +3 -7
- data/lib/shell_card_management_ap_is/models/card_type_response.rb +1 -3
- data/lib/shell_card_management_ap_is/models/card_type_response_customer_card_types_items.rb +15 -31
- data/lib/shell_card_management_ap_is/models/card_type_response_error.rb +1 -2
- data/lib/shell_card_management_ap_is/models/card_usage_restrictions.rb +5 -10
- data/lib/shell_card_management_ap_is/models/col_co_access.rb +2 -4
- data/lib/shell_card_management_ap_is/models/{location_restrictions_country_restrictions.rb → country_restriction.rb} +20 -21
- data/lib/shell_card_management_ap_is/models/create_bundle_request.rb +65 -62
- data/lib/shell_card_management_ap_is/models/create_bundle_response.rb +122 -47
- data/lib/shell_card_management_ap_is/models/create_card_group_request.rb +3 -9
- data/lib/shell_card_management_ap_is/models/create_card_group_request_cards_items.rb +1 -3
- data/lib/shell_card_management_ap_is/models/create_card_group_response.rb +2 -5
- data/lib/shell_card_management_ap_is/models/create_card_group_response_error_cards_items.rb +1 -3
- data/lib/shell_card_management_ap_is/models/create_card_group_response_successful_requests_items.rb +1 -3
- data/lib/shell_card_management_ap_is/models/create_card_response.rb +1 -2
- data/lib/shell_card_management_ap_is/models/customer_contract.rb +1 -2
- data/lib/shell_card_management_ap_is/models/customer_detail_request.rb +2 -5
- data/lib/shell_card_management_ap_is/models/customer_detail_response.rb +13 -27
- data/lib/shell_card_management_ap_is/models/day_time_restriction.rb +133 -0
- data/lib/shell_card_management_ap_is/models/{summary_of_bundle_request.rb → default_error.rb} +10 -10
- data/lib/shell_card_management_ap_is/models/default_error_fault.rb +4 -5
- data/lib/shell_card_management_ap_is/models/delete_bundle_request.rb +14 -16
- data/lib/shell_card_management_ap_is/models/delete_bundle_response.rb +9 -10
- data/lib/shell_card_management_ap_is/models/delivery_address_update.rb +13 -11
- data/lib/shell_card_management_ap_is/models/delivery_address_update_references.rb +2 -5
- data/lib/shell_card_management_ap_is/models/delivery_address_update_references2.rb +98 -0
- data/lib/shell_card_management_ap_is/models/delivery_address_update_request.rb +3 -7
- data/lib/shell_card_management_ap_is/models/delivery_address_update_response.rb +5 -14
- data/lib/shell_card_management_ap_is/models/delivery_addresses.rb +7 -18
- data/lib/shell_card_management_ap_is/models/{restriction_search_card_request.rb → detail.rb} +11 -11
- data/lib/shell_card_management_ap_is/models/eid_access.rb +1 -2
- data/lib/shell_card_management_ap_is/models/error_details.rb +1 -3
- data/lib/shell_card_management_ap_is/models/error_status.rb +1 -2
- data/lib/shell_card_management_ap_is/models/error_user_access_error.rb +1 -2
- data/lib/shell_card_management_ap_is/models/fault.rb +59 -0
- data/lib/shell_card_management_ap_is/models/filters.rb +702 -0
- data/lib/shell_card_management_ap_is/models/filters1.rb +579 -0
- data/lib/shell_card_management_ap_is/models/filters2.rb +194 -0
- data/lib/shell_card_management_ap_is/models/finance_currency.rb +1 -2
- data/lib/shell_card_management_ap_is/models/finance_currency2.rb +96 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser_request.rb +104 -0
- data/lib/shell_card_management_ap_is/models/generate_pin_key_response.rb +1 -2
- data/lib/shell_card_management_ap_is/models/invoice_distribution_method.rb +2 -4
- data/lib/shell_card_management_ap_is/models/{location_restrictions.rb → location_restriction.rb} +20 -35
- data/lib/shell_card_management_ap_is/models/logged_in_user_request.rb +2 -4
- data/lib/shell_card_management_ap_is/models/logged_in_user_response.rb +9 -22
- data/lib/shell_card_management_ap_is/models/{location_restrictions_network_restrictions_items.rb → network_restriction.rb} +18 -20
- data/lib/shell_card_management_ap_is/models/o_auth_token.rb +2 -6
- data/lib/shell_card_management_ap_is/models/order_card_enquiry.rb +22 -40
- data/lib/shell_card_management_ap_is/models/order_card_enquiry_req.rb +8 -21
- data/lib/shell_card_management_ap_is/models/order_card_enquiry_request.rb +3 -4
- data/lib/shell_card_management_ap_is/models/order_card_enquiry_response.rb +1 -3
- data/lib/shell_card_management_ap_is/models/order_card_response.rb +1 -3
- data/lib/shell_card_management_ap_is/models/{location_restrictions_partner_site_restrictions_items.rb → partner_site_restriction.rb} +10 -12
- data/lib/shell_card_management_ap_is/models/payer_access.rb +3 -8
- data/lib/shell_card_management_ap_is/models/payer_details.rb +45 -86
- data/lib/shell_card_management_ap_is/models/payer_request.rb +3 -6
- data/lib/shell_card_management_ap_is/models/payer_response.rb +2 -6
- data/lib/shell_card_management_ap_is/models/payers.rb +2 -5
- data/lib/shell_card_management_ap_is/models/pin_advice_types.rb +1 -2
- data/lib/shell_card_management_ap_is/models/pin_contact.rb +234 -0
- data/lib/shell_card_management_ap_is/models/pin_deliver_to.rb +161 -0
- data/lib/shell_card_management_ap_is/models/pin_delivery_address.rb +222 -0
- data/lib/shell_card_management_ap_is/models/pin_delivery_contact.rb +7 -14
- data/lib/shell_card_management_ap_is/models/pin_delivery_details.rb +4 -11
- data/lib/shell_card_management_ap_is/models/pin_reminder_card_details.rb +12 -10
- data/lib/shell_card_management_ap_is/models/pin_reminder_reference.rb +2 -5
- data/lib/shell_card_management_ap_is/models/pin_reminder_request.rb +2 -6
- data/lib/shell_card_management_ap_is/models/pin_reminder_response.rb +1 -3
- data/lib/shell_card_management_ap_is/models/product_all_of0.rb +1 -2
- data/lib/shell_card_management_ap_is/models/product_group.rb +2 -6
- data/lib/shell_card_management_ap_is/models/{product_restrictions.rb → product_restriction_card.rb} +9 -12
- data/lib/shell_card_management_ap_is/models/purchase_categories.rb +1 -4
- data/lib/shell_card_management_ap_is/models/purchase_category1_all_of0.rb +2 -7
- data/lib/shell_card_management_ap_is/models/purchase_category_request.rb +2 -5
- data/lib/shell_card_management_ap_is/models/purchase_category_response.rb +1 -2
- data/lib/shell_card_management_ap_is/models/replace_card_settings.rb +15 -30
- data/lib/shell_card_management_ap_is/models/restriction.rb +88 -0
- data/lib/shell_card_management_ap_is/models/{restriction_search_card_response_data_items.rb → restriction_card_list.rb} +284 -328
- data/lib/shell_card_management_ap_is/models/{restriction_card_request_cards_items.rb → restriction_cards_list.rb} +66 -83
- data/lib/shell_card_management_ap_is/models/restriction_product.rb +62 -0
- data/lib/shell_card_management_ap_is/models/{restriction_card_response_data_items.rb → restrictioncards_res.rb} +100 -114
- data/lib/shell_card_management_ap_is/models/role.rb +3 -6
- data/lib/shell_card_management_ap_is/models/schedule_card_block_cards_items.rb +5 -14
- data/lib/shell_card_management_ap_is/models/schedule_card_block_request.rb +1 -2
- data/lib/shell_card_management_ap_is/models/schedule_card_block_response.rb +1 -3
- data/lib/shell_card_management_ap_is/models/schedule_card_block_response_data_items.rb +1 -3
- data/lib/shell_card_management_ap_is/models/search_account_limit_request.rb +79 -10
- data/lib/shell_card_management_ap_is/models/search_account_limit_response.rb +74 -20
- data/lib/shell_card_management_ap_is/models/search_card.rb +1 -2
- data/lib/shell_card_management_ap_is/models/search_card_request.rb +4 -6
- data/lib/shell_card_management_ap_is/models/{restriction_search_card_request_filters_cards_items.rb → search_card_restriction.rb} +19 -16
- data/lib/shell_card_management_ap_is/models/{restriction_search_card_request_filters.rb → search_card_restriction_req.rb} +72 -71
- data/lib/shell_card_management_ap_is/models/search_card_restriction_res.rb +89 -0
- data/lib/shell_card_management_ap_is/models/search_product_restriction.rb +3 -4
- data/lib/shell_card_management_ap_is/models/search_request.rb +19 -41
- data/lib/shell_card_management_ap_is/models/{location_restrictions_shell_site_restrictions_items.rb → shell_site_restriction.rb} +10 -17
- data/lib/shell_card_management_ap_is/models/submitted_card.rb +4 -10
- data/lib/shell_card_management_ap_is/models/summary_request.rb +15 -33
- data/lib/shell_card_management_ap_is/models/summary_response.rb +5 -11
- data/lib/shell_card_management_ap_is/models/{summary_of_bundle_response_data_items.rb → summaryofbundle_response.rb} +36 -33
- data/lib/shell_card_management_ap_is/models/{summaryof_bundle.rb → summaryofbundler_request.rb} +43 -36
- data/lib/shell_card_management_ap_is/models/update_bundle_request.rb +58 -63
- data/lib/shell_card_management_ap_is/models/update_bundle_response.rb +75 -21
- data/lib/shell_card_management_ap_is/models/update_card.rb +21 -20
- data/lib/shell_card_management_ap_is/models/update_card_group_request.rb +6 -14
- data/lib/shell_card_management_ap_is/models/update_card_group_response.rb +3 -6
- data/lib/shell_card_management_ap_is/models/update_card_group_response_move_card_references_items.rb +1 -3
- data/lib/shell_card_management_ap_is/models/update_card_renewal_address.rb +3 -9
- data/lib/shell_card_management_ap_is/models/update_card_renewal_address2.rb +155 -0
- data/lib/shell_card_management_ap_is/models/update_card_status_request.rb +1 -3
- data/lib/shell_card_management_ap_is/models/update_card_status_response.rb +2 -5
- data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request.rb +2 -5
- data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request_m_pay_requests_items.rb +2 -4
- data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_response.rb +1 -2
- data/lib/shell_card_management_ap_is/models/usage_restriction.rb +1127 -0
- data/lib/shell_card_management_ap_is/models/{usage_restrictions.rb → usage_restrictions_card.rb} +74 -131
- data/lib/shell_card_management_ap_is.rb +128 -101
- metadata +60 -33
- data/lib/shell_card_management_ap_is/models/create_bundle_request_restrictions.rb +0 -147
- data/lib/shell_card_management_ap_is/models/create_bundle_response_data_items.rb +0 -125
- data/lib/shell_card_management_ap_is/models/day_time_restrictions.rb +0 -162
- data/lib/shell_card_management_ap_is/models/restriction_card_response.rb +0 -91
- data/lib/shell_card_management_ap_is/models/restriction_search_card_response.rb +0 -79
- data/lib/shell_card_management_ap_is/models/search_account_limit_response_data.rb +0 -106
- data/lib/shell_card_management_ap_is/models/search_card_response_restrictions.rb +0 -99
- data/lib/shell_card_management_ap_is/models/summary_of_bundle_response.rb +0 -79
- data/lib/shell_card_management_ap_is/models/url_enum.rb +0 -23
@@ -33,12 +33,12 @@ module ShellCardManagementApIs
|
|
33
33
|
# back in the response from the request.
|
34
34
|
# @param [SearchCardRequest] body Optional parameter: requestbody
|
35
35
|
# @return [CardSearchResponse] response from the API call
|
36
|
-
def
|
37
|
-
|
36
|
+
def searchcard(request_id,
|
37
|
+
body: nil)
|
38
38
|
new_api_call_builder
|
39
39
|
.request(new_request_builder(HttpMethodEnum::POST,
|
40
40
|
'/card-management/v1/search',
|
41
|
-
Server::
|
41
|
+
Server::SHELL)
|
42
42
|
.header_param(new_parameter(request_id, key: 'RequestId'))
|
43
43
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
44
44
|
.body_param(new_parameter(body))
|
@@ -49,26 +49,26 @@ module ShellCardManagementApIs
|
|
49
49
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
50
50
|
.deserialize_into(CardSearchResponse.method(:from_hash))
|
51
51
|
.local_error('400',
|
52
|
-
|
52
|
+
'The server cannot or will not process the request due to'\
|
53
53
|
' something that is perceived to be a client error (e.g.,'\
|
54
54
|
' malformed request syntax, invalid request message framing, or'\
|
55
|
-
' deceptive request routing)
|
55
|
+
' deceptive request routing).',
|
56
56
|
ErrorObjectException)
|
57
57
|
.local_error('401',
|
58
|
-
|
59
|
-
' authentication credentials for the target resource
|
58
|
+
'The request has not been applied because it lacks valid '\
|
59
|
+
' authentication credentials for the target resource.',
|
60
60
|
ErrorObjectException)
|
61
61
|
.local_error('403',
|
62
62
|
'Forbidden',
|
63
63
|
ErrorObjectException)
|
64
64
|
.local_error('404',
|
65
|
-
|
65
|
+
'The origin server did not find a current representation for'\
|
66
66
|
' the target resource or is not willing to disclose that one'\
|
67
|
-
' exists
|
67
|
+
' exists.',
|
68
68
|
ErrorObjectException)
|
69
69
|
.local_error('500',
|
70
|
-
|
71
|
-
' it from fulfilling the request
|
70
|
+
'The server encountered an unexpected condition that prevented'\
|
71
|
+
' it from fulfilling the request.',
|
72
72
|
ErrorObjectException))
|
73
73
|
.execute
|
74
74
|
end
|
@@ -93,12 +93,12 @@ module ShellCardManagementApIs
|
|
93
93
|
# @param [CardSummaryRequest] body Optional parameter: summary request
|
94
94
|
# body
|
95
95
|
# @return [CardSummaryResponse] response from the API call
|
96
|
-
def
|
97
|
-
|
96
|
+
def cardsummary(request_id,
|
97
|
+
body: nil)
|
98
98
|
new_api_call_builder
|
99
99
|
.request(new_request_builder(HttpMethodEnum::POST,
|
100
100
|
'/card-management/v1/summary',
|
101
|
-
Server::
|
101
|
+
Server::SHELL)
|
102
102
|
.header_param(new_parameter(request_id, key: 'RequestId'))
|
103
103
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
104
104
|
.body_param(new_parameter(body))
|
@@ -109,26 +109,26 @@ module ShellCardManagementApIs
|
|
109
109
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
110
110
|
.deserialize_into(CardSummaryResponse.method(:from_hash))
|
111
111
|
.local_error('400',
|
112
|
-
|
112
|
+
'The server cannot or will not process the request due to'\
|
113
113
|
' something that is perceived to be a client error (e.g.,'\
|
114
114
|
' malformed request syntax, invalid request message framing, or'\
|
115
|
-
' deceptive request routing)
|
115
|
+
' deceptive request routing).',
|
116
116
|
ErrorObjectException)
|
117
117
|
.local_error('401',
|
118
|
-
|
119
|
-
' authentication credentials for the target resource
|
120
|
-
|
118
|
+
'The request has not been applied because it lacks valid '\
|
119
|
+
' authentication credentials for the target resource.',
|
120
|
+
APIException)
|
121
121
|
.local_error('403',
|
122
122
|
'Forbidden',
|
123
|
-
|
123
|
+
APIException)
|
124
124
|
.local_error('404',
|
125
|
-
|
125
|
+
'The origin server did not find a current representation for'\
|
126
126
|
' the target resource or is not willing to disclose that one'\
|
127
|
-
' exists
|
128
|
-
|
127
|
+
' exists.',
|
128
|
+
APIException)
|
129
129
|
.local_error('500',
|
130
|
-
|
131
|
-
' it from fulfilling the request
|
130
|
+
'The server encountered an unexpected condition that prevented'\
|
131
|
+
' it from fulfilling the request.',
|
132
132
|
ErrorObjectException))
|
133
133
|
.execute
|
134
134
|
end
|
@@ -169,15 +169,15 @@ module ShellCardManagementApIs
|
|
169
169
|
# @param [String] request_id Required parameter: Mandatory UUID (according
|
170
170
|
# to RFC 4122 standards) for requests and responses. This will be played
|
171
171
|
# back in the response from the request.
|
172
|
-
# @param [
|
173
|
-
# body
|
172
|
+
# @param [CardManagementV1OrdercardRequest] body Optional parameter: Order
|
173
|
+
# card request body
|
174
174
|
# @return [OrderCardResponse] response from the API call
|
175
|
-
def
|
176
|
-
|
175
|
+
def cardordercard(request_id,
|
176
|
+
body: nil)
|
177
177
|
new_api_call_builder
|
178
178
|
.request(new_request_builder(HttpMethodEnum::POST,
|
179
179
|
'/card-management/v1/ordercard',
|
180
|
-
Server::
|
180
|
+
Server::SHELL)
|
181
181
|
.header_param(new_parameter(request_id, key: 'RequestId'))
|
182
182
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
183
183
|
.body_param(new_parameter(body))
|
@@ -188,27 +188,27 @@ module ShellCardManagementApIs
|
|
188
188
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
189
189
|
.deserialize_into(OrderCardResponse.method(:from_hash))
|
190
190
|
.local_error('400',
|
191
|
-
|
191
|
+
'The server cannot or will not process the request due to'\
|
192
192
|
' something that is perceived to be a client error (e.g.,'\
|
193
193
|
' malformed request syntax, invalid request message framing, or'\
|
194
|
-
' deceptive request routing)
|
195
|
-
|
194
|
+
' deceptive request routing).',
|
195
|
+
APIException)
|
196
196
|
.local_error('401',
|
197
|
-
|
198
|
-
' authentication credentials for the target resource
|
199
|
-
|
197
|
+
'The request has not been applied because it lacks valid '\
|
198
|
+
' authentication credentials for the target resource.',
|
199
|
+
APIException)
|
200
200
|
.local_error('403',
|
201
201
|
'Forbidden',
|
202
|
-
|
202
|
+
APIException)
|
203
203
|
.local_error('404',
|
204
|
-
|
204
|
+
'The origin server did not find a current representation for'\
|
205
205
|
' the target resource or is not willing to disclose that one'\
|
206
|
-
' exists
|
207
|
-
|
206
|
+
' exists.',
|
207
|
+
APIException)
|
208
208
|
.local_error('500',
|
209
|
-
|
210
|
-
' it from fulfilling the request
|
211
|
-
|
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
|
|
@@ -228,12 +228,12 @@ module ShellCardManagementApIs
|
|
228
228
|
# @param [OrderCardEnquiryRequest] body Optional parameter: Order Card
|
229
229
|
# Enquiry request body
|
230
230
|
# @return [OrderCardEnquiryResponse] response from the API call
|
231
|
-
def
|
232
|
-
|
231
|
+
def cardordercardenquiry(request_id,
|
232
|
+
body: nil)
|
233
233
|
new_api_call_builder
|
234
234
|
.request(new_request_builder(HttpMethodEnum::POST,
|
235
235
|
'/card-management/v1/ordercardenquiry',
|
236
|
-
Server::
|
236
|
+
Server::SHELL)
|
237
237
|
.header_param(new_parameter(request_id, key: 'RequestId'))
|
238
238
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
239
239
|
.body_param(new_parameter(body))
|
@@ -244,27 +244,27 @@ module ShellCardManagementApIs
|
|
244
244
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
245
245
|
.deserialize_into(OrderCardEnquiryResponse.method(:from_hash))
|
246
246
|
.local_error('400',
|
247
|
-
|
247
|
+
'The server cannot or will not process the request due to'\
|
248
248
|
' something that is perceived to be a client error (e.g.,'\
|
249
249
|
' malformed request syntax, invalid request message framing, or'\
|
250
|
-
' deceptive request routing)
|
251
|
-
|
250
|
+
' deceptive request routing).',
|
251
|
+
APIException)
|
252
252
|
.local_error('401',
|
253
|
-
|
254
|
-
' authentication credentials for the target resource
|
255
|
-
|
253
|
+
'The request has not been applied because it lacks valid '\
|
254
|
+
' authentication credentials for the target resource.',
|
255
|
+
APIException)
|
256
256
|
.local_error('403',
|
257
257
|
'Forbidden',
|
258
|
-
|
258
|
+
APIException)
|
259
259
|
.local_error('404',
|
260
|
-
|
260
|
+
'The origin server did not find a current representation for'\
|
261
261
|
' the target resource or is not willing to disclose that one'\
|
262
|
-
' exists
|
263
|
-
|
262
|
+
' exists.',
|
263
|
+
APIException)
|
264
264
|
.local_error('500',
|
265
|
-
|
266
|
-
' it from fulfilling the request
|
267
|
-
|
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
|
|
@@ -314,15 +314,15 @@ module ShellCardManagementApIs
|
|
314
314
|
# @param [String] request_id Required parameter: Mandatory UUID (according
|
315
315
|
# to RFC 4122 standards) for requests and responses. This will be played
|
316
316
|
# back in the response from the request.
|
317
|
-
# @param [
|
318
|
-
# body
|
317
|
+
# @param [CardManagementV1CancelRequest] body Optional parameter: Update
|
318
|
+
# status request body
|
319
319
|
# @return [CancelCardResponse] response from the API call
|
320
|
-
def
|
321
|
-
|
320
|
+
def cardcancel(request_id,
|
321
|
+
body: nil)
|
322
322
|
new_api_call_builder
|
323
323
|
.request(new_request_builder(HttpMethodEnum::POST,
|
324
324
|
'/card-management/v1/cancel',
|
325
|
-
Server::
|
325
|
+
Server::SHELL)
|
326
326
|
.header_param(new_parameter(request_id, key: 'RequestId'))
|
327
327
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
328
328
|
.body_param(new_parameter(body))
|
@@ -333,27 +333,27 @@ module ShellCardManagementApIs
|
|
333
333
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
334
334
|
.deserialize_into(CancelCardResponse.method(:from_hash))
|
335
335
|
.local_error('400',
|
336
|
-
|
336
|
+
'The server cannot or will not process the request due to'\
|
337
337
|
' something that is perceived to be a client error (e.g.,'\
|
338
338
|
' malformed request syntax, invalid request message framing, or'\
|
339
|
-
' deceptive request routing)
|
339
|
+
' deceptive request routing).',
|
340
340
|
ErrorObjectException)
|
341
341
|
.local_error('401',
|
342
|
-
|
343
|
-
' authentication credentials for the target resource
|
344
|
-
|
342
|
+
'The request has not been applied because it lacks valid '\
|
343
|
+
' authentication credentials for the target resource.',
|
344
|
+
APIException)
|
345
345
|
.local_error('403',
|
346
346
|
'Forbidden',
|
347
|
-
|
347
|
+
APIException)
|
348
348
|
.local_error('404',
|
349
|
-
|
349
|
+
'The origin server did not find a current representation for'\
|
350
350
|
' the target resource or is not willing to disclose that one'\
|
351
|
-
' exists
|
352
|
-
|
351
|
+
' exists.',
|
352
|
+
APIException)
|
353
353
|
.local_error('500',
|
354
|
-
|
355
|
-
' it from fulfilling the request
|
356
|
-
|
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
|
|
@@ -427,15 +427,15 @@ module ShellCardManagementApIs
|
|
427
427
|
# @param [String] request_id Required parameter: Mandatory UUID (according
|
428
428
|
# to RFC 4122 standards) for requests and responses. This will be played
|
429
429
|
# back in the response from the request.
|
430
|
-
# @param [
|
431
|
-
# request body
|
430
|
+
# @param [CardManagementV1UpdatestatusRequest] body Optional parameter:
|
431
|
+
# Update status request body
|
432
432
|
# @return [UpdateCardStatusResponse] response from the API call
|
433
|
-
def
|
434
|
-
|
433
|
+
def cardupdatestatus(request_id,
|
434
|
+
body: nil)
|
435
435
|
new_api_call_builder
|
436
436
|
.request(new_request_builder(HttpMethodEnum::POST,
|
437
437
|
'/card-management/v1/updatestatus',
|
438
|
-
Server::
|
438
|
+
Server::SHELL)
|
439
439
|
.header_param(new_parameter(request_id, key: 'RequestId'))
|
440
440
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
441
441
|
.body_param(new_parameter(body))
|
@@ -446,27 +446,27 @@ module ShellCardManagementApIs
|
|
446
446
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
447
447
|
.deserialize_into(UpdateCardStatusResponse.method(:from_hash))
|
448
448
|
.local_error('400',
|
449
|
-
|
449
|
+
'The server cannot or will not process the request due to'\
|
450
450
|
' something that is perceived to be a client error (e.g.,'\
|
451
451
|
' malformed request syntax, invalid request message framing, or'\
|
452
|
-
' deceptive request routing)
|
453
|
-
|
452
|
+
' deceptive request routing).',
|
453
|
+
APIException)
|
454
454
|
.local_error('401',
|
455
|
-
|
456
|
-
' authentication credentials for the target resource
|
457
|
-
|
455
|
+
'The request has not been applied because it lacks valid '\
|
456
|
+
' authentication credentials for the target resource.',
|
457
|
+
APIException)
|
458
458
|
.local_error('403',
|
459
459
|
'Forbidden',
|
460
|
-
|
460
|
+
APIException)
|
461
461
|
.local_error('404',
|
462
|
-
|
462
|
+
'The origin server did not find a current representation for'\
|
463
463
|
' the target resource or is not willing to disclose that one'\
|
464
|
-
' exists
|
465
|
-
|
464
|
+
' exists.',
|
465
|
+
APIException)
|
466
466
|
.local_error('500',
|
467
|
-
|
468
|
-
' it from fulfilling the request
|
469
|
-
|
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
|
|
@@ -490,14 +490,14 @@ module ShellCardManagementApIs
|
|
490
490
|
new_api_call_builder
|
491
491
|
.request(new_request_builder(HttpMethodEnum::POST,
|
492
492
|
'/fleetmanagement/v1/master/purchasecategory',
|
493
|
-
Server::
|
493
|
+
Server::SHELL)
|
494
494
|
.header_param(new_parameter(apikey, key: 'apikey'))
|
495
495
|
.header_param(new_parameter(request_id, key: 'RequestId'))
|
496
496
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
497
497
|
.body_param(new_parameter(body))
|
498
498
|
.header_param(new_parameter('application/json', key: 'accept'))
|
499
499
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
500
|
-
.auth(Single.new('
|
500
|
+
.auth(Single.new('BearerToken')))
|
501
501
|
.response(new_response_handler
|
502
502
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
503
503
|
.deserialize_into(PurchaseCategoryResponse.method(:from_hash))
|
@@ -506,24 +506,23 @@ module ShellCardManagementApIs
|
|
506
506
|
' something that is perceived to be a client\r\n error (e.g.,'\
|
507
507
|
' malformed request syntax, invalid \r\n request message framing,'\
|
508
508
|
' or deceptive request routing).",
|
509
|
-
|
509
|
+
APIException)
|
510
510
|
.local_error('401',
|
511
|
-
|
512
|
-
' authentication credentials for the target resource
|
513
|
-
|
511
|
+
'The request has not been applied because it lacks valid '\
|
512
|
+
' authentication credentials for the target resource.',
|
513
|
+
APIException)
|
514
514
|
.local_error('403',
|
515
|
-
|
516
|
-
|
517
|
-
ErrorUserAccessError1Exception)
|
515
|
+
'The server understood the request but refuses to authorize it.',
|
516
|
+
APIException)
|
518
517
|
.local_error('404',
|
519
|
-
|
518
|
+
'The origin server did not find a current representation for'\
|
520
519
|
' the target resource or is not willing to disclose that one'\
|
521
|
-
' exists
|
522
|
-
|
520
|
+
' exists.',
|
521
|
+
APIException)
|
523
522
|
.local_error('500',
|
524
|
-
|
525
|
-
' from fulfilling the request
|
526
|
-
|
523
|
+
'The server encountered an unexpected condition the prevented it'\
|
524
|
+
' from fulfilling the request.',
|
525
|
+
APIException))
|
527
526
|
.execute
|
528
527
|
end
|
529
528
|
|
@@ -542,20 +541,20 @@ module ShellCardManagementApIs
|
|
542
541
|
# @param [CardDetailsRequest] body Optional parameter: Card details request
|
543
542
|
# body
|
544
543
|
# @return [CardDetailsResponse] response from the API call
|
545
|
-
def
|
546
|
-
|
547
|
-
|
544
|
+
def carddetails(apikey,
|
545
|
+
request_id,
|
546
|
+
body: nil)
|
548
547
|
new_api_call_builder
|
549
548
|
.request(new_request_builder(HttpMethodEnum::POST,
|
550
549
|
'/fleetmanagement/v1/card/card',
|
551
|
-
Server::
|
550
|
+
Server::SHELL)
|
552
551
|
.header_param(new_parameter(apikey, key: 'apikey'))
|
553
552
|
.header_param(new_parameter(request_id, key: 'RequestId'))
|
554
553
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
555
554
|
.body_param(new_parameter(body))
|
556
555
|
.header_param(new_parameter('application/json', key: 'accept'))
|
557
556
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
558
|
-
.auth(Single.new('
|
557
|
+
.auth(Single.new('BearerToken')))
|
559
558
|
.response(new_response_handler
|
560
559
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
561
560
|
.deserialize_into(CardDetailsResponse.method(:from_hash))
|
@@ -564,24 +563,23 @@ module ShellCardManagementApIs
|
|
564
563
|
' something that is perceived to be a client\r\n error (e.g.,'\
|
565
564
|
' malformed request syntax, invalid \r\n request message framing,'\
|
566
565
|
' or deceptive request routing).",
|
567
|
-
|
566
|
+
APIException)
|
568
567
|
.local_error('401',
|
569
|
-
|
570
|
-
' authentication credentials for the target resource
|
571
|
-
|
568
|
+
'The request has not been applied because it lacks valid '\
|
569
|
+
' authentication credentials for the target resource.',
|
570
|
+
APIException)
|
572
571
|
.local_error('403',
|
573
|
-
|
574
|
-
|
575
|
-
ErrorUserAccessError1Exception)
|
572
|
+
'The server understood the request but refuses to authorize it.',
|
573
|
+
APIException)
|
576
574
|
.local_error('404',
|
577
|
-
|
575
|
+
'The origin server did not find a current representation for'\
|
578
576
|
' the target resource or is not willing to disclose that one'\
|
579
|
-
' exists
|
580
|
-
|
577
|
+
' exists.',
|
578
|
+
APIException)
|
581
579
|
.local_error('500',
|
582
|
-
|
583
|
-
' from fulfilling the request
|
584
|
-
|
580
|
+
'The server encountered an unexpected condition the prevented it'\
|
581
|
+
' from fulfilling the request.',
|
582
|
+
APIException))
|
585
583
|
.execute
|
586
584
|
end
|
587
585
|
|
@@ -626,14 +624,14 @@ module ShellCardManagementApIs
|
|
626
624
|
new_api_call_builder
|
627
625
|
.request(new_request_builder(HttpMethodEnum::POST,
|
628
626
|
'/fleetmanagement/v1/card/move',
|
629
|
-
Server::
|
627
|
+
Server::SHELL)
|
630
628
|
.header_param(new_parameter(apikey, key: 'apikey'))
|
631
629
|
.header_param(new_parameter(request_id, key: 'RequestId'))
|
632
630
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
633
631
|
.body_param(new_parameter(body))
|
634
632
|
.header_param(new_parameter('application/json', key: 'accept'))
|
635
633
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
636
|
-
.auth(Single.new('
|
634
|
+
.auth(Single.new('BearerToken')))
|
637
635
|
.response(new_response_handler
|
638
636
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
639
637
|
.deserialize_into(CardMoveResponse.method(:from_hash))
|
@@ -642,24 +640,23 @@ module ShellCardManagementApIs
|
|
642
640
|
' something that is perceived to be a client\r\n error (e.g.,'\
|
643
641
|
' malformed request syntax, invalid \r\n request message framing,'\
|
644
642
|
' or deceptive request routing).",
|
645
|
-
|
643
|
+
APIException)
|
646
644
|
.local_error('401',
|
647
|
-
|
648
|
-
' authentication credentials for the target resource
|
649
|
-
|
645
|
+
'The request has not been applied because it lacks valid '\
|
646
|
+
' authentication credentials for the target resource.',
|
647
|
+
APIException)
|
650
648
|
.local_error('403',
|
651
|
-
|
652
|
-
|
653
|
-
ErrorUserAccessError1Exception)
|
649
|
+
'The server understood the request but refuses to authorize it.',
|
650
|
+
APIException)
|
654
651
|
.local_error('404',
|
655
|
-
|
652
|
+
'The origin server did not find a current representation for'\
|
656
653
|
' the target resource or is not willing to disclose that one'\
|
657
|
-
' exists
|
658
|
-
|
654
|
+
' exists.',
|
655
|
+
APIException)
|
659
656
|
.local_error('500',
|
660
|
-
|
661
|
-
' from fulfilling the request
|
662
|
-
|
657
|
+
'The server encountered an unexpected condition the prevented it'\
|
658
|
+
' from fulfilling the request.',
|
659
|
+
APIException))
|
663
660
|
.execute
|
664
661
|
end
|
665
662
|
|
@@ -692,15 +689,15 @@ module ShellCardManagementApIs
|
|
692
689
|
# @param [String] request_id Required parameter: Mandatory UUID (according
|
693
690
|
# to RFC 4122 standards) for requests and responses. This will be played
|
694
691
|
# back in the response from the request.
|
695
|
-
# @param [
|
696
|
-
# body
|
692
|
+
# @param [CardManagementV1PinreminderRequest] body Optional parameter: PIN
|
693
|
+
# reminder request body
|
697
694
|
# @return [PINReminderResponse] response from the API call
|
698
|
-
def
|
699
|
-
|
695
|
+
def cardpinreminder(request_id,
|
696
|
+
body: nil)
|
700
697
|
new_api_call_builder
|
701
698
|
.request(new_request_builder(HttpMethodEnum::POST,
|
702
699
|
'/card-management/v1/pinreminder',
|
703
|
-
Server::
|
700
|
+
Server::SHELL)
|
704
701
|
.header_param(new_parameter(request_id, key: 'RequestId'))
|
705
702
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
706
703
|
.body_param(new_parameter(body))
|
@@ -711,26 +708,26 @@ module ShellCardManagementApIs
|
|
711
708
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
712
709
|
.deserialize_into(PINReminderResponse.method(:from_hash))
|
713
710
|
.local_error('400',
|
714
|
-
|
711
|
+
'The server cannot or will not process the request due to'\
|
715
712
|
' something that is perceived to be a client error (e.g.,'\
|
716
713
|
' malformed request syntax, invalid request message framing, or'\
|
717
|
-
' deceptive request routing)
|
714
|
+
' deceptive request routing).',
|
718
715
|
ErrorObjectException)
|
719
716
|
.local_error('401',
|
720
|
-
|
721
|
-
' authentication credentials for the target resource
|
717
|
+
'The request has not been applied because it lacks valid '\
|
718
|
+
' authentication credentials for the target resource.',
|
722
719
|
ErrorObjectException)
|
723
720
|
.local_error('403',
|
724
721
|
'Forbidden',
|
725
722
|
ErrorObjectException)
|
726
723
|
.local_error('404',
|
727
|
-
|
724
|
+
'The origin server did not find a current representation for'\
|
728
725
|
' the target resource or is not willing to disclose that one'\
|
729
|
-
' exists
|
726
|
+
' exists.',
|
730
727
|
ErrorObjectException)
|
731
728
|
.local_error('500',
|
732
|
-
|
733
|
-
' it from fulfilling the request
|
729
|
+
'The server encountered an unexpected condition that prevented'\
|
730
|
+
' it from fulfilling the request.',
|
734
731
|
ErrorObjectException))
|
735
732
|
.execute
|
736
733
|
end
|
@@ -787,7 +784,7 @@ module ShellCardManagementApIs
|
|
787
784
|
new_api_call_builder
|
788
785
|
.request(new_request_builder(HttpMethodEnum::POST,
|
789
786
|
'/card-management/v1/schedulecardblock',
|
790
|
-
Server::
|
787
|
+
Server::SHELL)
|
791
788
|
.header_param(new_parameter(request_id, key: 'RequestId'))
|
792
789
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
793
790
|
.body_param(new_parameter(body))
|
@@ -798,27 +795,27 @@ module ShellCardManagementApIs
|
|
798
795
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
799
796
|
.deserialize_into(ScheduleCardBlockResponse.method(:from_hash))
|
800
797
|
.local_error('400',
|
801
|
-
|
798
|
+
'The server cannot or will not process the request due to'\
|
802
799
|
' something that is perceived to be a client error (e.g.,'\
|
803
800
|
' malformed request syntax, invalid request message framing, or'\
|
804
|
-
' deceptive request routing)
|
805
|
-
|
801
|
+
' deceptive request routing).',
|
802
|
+
APIException)
|
806
803
|
.local_error('401',
|
807
|
-
|
808
|
-
' authentication credentials for the target resource
|
809
|
-
|
804
|
+
'The request has not been applied because it lacks valid '\
|
805
|
+
' authentication credentials for the target resource.',
|
806
|
+
APIException)
|
810
807
|
.local_error('403',
|
811
808
|
'Forbidden',
|
812
|
-
|
809
|
+
APIException)
|
813
810
|
.local_error('404',
|
814
|
-
|
811
|
+
'The origin server did not find a current representation for'\
|
815
812
|
' the target resource or is not willing to disclose that one'\
|
816
|
-
' exists
|
817
|
-
|
813
|
+
' exists.',
|
814
|
+
APIException)
|
818
815
|
.local_error('500',
|
819
|
-
|
820
|
-
' it from fulfilling the request
|
821
|
-
|
816
|
+
'The server encountered an unexpected condition that prevented'\
|
817
|
+
' it from fulfilling the request.',
|
818
|
+
APIException))
|
822
819
|
.execute
|
823
820
|
end
|
824
821
|
|
@@ -849,12 +846,12 @@ module ShellCardManagementApIs
|
|
849
846
|
# @param [AutoRenewCardRequest] body Optional parameter: Auto renew request
|
850
847
|
# body
|
851
848
|
# @return [AutoRenewCardResponse] response from the API call
|
852
|
-
def
|
853
|
-
|
849
|
+
def autorenew(request_id,
|
850
|
+
body: nil)
|
854
851
|
new_api_call_builder
|
855
852
|
.request(new_request_builder(HttpMethodEnum::POST,
|
856
853
|
'/card-management/v1/autorenew',
|
857
|
-
Server::
|
854
|
+
Server::SHELL)
|
858
855
|
.header_param(new_parameter(request_id, key: 'RequestId'))
|
859
856
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
860
857
|
.body_param(new_parameter(body))
|
@@ -865,27 +862,27 @@ module ShellCardManagementApIs
|
|
865
862
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
866
863
|
.deserialize_into(AutoRenewCardResponse.method(:from_hash))
|
867
864
|
.local_error('400',
|
868
|
-
|
865
|
+
'The server cannot or will not process the request due to'\
|
869
866
|
' something that is perceived to be a client error (e.g.,'\
|
870
867
|
' malformed request syntax, invalid request message framing, or'\
|
871
|
-
' deceptive request routing)
|
872
|
-
|
868
|
+
' deceptive request routing).',
|
869
|
+
APIException)
|
873
870
|
.local_error('401',
|
874
|
-
|
875
|
-
' authentication credentials for the target resource
|
876
|
-
|
871
|
+
'The request has not been applied because it lacks valid '\
|
872
|
+
' authentication credentials for the target resource.',
|
873
|
+
APIException)
|
877
874
|
.local_error('403',
|
878
875
|
'Forbidden',
|
879
|
-
|
876
|
+
APIException)
|
880
877
|
.local_error('404',
|
881
|
-
|
878
|
+
'The origin server did not find a current representation for'\
|
882
879
|
' the target resource or is not willing to disclose that one'\
|
883
|
-
' exists
|
884
|
-
|
880
|
+
' exists.',
|
881
|
+
APIException)
|
885
882
|
.local_error('500',
|
886
|
-
|
887
|
-
' it from fulfilling the request
|
888
|
-
|
883
|
+
'The server encountered an unexpected condition that prevented'\
|
884
|
+
' it from fulfilling the request.',
|
885
|
+
APIException))
|
889
886
|
.execute
|
890
887
|
end
|
891
888
|
|
@@ -902,12 +899,12 @@ module ShellCardManagementApIs
|
|
902
899
|
# @param [UpdateMPayRegStatusRequest] body Optional parameter: Request
|
903
900
|
# body
|
904
901
|
# @return [UpdateMPayRegStatusResponse] response from the API call
|
905
|
-
def
|
906
|
-
|
902
|
+
def updatemobilepaymentregistrationstatus(request_id,
|
903
|
+
body: nil)
|
907
904
|
new_api_call_builder
|
908
905
|
.request(new_request_builder(HttpMethodEnum::POST,
|
909
906
|
'/card-management/v1/updatemobilepaymentregistrationstatus',
|
910
|
-
Server::
|
907
|
+
Server::SHELL)
|
911
908
|
.header_param(new_parameter(request_id, key: 'RequestId'))
|
912
909
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
913
910
|
.body_param(new_parameter(body))
|
@@ -918,27 +915,27 @@ module ShellCardManagementApIs
|
|
918
915
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
919
916
|
.deserialize_into(UpdateMPayRegStatusResponse.method(:from_hash))
|
920
917
|
.local_error('400',
|
921
|
-
|
918
|
+
'The server cannot or will not process the request due to'\
|
922
919
|
' something that is perceived to be a client error (e.g.,'\
|
923
920
|
' malformed request syntax, invalid request message framing, or'\
|
924
|
-
' deceptive request routing)
|
921
|
+
' deceptive request routing).',
|
925
922
|
ErrorObjectException)
|
926
923
|
.local_error('401',
|
927
|
-
|
928
|
-
' authentication credentials for the target resource
|
929
|
-
|
924
|
+
'The request has not been applied because it lacks valid '\
|
925
|
+
' authentication credentials for the target resource.',
|
926
|
+
APIException)
|
930
927
|
.local_error('403',
|
931
928
|
'Forbidden',
|
932
|
-
|
929
|
+
APIException)
|
933
930
|
.local_error('404',
|
934
|
-
|
931
|
+
'The origin server did not find a current representation for'\
|
935
932
|
' the target resource or is not willing to disclose that one'\
|
936
|
-
' exists
|
937
|
-
|
933
|
+
' exists.',
|
934
|
+
APIException)
|
938
935
|
.local_error('500',
|
939
|
-
|
940
|
-
' it from fulfilling the request
|
941
|
-
|
936
|
+
'The server encountered an unexpected condition that prevented'\
|
937
|
+
' it from fulfilling the request.',
|
938
|
+
APIException))
|
942
939
|
.execute
|
943
940
|
end
|
944
941
|
|
@@ -954,12 +951,12 @@ module ShellCardManagementApIs
|
|
954
951
|
# If the parameter is false then the key will be valid for one time. default
|
955
952
|
# value will be false.
|
956
953
|
# @return [GeneratePINKeyResponse] response from the API call
|
957
|
-
def
|
958
|
-
|
954
|
+
def getkey(request_id,
|
955
|
+
fleet: nil)
|
959
956
|
new_api_call_builder
|
960
957
|
.request(new_request_builder(HttpMethodEnum::GET,
|
961
958
|
'/pin-management/v1/generatepinkeys',
|
962
|
-
Server::
|
959
|
+
Server::SHELL)
|
963
960
|
.header_param(new_parameter(request_id, key: 'RequestId'))
|
964
961
|
.query_param(new_parameter(fleet, key: 'fleet'))
|
965
962
|
.header_param(new_parameter('application/json', key: 'accept'))
|
@@ -972,24 +969,23 @@ module ShellCardManagementApIs
|
|
972
969
|
' something that is perceived to be a client\r\n error (e.g.,'\
|
973
970
|
' malformed request syntax, invalid \r\n request message framing,'\
|
974
971
|
' or deceptive request routing).",
|
975
|
-
|
972
|
+
APIException)
|
976
973
|
.local_error('401',
|
977
|
-
|
978
|
-
' authentication credentials for the target resource
|
979
|
-
|
974
|
+
'The request has not been applied because it lacks valid '\
|
975
|
+
' authentication credentials for the target resource.',
|
976
|
+
APIException)
|
980
977
|
.local_error('403',
|
981
|
-
|
982
|
-
|
983
|
-
ErrorUserAccessError1Exception)
|
978
|
+
'The server understood the request but refuses to authorize it.',
|
979
|
+
APIException)
|
984
980
|
.local_error('404',
|
985
|
-
|
981
|
+
'The origin server did not find a current representation for'\
|
986
982
|
' the target resource or is not willing to disclose that one'\
|
987
|
-
' exists
|
988
|
-
|
983
|
+
' exists.',
|
984
|
+
APIException)
|
989
985
|
.local_error('500',
|
990
|
-
|
991
|
-
' from fulfilling the request
|
992
|
-
|
986
|
+
'The server encountered an unexpected condition the prevented it'\
|
987
|
+
' from fulfilling the request.',
|
988
|
+
APIException))
|
993
989
|
.execute
|
994
990
|
end
|
995
991
|
|
@@ -1003,12 +999,12 @@ module ShellCardManagementApIs
|
|
1003
999
|
# @param [DeliveryAddressUpdateRequest] body Optional parameter: Delivery
|
1004
1000
|
# Address Update Request Body
|
1005
1001
|
# @return [DeliveryAddressUpdateResponse] response from the API call
|
1006
|
-
def
|
1007
|
-
|
1002
|
+
def deliveryaddressupdate(apikey,
|
1003
|
+
body: nil)
|
1008
1004
|
new_api_call_builder
|
1009
1005
|
.request(new_request_builder(HttpMethodEnum::POST,
|
1010
1006
|
'/fleetmanagement/v1/card/deliveryaddressupdate',
|
1011
|
-
Server::
|
1007
|
+
Server::SHELL)
|
1012
1008
|
.header_param(new_parameter(apikey, key: 'apikey'))
|
1013
1009
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
1014
1010
|
.body_param(new_parameter(body))
|
@@ -1023,24 +1019,23 @@ module ShellCardManagementApIs
|
|
1023
1019
|
' something that is perceived to be a client\r\n error (e.g.,'\
|
1024
1020
|
' malformed request syntax, invalid \r\n request message framing,'\
|
1025
1021
|
' or deceptive request routing).",
|
1026
|
-
|
1022
|
+
APIException)
|
1027
1023
|
.local_error('401',
|
1028
|
-
|
1029
|
-
' authentication credentials for the target resource
|
1030
|
-
|
1024
|
+
'The request has not been applied because it lacks valid '\
|
1025
|
+
' authentication credentials for the target resource.',
|
1026
|
+
APIException)
|
1031
1027
|
.local_error('403',
|
1032
|
-
|
1033
|
-
|
1034
|
-
ErrorUserAccessError1Exception)
|
1028
|
+
'The server understood the request but refuses to authorize it.',
|
1029
|
+
APIException)
|
1035
1030
|
.local_error('404',
|
1036
|
-
|
1031
|
+
'The origin server did not find a current representation for'\
|
1037
1032
|
' the target resource or is not willing to disclose that one'\
|
1038
|
-
' exists
|
1039
|
-
|
1033
|
+
' exists.',
|
1034
|
+
APIException)
|
1040
1035
|
.local_error('500',
|
1041
|
-
|
1042
|
-
' from fulfilling the request
|
1043
|
-
|
1036
|
+
'The server encountered an unexpected condition the prevented it'\
|
1037
|
+
' from fulfilling the request.',
|
1038
|
+
APIException))
|
1044
1039
|
.execute
|
1045
1040
|
end
|
1046
1041
|
end
|