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.
Files changed (206) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +28 -19
  3. data/lib/shell_card_management_ap_is/client.rb +2 -3
  4. data/lib/shell_card_management_ap_is/configuration.rb +15 -22
  5. data/lib/shell_card_management_ap_is/controllers/card_controller.rb +227 -232
  6. data/lib/shell_card_management_ap_is/controllers/customer_controller.rb +135 -145
  7. data/lib/shell_card_management_ap_is/controllers/o_auth_authorization_controller.rb +2 -2
  8. data/lib/shell_card_management_ap_is/controllers/restriction_controller.rb +351 -229
  9. data/lib/shell_card_management_ap_is/exceptions/{error_user_access_error1_exception.rb → fleetmanagement_v1_customer_customer403_error_exception.rb} +2 -2
  10. data/lib/shell_card_management_ap_is/exceptions/{default_error_exception.rb → fleetmanagement_v1_customer_payers400_error_exception.rb} +5 -5
  11. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_payers404_error_exception.rb +32 -0
  12. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser400_error_exception.rb +32 -0
  13. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser401_error_exception.rb +32 -0
  14. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser403_error_exception.rb +32 -0
  15. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser404_error_exception.rb +32 -0
  16. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser500_error_exception.rb +32 -0
  17. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard401_error_exception.rb +32 -0
  18. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard500_error_exception.rb +32 -0
  19. data/lib/shell_card_management_ap_is/http/auth/bearer_token.rb +54 -10
  20. data/lib/shell_card_management_ap_is/models/account_access.rb +3 -8
  21. data/lib/shell_card_management_ap_is/models/account_request.rb +6 -15
  22. data/lib/shell_card_management_ap_is/models/account_response.rb +2 -6
  23. data/lib/shell_card_management_ap_is/models/account_response_accounts_items.rb +21 -45
  24. data/lib/shell_card_management_ap_is/models/account_restriction_request.rb +28 -9
  25. data/lib/shell_card_management_ap_is/models/account_restriction_response.rb +60 -11
  26. data/lib/shell_card_management_ap_is/models/account_velocity_limit.rb +11 -19
  27. data/lib/shell_card_management_ap_is/models/accounts.rb +1 -2
  28. data/lib/shell_card_management_ap_is/models/address.rb +4 -11
  29. data/lib/shell_card_management_ap_is/models/audit_request.rb +25 -21
  30. data/lib/shell_card_management_ap_is/models/audit_response.rb +2 -6
  31. data/lib/shell_card_management_ap_is/models/audit_response_audits_items.rb +9 -22
  32. data/lib/shell_card_management_ap_is/models/auto_renew_card_request.rb +2 -5
  33. data/lib/shell_card_management_ap_is/models/auto_renew_card_request_auto_renew_cards_items.rb +2 -5
  34. data/lib/shell_card_management_ap_is/models/auto_renew_card_response.rb +1 -3
  35. data/lib/shell_card_management_ap_is/models/auto_renew_card_response_data_items.rb +1 -2
  36. data/lib/shell_card_management_ap_is/models/bank_account.rb +5 -13
  37. data/lib/shell_card_management_ap_is/models/{search_account_limit_request_filters.rb → budle_details_request.rb} +29 -22
  38. data/lib/shell_card_management_ap_is/models/{create_bundle_response_data_items_cards_items.rb → bundle_card_restriction_status.rb} +4 -3
  39. data/lib/shell_card_management_ap_is/models/bundle_details_response.rb +181 -0
  40. data/lib/shell_card_management_ap_is/models/bundle_restriction.rb +73 -103
  41. data/lib/shell_card_management_ap_is/models/bundle_restriction_update.rb +187 -0
  42. data/lib/shell_card_management_ap_is/models/bundled_details_product_list.rb +116 -0
  43. data/lib/shell_card_management_ap_is/models/bundled_restrictions_list.rb +88 -0
  44. data/lib/shell_card_management_ap_is/models/cancel_card_request.rb +1 -3
  45. data/lib/shell_card_management_ap_is/models/cancel_card_response.rb +3 -6
  46. data/lib/shell_card_management_ap_is/models/card.rb +23 -50
  47. data/lib/shell_card_management_ap_is/models/card_block_schedule.rb +1 -2
  48. data/lib/shell_card_management_ap_is/models/{summary_of_bundle_response_data_items_card_bundles_items.rb → card_bundle.rb} +11 -18
  49. data/lib/shell_card_management_ap_is/models/card_contact.rb +222 -0
  50. data/lib/shell_card_management_ap_is/models/card_day_time_restrictions.rb +3 -9
  51. data/lib/shell_card_management_ap_is/models/card_delivery_address.rb +218 -0
  52. data/lib/shell_card_management_ap_is/models/card_delivery_contact.rb +7 -14
  53. data/lib/shell_card_management_ap_is/models/card_detail.rb +36 -49
  54. data/lib/shell_card_management_ap_is/models/card_details_request.rb +6 -14
  55. data/lib/shell_card_management_ap_is/models/card_details_response.rb +60 -249
  56. data/lib/shell_card_management_ap_is/models/card_details_response_card_block_schedules_items_all_of0.rb +1 -2
  57. data/lib/shell_card_management_ap_is/models/card_details_response_card_delivery_address.rb +6 -15
  58. data/lib/shell_card_management_ap_is/models/card_details_response_fuel_sets_items.rb +1 -2
  59. data/lib/shell_card_management_ap_is/models/card_details_response_non_fuel_sets_items.rb +1 -2
  60. data/lib/shell_card_management_ap_is/models/card_details_response_pin_delivery_address.rb +6 -15
  61. data/lib/shell_card_management_ap_is/models/card_group_request.rb +3 -9
  62. data/lib/shell_card_management_ap_is/models/card_group_response.rb +2 -6
  63. data/lib/shell_card_management_ap_is/models/card_group_response_card_groups_items.rb +10 -20
  64. data/lib/shell_card_management_ap_is/models/card_management_v1_cancel_request.rb +104 -0
  65. data/lib/shell_card_management_ap_is/models/card_management_v1_ordercard_request.rb +59 -0
  66. data/lib/shell_card_management_ap_is/models/card_management_v1_pinreminder_request.rb +130 -0
  67. data/lib/shell_card_management_ap_is/models/card_management_v1_updatestatus_request.rb +122 -0
  68. data/lib/shell_card_management_ap_is/models/card_move_request.rb +4 -9
  69. data/lib/shell_card_management_ap_is/models/card_move_request_cards_items.rb +1 -3
  70. data/lib/shell_card_management_ap_is/models/card_move_response.rb +2 -4
  71. data/lib/shell_card_management_ap_is/models/card_move_response_error_cards_items.rb +2 -5
  72. data/lib/shell_card_management_ap_is/models/card_move_response_successful_requests_items.rb +2 -5
  73. data/lib/shell_card_management_ap_is/models/{restriction_card_request.rb → card_restriction_req.rb} +42 -50
  74. data/lib/shell_card_management_ap_is/models/card_restriction_response.rb +96 -0
  75. data/lib/shell_card_management_ap_is/models/card_search_response.rb +2 -7
  76. data/lib/shell_card_management_ap_is/models/card_settings.rb +626 -0
  77. data/lib/shell_card_management_ap_is/models/card_summary_request.rb +3 -5
  78. data/lib/shell_card_management_ap_is/models/card_summary_response.rb +1 -3
  79. data/lib/shell_card_management_ap_is/models/card_type_request.rb +3 -7
  80. data/lib/shell_card_management_ap_is/models/card_type_response.rb +1 -3
  81. data/lib/shell_card_management_ap_is/models/card_type_response_customer_card_types_items.rb +15 -31
  82. data/lib/shell_card_management_ap_is/models/card_type_response_error.rb +1 -2
  83. data/lib/shell_card_management_ap_is/models/card_usage_restrictions.rb +5 -10
  84. data/lib/shell_card_management_ap_is/models/col_co_access.rb +2 -4
  85. data/lib/shell_card_management_ap_is/models/{location_restrictions_country_restrictions.rb → country_restriction.rb} +20 -21
  86. data/lib/shell_card_management_ap_is/models/create_bundle_request.rb +65 -62
  87. data/lib/shell_card_management_ap_is/models/create_bundle_response.rb +122 -47
  88. data/lib/shell_card_management_ap_is/models/create_card_group_request.rb +3 -9
  89. data/lib/shell_card_management_ap_is/models/create_card_group_request_cards_items.rb +1 -3
  90. data/lib/shell_card_management_ap_is/models/create_card_group_response.rb +2 -5
  91. data/lib/shell_card_management_ap_is/models/create_card_group_response_error_cards_items.rb +1 -3
  92. data/lib/shell_card_management_ap_is/models/create_card_group_response_successful_requests_items.rb +1 -3
  93. data/lib/shell_card_management_ap_is/models/create_card_response.rb +1 -2
  94. data/lib/shell_card_management_ap_is/models/customer_contract.rb +1 -2
  95. data/lib/shell_card_management_ap_is/models/customer_detail_request.rb +2 -5
  96. data/lib/shell_card_management_ap_is/models/customer_detail_response.rb +13 -27
  97. data/lib/shell_card_management_ap_is/models/day_time_restriction.rb +133 -0
  98. data/lib/shell_card_management_ap_is/models/{summary_of_bundle_request.rb → default_error.rb} +10 -10
  99. data/lib/shell_card_management_ap_is/models/default_error_fault.rb +4 -5
  100. data/lib/shell_card_management_ap_is/models/delete_bundle_request.rb +14 -16
  101. data/lib/shell_card_management_ap_is/models/delete_bundle_response.rb +9 -10
  102. data/lib/shell_card_management_ap_is/models/delivery_address_update.rb +13 -11
  103. data/lib/shell_card_management_ap_is/models/delivery_address_update_references.rb +2 -5
  104. data/lib/shell_card_management_ap_is/models/delivery_address_update_references2.rb +98 -0
  105. data/lib/shell_card_management_ap_is/models/delivery_address_update_request.rb +3 -7
  106. data/lib/shell_card_management_ap_is/models/delivery_address_update_response.rb +5 -14
  107. data/lib/shell_card_management_ap_is/models/delivery_addresses.rb +7 -18
  108. data/lib/shell_card_management_ap_is/models/{restriction_search_card_request.rb → detail.rb} +11 -11
  109. data/lib/shell_card_management_ap_is/models/eid_access.rb +1 -2
  110. data/lib/shell_card_management_ap_is/models/error_details.rb +1 -3
  111. data/lib/shell_card_management_ap_is/models/error_status.rb +1 -2
  112. data/lib/shell_card_management_ap_is/models/error_user_access_error.rb +1 -2
  113. data/lib/shell_card_management_ap_is/models/fault.rb +59 -0
  114. data/lib/shell_card_management_ap_is/models/filters.rb +702 -0
  115. data/lib/shell_card_management_ap_is/models/filters1.rb +579 -0
  116. data/lib/shell_card_management_ap_is/models/filters2.rb +194 -0
  117. data/lib/shell_card_management_ap_is/models/finance_currency.rb +1 -2
  118. data/lib/shell_card_management_ap_is/models/finance_currency2.rb +96 -0
  119. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser_request.rb +104 -0
  120. data/lib/shell_card_management_ap_is/models/generate_pin_key_response.rb +1 -2
  121. data/lib/shell_card_management_ap_is/models/invoice_distribution_method.rb +2 -4
  122. data/lib/shell_card_management_ap_is/models/{location_restrictions.rb → location_restriction.rb} +20 -35
  123. data/lib/shell_card_management_ap_is/models/logged_in_user_request.rb +2 -4
  124. data/lib/shell_card_management_ap_is/models/logged_in_user_response.rb +9 -22
  125. data/lib/shell_card_management_ap_is/models/{location_restrictions_network_restrictions_items.rb → network_restriction.rb} +18 -20
  126. data/lib/shell_card_management_ap_is/models/o_auth_token.rb +2 -6
  127. data/lib/shell_card_management_ap_is/models/order_card_enquiry.rb +22 -40
  128. data/lib/shell_card_management_ap_is/models/order_card_enquiry_req.rb +8 -21
  129. data/lib/shell_card_management_ap_is/models/order_card_enquiry_request.rb +3 -4
  130. data/lib/shell_card_management_ap_is/models/order_card_enquiry_response.rb +1 -3
  131. data/lib/shell_card_management_ap_is/models/order_card_response.rb +1 -3
  132. data/lib/shell_card_management_ap_is/models/{location_restrictions_partner_site_restrictions_items.rb → partner_site_restriction.rb} +10 -12
  133. data/lib/shell_card_management_ap_is/models/payer_access.rb +3 -8
  134. data/lib/shell_card_management_ap_is/models/payer_details.rb +45 -86
  135. data/lib/shell_card_management_ap_is/models/payer_request.rb +3 -6
  136. data/lib/shell_card_management_ap_is/models/payer_response.rb +2 -6
  137. data/lib/shell_card_management_ap_is/models/payers.rb +2 -5
  138. data/lib/shell_card_management_ap_is/models/pin_advice_types.rb +1 -2
  139. data/lib/shell_card_management_ap_is/models/pin_contact.rb +234 -0
  140. data/lib/shell_card_management_ap_is/models/pin_deliver_to.rb +161 -0
  141. data/lib/shell_card_management_ap_is/models/pin_delivery_address.rb +222 -0
  142. data/lib/shell_card_management_ap_is/models/pin_delivery_contact.rb +7 -14
  143. data/lib/shell_card_management_ap_is/models/pin_delivery_details.rb +4 -11
  144. data/lib/shell_card_management_ap_is/models/pin_reminder_card_details.rb +12 -10
  145. data/lib/shell_card_management_ap_is/models/pin_reminder_reference.rb +2 -5
  146. data/lib/shell_card_management_ap_is/models/pin_reminder_request.rb +2 -6
  147. data/lib/shell_card_management_ap_is/models/pin_reminder_response.rb +1 -3
  148. data/lib/shell_card_management_ap_is/models/product_all_of0.rb +1 -2
  149. data/lib/shell_card_management_ap_is/models/product_group.rb +2 -6
  150. data/lib/shell_card_management_ap_is/models/{product_restrictions.rb → product_restriction_card.rb} +9 -12
  151. data/lib/shell_card_management_ap_is/models/purchase_categories.rb +1 -4
  152. data/lib/shell_card_management_ap_is/models/purchase_category1_all_of0.rb +2 -7
  153. data/lib/shell_card_management_ap_is/models/purchase_category_request.rb +2 -5
  154. data/lib/shell_card_management_ap_is/models/purchase_category_response.rb +1 -2
  155. data/lib/shell_card_management_ap_is/models/replace_card_settings.rb +15 -30
  156. data/lib/shell_card_management_ap_is/models/restriction.rb +88 -0
  157. data/lib/shell_card_management_ap_is/models/{restriction_search_card_response_data_items.rb → restriction_card_list.rb} +284 -328
  158. data/lib/shell_card_management_ap_is/models/{restriction_card_request_cards_items.rb → restriction_cards_list.rb} +66 -83
  159. data/lib/shell_card_management_ap_is/models/restriction_product.rb +62 -0
  160. data/lib/shell_card_management_ap_is/models/{restriction_card_response_data_items.rb → restrictioncards_res.rb} +100 -114
  161. data/lib/shell_card_management_ap_is/models/role.rb +3 -6
  162. data/lib/shell_card_management_ap_is/models/schedule_card_block_cards_items.rb +5 -14
  163. data/lib/shell_card_management_ap_is/models/schedule_card_block_request.rb +1 -2
  164. data/lib/shell_card_management_ap_is/models/schedule_card_block_response.rb +1 -3
  165. data/lib/shell_card_management_ap_is/models/schedule_card_block_response_data_items.rb +1 -3
  166. data/lib/shell_card_management_ap_is/models/search_account_limit_request.rb +79 -10
  167. data/lib/shell_card_management_ap_is/models/search_account_limit_response.rb +74 -20
  168. data/lib/shell_card_management_ap_is/models/search_card.rb +1 -2
  169. data/lib/shell_card_management_ap_is/models/search_card_request.rb +4 -6
  170. data/lib/shell_card_management_ap_is/models/{restriction_search_card_request_filters_cards_items.rb → search_card_restriction.rb} +19 -16
  171. data/lib/shell_card_management_ap_is/models/{restriction_search_card_request_filters.rb → search_card_restriction_req.rb} +72 -71
  172. data/lib/shell_card_management_ap_is/models/search_card_restriction_res.rb +89 -0
  173. data/lib/shell_card_management_ap_is/models/search_product_restriction.rb +3 -4
  174. data/lib/shell_card_management_ap_is/models/search_request.rb +19 -41
  175. data/lib/shell_card_management_ap_is/models/{location_restrictions_shell_site_restrictions_items.rb → shell_site_restriction.rb} +10 -17
  176. data/lib/shell_card_management_ap_is/models/submitted_card.rb +4 -10
  177. data/lib/shell_card_management_ap_is/models/summary_request.rb +15 -33
  178. data/lib/shell_card_management_ap_is/models/summary_response.rb +5 -11
  179. data/lib/shell_card_management_ap_is/models/{summary_of_bundle_response_data_items.rb → summaryofbundle_response.rb} +36 -33
  180. data/lib/shell_card_management_ap_is/models/{summaryof_bundle.rb → summaryofbundler_request.rb} +43 -36
  181. data/lib/shell_card_management_ap_is/models/update_bundle_request.rb +58 -63
  182. data/lib/shell_card_management_ap_is/models/update_bundle_response.rb +75 -21
  183. data/lib/shell_card_management_ap_is/models/update_card.rb +21 -20
  184. data/lib/shell_card_management_ap_is/models/update_card_group_request.rb +6 -14
  185. data/lib/shell_card_management_ap_is/models/update_card_group_response.rb +3 -6
  186. data/lib/shell_card_management_ap_is/models/update_card_group_response_move_card_references_items.rb +1 -3
  187. data/lib/shell_card_management_ap_is/models/update_card_renewal_address.rb +3 -9
  188. data/lib/shell_card_management_ap_is/models/update_card_renewal_address2.rb +155 -0
  189. data/lib/shell_card_management_ap_is/models/update_card_status_request.rb +1 -3
  190. data/lib/shell_card_management_ap_is/models/update_card_status_response.rb +2 -5
  191. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request.rb +2 -5
  192. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request_m_pay_requests_items.rb +2 -4
  193. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_response.rb +1 -2
  194. data/lib/shell_card_management_ap_is/models/usage_restriction.rb +1127 -0
  195. data/lib/shell_card_management_ap_is/models/{usage_restrictions.rb → usage_restrictions_card.rb} +74 -131
  196. data/lib/shell_card_management_ap_is.rb +128 -101
  197. metadata +60 -33
  198. data/lib/shell_card_management_ap_is/models/create_bundle_request_restrictions.rb +0 -147
  199. data/lib/shell_card_management_ap_is/models/create_bundle_response_data_items.rb +0 -125
  200. data/lib/shell_card_management_ap_is/models/day_time_restrictions.rb +0 -162
  201. data/lib/shell_card_management_ap_is/models/restriction_card_response.rb +0 -91
  202. data/lib/shell_card_management_ap_is/models/restriction_search_card_response.rb +0 -79
  203. data/lib/shell_card_management_ap_is/models/search_account_limit_response_data.rb +0 -106
  204. data/lib/shell_card_management_ap_is/models/search_card_response_restrictions.rb +0 -99
  205. data/lib/shell_card_management_ap_is/models/summary_of_bundle_response.rb +0 -79
  206. 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 [LoggedInUserRequest] body Optional parameter: Logged in user
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 loggedin_user(apikey,
24
- request_id,
25
- body: nil)
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::DEFAULT)
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
- DefaultErrorException)
45
+ FleetmanagementV1UserLoggedinuser400ErrorException)
46
46
  .local_error('401',
47
- "The request has not been applied because it lacks valid '\
48
- ' authentication credentials for the target resource.\r\n",
49
- DefaultErrorException)
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
- "The server understood the request but refuses to authorize it.'\
52
- '\r\n",
53
- ErrorUserAccessError1Exception)
51
+ 'The server understood the request but refuses to authorize it.',
52
+ FleetmanagementV1UserLoggedinuser403ErrorException)
54
53
  .local_error('404',
55
- "The origin server did not find a current representation for'\
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.\r\n",
58
- DefaultErrorException)
56
+ ' exists.',
57
+ FleetmanagementV1UserLoggedinuser404ErrorException)
59
58
  .local_error('500',
60
- "The server encountered an unexpected condition the prevented it'\
61
- ' from fulfilling the request.\r\n",
62
- DefaultErrorException))
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::DEFAULT)
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
- DefaultErrorException)
104
+ FleetmanagementV1CustomerPayers400ErrorException)
106
105
  .local_error('401',
107
- "The request has not been applied because it lacks valid '\
108
- ' authentication credentials for the target resource.\r\n",
109
- DefaultErrorException)
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
- "The server understood the request but refuses to authorize it.'\
112
- '\r\n",
113
- ErrorUserAccessError1Exception)
110
+ 'The server understood the request but refuses to authorize it.',
111
+ APIException)
114
112
  .local_error('404',
115
- "The origin server did not find a current representation for'\
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.\r\n",
118
- DefaultErrorException)
115
+ ' exists.',
116
+ FleetmanagementV1CustomerPayers404ErrorException)
119
117
  .local_error('500',
120
- "The server encountered an unexpected condition the prevented it'\
121
- ' from fulfilling the request.\r\n",
122
- DefaultErrorException))
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::DEFAULT)
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
- DefaultErrorException)
157
+ APIException)
160
158
  .local_error('401',
161
- "The request has not been applied because it lacks valid '\
162
- ' authentication credentials for the target resource.\r\n",
163
- DefaultErrorException)
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
- "The server understood the request but refuses to authorize it.'\
166
- '\r\n",
167
- ErrorUserAccessError1Exception)
163
+ 'The server understood the request but refuses to authorize it.',
164
+ FleetmanagementV1CustomerCustomer403ErrorException)
168
165
  .local_error('404',
169
- "The origin server did not find a current representation for'\
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.\r\n",
172
- DefaultErrorException)
168
+ ' exists.',
169
+ APIException)
173
170
  .local_error('500',
174
- "The server encountered an unexpected condition the prevented it'\
175
- ' from fulfilling the request.\r\n",
176
- DefaultErrorException))
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::DEFAULT)
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
- DefaultErrorException)
209
+ APIException)
213
210
  .local_error('401',
214
- "The request has not been applied because it lacks valid '\
215
- ' authentication credentials for the target resource.\r\n",
216
- DefaultErrorException)
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
- "The server understood the request but refuses to authorize it.'\
219
- '\r\n",
220
- ErrorUserAccessError1Exception)
215
+ 'The server understood the request but refuses to authorize it.',
216
+ APIException)
221
217
  .local_error('404',
222
- "The origin server did not find a current representation for'\
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.\r\n",
225
- DefaultErrorException)
220
+ ' exists.',
221
+ APIException)
226
222
  .local_error('500',
227
- "The server encountered an unexpected condition the prevented it'\
228
- ' from fulfilling the request.\r\n",
229
- DefaultErrorException))
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::DEFAULT)
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
- DefaultErrorException)
261
+ APIException)
266
262
  .local_error('401',
267
- "The request has not been applied because it lacks valid '\
268
- ' authentication credentials for the target resource.\r\n",
269
- DefaultErrorException)
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
- "The server understood the request but refuses to authorize it.'\
272
- '\r\n",
273
- ErrorUserAccessError1Exception)
267
+ 'The server understood the request but refuses to authorize it.',
268
+ APIException)
274
269
  .local_error('404',
275
- "The origin server did not find a current representation for'\
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.\r\n",
278
- DefaultErrorException)
272
+ ' exists.',
273
+ APIException)
279
274
  .local_error('500',
280
- "The server encountered an unexpected condition the prevented it'\
281
- ' from fulfilling the request.\r\n",
282
- DefaultErrorException))
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 card_groups(apikey,
304
- request_id,
305
- body: nil)
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::DEFAULT)
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
- DefaultErrorException)
320
+ APIException)
326
321
  .local_error('401',
327
- "The request has not been applied because it lacks valid '\
328
- ' authentication credentials for the target resource.\r\n",
329
- DefaultErrorException)
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
- "The server understood the request but refuses to authorize it.'\
332
- '\r\n",
333
- ErrorUserAccessError1Exception)
326
+ 'The server understood the request but refuses to authorize it.',
327
+ APIException)
334
328
  .local_error('404',
335
- "The origin server did not find a current representation for'\
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.\r\n",
338
- DefaultErrorException)
331
+ ' exists.',
332
+ APIException)
339
333
  .local_error('500',
340
- "The server encountered an unexpected condition the prevented it'\
341
- ' from fulfilling the request.\r\n",
342
- DefaultErrorException))
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 audit_report(apikey,
374
- request_id,
375
- body: nil)
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::DEFAULT)
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
- DefaultErrorException)
388
+ APIException)
396
389
  .local_error('401',
397
- "The request has not been applied because it lacks valid '\
398
- ' authentication credentials for the target resource.\r\n",
399
- DefaultErrorException)
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
- "The server understood the request but refuses to authorize it.'\
402
- '\r\n",
403
- ErrorUserAccessError1Exception)
394
+ 'The server understood the request but refuses to authorize it.',
395
+ APIException)
404
396
  .local_error('404',
405
- "The origin server did not find a current representation for'\
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.\r\n",
408
- DefaultErrorException)
399
+ ' exists.',
400
+ APIException)
409
401
  .local_error('500',
410
- "The server encountered an unexpected condition the prevented it'\
411
- ' from fulfilling the request.\r\n",
412
- DefaultErrorException))
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 create_card_group(apikey,
437
- request_id,
438
- body: nil)
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::DEFAULT)
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
- DefaultErrorException)
450
+ APIException)
459
451
  .local_error('401',
460
- "The request has not been applied because it lacks valid '\
461
- ' authentication credentials for the target resource.\r\n",
462
- DefaultErrorException)
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
- "The server understood the request but refuses to authorize it.'\
465
- '\r\n",
466
- ErrorUserAccessError1Exception)
456
+ 'The server understood the request but refuses to authorize it.',
457
+ APIException)
467
458
  .local_error('404',
468
- "The origin server did not find a current representation for'\
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.\r\n",
471
- DefaultErrorException)
461
+ ' exists.',
462
+ APIException)
472
463
  .local_error('500',
473
- "The server encountered an unexpected condition the prevented it'\
474
- ' from fulfilling the request.\r\n",
475
- DefaultErrorException))
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 update_card_group(apikey,
496
- request_id,
497
- body: nil)
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::DEFAULT)
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
- DefaultErrorException)
508
+ APIException)
518
509
  .local_error('401',
519
- "The request has not been applied because it lacks valid '\
520
- ' authentication credentials for the target resource.\r\n",
521
- DefaultErrorException)
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
- "The server understood the request but refuses to authorize it.'\
524
- '\r\n",
525
- ErrorUserAccessError1Exception)
514
+ 'The server understood the request but refuses to authorize it.',
515
+ APIException)
526
516
  .local_error('404',
527
- "The origin server did not find a current representation for'\
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.\r\n",
530
- DefaultErrorException)
519
+ ' exists.',
520
+ APIException)
531
521
  .local_error('500',
532
- "The server encountered an unexpected condition the prevented it'\
533
- ' from fulfilling the request.\r\n",
534
- DefaultErrorException))
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::ACCESS_TOKEN_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'))