data-and-reporting-sdk 1.3.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +66 -35
  3. data/lib/shell_data_reporting_ap_is/api_helper.rb +2 -2
  4. data/lib/shell_data_reporting_ap_is/client.rb +11 -12
  5. data/lib/shell_data_reporting_ap_is/configuration.rb +23 -25
  6. data/lib/shell_data_reporting_ap_is/controllers/base_controller.rb +3 -9
  7. data/lib/shell_data_reporting_ap_is/controllers/customer_controller.rb +251 -288
  8. data/lib/shell_data_reporting_ap_is/controllers/invoice_controller.rb +20 -20
  9. data/lib/shell_data_reporting_ap_is/controllers/o_auth_authorization_controller.rb +7 -7
  10. data/lib/shell_data_reporting_ap_is/controllers/transaction_controller.rb +204 -259
  11. data/lib/shell_data_reporting_ap_is/exceptions/api_exception.rb +2 -2
  12. data/lib/shell_data_reporting_ap_is/exceptions/error_object_exception.rb +7 -5
  13. data/lib/shell_data_reporting_ap_is/exceptions/o_auth_provider_exception.rb +7 -5
  14. data/lib/shell_data_reporting_ap_is/http/auth/{bearer_token.rb → o_auth2.rb} +28 -27
  15. data/lib/shell_data_reporting_ap_is/http/http_call_back.rb +2 -2
  16. data/lib/shell_data_reporting_ap_is/http/http_method_enum.rb +2 -2
  17. data/lib/shell_data_reporting_ap_is/http/http_request.rb +2 -2
  18. data/lib/shell_data_reporting_ap_is/http/http_response.rb +2 -2
  19. data/lib/shell_data_reporting_ap_is/http/proxy_settings.rb +13 -0
  20. data/lib/shell_data_reporting_ap_is/models/account_access.rb +2 -2
  21. data/lib/shell_data_reporting_ap_is/models/account_req.rb +84 -0
  22. data/lib/shell_data_reporting_ap_is/models/account_request.rb +3 -3
  23. data/lib/shell_data_reporting_ap_is/models/account_res.rb +158 -0
  24. data/lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb +2 -2
  25. data/lib/shell_data_reporting_ap_is/models/accounts.rb +2 -2
  26. data/lib/shell_data_reporting_ap_is/models/address.rb +2 -2
  27. data/lib/shell_data_reporting_ap_is/models/associated_account.rb +2 -2
  28. data/lib/shell_data_reporting_ap_is/models/audit_array_elements.rb +71 -0
  29. data/lib/shell_data_reporting_ap_is/models/audit_req.rb +84 -0
  30. data/lib/shell_data_reporting_ap_is/models/audit_request.rb +29 -41
  31. data/lib/shell_data_reporting_ap_is/models/audit_response.rb +88 -53
  32. data/lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb +29 -6
  33. data/lib/shell_data_reporting_ap_is/models/bank_account.rb +2 -2
  34. data/lib/shell_data_reporting_ap_is/models/base_model.rb +2 -2
  35. data/lib/shell_data_reporting_ap_is/models/bonus_configuration.rb +2 -2
  36. data/lib/shell_data_reporting_ap_is/models/bonus_history.rb +2 -2
  37. data/lib/shell_data_reporting_ap_is/models/card_day_time_restrictions.rb +2 -2
  38. data/lib/shell_data_reporting_ap_is/models/card_exceptions.rb +2 -2
  39. data/lib/shell_data_reporting_ap_is/models/card_group_req.rb +84 -0
  40. data/lib/shell_data_reporting_ap_is/models/card_group_request.rb +6 -31
  41. data/lib/shell_data_reporting_ap_is/models/card_group_res.rb +158 -0
  42. data/lib/shell_data_reporting_ap_is/models/card_group_response_card_groups_items.rb +2 -2
  43. data/lib/shell_data_reporting_ap_is/models/{error_user_access.rb → card_type_req.rb} +14 -14
  44. data/lib/shell_data_reporting_ap_is/models/card_type_request.rb +2 -2
  45. data/lib/shell_data_reporting_ap_is/models/card_type_res.rb +91 -0
  46. data/lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb +3 -3
  47. data/lib/shell_data_reporting_ap_is/models/card_usage_restrictions.rb +2 -2
  48. data/lib/shell_data_reporting_ap_is/models/card_usage_summary_req.rb +62 -0
  49. data/lib/shell_data_reporting_ap_is/models/card_usage_summary_request.rb +2 -2
  50. data/lib/shell_data_reporting_ap_is/models/card_usage_summary_res.rb +116 -0
  51. data/lib/shell_data_reporting_ap_is/models/card_usage_summary_response.rb +6 -26
  52. data/lib/shell_data_reporting_ap_is/models/col_co_access.rb +4 -4
  53. data/lib/shell_data_reporting_ap_is/models/current_volume.rb +2 -2
  54. data/lib/shell_data_reporting_ap_is/models/customer_contract.rb +2 -2
  55. data/lib/shell_data_reporting_ap_is/models/customer_detail_request.rb +4 -4
  56. data/lib/shell_data_reporting_ap_is/models/customer_detail_response.rb +5 -32
  57. data/lib/shell_data_reporting_ap_is/models/customer_price_list_req.rb +62 -0
  58. data/lib/shell_data_reporting_ap_is/models/customer_price_list_request.rb +2 -2
  59. data/lib/shell_data_reporting_ap_is/models/customer_price_list_res.rb +91 -0
  60. data/lib/shell_data_reporting_ap_is/models/customer_price_list_response.rb +7 -29
  61. data/lib/shell_data_reporting_ap_is/models/{default_error_fault_detail.rb → customer_req.rb} +15 -15
  62. data/lib/shell_data_reporting_ap_is/models/customer_res.rb +91 -0
  63. data/lib/shell_data_reporting_ap_is/models/delivery_addresses.rb +2 -2
  64. data/lib/shell_data_reporting_ap_is/models/eid_access.rb +3 -3
  65. data/lib/shell_data_reporting_ap_is/models/eid_document.rb +2 -2
  66. data/lib/shell_data_reporting_ap_is/models/eid_document_response.rb +2 -2
  67. data/lib/shell_data_reporting_ap_is/models/eid_download_req.rb +2 -2
  68. data/lib/shell_data_reporting_ap_is/models/eid_download_request.rb +2 -2
  69. data/lib/shell_data_reporting_ap_is/models/eid_search_req.rb +2 -2
  70. data/lib/shell_data_reporting_ap_is/models/eid_search_request.rb +2 -2
  71. data/lib/shell_data_reporting_ap_is/models/error_details.rb +2 -2
  72. data/lib/shell_data_reporting_ap_is/models/exception_product.rb +2 -2
  73. data/lib/shell_data_reporting_ap_is/models/exception_site_location.rb +2 -2
  74. data/lib/shell_data_reporting_ap_is/models/fee_item.rb +2 -2
  75. data/lib/shell_data_reporting_ap_is/models/fee_item_summary_all_of0.rb +2 -2
  76. data/lib/shell_data_reporting_ap_is/models/fee_rule_location.rb +2 -2
  77. data/lib/shell_data_reporting_ap_is/models/fee_rule_product.rb +2 -2
  78. data/lib/shell_data_reporting_ap_is/models/fee_rule_tier.rb +2 -2
  79. data/lib/shell_data_reporting_ap_is/models/fee_summary_response.rb +57 -38
  80. data/lib/shell_data_reporting_ap_is/models/fees_fee_rule_tiers.rb +2 -2
  81. data/lib/shell_data_reporting_ap_is/models/filters.rb +522 -0
  82. data/lib/shell_data_reporting_ap_is/models/{finance_currency.rb → finance_currency2.rb} +8 -9
  83. data/lib/shell_data_reporting_ap_is/models/fleetmanagement_v1_user_loggedinuser_request.rb +2 -2
  84. data/lib/shell_data_reporting_ap_is/models/fuel_consumption_card.rb +2 -2
  85. data/lib/shell_data_reporting_ap_is/models/fuel_consumption_data.rb +2 -2
  86. data/lib/shell_data_reporting_ap_is/models/fuel_consumption_req.rb +62 -0
  87. data/lib/shell_data_reporting_ap_is/models/fuel_consumption_request.rb +2 -2
  88. data/lib/shell_data_reporting_ap_is/models/fuel_consumption_response.rb +58 -33
  89. data/lib/shell_data_reporting_ap_is/models/invoice_dates_data.rb +2 -2
  90. data/lib/shell_data_reporting_ap_is/models/invoice_dates_request.rb +2 -2
  91. data/lib/shell_data_reporting_ap_is/models/invoice_dates_request_filters.rb +2 -2
  92. data/lib/shell_data_reporting_ap_is/models/invoice_dates_response_data.rb +2 -2
  93. data/lib/shell_data_reporting_ap_is/models/invoice_distribution_method.rb +2 -2
  94. data/lib/shell_data_reporting_ap_is/models/invoice_download_req.rb +2 -2
  95. data/lib/shell_data_reporting_ap_is/models/invoice_download_request.rb +2 -2
  96. data/lib/shell_data_reporting_ap_is/models/invoice_search_additional_document.rb +2 -2
  97. data/lib/shell_data_reporting_ap_is/models/invoice_search_details.rb +2 -2
  98. data/lib/shell_data_reporting_ap_is/models/invoice_search_request.rb +2 -2
  99. data/lib/shell_data_reporting_ap_is/models/invoice_search_request_filters.rb +2 -2
  100. data/lib/shell_data_reporting_ap_is/models/invoice_search_response.rb +2 -2
  101. data/lib/shell_data_reporting_ap_is/models/invoice_summary_details.rb +2 -2
  102. data/lib/shell_data_reporting_ap_is/models/invoice_summary_request.rb +2 -2
  103. data/lib/shell_data_reporting_ap_is/models/invoice_summary_request_filters.rb +2 -2
  104. data/lib/shell_data_reporting_ap_is/models/invoice_summary_response.rb +2 -2
  105. data/lib/shell_data_reporting_ap_is/models/invoices_summaries.rb +2 -2
  106. data/lib/shell_data_reporting_ap_is/models/last_statement_of_account.rb +2 -2
  107. data/lib/shell_data_reporting_ap_is/models/last_statement_of_account2.rb +457 -0
  108. data/lib/shell_data_reporting_ap_is/models/{error_user_access_error.rb → location.rb} +25 -22
  109. data/lib/shell_data_reporting_ap_is/models/logged_in_user_req.rb +63 -0
  110. data/lib/shell_data_reporting_ap_is/models/logged_in_user_res.rb +91 -0
  111. data/lib/shell_data_reporting_ap_is/models/logged_in_user_response.rb +6 -30
  112. data/lib/shell_data_reporting_ap_is/models/monthly_invoice_trend.rb +2 -2
  113. data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_req.rb +84 -0
  114. data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_request.rb +2 -2
  115. data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_request_accounts_items.rb +2 -2
  116. data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_res.rb +158 -0
  117. data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_response.rb +6 -57
  118. data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_response_transactions_items.rb +2 -2
  119. data/lib/shell_data_reporting_ap_is/models/o_auth_provider_error_enum.rb +2 -2
  120. data/lib/shell_data_reporting_ap_is/models/o_auth_token.rb +2 -2
  121. data/lib/shell_data_reporting_ap_is/models/past_statement_of_accounts.rb +2 -2
  122. data/lib/shell_data_reporting_ap_is/models/payer_access.rb +2 -2
  123. data/lib/shell_data_reporting_ap_is/models/payer_details.rb +8 -6
  124. data/lib/shell_data_reporting_ap_is/models/payer_req.rb +84 -0
  125. data/lib/shell_data_reporting_ap_is/models/payer_request.rb +6 -33
  126. data/lib/shell_data_reporting_ap_is/models/payer_res.rb +158 -0
  127. data/lib/shell_data_reporting_ap_is/models/payers.rb +2 -2
  128. data/lib/shell_data_reporting_ap_is/models/payments_since_last_soa.rb +2 -2
  129. data/lib/shell_data_reporting_ap_is/models/pin_advice_types.rb +2 -2
  130. data/lib/shell_data_reporting_ap_is/models/price_list.rb +2 -2
  131. data/lib/shell_data_reporting_ap_is/models/price_trans_summary_req.rb +62 -0
  132. data/lib/shell_data_reporting_ap_is/models/price_trans_summary_request.rb +2 -2
  133. data/lib/shell_data_reporting_ap_is/models/price_transaction_req.rb +84 -0
  134. data/lib/shell_data_reporting_ap_is/models/price_transaction_request.rb +2 -2
  135. data/lib/shell_data_reporting_ap_is/models/priced_request_data.rb +4 -8
  136. data/lib/shell_data_reporting_ap_is/models/priced_response_data.rb +2 -2
  137. data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_resp.rb +116 -0
  138. data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_response_transactions_summary_items.rb +2 -2
  139. data/lib/shell_data_reporting_ap_is/models/priced_transaction_items_location_items.rb +2 -2
  140. data/lib/shell_data_reporting_ap_is/models/priced_transaction_req_v2_invoice_status_enum.rb +2 -2
  141. data/lib/shell_data_reporting_ap_is/models/priced_transaction_req_v2_period_enum.rb +2 -2
  142. data/lib/shell_data_reporting_ap_is/models/priced_transaction_req_v2_sort_order_enum.rb +2 -2
  143. data/lib/shell_data_reporting_ap_is/models/priced_transaction_request_v2.rb +5 -7
  144. data/lib/shell_data_reporting_ap_is/models/priced_transaction_res.rb +158 -0
  145. data/lib/shell_data_reporting_ap_is/models/priced_transaction_resp_v2_refund_flag_enum.rb +2 -2
  146. data/lib/shell_data_reporting_ap_is/models/priced_transaction_response.rb +2 -2
  147. data/lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb +6 -27
  148. data/lib/shell_data_reporting_ap_is/models/priced_transaction_response_v2.rb +2 -2
  149. data/lib/shell_data_reporting_ap_is/models/pricing_current_volume.rb +2 -2
  150. data/lib/shell_data_reporting_ap_is/models/pricing_history.rb +2 -2
  151. data/lib/shell_data_reporting_ap_is/models/purchase_categories.rb +2 -2
  152. data/lib/shell_data_reporting_ap_is/models/recent_transaction_req.rb +2 -2
  153. data/lib/shell_data_reporting_ap_is/models/recent_transaction_request.rb +2 -2
  154. data/lib/shell_data_reporting_ap_is/models/recent_transactions.rb +2 -2
  155. data/lib/shell_data_reporting_ap_is/models/recent_transactions_response.rb +2 -2
  156. data/lib/shell_data_reporting_ap_is/models/role.rb +2 -2
  157. data/lib/shell_data_reporting_ap_is/models/search_doc_req.rb +2 -2
  158. data/lib/shell_data_reporting_ap_is/models/search_documents_invoice.rb +2 -2
  159. data/lib/shell_data_reporting_ap_is/models/search_documents_request.rb +2 -2
  160. data/lib/shell_data_reporting_ap_is/models/search_documents_response.rb +2 -2
  161. data/lib/shell_data_reporting_ap_is/models/search_soa_req.rb +2 -2
  162. data/lib/shell_data_reporting_ap_is/models/search_statement_of_account.rb +2 -2
  163. data/lib/shell_data_reporting_ap_is/models/search_statement_of_account_request.rb +2 -2
  164. data/lib/shell_data_reporting_ap_is/models/search_statement_of_account_response.rb +2 -2
  165. data/lib/shell_data_reporting_ap_is/models/site_location.rb +2 -2
  166. data/lib/shell_data_reporting_ap_is/models/statement_of_account_request.rb +2 -2
  167. data/lib/shell_data_reporting_ap_is/models/statement_of_account_request_filters.rb +2 -2
  168. data/lib/shell_data_reporting_ap_is/models/statement_of_account_resp.rb +9 -9
  169. data/lib/shell_data_reporting_ap_is/models/statement_of_account_response.rb +2 -2
  170. data/lib/shell_data_reporting_ap_is/models/tier.rb +2 -2
  171. data/lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb +5 -5
  172. data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_req.rb +62 -0
  173. data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_request.rb +2 -2
  174. data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_res.rb +116 -0
  175. data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_response.rb +6 -26
  176. data/lib/shell_data_reporting_ap_is/models/transaction_fees_req.rb +84 -0
  177. data/lib/shell_data_reporting_ap_is/models/transaction_fees_request.rb +6 -28
  178. data/lib/shell_data_reporting_ap_is/models/transaction_fees_res.rb +158 -0
  179. data/lib/shell_data_reporting_ap_is/models/transaction_fees_summary_req.rb +62 -0
  180. data/lib/shell_data_reporting_ap_is/models/update_odometer.rb +2 -2
  181. data/lib/shell_data_reporting_ap_is/models/update_odometer_reference.rb +2 -2
  182. data/lib/shell_data_reporting_ap_is/models/update_odometer_request.rb +2 -2
  183. data/lib/shell_data_reporting_ap_is/models/update_odometer_resp.rb +116 -0
  184. data/lib/shell_data_reporting_ap_is/models/update_odometer_response.rb +6 -26
  185. data/lib/shell_data_reporting_ap_is/models/usage_summary.rb +2 -2
  186. data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_req.rb +62 -0
  187. data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_request.rb +2 -2
  188. data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_res.rb +116 -0
  189. data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_response.rb +6 -27
  190. data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_req.rb +62 -0
  191. data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_request.rb +2 -2
  192. data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_res.rb +91 -0
  193. data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_response.rb +28 -24
  194. data/lib/shell_data_reporting_ap_is/models/warning.rb +69 -0
  195. data/lib/shell_data_reporting_ap_is/utilities/date_time_helper.rb +2 -2
  196. data/lib/shell_data_reporting_ap_is/utilities/file_wrapper.rb +2 -2
  197. data/lib/shell_data_reporting_ap_is/utilities/union_type_lookup.rb +2 -2
  198. data/lib/shell_data_reporting_ap_is.rb +54 -29
  199. data/test/controllers/controller_test_base.rb +2 -2
  200. data/test/controllers/test_invoice_controller.rb +3 -12
  201. data/test/controllers/test_transaction_controller.rb +3 -5
  202. data/test/http_response_catcher.rb +3 -3
  203. metadata +50 -26
  204. data/lib/shell_data_reporting_ap_is/exceptions/default_error_exception.rb +0 -44
  205. data/lib/shell_data_reporting_ap_is/exceptions/error_user_access_error1_exception.rb +0 -44
  206. data/lib/shell_data_reporting_ap_is/http/auth/basic_auth.rb +0 -50
  207. data/lib/shell_data_reporting_ap_is/models/account_response.rb +0 -123
  208. data/lib/shell_data_reporting_ap_is/models/card_group_response.rb +0 -121
  209. data/lib/shell_data_reporting_ap_is/models/card_type_response.rb +0 -91
  210. data/lib/shell_data_reporting_ap_is/models/card_type_response_error.rb +0 -71
  211. data/lib/shell_data_reporting_ap_is/models/default_error_fault.rb +0 -71
  212. data/lib/shell_data_reporting_ap_is/models/error_status.rb +0 -81
  213. data/lib/shell_data_reporting_ap_is/models/logged_in_user_request.rb +0 -121
  214. data/lib/shell_data_reporting_ap_is/models/payer_response.rb +0 -127
  215. data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_response.rb +0 -91
  216. data/lib/shell_data_reporting_ap_is/models/transaction_fees_response.rb +0 -123
@@ -1,7 +1,7 @@
1
1
  # shell_data_reporting_ap_is
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ShellDataReportingApIs
7
7
  # TransactionController
@@ -46,54 +46,49 @@ module ShellDataReportingApIs
46
46
  # This operation can fetch transactions that are old up to 24 (configurable)
47
47
  # months. However, the date range between any of the ‘From’ and ‘To’ dates
48
48
  # in the above combination cannot be more than 210 (configurable) days.
49
- # @param [String] apikey Required parameter: This is the API key of the
50
- # specific environment which needs to be passed by the client.
51
49
  # @param [String] request_id Required parameter: Mandatory UUID (according
52
50
  # to RFC 4122 standards) for requests and responses. This will be played
53
51
  # back in the response from the request.
54
- # @param [PriceTransactionRequest] body Optional parameter: Priced
55
- # Transaction Request Body
56
- # @return [PricedTransactionResponse] response from the API call.
57
- def priced_transactions(apikey,
58
- request_id,
52
+ # @param [PriceTransactionReq] body Optional parameter: Priced Transaction
53
+ # Request Body
54
+ # @return [PricedTransactionRes] Response from the API call.
55
+ def priced_transactions(request_id,
59
56
  body: nil)
60
- new_api_call_builder
57
+ @api_call
61
58
  .request(new_request_builder(HttpMethodEnum::POST,
62
- '/fleetmanagement/v1/transaction/pricedtransactions',
59
+ '/transaction-data/v1/pricedtransaction',
63
60
  Server::SHELL)
64
- .header_param(new_parameter(apikey, key: 'apikey'))
65
61
  .header_param(new_parameter(request_id, key: 'RequestId'))
66
62
  .header_param(new_parameter('application/json', key: 'Content-Type'))
67
63
  .body_param(new_parameter(body))
68
64
  .header_param(new_parameter('application/json', key: 'accept'))
69
65
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
70
- .auth(Single.new('BasicAuth')))
66
+ .auth(Single.new('BearerToken')))
71
67
  .response(new_response_handler
72
68
  .deserializer(APIHelper.method(:custom_type_deserializer))
73
- .deserialize_into(PricedTransactionResponse.method(:from_hash))
69
+ .deserialize_into(PricedTransactionRes.method(:from_hash))
74
70
  .local_error('400',
75
- "The server cannot or will not process the request due to'\
76
- ' something that is perceived to be a client\r\n error (e.g.,'\
77
- ' malformed request syntax, invalid \r\n request message'\
78
- ' framing, or deceptive request routing).",
79
- DefaultErrorException)
71
+ 'The server cannot or will not process the request due to'\
72
+ ' something that is perceived to be a client error (e.g.,'\
73
+ ' malformed request syntax, invalid request message framing, or'\
74
+ ' deceptive request routing).',
75
+ ErrorObjectException)
80
76
  .local_error('401',
81
77
  'The request has not been applied because it lacks valid '\
82
78
  ' authentication credentials for the target resource.',
83
- DefaultErrorException)
79
+ ErrorObjectException)
84
80
  .local_error('403',
85
- 'The server understood the request but refuses to authorize it'\
86
- '.',
87
- ErrorUserAccessError1Exception)
81
+ 'Forbidden',
82
+ ErrorObjectException)
88
83
  .local_error('404',
89
84
  'The origin server did not find a current representation for'\
90
85
  ' the target resource or is not willing to disclose that one'\
91
86
  ' exists.',
92
- DefaultErrorException)
87
+ ErrorObjectException)
93
88
  .local_error('500',
94
- 'The server encountered an unexpected condition the prevented'\
89
+ 'The server encountered an unexpected condition that prevented'\
95
90
  ' it from fulfilling the request.',
96
- DefaultErrorException))
91
+ ErrorObjectException))
97
92
  .execute
98
93
  end
99
94
 
@@ -134,54 +129,49 @@ module ShellDataReportingApIs
134
129
  # returned.
135
130
  # If none of the above parameters are provided then last 7 days transactions
136
131
  # will be fetched.
137
- # @param [String] apikey Required parameter: This is the API key of the
138
- # specific environment which needs to be passed by the client.
139
132
  # @param [String] request_id Required parameter: Mandatory UUID (according
140
133
  # to RFC 4122 standards) for requests and responses. This will be played
141
134
  # back in the response from the request.
142
- # @param [PriceTransSummaryRequest] body Optional parameter: PricedSummary
135
+ # @param [PriceTransSummaryReq] body Optional parameter: PricedSummary
143
136
  # RequestBody
144
- # @return [PricedTransSummaryResponse] response from the API call.
145
- def priced_transactions_summary(apikey,
146
- request_id,
137
+ # @return [PricedTransSummaryResp] Response from the API call.
138
+ def priced_transactions_summary(request_id,
147
139
  body: nil)
148
- new_api_call_builder
140
+ @api_call
149
141
  .request(new_request_builder(HttpMethodEnum::POST,
150
- '/fleetmanagement/v1/transaction/pricedtransactionssummary',
142
+ '/transaction-data/v1/pricedtransactionssummary',
151
143
  Server::SHELL)
152
- .header_param(new_parameter(apikey, key: 'apikey'))
153
144
  .header_param(new_parameter(request_id, key: 'RequestId'))
154
145
  .header_param(new_parameter('application/json', key: 'Content-Type'))
155
146
  .body_param(new_parameter(body))
156
147
  .header_param(new_parameter('application/json', key: 'accept'))
157
148
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
158
- .auth(Single.new('BasicAuth')))
149
+ .auth(Single.new('BearerToken')))
159
150
  .response(new_response_handler
160
151
  .deserializer(APIHelper.method(:custom_type_deserializer))
161
- .deserialize_into(PricedTransSummaryResponse.method(:from_hash))
152
+ .deserialize_into(PricedTransSummaryResp.method(:from_hash))
162
153
  .local_error('400',
163
- "The server cannot or will not process the request due to'\
164
- ' something that is perceived to be a client\r\n error (e.g.,'\
165
- ' malformed request syntax, invalid \r\n request message'\
166
- ' framing, or deceptive request routing).",
167
- DefaultErrorException)
154
+ 'The server cannot or will not process the request due to'\
155
+ ' something that is perceived to be a client error (e.g.,'\
156
+ ' malformed request syntax, invalid request message framing, or'\
157
+ ' deceptive request routing).',
158
+ ErrorObjectException)
168
159
  .local_error('401',
169
160
  'The request has not been applied because it lacks valid '\
170
161
  ' authentication credentials for the target resource.',
171
- DefaultErrorException)
162
+ ErrorObjectException)
172
163
  .local_error('403',
173
- 'The server understood the request but refuses to authorize it'\
174
- '.',
175
- ErrorUserAccessError1Exception)
164
+ 'Forbidden',
165
+ ErrorObjectException)
176
166
  .local_error('404',
177
167
  'The origin server did not find a current representation for'\
178
168
  ' the target resource or is not willing to disclose that one'\
179
169
  ' exists.',
180
- DefaultErrorException)
170
+ ErrorObjectException)
181
171
  .local_error('500',
182
- 'The server encountered an unexpected condition the prevented'\
172
+ 'The server encountered an unexpected condition that prevented'\
183
173
  ' it from fulfilling the request.',
184
- DefaultErrorException))
174
+ ErrorObjectException))
185
175
  .execute
186
176
  end
187
177
 
@@ -219,54 +209,49 @@ module ShellDataReportingApIs
219
209
  # returned.
220
210
  # If none of the above parameters are provided then last 7 days transactions
221
211
  # will be fetched.
222
- # @param [String] apikey Required parameter: This is the API key of the
223
- # specific environment which needs to be passed by the client.
224
212
  # @param [String] request_id Required parameter: Mandatory UUID (according
225
213
  # to RFC 4122 standards) for requests and responses. This will be played
226
214
  # back in the response from the request.
227
- # @param [MultiPricedTransactionRequest] body Optional parameter: MultiPayer
215
+ # @param [MultiPricedTransactionReq] body Optional parameter: MultiPayer
228
216
  # RequestBody
229
- # @return [MultiPricedTransactionResponse] response from the API call.
230
- def multipriced_transactions(apikey,
231
- request_id,
217
+ # @return [MultiPricedTransactionRes] Response from the API call.
218
+ def multipriced_transactions(request_id,
232
219
  body: nil)
233
- new_api_call_builder
220
+ @api_call
234
221
  .request(new_request_builder(HttpMethodEnum::POST,
235
- '/fleetmanagement/v1/transaction/multipayerspricedtransactions',
222
+ '/transaction-data/v1/multipayerspricedtransactions',
236
223
  Server::SHELL)
237
- .header_param(new_parameter(apikey, key: 'apikey'))
238
224
  .header_param(new_parameter(request_id, key: 'RequestId'))
239
225
  .header_param(new_parameter('application/json', key: 'Content-Type'))
240
226
  .body_param(new_parameter(body))
241
227
  .header_param(new_parameter('application/json', key: 'accept'))
242
228
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
243
- .auth(Single.new('BasicAuth')))
229
+ .auth(Single.new('BearerToken')))
244
230
  .response(new_response_handler
245
231
  .deserializer(APIHelper.method(:custom_type_deserializer))
246
- .deserialize_into(MultiPricedTransactionResponse.method(:from_hash))
232
+ .deserialize_into(MultiPricedTransactionRes.method(:from_hash))
247
233
  .local_error('400',
248
- "The server cannot or will not process the request due to'\
249
- ' something that is perceived to be a client\r\n error (e.g.,'\
250
- ' malformed request syntax, invalid \r\n request message'\
251
- ' framing, or deceptive request routing).",
252
- DefaultErrorException)
234
+ 'The server cannot or will not process the request due to'\
235
+ ' something that is perceived to be a client error (e.g.,'\
236
+ ' malformed request syntax, invalid request message framing, or'\
237
+ ' deceptive request routing).',
238
+ ErrorObjectException)
253
239
  .local_error('401',
254
240
  'The request has not been applied because it lacks valid '\
255
241
  ' authentication credentials for the target resource.',
256
- DefaultErrorException)
242
+ ErrorObjectException)
257
243
  .local_error('403',
258
- 'The server understood the request but refuses to authorize it'\
259
- '.',
260
- ErrorUserAccessError1Exception)
244
+ 'Forbidden',
245
+ ErrorObjectException)
261
246
  .local_error('404',
262
247
  'The origin server did not find a current representation for'\
263
248
  ' the target resource or is not willing to disclose that one'\
264
249
  ' exists.',
265
- DefaultErrorException)
250
+ ErrorObjectException)
266
251
  .local_error('500',
267
- 'The server encountered an unexpected condition the prevented'\
252
+ 'The server encountered an unexpected condition that prevented'\
268
253
  ' it from fulfilling the request.',
269
- DefaultErrorException))
254
+ ErrorObjectException))
270
255
  .execute
271
256
  end
272
257
 
@@ -275,54 +260,49 @@ module ShellDataReportingApIs
275
260
  # The response contains a daily summary of the transactions (billed &
276
261
  # unbilled) from 1st of the last 7 months for the requested card grouped by
277
262
  # card, site-group and product.
278
- # @param [String] apikey Required parameter: This is the API key of the
279
- # specific environment which needs to be passed by the client.
280
263
  # @param [String] request_id Required parameter: Mandatory UUID (according
281
264
  # to RFC 4122 standards) for requests and responses. This will be played
282
265
  # back in the response from the request.
283
- # @param [CardUsageSummaryRequest] body Optional parameter: Card Usage
284
- # Summary RequestBody
285
- # @return [CardUsageSummaryResponse] response from the API call.
286
- def card_usage_summary(apikey,
287
- request_id,
266
+ # @param [CardUsageSummaryReq] body Optional parameter: Card Usage Summary
267
+ # RequestBody
268
+ # @return [CardUsageSummaryRes] Response from the API call.
269
+ def card_usage_summary(request_id,
288
270
  body: nil)
289
- new_api_call_builder
271
+ @api_call
290
272
  .request(new_request_builder(HttpMethodEnum::POST,
291
- '/fleetmanagement/v1/transaction/cardusagesummary',
273
+ '/transaction-data/v1/cardusagesummary',
292
274
  Server::SHELL)
293
- .header_param(new_parameter(apikey, key: 'apikey'))
294
275
  .header_param(new_parameter(request_id, key: 'RequestId'))
295
276
  .header_param(new_parameter('application/json', key: 'Content-Type'))
296
277
  .body_param(new_parameter(body))
297
278
  .header_param(new_parameter('application/json', key: 'accept'))
298
279
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
299
- .auth(Single.new('BasicAuth')))
280
+ .auth(Single.new('BearerToken')))
300
281
  .response(new_response_handler
301
282
  .deserializer(APIHelper.method(:custom_type_deserializer))
302
- .deserialize_into(CardUsageSummaryResponse.method(:from_hash))
283
+ .deserialize_into(CardUsageSummaryRes.method(:from_hash))
303
284
  .local_error('400',
304
- "The server cannot or will not process the request due to'\
305
- ' something that is perceived to be a client\r\n error (e.g.,'\
306
- ' malformed request syntax, invalid \r\n request message'\
307
- ' framing, or deceptive request routing).",
308
- DefaultErrorException)
285
+ 'The server cannot or will not process the request due to'\
286
+ ' something that is perceived to be a client error (e.g.,'\
287
+ ' malformed request syntax, invalid request message framing, or'\
288
+ ' deceptive request routing).',
289
+ ErrorObjectException)
309
290
  .local_error('401',
310
291
  'The request has not been applied because it lacks valid '\
311
292
  ' authentication credentials for the target resource.',
312
- DefaultErrorException)
293
+ ErrorObjectException)
313
294
  .local_error('403',
314
- 'The server understood the request but refuses to authorize it'\
315
- '.',
316
- ErrorUserAccessError1Exception)
295
+ 'Forbidden',
296
+ ErrorObjectException)
317
297
  .local_error('404',
318
298
  'The origin server did not find a current representation for'\
319
299
  ' the target resource or is not willing to disclose that one'\
320
300
  ' exists.',
321
- DefaultErrorException)
301
+ ErrorObjectException)
322
302
  .local_error('500',
323
- 'The server encountered an unexpected condition the prevented'\
303
+ 'The server encountered an unexpected condition that prevented'\
324
304
  ' it from fulfilling the request.',
325
- DefaultErrorException))
305
+ ErrorObjectException))
326
306
  .execute
327
307
  end
328
308
 
@@ -331,54 +311,49 @@ module ShellDataReportingApIs
331
311
  # - This API also returns the details of the monthly breakup of current
332
312
  # period consumption as well as the details of the previously calculated
333
313
  # bonus and consumption of the applicable payers.
334
- # @param [String] apikey Required parameter: This is the API key of the
335
- # specific environment which needs to be passed by the client.
336
314
  # @param [String] request_id Required parameter: Mandatory UUID (according
337
315
  # to RFC 4122 standards) for requests and responses. This will be played
338
316
  # back in the response from the request.
339
- # @param [VolumeBasedBonusRequest] body Optional parameter: VolumeBasedBonus
317
+ # @param [VolumeBasedBonusReq] body Optional parameter: VolumeBasedBonus
340
318
  # RequestBody
341
- # @return [VolumeBasedBonusResponse] response from the API call.
342
- def volume_based_bonus(apikey,
343
- request_id,
319
+ # @return [VolumeBasedBonusRes] Response from the API call.
320
+ def volume_based_bonus(request_id,
344
321
  body: nil)
345
- new_api_call_builder
322
+ @api_call
346
323
  .request(new_request_builder(HttpMethodEnum::POST,
347
- '/fleetmanagement/v1/transaction/volumebasedbonus',
324
+ '/transaction-data/v1/volumebasedbonuss',
348
325
  Server::SHELL)
349
- .header_param(new_parameter(apikey, key: 'apikey'))
350
326
  .header_param(new_parameter(request_id, key: 'RequestId'))
351
327
  .header_param(new_parameter('application/json', key: 'Content-Type'))
352
328
  .body_param(new_parameter(body))
353
329
  .header_param(new_parameter('application/json', key: 'accept'))
354
330
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
355
- .auth(Single.new('BasicAuth')))
331
+ .auth(Single.new('BearerToken')))
356
332
  .response(new_response_handler
357
333
  .deserializer(APIHelper.method(:custom_type_deserializer))
358
- .deserialize_into(VolumeBasedBonusResponse.method(:from_hash))
334
+ .deserialize_into(VolumeBasedBonusRes.method(:from_hash))
359
335
  .local_error('400',
360
- "The server cannot or will not process the request due to'\
361
- ' something that is perceived to be a client\r\n error (e.g.,'\
362
- ' malformed request syntax, invalid \r\n request message'\
363
- ' framing, or deceptive request routing).",
364
- DefaultErrorException)
336
+ 'The server cannot or will not process the request due to'\
337
+ ' something that is perceived to be a client error (e.g.,'\
338
+ ' malformed request syntax, invalid request message framing, or'\
339
+ ' deceptive request routing).',
340
+ ErrorObjectException)
365
341
  .local_error('401',
366
342
  'The request has not been applied because it lacks valid '\
367
343
  ' authentication credentials for the target resource.',
368
- DefaultErrorException)
344
+ ErrorObjectException)
369
345
  .local_error('403',
370
- 'The server understood the request but refuses to authorize it'\
371
- '.',
372
- ErrorUserAccessError1Exception)
346
+ 'Forbidden',
347
+ ErrorObjectException)
373
348
  .local_error('404',
374
349
  'The origin server did not find a current representation for'\
375
350
  ' the target resource or is not willing to disclose that one'\
376
351
  ' exists.',
377
- DefaultErrorException)
352
+ ErrorObjectException)
378
353
  .local_error('500',
379
- 'The server encountered an unexpected condition the prevented'\
354
+ 'The server encountered an unexpected condition that prevented'\
380
355
  ' it from fulfilling the request.',
381
- DefaultErrorException))
356
+ ErrorObjectException))
382
357
  .execute
383
358
  end
384
359
 
@@ -386,54 +361,49 @@ module ShellDataReportingApIs
386
361
  # the payer along with details of locations, products, tiers as applied.
387
362
  # - It will also show historical and current volume consumption and related
388
363
  # tier applied for the following month.
389
- # @param [String] apikey Required parameter: This is the API key of the
390
- # specific environment which needs to be passed by the client.
391
364
  # @param [String] request_id Required parameter: Mandatory UUID (according
392
365
  # to RFC 4122 standards) for requests and responses. This will be played
393
366
  # back in the response from the request.
394
- # @param [VolumeBasedPricingRequest] body Optional parameter:
395
- # VolumeBasedPricing RequestBody
396
- # @return [VolumeBasedPricingResponse] response from the API call.
397
- def volume_based_pricing(apikey,
398
- request_id,
367
+ # @param [VolumeBasedPricingReq] body Optional parameter: VolumeBasedPricing
368
+ # RequestBody
369
+ # @return [VolumeBasedPricingRes] Response from the API call.
370
+ def volume_based_pricing(request_id,
399
371
  body: nil)
400
- new_api_call_builder
372
+ @api_call
401
373
  .request(new_request_builder(HttpMethodEnum::POST,
402
- '/fleetmanagement/v1/transaction/volumebasedpricing',
374
+ '/transaction-data/v1/volumebasedpricing',
403
375
  Server::SHELL)
404
- .header_param(new_parameter(apikey, key: 'apikey'))
405
376
  .header_param(new_parameter(request_id, key: 'RequestId'))
406
377
  .header_param(new_parameter('application/json', key: 'Content-Type'))
407
378
  .body_param(new_parameter(body))
408
379
  .header_param(new_parameter('application/json', key: 'accept'))
409
380
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
410
- .auth(Single.new('BasicAuth')))
381
+ .auth(Single.new('BearerToken')))
411
382
  .response(new_response_handler
412
383
  .deserializer(APIHelper.method(:custom_type_deserializer))
413
- .deserialize_into(VolumeBasedPricingResponse.method(:from_hash))
384
+ .deserialize_into(VolumeBasedPricingRes.method(:from_hash))
414
385
  .local_error('400',
415
- "The server cannot or will not process the request due to'\
416
- ' something that is perceived to be a client\r\n error (e.g.,'\
417
- ' malformed request syntax, invalid \r\n request message'\
418
- ' framing, or deceptive request routing).",
419
- DefaultErrorException)
386
+ 'The server cannot or will not process the request due to'\
387
+ ' something that is perceived to be a client error (e.g.,'\
388
+ ' malformed request syntax, invalid request message framing, or'\
389
+ ' deceptive request routing).',
390
+ ErrorObjectException)
420
391
  .local_error('401',
421
392
  'The request has not been applied because it lacks valid '\
422
393
  ' authentication credentials for the target resource.',
423
- DefaultErrorException)
394
+ ErrorObjectException)
424
395
  .local_error('403',
425
- 'The server understood the request but refuses to authorize it'\
426
- '.',
427
- ErrorUserAccessError1Exception)
396
+ 'Forbidden',
397
+ ErrorObjectException)
428
398
  .local_error('404',
429
399
  'The origin server did not find a current representation for'\
430
400
  ' the target resource or is not willing to disclose that one'\
431
401
  ' exists.',
432
- DefaultErrorException)
402
+ ErrorObjectException)
433
403
  .local_error('500',
434
- 'The server encountered an unexpected condition the prevented'\
404
+ 'The server encountered an unexpected condition that prevented'\
435
405
  ' it from fulfilling the request.',
436
- DefaultErrorException))
406
+ ErrorObjectException))
437
407
  .execute
438
408
  end
439
409
 
@@ -451,54 +421,49 @@ module ShellDataReportingApIs
451
421
  # * Get fees including cancelled items
452
422
  # * Get fees by line item description
453
423
  # * Get fees by product
454
- # @param [String] apikey Required parameter: This is the API key of the
455
- # specific environment which needs to be passed by the client.
456
424
  # @param [String] request_id Required parameter: Mandatory UUID (according
457
425
  # to RFC 4122 standards) for requests and responses. This will be played
458
426
  # back in the response from the request.
459
- # @param [TransactionFeesRequest] body Optional parameter: Transaction Fees
427
+ # @param [TransactionFeesReq] body Optional parameter: Transaction Fees
460
428
  # RequestBody
461
- # @return [TransactionFeesResponse] response from the API call.
462
- def fees(apikey,
463
- request_id,
429
+ # @return [TransactionFeesRes] Response from the API call.
430
+ def fees(request_id,
464
431
  body: nil)
465
- new_api_call_builder
432
+ @api_call
466
433
  .request(new_request_builder(HttpMethodEnum::POST,
467
- '/fleetmanagement/v1/transaction/fees',
434
+ '/transaction-data/v1/fees',
468
435
  Server::SHELL)
469
- .header_param(new_parameter(apikey, key: 'apikey'))
470
436
  .header_param(new_parameter(request_id, key: 'RequestId'))
471
437
  .header_param(new_parameter('application/json', key: 'Content-Type'))
472
438
  .body_param(new_parameter(body))
473
439
  .header_param(new_parameter('application/json', key: 'accept'))
474
440
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
475
- .auth(Single.new('BasicAuth')))
441
+ .auth(Single.new('BearerToken')))
476
442
  .response(new_response_handler
477
443
  .deserializer(APIHelper.method(:custom_type_deserializer))
478
- .deserialize_into(TransactionFeesResponse.method(:from_hash))
444
+ .deserialize_into(TransactionFeesRes.method(:from_hash))
479
445
  .local_error('400',
480
- "The server cannot or will not process the request due to'\
481
- ' something that is perceived to be a client\r\n error (e.g.,'\
482
- ' malformed request syntax, invalid \r\n request message'\
483
- ' framing, or deceptive request routing).",
484
- DefaultErrorException)
446
+ 'The server cannot or will not process the request due to'\
447
+ ' something that is perceived to be a client error (e.g.,'\
448
+ ' malformed request syntax, invalid request message framing, or'\
449
+ ' deceptive request routing).',
450
+ ErrorObjectException)
485
451
  .local_error('401',
486
452
  'The request has not been applied because it lacks valid '\
487
453
  ' authentication credentials for the target resource.',
488
- DefaultErrorException)
454
+ ErrorObjectException)
489
455
  .local_error('403',
490
- 'The server understood the request but refuses to authorize it'\
491
- '.',
492
- ErrorUserAccessError1Exception)
456
+ 'Forbidden',
457
+ ErrorObjectException)
493
458
  .local_error('404',
494
459
  'The origin server did not find a current representation for'\
495
460
  ' the target resource or is not willing to disclose that one'\
496
461
  ' exists.',
497
- DefaultErrorException)
462
+ ErrorObjectException)
498
463
  .local_error('500',
499
- 'The server encountered an unexpected condition the prevented'\
464
+ 'The server encountered an unexpected condition that prevented'\
500
465
  ' it from fulfilling the request.',
501
- DefaultErrorException))
466
+ ErrorObjectException))
502
467
  .execute
503
468
  end
504
469
 
@@ -516,54 +481,49 @@ module ShellDataReportingApIs
516
481
  # * Get fees including cancelled items
517
482
  # * Get fees by line item description
518
483
  # * Get fees by product
519
- # @param [String] apikey Required parameter: This is the API key of the
520
- # specific environment which needs to be passed by the client.
521
484
  # @param [String] request_id Required parameter: Mandatory UUID (according
522
485
  # to RFC 4122 standards) for requests and responses. This will be played
523
486
  # back in the response from the request.
524
- # @param [TransactionFeesRequest] body Optional parameter: FeeSummary
487
+ # @param [TransactionFeesSummaryReq] body Optional parameter: FeeSummary
525
488
  # RequestBody
526
- # @return [FeeSummaryResponse] response from the API call.
527
- def fee_summary_response(apikey,
528
- request_id,
489
+ # @return [FeeSummaryResponse] Response from the API call.
490
+ def fee_summary_response(request_id,
529
491
  body: nil)
530
- new_api_call_builder
492
+ @api_call
531
493
  .request(new_request_builder(HttpMethodEnum::POST,
532
- '/fleetmanagement/v1/transaction/feessummary',
494
+ '/transaction-data/v1/feessummary',
533
495
  Server::SHELL)
534
- .header_param(new_parameter(apikey, key: 'apikey'))
535
496
  .header_param(new_parameter(request_id, key: 'RequestId'))
536
497
  .header_param(new_parameter('application/json', key: 'Content-Type'))
537
498
  .body_param(new_parameter(body))
538
499
  .header_param(new_parameter('application/json', key: 'accept'))
539
500
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
540
- .auth(Single.new('BasicAuth')))
501
+ .auth(Single.new('BearerToken')))
541
502
  .response(new_response_handler
542
503
  .deserializer(APIHelper.method(:custom_type_deserializer))
543
504
  .deserialize_into(FeeSummaryResponse.method(:from_hash))
544
505
  .local_error('400',
545
- "The server cannot or will not process the request due to'\
546
- ' something that is perceived to be a client\r\n error (e.g.,'\
547
- ' malformed request syntax, invalid \r\n request message'\
548
- ' framing, or deceptive request routing).",
549
- DefaultErrorException)
506
+ 'The server cannot or will not process the request due to'\
507
+ ' something that is perceived to be a client error (e.g.,'\
508
+ ' malformed request syntax, invalid request message framing, or'\
509
+ ' deceptive request routing).',
510
+ ErrorObjectException)
550
511
  .local_error('401',
551
512
  'The request has not been applied because it lacks valid '\
552
513
  ' authentication credentials for the target resource.',
553
- DefaultErrorException)
514
+ ErrorObjectException)
554
515
  .local_error('403',
555
- 'The server understood the request but refuses to authorize it'\
556
- '.',
557
- ErrorUserAccessError1Exception)
516
+ 'Forbidden',
517
+ ErrorObjectException)
558
518
  .local_error('404',
559
519
  'The origin server did not find a current representation for'\
560
520
  ' the target resource or is not willing to disclose that one'\
561
521
  ' exists.',
562
- DefaultErrorException)
522
+ ErrorObjectException)
563
523
  .local_error('500',
564
- 'The server encountered an unexpected condition the prevented'\
524
+ 'The server encountered an unexpected condition that prevented'\
565
525
  ' it from fulfilling the request.',
566
- DefaultErrorException))
526
+ ErrorObjectException))
567
527
  .execute
568
528
  end
569
529
 
@@ -573,54 +533,49 @@ module ShellDataReportingApIs
573
533
  # - This operation response will contains card & transaction details for
574
534
  # given period aggregated by payer, account, cardGroup, PAN, DriverName and
575
535
  # VRN
576
- # @param [String] apikey Required parameter: This is the API key of the
577
- # specific environment which needs to be passed by the client.
578
536
  # @param [String] request_id Required parameter: Mandatory UUID (according
579
537
  # to RFC 4122 standards) for requests and responses. This will be played
580
538
  # back in the response from the request.
581
- # @param [FuelConsumptionRequest] body Optional parameter: FuelConsumption
539
+ # @param [FuelConsumptionReq] body Optional parameter: FuelConsumption
582
540
  # RequestBody
583
- # @return [FuelConsumptionResponse] response from the API call.
584
- def fuel_consumption(apikey,
585
- request_id,
541
+ # @return [FuelConsumptionResponse] Response from the API call.
542
+ def fuel_consumption(request_id,
586
543
  body: nil)
587
- new_api_call_builder
544
+ @api_call
588
545
  .request(new_request_builder(HttpMethodEnum::POST,
589
- '/fleetmanagement/v1/transaction/fuelconsumption',
546
+ '/transaction-data/v1/fuelconsumption',
590
547
  Server::SHELL)
591
- .header_param(new_parameter(apikey, key: 'apikey'))
592
548
  .header_param(new_parameter(request_id, key: 'RequestId'))
593
549
  .header_param(new_parameter('application/json', key: 'Content-Type'))
594
550
  .body_param(new_parameter(body))
595
551
  .header_param(new_parameter('application/json', key: 'accept'))
596
552
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
597
- .auth(Single.new('BasicAuth')))
553
+ .auth(Single.new('BearerToken')))
598
554
  .response(new_response_handler
599
555
  .deserializer(APIHelper.method(:custom_type_deserializer))
600
556
  .deserialize_into(FuelConsumptionResponse.method(:from_hash))
601
557
  .local_error('400',
602
- "The server cannot or will not process the request due to'\
603
- ' something that is perceived to be a client\r\n error (e.g.,'\
604
- ' malformed request syntax, invalid \r\n request message'\
605
- ' framing, or deceptive request routing).",
606
- DefaultErrorException)
558
+ 'The server cannot or will not process the request due to'\
559
+ ' something that is perceived to be a client error (e.g.,'\
560
+ ' malformed request syntax, invalid request message framing, or'\
561
+ ' deceptive request routing).',
562
+ ErrorObjectException)
607
563
  .local_error('401',
608
564
  'The request has not been applied because it lacks valid '\
609
565
  ' authentication credentials for the target resource.',
610
- DefaultErrorException)
566
+ ErrorObjectException)
611
567
  .local_error('403',
612
- 'The server understood the request but refuses to authorize it'\
613
- '.',
614
- ErrorUserAccessError1Exception)
568
+ 'Forbidden',
569
+ ErrorObjectException)
615
570
  .local_error('404',
616
571
  'The origin server did not find a current representation for'\
617
572
  ' the target resource or is not willing to disclose that one'\
618
573
  ' exists.',
619
- DefaultErrorException)
574
+ ErrorObjectException)
620
575
  .local_error('500',
621
- 'The server encountered an unexpected condition the prevented'\
576
+ 'The server encountered an unexpected condition that prevented'\
622
577
  ' it from fulfilling the request.',
623
- DefaultErrorException))
578
+ ErrorObjectException))
624
579
  .execute
625
580
  end
626
581
 
@@ -628,54 +583,49 @@ module ShellDataReportingApIs
628
583
  # items (transaction data)
629
584
  # - This is an asynchronous operation. If opted, the user will be notified
630
585
  # on completion of processing.
631
- # @param [String] apikey Required parameter: This is the API key of the
632
- # specific environment which needs to be passed by the client.
633
586
  # @param [String] request_id Required parameter: Mandatory UUID (according
634
587
  # to RFC 4122 standards) for requests and responses. This will be played
635
588
  # back in the response from the request.
636
589
  # @param [UpdateOdometerRequest] body Optional parameter: updateOdometer
637
590
  # RequestBody
638
- # @return [UpdateOdometerResponse] response from the API call.
639
- def update_odometer(apikey,
640
- request_id,
591
+ # @return [UpdateOdometerResp] Response from the API call.
592
+ def update_odometer(request_id,
641
593
  body: nil)
642
- new_api_call_builder
594
+ @api_call
643
595
  .request(new_request_builder(HttpMethodEnum::POST,
644
- '/fleetmanagement/v1/transaction/updateodometer',
596
+ '/transaction-data/v1/updateodometer',
645
597
  Server::SHELL)
646
- .header_param(new_parameter(apikey, key: 'apikey'))
647
598
  .header_param(new_parameter(request_id, key: 'RequestId'))
648
599
  .header_param(new_parameter('application/json', key: 'Content-Type'))
649
600
  .body_param(new_parameter(body))
650
601
  .header_param(new_parameter('application/json', key: 'accept'))
651
602
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
652
- .auth(Single.new('BasicAuth')))
603
+ .auth(Single.new('BearerToken')))
653
604
  .response(new_response_handler
654
605
  .deserializer(APIHelper.method(:custom_type_deserializer))
655
- .deserialize_into(UpdateOdometerResponse.method(:from_hash))
606
+ .deserialize_into(UpdateOdometerResp.method(:from_hash))
656
607
  .local_error('400',
657
- "The server cannot or will not process the request due to'\
658
- ' something that is perceived to be a client\r\n error (e.g.,'\
659
- ' malformed request syntax, invalid \r\n request message'\
660
- ' framing, or deceptive request routing).",
661
- DefaultErrorException)
608
+ 'The server cannot or will not process the request due to'\
609
+ ' something that is perceived to be a client error (e.g.,'\
610
+ ' malformed request syntax, invalid request message framing, or'\
611
+ ' deceptive request routing).',
612
+ ErrorObjectException)
662
613
  .local_error('401',
663
614
  'The request has not been applied because it lacks valid '\
664
615
  ' authentication credentials for the target resource.',
665
- DefaultErrorException)
616
+ ErrorObjectException)
666
617
  .local_error('403',
667
- 'The server understood the request but refuses to authorize it'\
668
- '.',
669
- ErrorUserAccessError1Exception)
618
+ 'Forbidden',
619
+ ErrorObjectException)
670
620
  .local_error('404',
671
621
  'The origin server did not find a current representation for'\
672
622
  ' the target resource or is not willing to disclose that one'\
673
623
  ' exists.',
674
- DefaultErrorException)
624
+ ErrorObjectException)
675
625
  .local_error('500',
676
- 'The server encountered an unexpected condition the prevented'\
626
+ 'The server encountered an unexpected condition that prevented'\
677
627
  ' it from fulfilling the request.',
678
- DefaultErrorException))
628
+ ErrorObjectException))
679
629
  .execute
680
630
  end
681
631
 
@@ -684,54 +634,49 @@ module ShellDataReportingApIs
684
634
  # - This API will return the Transactions related exceptions when the
685
635
  # OutputType input parameter is passed as ‘Transaction’ else will return the
686
636
  # Cards related exceptions.
687
- # @param [String] apikey Required parameter: This is the API key of the
688
- # specific environment which needs to be passed by the client.
689
637
  # @param [String] request_id Required parameter: Mandatory UUID (according
690
638
  # to RFC 4122 standards) for requests and responses. This will be played
691
639
  # back in the response from the request.
692
- # @param [TransactionExceptionsRequest] body Optional parameter: Transaction
640
+ # @param [TransactionExceptionsReq] body Optional parameter: Transaction
693
641
  # Exceptions RequestBody
694
- # @return [TransactionExceptionsResponse] response from the API call.
695
- def transaction_exceptions(apikey,
696
- request_id,
642
+ # @return [TransactionExceptionsRes] Response from the API call.
643
+ def transaction_exceptions(request_id,
697
644
  body: nil)
698
- new_api_call_builder
645
+ @api_call
699
646
  .request(new_request_builder(HttpMethodEnum::POST,
700
- '/fleetmanagement/v1/transaction/exceptions',
647
+ '/transaction-data/v1/exceptions',
701
648
  Server::SHELL)
702
- .header_param(new_parameter(apikey, key: 'apikey'))
703
649
  .header_param(new_parameter(request_id, key: 'RequestId'))
704
650
  .header_param(new_parameter('application/json', key: 'Content-Type'))
705
651
  .body_param(new_parameter(body))
706
652
  .header_param(new_parameter('application/json', key: 'accept'))
707
653
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
708
- .auth(Single.new('BasicAuth')))
654
+ .auth(Single.new('BearerToken')))
709
655
  .response(new_response_handler
710
656
  .deserializer(APIHelper.method(:custom_type_deserializer))
711
- .deserialize_into(TransactionExceptionsResponse.method(:from_hash))
657
+ .deserialize_into(TransactionExceptionsRes.method(:from_hash))
712
658
  .local_error('400',
713
- "The server cannot or will not process the request due to'\
714
- ' something that is perceived to be a client\r\n error (e.g.,'\
715
- ' malformed request syntax, invalid \r\n request message'\
716
- ' framing, or deceptive request routing).",
717
- DefaultErrorException)
659
+ 'The server cannot or will not process the request due to'\
660
+ ' something that is perceived to be a client error (e.g.,'\
661
+ ' malformed request syntax, invalid request message framing, or'\
662
+ ' deceptive request routing).',
663
+ ErrorObjectException)
718
664
  .local_error('401',
719
665
  'The request has not been applied because it lacks valid '\
720
666
  ' authentication credentials for the target resource.',
721
- DefaultErrorException)
667
+ ErrorObjectException)
722
668
  .local_error('403',
723
- 'The server understood the request but refuses to authorize it'\
724
- '.',
725
- ErrorUserAccessError1Exception)
669
+ 'Forbidden',
670
+ ErrorObjectException)
726
671
  .local_error('404',
727
672
  'The origin server did not find a current representation for'\
728
673
  ' the target resource or is not willing to disclose that one'\
729
674
  ' exists.',
730
- DefaultErrorException)
675
+ ErrorObjectException)
731
676
  .local_error('500',
732
- 'The server encountered an unexpected condition the prevented'\
677
+ 'The server encountered an unexpected condition that prevented'\
733
678
  ' it from fulfilling the request.',
734
- DefaultErrorException))
679
+ ErrorObjectException))
735
680
  .execute
736
681
  end
737
682
 
@@ -754,10 +699,10 @@ module ShellDataReportingApIs
754
699
  # back in the response from the request.
755
700
  # @param [RecentTransactionRequest] body Optional parameter: New Recent
756
701
  # Transaction RequestBody
757
- # @return [RecentTransactionsResponse] response from the API call.
702
+ # @return [RecentTransactionsResponse] Response from the API call.
758
703
  def recent_transactions_new(request_id,
759
704
  body: nil)
760
- new_api_call_builder
705
+ @api_call
761
706
  .request(new_request_builder(HttpMethodEnum::POST,
762
707
  '/transaction-data/v1/recent',
763
708
  Server::SHELL)
@@ -834,10 +779,10 @@ module ShellDataReportingApIs
834
779
  # back in the response from the request.
835
780
  # @param [PricedTransactionRequestV2] body Optional parameter: Priced
836
781
  # TransactionV2 RequestBody
837
- # @return [PricedTransactionResponseV2] response from the API call.
782
+ # @return [PricedTransactionResponseV2] Response from the API call.
838
783
  def priced_transactions_v2(request_id,
839
784
  body: nil)
840
- new_api_call_builder
785
+ @api_call
841
786
  .request(new_request_builder(HttpMethodEnum::POST,
842
787
  '/transaction-data/v1/priced',
843
788
  Server::SHELL)