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
@@ -17,16 +17,16 @@ module ShellCardManagementApIs
|
|
17
17
|
# @param [String] request_id Required parameter: Mandatory UUID (according
|
18
18
|
# to RFC 4122 standards) for requests and responses. This will be played
|
19
19
|
# back in the response from the request.
|
20
|
-
# @param [
|
21
|
-
# request body
|
20
|
+
# @param [FleetmanagementV1UserLoggedinuserRequest] body Optional parameter:
|
21
|
+
# Logged in user request body
|
22
22
|
# @return [LoggedInUserResponse] response from the API call
|
23
|
-
def
|
24
|
-
|
25
|
-
|
23
|
+
def loggedinuser(apikey,
|
24
|
+
request_id,
|
25
|
+
body: nil)
|
26
26
|
new_api_call_builder
|
27
27
|
.request(new_request_builder(HttpMethodEnum::POST,
|
28
28
|
'/fleetmanagement/v1/user/loggedinuser',
|
29
|
-
Server::
|
29
|
+
Server::SHELL)
|
30
30
|
.header_param(new_parameter(apikey, key: 'apikey'))
|
31
31
|
.header_param(new_parameter(request_id, key: 'RequestId'))
|
32
32
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
@@ -42,24 +42,23 @@ module ShellCardManagementApIs
|
|
42
42
|
' something that is perceived to be a client\r\n error (e.g.,'\
|
43
43
|
' malformed request syntax, invalid \r\n request message framing,'\
|
44
44
|
' or deceptive request routing).",
|
45
|
-
|
45
|
+
FleetmanagementV1UserLoggedinuser400ErrorException)
|
46
46
|
.local_error('401',
|
47
|
-
|
48
|
-
' authentication credentials for the target resource
|
49
|
-
|
47
|
+
'The request has not been applied because it lacks valid '\
|
48
|
+
' authentication credentials for the target resource.',
|
49
|
+
FleetmanagementV1UserLoggedinuser401ErrorException)
|
50
50
|
.local_error('403',
|
51
|
-
|
52
|
-
|
53
|
-
ErrorUserAccessError1Exception)
|
51
|
+
'The server understood the request but refuses to authorize it.',
|
52
|
+
FleetmanagementV1UserLoggedinuser403ErrorException)
|
54
53
|
.local_error('404',
|
55
|
-
|
54
|
+
'The origin server did not find a current representation for'\
|
56
55
|
' the target resource or is not willing to disclose that one'\
|
57
|
-
' exists
|
58
|
-
|
56
|
+
' exists.',
|
57
|
+
FleetmanagementV1UserLoggedinuser404ErrorException)
|
59
58
|
.local_error('500',
|
60
|
-
|
61
|
-
' from fulfilling the request
|
62
|
-
|
59
|
+
'The server encountered an unexpected condition the prevented it'\
|
60
|
+
' from fulfilling the request.',
|
61
|
+
FleetmanagementV1UserLoggedinuser500ErrorException))
|
63
62
|
.execute
|
64
63
|
end
|
65
64
|
|
@@ -86,7 +85,7 @@ module ShellCardManagementApIs
|
|
86
85
|
new_api_call_builder
|
87
86
|
.request(new_request_builder(HttpMethodEnum::POST,
|
88
87
|
'/fleetmanagement/v1/customer/payers',
|
89
|
-
Server::
|
88
|
+
Server::SHELL)
|
90
89
|
.header_param(new_parameter(apikey, key: 'apikey'))
|
91
90
|
.header_param(new_parameter(request_id, key: 'RequestId'))
|
92
91
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
@@ -102,24 +101,23 @@ module ShellCardManagementApIs
|
|
102
101
|
' something that is perceived to be a client\r\n error (e.g.,'\
|
103
102
|
' malformed request syntax, invalid \r\n request message framing,'\
|
104
103
|
' or deceptive request routing).",
|
105
|
-
|
104
|
+
FleetmanagementV1CustomerPayers400ErrorException)
|
106
105
|
.local_error('401',
|
107
|
-
|
108
|
-
' authentication credentials for the target resource
|
109
|
-
|
106
|
+
'The request has not been applied because it lacks valid '\
|
107
|
+
' authentication credentials for the target resource.',
|
108
|
+
APIException)
|
110
109
|
.local_error('403',
|
111
|
-
|
112
|
-
|
113
|
-
ErrorUserAccessError1Exception)
|
110
|
+
'The server understood the request but refuses to authorize it.',
|
111
|
+
APIException)
|
114
112
|
.local_error('404',
|
115
|
-
|
113
|
+
'The origin server did not find a current representation for'\
|
116
114
|
' the target resource or is not willing to disclose that one'\
|
117
|
-
' exists
|
118
|
-
|
115
|
+
' exists.',
|
116
|
+
FleetmanagementV1CustomerPayers404ErrorException)
|
119
117
|
.local_error('500',
|
120
|
-
|
121
|
-
' from fulfilling the request
|
122
|
-
|
118
|
+
'The server encountered an unexpected condition the prevented it'\
|
119
|
+
' from fulfilling the request.',
|
120
|
+
APIException))
|
123
121
|
.execute
|
124
122
|
end
|
125
123
|
|
@@ -140,7 +138,7 @@ module ShellCardManagementApIs
|
|
140
138
|
new_api_call_builder
|
141
139
|
.request(new_request_builder(HttpMethodEnum::POST,
|
142
140
|
'/fleetmanagement/v1/customer/customer',
|
143
|
-
Server::
|
141
|
+
Server::SHELL)
|
144
142
|
.header_param(new_parameter(apikey, key: 'apikey'))
|
145
143
|
.header_param(new_parameter(request_id, key: 'RequestId'))
|
146
144
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
@@ -156,24 +154,23 @@ module ShellCardManagementApIs
|
|
156
154
|
' something that is perceived to be a client\r\n error (e.g.,'\
|
157
155
|
' malformed request syntax, invalid \r\n request message framing,'\
|
158
156
|
' or deceptive request routing).",
|
159
|
-
|
157
|
+
APIException)
|
160
158
|
.local_error('401',
|
161
|
-
|
162
|
-
' authentication credentials for the target resource
|
163
|
-
|
159
|
+
'The request has not been applied because it lacks valid '\
|
160
|
+
' authentication credentials for the target resource.',
|
161
|
+
APIException)
|
164
162
|
.local_error('403',
|
165
|
-
|
166
|
-
|
167
|
-
ErrorUserAccessError1Exception)
|
163
|
+
'The server understood the request but refuses to authorize it.',
|
164
|
+
FleetmanagementV1CustomerCustomer403ErrorException)
|
168
165
|
.local_error('404',
|
169
|
-
|
166
|
+
'The origin server did not find a current representation for'\
|
170
167
|
' the target resource or is not willing to disclose that one'\
|
171
|
-
' exists
|
172
|
-
|
168
|
+
' exists.',
|
169
|
+
APIException)
|
173
170
|
.local_error('500',
|
174
|
-
|
175
|
-
' from fulfilling the request
|
176
|
-
|
171
|
+
'The server encountered an unexpected condition the prevented it'\
|
172
|
+
' from fulfilling the request.',
|
173
|
+
APIException))
|
177
174
|
.execute
|
178
175
|
end
|
179
176
|
|
@@ -193,7 +190,7 @@ module ShellCardManagementApIs
|
|
193
190
|
new_api_call_builder
|
194
191
|
.request(new_request_builder(HttpMethodEnum::POST,
|
195
192
|
'/fleetmanagement/v1/customer/accounts',
|
196
|
-
Server::
|
193
|
+
Server::SHELL)
|
197
194
|
.header_param(new_parameter(apikey, key: 'apikey'))
|
198
195
|
.header_param(new_parameter(request_id, key: 'RequestId'))
|
199
196
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
@@ -209,24 +206,23 @@ module ShellCardManagementApIs
|
|
209
206
|
' something that is perceived to be a client\r\n error (e.g.,'\
|
210
207
|
' malformed request syntax, invalid \r\n request message framing,'\
|
211
208
|
' or deceptive request routing).",
|
212
|
-
|
209
|
+
APIException)
|
213
210
|
.local_error('401',
|
214
|
-
|
215
|
-
' authentication credentials for the target resource
|
216
|
-
|
211
|
+
'The request has not been applied because it lacks valid '\
|
212
|
+
' authentication credentials for the target resource.',
|
213
|
+
APIException)
|
217
214
|
.local_error('403',
|
218
|
-
|
219
|
-
|
220
|
-
ErrorUserAccessError1Exception)
|
215
|
+
'The server understood the request but refuses to authorize it.',
|
216
|
+
APIException)
|
221
217
|
.local_error('404',
|
222
|
-
|
218
|
+
'The origin server did not find a current representation for'\
|
223
219
|
' the target resource or is not willing to disclose that one'\
|
224
|
-
' exists
|
225
|
-
|
220
|
+
' exists.',
|
221
|
+
APIException)
|
226
222
|
.local_error('500',
|
227
|
-
|
228
|
-
' from fulfilling the request
|
229
|
-
|
223
|
+
'The server encountered an unexpected condition the prevented it'\
|
224
|
+
' from fulfilling the request.',
|
225
|
+
APIException))
|
230
226
|
.execute
|
231
227
|
end
|
232
228
|
|
@@ -246,7 +242,7 @@ module ShellCardManagementApIs
|
|
246
242
|
new_api_call_builder
|
247
243
|
.request(new_request_builder(HttpMethodEnum::POST,
|
248
244
|
'/fleetmanagement/v2/customer/cardtype',
|
249
|
-
Server::
|
245
|
+
Server::SHELL)
|
250
246
|
.header_param(new_parameter(apikey, key: 'apikey'))
|
251
247
|
.header_param(new_parameter(request_id, key: 'RequestId'))
|
252
248
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
@@ -262,24 +258,23 @@ module ShellCardManagementApIs
|
|
262
258
|
' something that is perceived to be a client\r\n error (e.g.,'\
|
263
259
|
' malformed request syntax, invalid \r\n request message framing,'\
|
264
260
|
' or deceptive request routing).",
|
265
|
-
|
261
|
+
APIException)
|
266
262
|
.local_error('401',
|
267
|
-
|
268
|
-
' authentication credentials for the target resource
|
269
|
-
|
263
|
+
'The request has not been applied because it lacks valid '\
|
264
|
+
' authentication credentials for the target resource.',
|
265
|
+
APIException)
|
270
266
|
.local_error('403',
|
271
|
-
|
272
|
-
|
273
|
-
ErrorUserAccessError1Exception)
|
267
|
+
'The server understood the request but refuses to authorize it.',
|
268
|
+
APIException)
|
274
269
|
.local_error('404',
|
275
|
-
|
270
|
+
'The origin server did not find a current representation for'\
|
276
271
|
' the target resource or is not willing to disclose that one'\
|
277
|
-
' exists
|
278
|
-
|
272
|
+
' exists.',
|
273
|
+
APIException)
|
279
274
|
.local_error('500',
|
280
|
-
|
281
|
-
' from fulfilling the request
|
282
|
-
|
275
|
+
'The server encountered an unexpected condition the prevented it'\
|
276
|
+
' from fulfilling the request.',
|
277
|
+
APIException))
|
283
278
|
.execute
|
284
279
|
end
|
285
280
|
|
@@ -300,13 +295,13 @@ module ShellCardManagementApIs
|
|
300
295
|
# back in the response from the request.
|
301
296
|
# @param [CardGroupRequest] body Optional parameter: Request Body
|
302
297
|
# @return [CardGroupResponse] response from the API call
|
303
|
-
def
|
304
|
-
|
305
|
-
|
298
|
+
def cardgroups(apikey,
|
299
|
+
request_id,
|
300
|
+
body: nil)
|
306
301
|
new_api_call_builder
|
307
302
|
.request(new_request_builder(HttpMethodEnum::POST,
|
308
303
|
'/fleetmanagement/v1/customer/cardgroups',
|
309
|
-
Server::
|
304
|
+
Server::SHELL)
|
310
305
|
.header_param(new_parameter(apikey, key: 'apikey'))
|
311
306
|
.header_param(new_parameter(request_id, key: 'RequestId'))
|
312
307
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
@@ -322,24 +317,23 @@ module ShellCardManagementApIs
|
|
322
317
|
' something that is perceived to be a client\r\n error (e.g.,'\
|
323
318
|
' malformed request syntax, invalid \r\n request message framing,'\
|
324
319
|
' or deceptive request routing).",
|
325
|
-
|
320
|
+
APIException)
|
326
321
|
.local_error('401',
|
327
|
-
|
328
|
-
' authentication credentials for the target resource
|
329
|
-
|
322
|
+
'The request has not been applied because it lacks valid '\
|
323
|
+
' authentication credentials for the target resource.',
|
324
|
+
APIException)
|
330
325
|
.local_error('403',
|
331
|
-
|
332
|
-
|
333
|
-
ErrorUserAccessError1Exception)
|
326
|
+
'The server understood the request but refuses to authorize it.',
|
327
|
+
APIException)
|
334
328
|
.local_error('404',
|
335
|
-
|
329
|
+
'The origin server did not find a current representation for'\
|
336
330
|
' the target resource or is not willing to disclose that one'\
|
337
|
-
' exists
|
338
|
-
|
331
|
+
' exists.',
|
332
|
+
APIException)
|
339
333
|
.local_error('500',
|
340
|
-
|
341
|
-
' from fulfilling the request
|
342
|
-
|
334
|
+
'The server encountered an unexpected condition the prevented it'\
|
335
|
+
' from fulfilling the request.',
|
336
|
+
APIException))
|
343
337
|
.execute
|
344
338
|
end
|
345
339
|
|
@@ -359,8 +353,7 @@ module ShellCardManagementApIs
|
|
359
353
|
# * BCOSummary
|
360
354
|
# * BCOMultiAccountSummary
|
361
355
|
# * BCBSummary
|
362
|
-
# * Mobile Payment
|
363
|
-
# * Registration
|
356
|
+
# * Mobile Payment Registration
|
364
357
|
# * Fund Transfer (Scheduled & Realtime)
|
365
358
|
# * Delivery Address Update.
|
366
359
|
# @param [String] apikey Required parameter: This is the API key of the
|
@@ -370,13 +363,13 @@ module ShellCardManagementApIs
|
|
370
363
|
# back in the response from the request.
|
371
364
|
# @param [AuditRequest] body Optional parameter: request body
|
372
365
|
# @return [AuditResponse] response from the API call
|
373
|
-
def
|
374
|
-
|
375
|
-
|
366
|
+
def auditreport(apikey,
|
367
|
+
request_id,
|
368
|
+
body: nil)
|
376
369
|
new_api_call_builder
|
377
370
|
.request(new_request_builder(HttpMethodEnum::POST,
|
378
371
|
'/fleetmanagement/v1/customer/auditreport',
|
379
|
-
Server::
|
372
|
+
Server::SHELL)
|
380
373
|
.header_param(new_parameter(apikey, key: 'apikey'))
|
381
374
|
.header_param(new_parameter(request_id, key: 'RequestId'))
|
382
375
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
@@ -392,24 +385,23 @@ module ShellCardManagementApIs
|
|
392
385
|
' something that is perceived to be a client\r\n error (e.g.,'\
|
393
386
|
' malformed request syntax, invalid \r\n request message framing,'\
|
394
387
|
' or deceptive request routing).",
|
395
|
-
|
388
|
+
APIException)
|
396
389
|
.local_error('401',
|
397
|
-
|
398
|
-
' authentication credentials for the target resource
|
399
|
-
|
390
|
+
'The request has not been applied because it lacks valid '\
|
391
|
+
' authentication credentials for the target resource.',
|
392
|
+
APIException)
|
400
393
|
.local_error('403',
|
401
|
-
|
402
|
-
|
403
|
-
ErrorUserAccessError1Exception)
|
394
|
+
'The server understood the request but refuses to authorize it.',
|
395
|
+
APIException)
|
404
396
|
.local_error('404',
|
405
|
-
|
397
|
+
'The origin server did not find a current representation for'\
|
406
398
|
' the target resource or is not willing to disclose that one'\
|
407
|
-
' exists
|
408
|
-
|
399
|
+
' exists.',
|
400
|
+
APIException)
|
409
401
|
.local_error('500',
|
410
|
-
|
411
|
-
' from fulfilling the request
|
412
|
-
|
402
|
+
'The server encountered an unexpected condition the prevented it'\
|
403
|
+
' from fulfilling the request.',
|
404
|
+
APIException))
|
413
405
|
.execute
|
414
406
|
end
|
415
407
|
|
@@ -433,13 +425,13 @@ module ShellCardManagementApIs
|
|
433
425
|
# @param [CreateCardGroupRequest] body Optional parameter: CreateCardGroup
|
434
426
|
# request body
|
435
427
|
# @return [CreateCardGroupResponse] response from the API call
|
436
|
-
def
|
437
|
-
|
438
|
-
|
428
|
+
def createcardgroup(apikey,
|
429
|
+
request_id,
|
430
|
+
body: nil)
|
439
431
|
new_api_call_builder
|
440
432
|
.request(new_request_builder(HttpMethodEnum::POST,
|
441
433
|
'/fleetmanagement/v1/customer/createcardgroup',
|
442
|
-
Server::
|
434
|
+
Server::SHELL)
|
443
435
|
.header_param(new_parameter(apikey, key: 'apikey'))
|
444
436
|
.header_param(new_parameter(request_id, key: 'RequestId'))
|
445
437
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
@@ -455,24 +447,23 @@ module ShellCardManagementApIs
|
|
455
447
|
' something that is perceived to be a client\r\n error (e.g.,'\
|
456
448
|
' malformed request syntax, invalid \r\n request message framing,'\
|
457
449
|
' or deceptive request routing).",
|
458
|
-
|
450
|
+
APIException)
|
459
451
|
.local_error('401',
|
460
|
-
|
461
|
-
' authentication credentials for the target resource
|
462
|
-
|
452
|
+
'The request has not been applied because it lacks valid '\
|
453
|
+
' authentication credentials for the target resource.',
|
454
|
+
APIException)
|
463
455
|
.local_error('403',
|
464
|
-
|
465
|
-
|
466
|
-
ErrorUserAccessError1Exception)
|
456
|
+
'The server understood the request but refuses to authorize it.',
|
457
|
+
APIException)
|
467
458
|
.local_error('404',
|
468
|
-
|
459
|
+
'The origin server did not find a current representation for'\
|
469
460
|
' the target resource or is not willing to disclose that one'\
|
470
|
-
' exists
|
471
|
-
|
461
|
+
' exists.',
|
462
|
+
APIException)
|
472
463
|
.local_error('500',
|
473
|
-
|
474
|
-
' from fulfilling the request
|
475
|
-
|
464
|
+
'The server encountered an unexpected condition the prevented it'\
|
465
|
+
' from fulfilling the request.',
|
466
|
+
APIException))
|
476
467
|
.execute
|
477
468
|
end
|
478
469
|
|
@@ -492,13 +483,13 @@ module ShellCardManagementApIs
|
|
492
483
|
# @param [UpdateCardGroupRequest] body Optional parameter: request body of
|
493
484
|
# customer card group
|
494
485
|
# @return [UpdateCardGroupResponse] response from the API call
|
495
|
-
def
|
496
|
-
|
497
|
-
|
486
|
+
def updatecardgroup(apikey,
|
487
|
+
request_id,
|
488
|
+
body: nil)
|
498
489
|
new_api_call_builder
|
499
490
|
.request(new_request_builder(HttpMethodEnum::POST,
|
500
491
|
'/fleetmanagement/v1/customer/updatecardgroup',
|
501
|
-
Server::
|
492
|
+
Server::SHELL)
|
502
493
|
.header_param(new_parameter(apikey, key: 'apikey'))
|
503
494
|
.header_param(new_parameter(request_id, key: 'RequestId'))
|
504
495
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
@@ -514,24 +505,23 @@ module ShellCardManagementApIs
|
|
514
505
|
' something that is perceived to be a client\r\n error (e.g.,'\
|
515
506
|
' malformed request syntax, invalid \r\n request message framing,'\
|
516
507
|
' or deceptive request routing).",
|
517
|
-
|
508
|
+
APIException)
|
518
509
|
.local_error('401',
|
519
|
-
|
520
|
-
' authentication credentials for the target resource
|
521
|
-
|
510
|
+
'The request has not been applied because it lacks valid '\
|
511
|
+
' authentication credentials for the target resource.',
|
512
|
+
APIException)
|
522
513
|
.local_error('403',
|
523
|
-
|
524
|
-
|
525
|
-
ErrorUserAccessError1Exception)
|
514
|
+
'The server understood the request but refuses to authorize it.',
|
515
|
+
APIException)
|
526
516
|
.local_error('404',
|
527
|
-
|
517
|
+
'The origin server did not find a current representation for'\
|
528
518
|
' the target resource or is not willing to disclose that one'\
|
529
|
-
' exists
|
530
|
-
|
519
|
+
' exists.',
|
520
|
+
APIException)
|
531
521
|
.local_error('500',
|
532
|
-
|
533
|
-
' from fulfilling the request
|
534
|
-
|
522
|
+
'The server encountered an unexpected condition the prevented it'\
|
523
|
+
' from fulfilling the request.',
|
524
|
+
APIException))
|
535
525
|
.execute
|
536
526
|
end
|
537
527
|
end
|
@@ -19,8 +19,8 @@ module ShellCardManagementApIs
|
|
19
19
|
_field_parameters: nil)
|
20
20
|
new_api_call_builder
|
21
21
|
.request(new_request_builder(HttpMethodEnum::POST,
|
22
|
-
'/token',
|
23
|
-
Server::
|
22
|
+
'/v1/oauth/token',
|
23
|
+
Server::OAUTH_SERVER)
|
24
24
|
.form_param(new_parameter('client_credentials', key: 'grant_type'))
|
25
25
|
.header_param(new_parameter(authorization, key: 'Authorization'))
|
26
26
|
.form_param(new_parameter(scope, key: 'scope'))
|