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.
- checksums.yaml +4 -4
- data/README.md +66 -35
- data/lib/shell_data_reporting_ap_is/api_helper.rb +2 -2
- data/lib/shell_data_reporting_ap_is/client.rb +11 -12
- data/lib/shell_data_reporting_ap_is/configuration.rb +23 -25
- data/lib/shell_data_reporting_ap_is/controllers/base_controller.rb +3 -9
- data/lib/shell_data_reporting_ap_is/controllers/customer_controller.rb +251 -288
- data/lib/shell_data_reporting_ap_is/controllers/invoice_controller.rb +20 -20
- data/lib/shell_data_reporting_ap_is/controllers/o_auth_authorization_controller.rb +7 -7
- data/lib/shell_data_reporting_ap_is/controllers/transaction_controller.rb +204 -259
- data/lib/shell_data_reporting_ap_is/exceptions/api_exception.rb +2 -2
- data/lib/shell_data_reporting_ap_is/exceptions/error_object_exception.rb +7 -5
- data/lib/shell_data_reporting_ap_is/exceptions/o_auth_provider_exception.rb +7 -5
- data/lib/shell_data_reporting_ap_is/http/auth/{bearer_token.rb → o_auth2.rb} +28 -27
- data/lib/shell_data_reporting_ap_is/http/http_call_back.rb +2 -2
- data/lib/shell_data_reporting_ap_is/http/http_method_enum.rb +2 -2
- data/lib/shell_data_reporting_ap_is/http/http_request.rb +2 -2
- data/lib/shell_data_reporting_ap_is/http/http_response.rb +2 -2
- data/lib/shell_data_reporting_ap_is/http/proxy_settings.rb +13 -0
- data/lib/shell_data_reporting_ap_is/models/account_access.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/account_req.rb +84 -0
- data/lib/shell_data_reporting_ap_is/models/account_request.rb +3 -3
- data/lib/shell_data_reporting_ap_is/models/account_res.rb +158 -0
- data/lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/accounts.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/address.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/associated_account.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/audit_array_elements.rb +71 -0
- data/lib/shell_data_reporting_ap_is/models/audit_req.rb +84 -0
- data/lib/shell_data_reporting_ap_is/models/audit_request.rb +29 -41
- data/lib/shell_data_reporting_ap_is/models/audit_response.rb +88 -53
- data/lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb +29 -6
- data/lib/shell_data_reporting_ap_is/models/bank_account.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/base_model.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/bonus_configuration.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/bonus_history.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/card_day_time_restrictions.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/card_exceptions.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/card_group_req.rb +84 -0
- data/lib/shell_data_reporting_ap_is/models/card_group_request.rb +6 -31
- data/lib/shell_data_reporting_ap_is/models/card_group_res.rb +158 -0
- data/lib/shell_data_reporting_ap_is/models/card_group_response_card_groups_items.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/{error_user_access.rb → card_type_req.rb} +14 -14
- data/lib/shell_data_reporting_ap_is/models/card_type_request.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/card_type_res.rb +91 -0
- data/lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb +3 -3
- data/lib/shell_data_reporting_ap_is/models/card_usage_restrictions.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/card_usage_summary_req.rb +62 -0
- data/lib/shell_data_reporting_ap_is/models/card_usage_summary_request.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/card_usage_summary_res.rb +116 -0
- data/lib/shell_data_reporting_ap_is/models/card_usage_summary_response.rb +6 -26
- data/lib/shell_data_reporting_ap_is/models/col_co_access.rb +4 -4
- data/lib/shell_data_reporting_ap_is/models/current_volume.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/customer_contract.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/customer_detail_request.rb +4 -4
- data/lib/shell_data_reporting_ap_is/models/customer_detail_response.rb +5 -32
- data/lib/shell_data_reporting_ap_is/models/customer_price_list_req.rb +62 -0
- data/lib/shell_data_reporting_ap_is/models/customer_price_list_request.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/customer_price_list_res.rb +91 -0
- data/lib/shell_data_reporting_ap_is/models/customer_price_list_response.rb +7 -29
- data/lib/shell_data_reporting_ap_is/models/{default_error_fault_detail.rb → customer_req.rb} +15 -15
- data/lib/shell_data_reporting_ap_is/models/customer_res.rb +91 -0
- data/lib/shell_data_reporting_ap_is/models/delivery_addresses.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/eid_access.rb +3 -3
- data/lib/shell_data_reporting_ap_is/models/eid_document.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/eid_document_response.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/eid_download_req.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/eid_download_request.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/eid_search_req.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/eid_search_request.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/error_details.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/exception_product.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/exception_site_location.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/fee_item.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/fee_item_summary_all_of0.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/fee_rule_location.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/fee_rule_product.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/fee_rule_tier.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/fee_summary_response.rb +57 -38
- data/lib/shell_data_reporting_ap_is/models/fees_fee_rule_tiers.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/filters.rb +522 -0
- data/lib/shell_data_reporting_ap_is/models/{finance_currency.rb → finance_currency2.rb} +8 -9
- data/lib/shell_data_reporting_ap_is/models/fleetmanagement_v1_user_loggedinuser_request.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_card.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_data.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_req.rb +62 -0
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_request.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_response.rb +58 -33
- data/lib/shell_data_reporting_ap_is/models/invoice_dates_data.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/invoice_dates_request.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/invoice_dates_request_filters.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/invoice_dates_response_data.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/invoice_distribution_method.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/invoice_download_req.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/invoice_download_request.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/invoice_search_additional_document.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/invoice_search_details.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/invoice_search_request.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/invoice_search_request_filters.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/invoice_search_response.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/invoice_summary_details.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/invoice_summary_request.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/invoice_summary_request_filters.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/invoice_summary_response.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/invoices_summaries.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/last_statement_of_account.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/last_statement_of_account2.rb +457 -0
- data/lib/shell_data_reporting_ap_is/models/{error_user_access_error.rb → location.rb} +25 -22
- data/lib/shell_data_reporting_ap_is/models/logged_in_user_req.rb +63 -0
- data/lib/shell_data_reporting_ap_is/models/logged_in_user_res.rb +91 -0
- data/lib/shell_data_reporting_ap_is/models/logged_in_user_response.rb +6 -30
- data/lib/shell_data_reporting_ap_is/models/monthly_invoice_trend.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_req.rb +84 -0
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_request.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_request_accounts_items.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_res.rb +158 -0
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_response.rb +6 -57
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_response_transactions_items.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/o_auth_provider_error_enum.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/o_auth_token.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/past_statement_of_accounts.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/payer_access.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/payer_details.rb +8 -6
- data/lib/shell_data_reporting_ap_is/models/payer_req.rb +84 -0
- data/lib/shell_data_reporting_ap_is/models/payer_request.rb +6 -33
- data/lib/shell_data_reporting_ap_is/models/payer_res.rb +158 -0
- data/lib/shell_data_reporting_ap_is/models/payers.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/payments_since_last_soa.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/pin_advice_types.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/price_list.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/price_trans_summary_req.rb +62 -0
- data/lib/shell_data_reporting_ap_is/models/price_trans_summary_request.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/price_transaction_req.rb +84 -0
- data/lib/shell_data_reporting_ap_is/models/price_transaction_request.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/priced_request_data.rb +4 -8
- data/lib/shell_data_reporting_ap_is/models/priced_response_data.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_resp.rb +116 -0
- data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_response_transactions_summary_items.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_items_location_items.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_req_v2_invoice_status_enum.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_req_v2_period_enum.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_req_v2_sort_order_enum.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_request_v2.rb +5 -7
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_res.rb +158 -0
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_resp_v2_refund_flag_enum.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_response.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb +6 -27
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_response_v2.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/pricing_current_volume.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/pricing_history.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/purchase_categories.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/recent_transaction_req.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/recent_transaction_request.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/recent_transactions.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/recent_transactions_response.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/role.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/search_doc_req.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/search_documents_invoice.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/search_documents_request.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/search_documents_response.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/search_soa_req.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/search_statement_of_account.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/search_statement_of_account_request.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/search_statement_of_account_response.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/site_location.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/statement_of_account_request.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/statement_of_account_request_filters.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/statement_of_account_resp.rb +9 -9
- data/lib/shell_data_reporting_ap_is/models/statement_of_account_response.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/tier.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb +5 -5
- data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_req.rb +62 -0
- data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_request.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_res.rb +116 -0
- data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_response.rb +6 -26
- data/lib/shell_data_reporting_ap_is/models/transaction_fees_req.rb +84 -0
- data/lib/shell_data_reporting_ap_is/models/transaction_fees_request.rb +6 -28
- data/lib/shell_data_reporting_ap_is/models/transaction_fees_res.rb +158 -0
- data/lib/shell_data_reporting_ap_is/models/transaction_fees_summary_req.rb +62 -0
- data/lib/shell_data_reporting_ap_is/models/update_odometer.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/update_odometer_reference.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/update_odometer_request.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/update_odometer_resp.rb +116 -0
- data/lib/shell_data_reporting_ap_is/models/update_odometer_response.rb +6 -26
- data/lib/shell_data_reporting_ap_is/models/usage_summary.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_req.rb +62 -0
- data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_request.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_res.rb +116 -0
- data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_response.rb +6 -27
- data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_req.rb +62 -0
- data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_request.rb +2 -2
- data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_res.rb +91 -0
- data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_response.rb +28 -24
- data/lib/shell_data_reporting_ap_is/models/warning.rb +69 -0
- data/lib/shell_data_reporting_ap_is/utilities/date_time_helper.rb +2 -2
- data/lib/shell_data_reporting_ap_is/utilities/file_wrapper.rb +2 -2
- data/lib/shell_data_reporting_ap_is/utilities/union_type_lookup.rb +2 -2
- data/lib/shell_data_reporting_ap_is.rb +54 -29
- data/test/controllers/controller_test_base.rb +2 -2
- data/test/controllers/test_invoice_controller.rb +3 -12
- data/test/controllers/test_transaction_controller.rb +3 -5
- data/test/http_response_catcher.rb +3 -3
- metadata +50 -26
- data/lib/shell_data_reporting_ap_is/exceptions/default_error_exception.rb +0 -44
- data/lib/shell_data_reporting_ap_is/exceptions/error_user_access_error1_exception.rb +0 -44
- data/lib/shell_data_reporting_ap_is/http/auth/basic_auth.rb +0 -50
- data/lib/shell_data_reporting_ap_is/models/account_response.rb +0 -123
- data/lib/shell_data_reporting_ap_is/models/card_group_response.rb +0 -121
- data/lib/shell_data_reporting_ap_is/models/card_type_response.rb +0 -91
- data/lib/shell_data_reporting_ap_is/models/card_type_response_error.rb +0 -71
- data/lib/shell_data_reporting_ap_is/models/default_error_fault.rb +0 -71
- data/lib/shell_data_reporting_ap_is/models/error_status.rb +0 -81
- data/lib/shell_data_reporting_ap_is/models/logged_in_user_request.rb +0 -121
- data/lib/shell_data_reporting_ap_is/models/payer_response.rb +0 -127
- data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_response.rb +0 -91
- 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
|
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 [
|
55
|
-
#
|
56
|
-
# @return [
|
57
|
-
def priced_transactions(
|
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
|
-
|
57
|
+
@api_call
|
61
58
|
.request(new_request_builder(HttpMethodEnum::POST,
|
62
|
-
'/
|
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('
|
66
|
+
.auth(Single.new('BearerToken')))
|
71
67
|
.response(new_response_handler
|
72
68
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
73
|
-
.deserialize_into(
|
69
|
+
.deserialize_into(PricedTransactionRes.method(:from_hash))
|
74
70
|
.local_error('400',
|
75
|
-
|
76
|
-
' something that is perceived to be a client
|
77
|
-
' malformed request syntax, invalid
|
78
|
-
'
|
79
|
-
|
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
|
-
|
79
|
+
ErrorObjectException)
|
84
80
|
.local_error('403',
|
85
|
-
'
|
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
|
-
|
87
|
+
ErrorObjectException)
|
93
88
|
.local_error('500',
|
94
|
-
'The server encountered an unexpected condition
|
89
|
+
'The server encountered an unexpected condition that prevented'\
|
95
90
|
' it from fulfilling the request.',
|
96
|
-
|
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 [
|
135
|
+
# @param [PriceTransSummaryReq] body Optional parameter: PricedSummary
|
143
136
|
# RequestBody
|
144
|
-
# @return [
|
145
|
-
def priced_transactions_summary(
|
146
|
-
request_id,
|
137
|
+
# @return [PricedTransSummaryResp] Response from the API call.
|
138
|
+
def priced_transactions_summary(request_id,
|
147
139
|
body: nil)
|
148
|
-
|
140
|
+
@api_call
|
149
141
|
.request(new_request_builder(HttpMethodEnum::POST,
|
150
|
-
'/
|
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('
|
149
|
+
.auth(Single.new('BearerToken')))
|
159
150
|
.response(new_response_handler
|
160
151
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
161
|
-
.deserialize_into(
|
152
|
+
.deserialize_into(PricedTransSummaryResp.method(:from_hash))
|
162
153
|
.local_error('400',
|
163
|
-
|
164
|
-
' something that is perceived to be a client
|
165
|
-
' malformed request syntax, invalid
|
166
|
-
'
|
167
|
-
|
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
|
-
|
162
|
+
ErrorObjectException)
|
172
163
|
.local_error('403',
|
173
|
-
'
|
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
|
-
|
170
|
+
ErrorObjectException)
|
181
171
|
.local_error('500',
|
182
|
-
'The server encountered an unexpected condition
|
172
|
+
'The server encountered an unexpected condition that prevented'\
|
183
173
|
' it from fulfilling the request.',
|
184
|
-
|
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 [
|
215
|
+
# @param [MultiPricedTransactionReq] body Optional parameter: MultiPayer
|
228
216
|
# RequestBody
|
229
|
-
# @return [
|
230
|
-
def multipriced_transactions(
|
231
|
-
request_id,
|
217
|
+
# @return [MultiPricedTransactionRes] Response from the API call.
|
218
|
+
def multipriced_transactions(request_id,
|
232
219
|
body: nil)
|
233
|
-
|
220
|
+
@api_call
|
234
221
|
.request(new_request_builder(HttpMethodEnum::POST,
|
235
|
-
'/
|
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('
|
229
|
+
.auth(Single.new('BearerToken')))
|
244
230
|
.response(new_response_handler
|
245
231
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
246
|
-
.deserialize_into(
|
232
|
+
.deserialize_into(MultiPricedTransactionRes.method(:from_hash))
|
247
233
|
.local_error('400',
|
248
|
-
|
249
|
-
' something that is perceived to be a client
|
250
|
-
' malformed request syntax, invalid
|
251
|
-
'
|
252
|
-
|
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
|
-
|
242
|
+
ErrorObjectException)
|
257
243
|
.local_error('403',
|
258
|
-
'
|
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
|
-
|
250
|
+
ErrorObjectException)
|
266
251
|
.local_error('500',
|
267
|
-
'The server encountered an unexpected condition
|
252
|
+
'The server encountered an unexpected condition that prevented'\
|
268
253
|
' it from fulfilling the request.',
|
269
|
-
|
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 [
|
284
|
-
#
|
285
|
-
# @return [
|
286
|
-
def card_usage_summary(
|
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
|
-
|
271
|
+
@api_call
|
290
272
|
.request(new_request_builder(HttpMethodEnum::POST,
|
291
|
-
'/
|
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('
|
280
|
+
.auth(Single.new('BearerToken')))
|
300
281
|
.response(new_response_handler
|
301
282
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
302
|
-
.deserialize_into(
|
283
|
+
.deserialize_into(CardUsageSummaryRes.method(:from_hash))
|
303
284
|
.local_error('400',
|
304
|
-
|
305
|
-
' something that is perceived to be a client
|
306
|
-
' malformed request syntax, invalid
|
307
|
-
'
|
308
|
-
|
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
|
-
|
293
|
+
ErrorObjectException)
|
313
294
|
.local_error('403',
|
314
|
-
'
|
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
|
-
|
301
|
+
ErrorObjectException)
|
322
302
|
.local_error('500',
|
323
|
-
'The server encountered an unexpected condition
|
303
|
+
'The server encountered an unexpected condition that prevented'\
|
324
304
|
' it from fulfilling the request.',
|
325
|
-
|
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 [
|
317
|
+
# @param [VolumeBasedBonusReq] body Optional parameter: VolumeBasedBonus
|
340
318
|
# RequestBody
|
341
|
-
# @return [
|
342
|
-
def volume_based_bonus(
|
343
|
-
request_id,
|
319
|
+
# @return [VolumeBasedBonusRes] Response from the API call.
|
320
|
+
def volume_based_bonus(request_id,
|
344
321
|
body: nil)
|
345
|
-
|
322
|
+
@api_call
|
346
323
|
.request(new_request_builder(HttpMethodEnum::POST,
|
347
|
-
'/
|
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('
|
331
|
+
.auth(Single.new('BearerToken')))
|
356
332
|
.response(new_response_handler
|
357
333
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
358
|
-
.deserialize_into(
|
334
|
+
.deserialize_into(VolumeBasedBonusRes.method(:from_hash))
|
359
335
|
.local_error('400',
|
360
|
-
|
361
|
-
' something that is perceived to be a client
|
362
|
-
' malformed request syntax, invalid
|
363
|
-
'
|
364
|
-
|
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
|
-
|
344
|
+
ErrorObjectException)
|
369
345
|
.local_error('403',
|
370
|
-
'
|
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
|
-
|
352
|
+
ErrorObjectException)
|
378
353
|
.local_error('500',
|
379
|
-
'The server encountered an unexpected condition
|
354
|
+
'The server encountered an unexpected condition that prevented'\
|
380
355
|
' it from fulfilling the request.',
|
381
|
-
|
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 [
|
395
|
-
#
|
396
|
-
# @return [
|
397
|
-
def volume_based_pricing(
|
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
|
-
|
372
|
+
@api_call
|
401
373
|
.request(new_request_builder(HttpMethodEnum::POST,
|
402
|
-
'/
|
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('
|
381
|
+
.auth(Single.new('BearerToken')))
|
411
382
|
.response(new_response_handler
|
412
383
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
413
|
-
.deserialize_into(
|
384
|
+
.deserialize_into(VolumeBasedPricingRes.method(:from_hash))
|
414
385
|
.local_error('400',
|
415
|
-
|
416
|
-
' something that is perceived to be a client
|
417
|
-
' malformed request syntax, invalid
|
418
|
-
'
|
419
|
-
|
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
|
-
|
394
|
+
ErrorObjectException)
|
424
395
|
.local_error('403',
|
425
|
-
'
|
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
|
-
|
402
|
+
ErrorObjectException)
|
433
403
|
.local_error('500',
|
434
|
-
'The server encountered an unexpected condition
|
404
|
+
'The server encountered an unexpected condition that prevented'\
|
435
405
|
' it from fulfilling the request.',
|
436
|
-
|
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 [
|
427
|
+
# @param [TransactionFeesReq] body Optional parameter: Transaction Fees
|
460
428
|
# RequestBody
|
461
|
-
# @return [
|
462
|
-
def fees(
|
463
|
-
request_id,
|
429
|
+
# @return [TransactionFeesRes] Response from the API call.
|
430
|
+
def fees(request_id,
|
464
431
|
body: nil)
|
465
|
-
|
432
|
+
@api_call
|
466
433
|
.request(new_request_builder(HttpMethodEnum::POST,
|
467
|
-
'/
|
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('
|
441
|
+
.auth(Single.new('BearerToken')))
|
476
442
|
.response(new_response_handler
|
477
443
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
478
|
-
.deserialize_into(
|
444
|
+
.deserialize_into(TransactionFeesRes.method(:from_hash))
|
479
445
|
.local_error('400',
|
480
|
-
|
481
|
-
' something that is perceived to be a client
|
482
|
-
' malformed request syntax, invalid
|
483
|
-
'
|
484
|
-
|
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
|
-
|
454
|
+
ErrorObjectException)
|
489
455
|
.local_error('403',
|
490
|
-
'
|
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
|
-
|
462
|
+
ErrorObjectException)
|
498
463
|
.local_error('500',
|
499
|
-
'The server encountered an unexpected condition
|
464
|
+
'The server encountered an unexpected condition that prevented'\
|
500
465
|
' it from fulfilling the request.',
|
501
|
-
|
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 [
|
487
|
+
# @param [TransactionFeesSummaryReq] body Optional parameter: FeeSummary
|
525
488
|
# RequestBody
|
526
|
-
# @return [FeeSummaryResponse]
|
527
|
-
def fee_summary_response(
|
528
|
-
request_id,
|
489
|
+
# @return [FeeSummaryResponse] Response from the API call.
|
490
|
+
def fee_summary_response(request_id,
|
529
491
|
body: nil)
|
530
|
-
|
492
|
+
@api_call
|
531
493
|
.request(new_request_builder(HttpMethodEnum::POST,
|
532
|
-
'/
|
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('
|
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
|
-
|
546
|
-
' something that is perceived to be a client
|
547
|
-
' malformed request syntax, invalid
|
548
|
-
'
|
549
|
-
|
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
|
-
|
514
|
+
ErrorObjectException)
|
554
515
|
.local_error('403',
|
555
|
-
'
|
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
|
-
|
522
|
+
ErrorObjectException)
|
563
523
|
.local_error('500',
|
564
|
-
'The server encountered an unexpected condition
|
524
|
+
'The server encountered an unexpected condition that prevented'\
|
565
525
|
' it from fulfilling the request.',
|
566
|
-
|
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 [
|
539
|
+
# @param [FuelConsumptionReq] body Optional parameter: FuelConsumption
|
582
540
|
# RequestBody
|
583
|
-
# @return [FuelConsumptionResponse]
|
584
|
-
def fuel_consumption(
|
585
|
-
request_id,
|
541
|
+
# @return [FuelConsumptionResponse] Response from the API call.
|
542
|
+
def fuel_consumption(request_id,
|
586
543
|
body: nil)
|
587
|
-
|
544
|
+
@api_call
|
588
545
|
.request(new_request_builder(HttpMethodEnum::POST,
|
589
|
-
'/
|
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('
|
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
|
-
|
603
|
-
' something that is perceived to be a client
|
604
|
-
' malformed request syntax, invalid
|
605
|
-
'
|
606
|
-
|
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
|
-
|
566
|
+
ErrorObjectException)
|
611
567
|
.local_error('403',
|
612
|
-
'
|
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
|
-
|
574
|
+
ErrorObjectException)
|
620
575
|
.local_error('500',
|
621
|
-
'The server encountered an unexpected condition
|
576
|
+
'The server encountered an unexpected condition that prevented'\
|
622
577
|
' it from fulfilling the request.',
|
623
|
-
|
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 [
|
639
|
-
def update_odometer(
|
640
|
-
request_id,
|
591
|
+
# @return [UpdateOdometerResp] Response from the API call.
|
592
|
+
def update_odometer(request_id,
|
641
593
|
body: nil)
|
642
|
-
|
594
|
+
@api_call
|
643
595
|
.request(new_request_builder(HttpMethodEnum::POST,
|
644
|
-
'/
|
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('
|
603
|
+
.auth(Single.new('BearerToken')))
|
653
604
|
.response(new_response_handler
|
654
605
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
655
|
-
.deserialize_into(
|
606
|
+
.deserialize_into(UpdateOdometerResp.method(:from_hash))
|
656
607
|
.local_error('400',
|
657
|
-
|
658
|
-
' something that is perceived to be a client
|
659
|
-
' malformed request syntax, invalid
|
660
|
-
'
|
661
|
-
|
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
|
-
|
616
|
+
ErrorObjectException)
|
666
617
|
.local_error('403',
|
667
|
-
'
|
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
|
-
|
624
|
+
ErrorObjectException)
|
675
625
|
.local_error('500',
|
676
|
-
'The server encountered an unexpected condition
|
626
|
+
'The server encountered an unexpected condition that prevented'\
|
677
627
|
' it from fulfilling the request.',
|
678
|
-
|
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 [
|
640
|
+
# @param [TransactionExceptionsReq] body Optional parameter: Transaction
|
693
641
|
# Exceptions RequestBody
|
694
|
-
# @return [
|
695
|
-
def transaction_exceptions(
|
696
|
-
request_id,
|
642
|
+
# @return [TransactionExceptionsRes] Response from the API call.
|
643
|
+
def transaction_exceptions(request_id,
|
697
644
|
body: nil)
|
698
|
-
|
645
|
+
@api_call
|
699
646
|
.request(new_request_builder(HttpMethodEnum::POST,
|
700
|
-
'/
|
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('
|
654
|
+
.auth(Single.new('BearerToken')))
|
709
655
|
.response(new_response_handler
|
710
656
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
711
|
-
.deserialize_into(
|
657
|
+
.deserialize_into(TransactionExceptionsRes.method(:from_hash))
|
712
658
|
.local_error('400',
|
713
|
-
|
714
|
-
' something that is perceived to be a client
|
715
|
-
' malformed request syntax, invalid
|
716
|
-
'
|
717
|
-
|
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
|
-
|
667
|
+
ErrorObjectException)
|
722
668
|
.local_error('403',
|
723
|
-
'
|
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
|
-
|
675
|
+
ErrorObjectException)
|
731
676
|
.local_error('500',
|
732
|
-
'The server encountered an unexpected condition
|
677
|
+
'The server encountered an unexpected condition that prevented'\
|
733
678
|
' it from fulfilling the request.',
|
734
|
-
|
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]
|
702
|
+
# @return [RecentTransactionsResponse] Response from the API call.
|
758
703
|
def recent_transactions_new(request_id,
|
759
704
|
body: nil)
|
760
|
-
|
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]
|
782
|
+
# @return [PricedTransactionResponseV2] Response from the API call.
|
838
783
|
def priced_transactions_v2(request_id,
|
839
784
|
body: nil)
|
840
|
-
|
785
|
+
@api_call
|
841
786
|
.request(new_request_builder(HttpMethodEnum::POST,
|
842
787
|
'/transaction-data/v1/priced',
|
843
788
|
Server::SHELL)
|