data-and-reporting-sdk 1.0.0 → 1.2.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 +15 -16
- data/lib/shell_data_reporting_ap_is/controllers/base_controller.rb +9 -9
- data/lib/shell_data_reporting_ap_is/controllers/customer_controller.rb +210 -210
- data/lib/shell_data_reporting_ap_is/controllers/invoice_controller.rb +221 -221
- data/lib/shell_data_reporting_ap_is/controllers/o_auth_authorization_controller.rb +9 -9
- data/lib/shell_data_reporting_ap_is/controllers/transaction_controller.rb +354 -354
- data/lib/shell_data_reporting_ap_is/exceptions/default_error_exception.rb +15 -15
- data/lib/shell_data_reporting_ap_is/exceptions/error_object_exception.rb +15 -15
- data/lib/shell_data_reporting_ap_is/exceptions/error_user_access_error1_exception.rb +15 -15
- data/lib/shell_data_reporting_ap_is/exceptions/o_auth_provider_exception.rb +15 -15
- data/lib/shell_data_reporting_ap_is/http/auth/bearer_token.rb +54 -10
- data/lib/shell_data_reporting_ap_is/models/account_access.rb +3 -8
- data/lib/shell_data_reporting_ap_is/models/account_request.rb +17 -26
- data/lib/shell_data_reporting_ap_is/models/account_response.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb +29 -53
- data/lib/shell_data_reporting_ap_is/models/accounts.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/address.rb +4 -11
- data/lib/shell_data_reporting_ap_is/models/audit_request.rb +17 -25
- data/lib/shell_data_reporting_ap_is/models/audit_response.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb +50 -63
- data/lib/shell_data_reporting_ap_is/models/bank_account.rb +5 -13
- data/lib/shell_data_reporting_ap_is/models/base_model.rb +76 -28
- data/lib/shell_data_reporting_ap_is/models/bonus_configuration.rb +9 -18
- data/lib/shell_data_reporting_ap_is/models/bonus_history.rb +14 -29
- data/lib/shell_data_reporting_ap_is/models/card_day_time_restrictions.rb +3 -9
- data/lib/shell_data_reporting_ap_is/models/card_exceptions.rb +8 -19
- data/lib/shell_data_reporting_ap_is/models/card_group_request.rb +6 -12
- data/lib/shell_data_reporting_ap_is/models/card_group_response.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/card_group_response_card_groups_items.rb +10 -20
- data/lib/shell_data_reporting_ap_is/models/card_type_request.rb +3 -7
- data/lib/shell_data_reporting_ap_is/models/card_type_response.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb +15 -31
- data/lib/shell_data_reporting_ap_is/models/card_type_response_error.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/card_usage_restrictions.rb +5 -10
- data/lib/shell_data_reporting_ap_is/models/card_usage_summary_request.rb +3 -8
- data/lib/shell_data_reporting_ap_is/models/card_usage_summary_response.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/col_co_access.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/current_volume.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/customer_contract.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/customer_detail_request.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/customer_detail_response.rb +31 -45
- data/lib/shell_data_reporting_ap_is/models/customer_price_list_request.rb +5 -12
- data/lib/shell_data_reporting_ap_is/models/customer_price_list_response.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/default_error_fault.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/delivery_addresses.rb +7 -18
- data/lib/shell_data_reporting_ap_is/models/eid_access.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/eid_document.rb +11 -16
- data/lib/shell_data_reporting_ap_is/models/eid_document_response.rb +3 -8
- data/lib/shell_data_reporting_ap_is/models/eid_download_req.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/eid_search_req.rb +10 -15
- data/lib/shell_data_reporting_ap_is/models/eid_search_request.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/error_details.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/error_status.rb +11 -2
- data/lib/shell_data_reporting_ap_is/models/error_user_access_error.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/exception_product.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/exception_site_location.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/fee_item.rb +35 -71
- data/lib/shell_data_reporting_ap_is/models/fee_item_summary_all_of0.rb +5 -11
- data/lib/shell_data_reporting_ap_is/models/fee_rule_location.rb +4 -10
- data/lib/shell_data_reporting_ap_is/models/fee_rule_product.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/fee_rule_tier.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/fee_summary_response.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/fees_fee_rule_tiers.rb +3 -7
- data/lib/shell_data_reporting_ap_is/models/finance_currency.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/fleetmanagement_v1_user_loggedinuser_request.rb +104 -0
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_card.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_data.rb +9 -20
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_request.rb +7 -14
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_response.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/invoice_dates_data.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/invoice_dates_request_filters.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/invoice_dates_response_data.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/invoice_distribution_method.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/invoice_download_req.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/invoice_search_additional_document.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/invoice_search_details.rb +86 -107
- data/lib/shell_data_reporting_ap_is/models/invoice_search_request.rb +5 -7
- data/lib/shell_data_reporting_ap_is/models/invoice_search_request_filters.rb +21 -31
- data/lib/shell_data_reporting_ap_is/models/invoice_search_response.rb +2 -7
- data/lib/shell_data_reporting_ap_is/models/invoice_summary_request_filters.rb +21 -31
- data/lib/shell_data_reporting_ap_is/models/invoice_summary_response.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/invoices_summaries.rb +5 -10
- data/lib/shell_data_reporting_ap_is/models/last_statement_of_account.rb +39 -48
- data/lib/shell_data_reporting_ap_is/models/logged_in_user_request.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/logged_in_user_response.rb +12 -25
- data/lib/shell_data_reporting_ap_is/models/monthly_invoice_trend.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_request.rb +21 -32
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_request_accounts_items.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_response.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_response_transactions_items.rb +70 -122
- data/lib/shell_data_reporting_ap_is/models/o_auth_token.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/past_statement_of_accounts.rb +11 -22
- data/lib/shell_data_reporting_ap_is/models/payer_access.rb +3 -8
- data/lib/shell_data_reporting_ap_is/models/payer_details.rb +49 -92
- data/lib/shell_data_reporting_ap_is/models/payer_request.rb +9 -12
- data/lib/shell_data_reporting_ap_is/models/payer_response.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/payers.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/payments_since_last_soa.rb +8 -17
- data/lib/shell_data_reporting_ap_is/models/pin_advice_types.rb +5 -6
- data/lib/shell_data_reporting_ap_is/models/price_list.rb +25 -45
- data/lib/shell_data_reporting_ap_is/models/price_trans_summary_request.rb +28 -44
- data/lib/shell_data_reporting_ap_is/models/price_transaction_request.rb +41 -59
- data/lib/shell_data_reporting_ap_is/models/priced_request_data.rb +20 -46
- data/lib/shell_data_reporting_ap_is/models/priced_response_data.rb +91 -201
- data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_response.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_response_transactions_summary_items.rb +22 -28
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_items_location_items.rb +11 -2
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_request_v2.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb +91 -141
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_response_v2.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/pricing_current_volume.rb +3 -6
- data/lib/shell_data_reporting_ap_is/models/pricing_history.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/purchase_categories.rb +1 -4
- data/lib/shell_data_reporting_ap_is/models/recent_transaction_req.rb +6 -14
- data/lib/shell_data_reporting_ap_is/models/recent_transaction_request.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/recent_transactions.rb +29 -60
- data/lib/shell_data_reporting_ap_is/models/recent_transactions_response.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/role.rb +3 -6
- data/lib/shell_data_reporting_ap_is/models/search_doc_req.rb +19 -27
- data/lib/shell_data_reporting_ap_is/models/search_documents_invoice.rb +9 -16
- data/lib/shell_data_reporting_ap_is/models/search_documents_request.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/search_documents_response.rb +3 -7
- data/lib/shell_data_reporting_ap_is/models/search_soa_req.rb +4 -11
- data/lib/shell_data_reporting_ap_is/models/search_statement_of_account.rb +11 -18
- data/lib/shell_data_reporting_ap_is/models/search_statement_of_account_request.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/search_statement_of_account_response.rb +2 -7
- data/lib/shell_data_reporting_ap_is/models/site_location.rb +11 -2
- data/lib/shell_data_reporting_ap_is/models/statement_of_account_request_filters.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/statement_of_account_resp.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/statement_of_account_response.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/tier.rb +8 -12
- data/lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb +47 -92
- data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_request.rb +12 -21
- data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_response.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/transaction_fees_request.rb +21 -33
- data/lib/shell_data_reporting_ap_is/models/transaction_fees_response.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/update_odometer.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/update_odometer_reference.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/update_odometer_request.rb +3 -8
- data/lib/shell_data_reporting_ap_is/models/update_odometer_response.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/usage_summary.rb +6 -14
- data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_request.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_response.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_request.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_response.rb +2 -5
- data/lib/shell_data_reporting_ap_is/utilities/file_wrapper.rb +9 -9
- data/lib/shell_data_reporting_ap_is/utilities/union_type_lookup.rb +35 -0
- data/lib/shell_data_reporting_ap_is.rb +3 -0
- data/test/controllers/controller_test_base.rb +0 -5
- data/test/controllers/test_invoice_controller.rb +1 -1
- data/test/controllers/test_transaction_controller.rb +83 -75
- metadata +12 -16
@@ -30,13 +30,13 @@ module ShellDataReportingApIs
|
|
30
30
|
#
|
31
31
|
# This API fetches transactions for a period based on the below parameters
|
32
32
|
# and priority order:
|
33
|
-
# 1.
|
34
|
-
# 2.
|
35
|
-
# 3.
|
36
|
-
# 4.
|
33
|
+
# 1. InvoiceNumber
|
34
|
+
# 2. InvoiceDate
|
35
|
+
# 3. FromDate, ToDate
|
36
|
+
# 4. PostingFromDate, PostingToDate (Can be used only when IncludeFees =
|
37
37
|
# false)
|
38
|
-
# 5.
|
39
|
-
# 6.
|
38
|
+
# 5. InvoiceDateFrom, InvoiceDateTo
|
39
|
+
# 6. Period
|
40
40
|
# This API considers only one of the above set of parameters at a time. For
|
41
41
|
# example, if InvoiceNumber and Period are provided in the input then Period
|
42
42
|
# is ignored and transactions associated to the given invoice number are
|
@@ -53,7 +53,7 @@ module ShellDataReportingApIs
|
|
53
53
|
# back in the response from the request.
|
54
54
|
# @param [PriceTransactionRequest] body Optional parameter: Priced
|
55
55
|
# Transaction Request Body
|
56
|
-
# @return [PricedTransactionResponse] response from the API call
|
56
|
+
# @return [PricedTransactionResponse] response from the API call.
|
57
57
|
def priced_transactions(apikey,
|
58
58
|
request_id,
|
59
59
|
body: nil)
|
@@ -69,31 +69,31 @@ module ShellDataReportingApIs
|
|
69
69
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
70
70
|
.auth(Single.new('BasicAuth')))
|
71
71
|
.response(new_response_handler
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
72
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
73
|
+
.deserialize_into(PricedTransactionResponse.method(:from_hash))
|
74
|
+
.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)
|
80
|
+
.local_error('401',
|
81
|
+
'The request has not been applied because it lacks valid '\
|
82
|
+
' authentication credentials for the target resource.',
|
83
|
+
DefaultErrorException)
|
84
|
+
.local_error('403',
|
85
|
+
'The server understood the request but refuses to authorize it'\
|
86
|
+
'.',
|
87
|
+
ErrorUserAccessError1Exception)
|
88
|
+
.local_error('404',
|
89
|
+
'The origin server did not find a current representation for'\
|
90
|
+
' the target resource or is not willing to disclose that one'\
|
91
|
+
' exists.',
|
92
|
+
DefaultErrorException)
|
93
|
+
.local_error('500',
|
94
|
+
'The server encountered an unexpected condition the prevented'\
|
95
|
+
' it from fulfilling the request.',
|
96
|
+
DefaultErrorException))
|
97
97
|
.execute
|
98
98
|
end
|
99
99
|
|
@@ -121,13 +121,13 @@ module ShellDataReportingApIs
|
|
121
121
|
#
|
122
122
|
# This API fetches transactions for a period based on the below parameters
|
123
123
|
# and priority order:
|
124
|
-
# 1.
|
125
|
-
# 2.
|
126
|
-
# 3.
|
127
|
-
# 4.
|
124
|
+
# 1. InvoiceNumber
|
125
|
+
# 2. InvoiceDate
|
126
|
+
# 3. FromDate, ToDate
|
127
|
+
# 4. PostingFromDate, PostingToDate (Can be used only when IncludeFees =
|
128
128
|
# false)
|
129
|
-
# 5.
|
130
|
-
# 6.
|
129
|
+
# 5. InvoiceDateFrom, InvoiceDateTo
|
130
|
+
# 6. Period
|
131
131
|
# This API considers only one of the above set of parameters at a time. For
|
132
132
|
# example, if InvoiceNumber and Period are provided in the input then Period
|
133
133
|
# is ignored and transactions associated to the given invoice number are
|
@@ -141,7 +141,7 @@ module ShellDataReportingApIs
|
|
141
141
|
# back in the response from the request.
|
142
142
|
# @param [PriceTransSummaryRequest] body Optional parameter: PricedSummary
|
143
143
|
# RequestBody
|
144
|
-
# @return [PricedTransSummaryResponse] response from the API call
|
144
|
+
# @return [PricedTransSummaryResponse] response from the API call.
|
145
145
|
def priced_transactions_summary(apikey,
|
146
146
|
request_id,
|
147
147
|
body: nil)
|
@@ -157,31 +157,31 @@ module ShellDataReportingApIs
|
|
157
157
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
158
158
|
.auth(Single.new('BasicAuth')))
|
159
159
|
.response(new_response_handler
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
160
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
161
|
+
.deserialize_into(PricedTransSummaryResponse.method(:from_hash))
|
162
|
+
.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)
|
168
|
+
.local_error('401',
|
169
|
+
'The request has not been applied because it lacks valid '\
|
170
|
+
' authentication credentials for the target resource.',
|
171
|
+
DefaultErrorException)
|
172
|
+
.local_error('403',
|
173
|
+
'The server understood the request but refuses to authorize it'\
|
174
|
+
'.',
|
175
|
+
ErrorUserAccessError1Exception)
|
176
|
+
.local_error('404',
|
177
|
+
'The origin server did not find a current representation for'\
|
178
|
+
' the target resource or is not willing to disclose that one'\
|
179
|
+
' exists.',
|
180
|
+
DefaultErrorException)
|
181
|
+
.local_error('500',
|
182
|
+
'The server encountered an unexpected condition the prevented'\
|
183
|
+
' it from fulfilling the request.',
|
184
|
+
DefaultErrorException))
|
185
185
|
.execute
|
186
186
|
end
|
187
187
|
|
@@ -206,13 +206,13 @@ module ShellDataReportingApIs
|
|
206
206
|
#
|
207
207
|
# This API fetches transactions for a period based on the below parameters
|
208
208
|
# and priority order:
|
209
|
-
# 1.
|
210
|
-
# 2.
|
211
|
-
# 3.
|
212
|
-
# 4.
|
209
|
+
# 1. InvoiceNumber
|
210
|
+
# 2. InvoiceDate
|
211
|
+
# 3. FromDate, ToDate
|
212
|
+
# 4. PostingFromDate, PostingToDate (Can be used only when IncludeFees =
|
213
213
|
# false)
|
214
|
-
# 5.
|
215
|
-
# 6.
|
214
|
+
# 5. InvoiceDateFrom, InvoiceDateTo
|
215
|
+
# 6. Period
|
216
216
|
# This API considers only one of the above set of parameters at a time. For
|
217
217
|
# example, if InvoiceNumber and Period are provided in the input then Period
|
218
218
|
# is ignored and transactions associated to the given invoice number are
|
@@ -226,7 +226,7 @@ module ShellDataReportingApIs
|
|
226
226
|
# back in the response from the request.
|
227
227
|
# @param [MultiPricedTransactionRequest] body Optional parameter: MultiPayer
|
228
228
|
# RequestBody
|
229
|
-
# @return [MultiPricedTransactionResponse] response from the API call
|
229
|
+
# @return [MultiPricedTransactionResponse] response from the API call.
|
230
230
|
def multipriced_transactions(apikey,
|
231
231
|
request_id,
|
232
232
|
body: nil)
|
@@ -242,31 +242,31 @@ module ShellDataReportingApIs
|
|
242
242
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
243
243
|
.auth(Single.new('BasicAuth')))
|
244
244
|
.response(new_response_handler
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
245
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
246
|
+
.deserialize_into(MultiPricedTransactionResponse.method(:from_hash))
|
247
|
+
.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)
|
253
|
+
.local_error('401',
|
254
|
+
'The request has not been applied because it lacks valid '\
|
255
|
+
' authentication credentials for the target resource.',
|
256
|
+
DefaultErrorException)
|
257
|
+
.local_error('403',
|
258
|
+
'The server understood the request but refuses to authorize it'\
|
259
|
+
'.',
|
260
|
+
ErrorUserAccessError1Exception)
|
261
|
+
.local_error('404',
|
262
|
+
'The origin server did not find a current representation for'\
|
263
|
+
' the target resource or is not willing to disclose that one'\
|
264
|
+
' exists.',
|
265
|
+
DefaultErrorException)
|
266
|
+
.local_error('500',
|
267
|
+
'The server encountered an unexpected condition the prevented'\
|
268
|
+
' it from fulfilling the request.',
|
269
|
+
DefaultErrorException))
|
270
270
|
.execute
|
271
271
|
end
|
272
272
|
|
@@ -282,7 +282,7 @@ module ShellDataReportingApIs
|
|
282
282
|
# back in the response from the request.
|
283
283
|
# @param [CardUsageSummaryRequest] body Optional parameter: Card Usage
|
284
284
|
# Summary RequestBody
|
285
|
-
# @return [CardUsageSummaryResponse] response from the API call
|
285
|
+
# @return [CardUsageSummaryResponse] response from the API call.
|
286
286
|
def card_usage_summary(apikey,
|
287
287
|
request_id,
|
288
288
|
body: nil)
|
@@ -298,31 +298,31 @@ module ShellDataReportingApIs
|
|
298
298
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
299
299
|
.auth(Single.new('BasicAuth')))
|
300
300
|
.response(new_response_handler
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
301
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
302
|
+
.deserialize_into(CardUsageSummaryResponse.method(:from_hash))
|
303
|
+
.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)
|
309
|
+
.local_error('401',
|
310
|
+
'The request has not been applied because it lacks valid '\
|
311
|
+
' authentication credentials for the target resource.',
|
312
|
+
DefaultErrorException)
|
313
|
+
.local_error('403',
|
314
|
+
'The server understood the request but refuses to authorize it'\
|
315
|
+
'.',
|
316
|
+
ErrorUserAccessError1Exception)
|
317
|
+
.local_error('404',
|
318
|
+
'The origin server did not find a current representation for'\
|
319
|
+
' the target resource or is not willing to disclose that one'\
|
320
|
+
' exists.',
|
321
|
+
DefaultErrorException)
|
322
|
+
.local_error('500',
|
323
|
+
'The server encountered an unexpected condition the prevented'\
|
324
|
+
' it from fulfilling the request.',
|
325
|
+
DefaultErrorException))
|
326
326
|
.execute
|
327
327
|
end
|
328
328
|
|
@@ -338,7 +338,7 @@ module ShellDataReportingApIs
|
|
338
338
|
# back in the response from the request.
|
339
339
|
# @param [VolumeBasedBonusRequest] body Optional parameter: VolumeBasedBonus
|
340
340
|
# RequestBody
|
341
|
-
# @return [VolumeBasedBonusResponse] response from the API call
|
341
|
+
# @return [VolumeBasedBonusResponse] response from the API call.
|
342
342
|
def volume_based_bonus(apikey,
|
343
343
|
request_id,
|
344
344
|
body: nil)
|
@@ -354,31 +354,31 @@ module ShellDataReportingApIs
|
|
354
354
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
355
355
|
.auth(Single.new('BasicAuth')))
|
356
356
|
.response(new_response_handler
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
357
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
358
|
+
.deserialize_into(VolumeBasedBonusResponse.method(:from_hash))
|
359
|
+
.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)
|
365
|
+
.local_error('401',
|
366
|
+
'The request has not been applied because it lacks valid '\
|
367
|
+
' authentication credentials for the target resource.',
|
368
|
+
DefaultErrorException)
|
369
|
+
.local_error('403',
|
370
|
+
'The server understood the request but refuses to authorize it'\
|
371
|
+
'.',
|
372
|
+
ErrorUserAccessError1Exception)
|
373
|
+
.local_error('404',
|
374
|
+
'The origin server did not find a current representation for'\
|
375
|
+
' the target resource or is not willing to disclose that one'\
|
376
|
+
' exists.',
|
377
|
+
DefaultErrorException)
|
378
|
+
.local_error('500',
|
379
|
+
'The server encountered an unexpected condition the prevented'\
|
380
|
+
' it from fulfilling the request.',
|
381
|
+
DefaultErrorException))
|
382
382
|
.execute
|
383
383
|
end
|
384
384
|
|
@@ -393,7 +393,7 @@ module ShellDataReportingApIs
|
|
393
393
|
# back in the response from the request.
|
394
394
|
# @param [VolumeBasedPricingRequest] body Optional parameter:
|
395
395
|
# VolumeBasedPricing RequestBody
|
396
|
-
# @return [VolumeBasedPricingResponse] response from the API call
|
396
|
+
# @return [VolumeBasedPricingResponse] response from the API call.
|
397
397
|
def volume_based_pricing(apikey,
|
398
398
|
request_id,
|
399
399
|
body: nil)
|
@@ -409,31 +409,31 @@ module ShellDataReportingApIs
|
|
409
409
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
410
410
|
.auth(Single.new('BasicAuth')))
|
411
411
|
.response(new_response_handler
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
412
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
413
|
+
.deserialize_into(VolumeBasedPricingResponse.method(:from_hash))
|
414
|
+
.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)
|
420
|
+
.local_error('401',
|
421
|
+
'The request has not been applied because it lacks valid '\
|
422
|
+
' authentication credentials for the target resource.',
|
423
|
+
DefaultErrorException)
|
424
|
+
.local_error('403',
|
425
|
+
'The server understood the request but refuses to authorize it'\
|
426
|
+
'.',
|
427
|
+
ErrorUserAccessError1Exception)
|
428
|
+
.local_error('404',
|
429
|
+
'The origin server did not find a current representation for'\
|
430
|
+
' the target resource or is not willing to disclose that one'\
|
431
|
+
' exists.',
|
432
|
+
DefaultErrorException)
|
433
|
+
.local_error('500',
|
434
|
+
'The server encountered an unexpected condition the prevented'\
|
435
|
+
' it from fulfilling the request.',
|
436
|
+
DefaultErrorException))
|
437
437
|
.execute
|
438
438
|
end
|
439
439
|
|
@@ -458,7 +458,7 @@ module ShellDataReportingApIs
|
|
458
458
|
# back in the response from the request.
|
459
459
|
# @param [TransactionFeesRequest] body Optional parameter: Transaction Fees
|
460
460
|
# RequestBody
|
461
|
-
# @return [TransactionFeesResponse] response from the API call
|
461
|
+
# @return [TransactionFeesResponse] response from the API call.
|
462
462
|
def fees(apikey,
|
463
463
|
request_id,
|
464
464
|
body: nil)
|
@@ -474,31 +474,31 @@ module ShellDataReportingApIs
|
|
474
474
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
475
475
|
.auth(Single.new('BasicAuth')))
|
476
476
|
.response(new_response_handler
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
477
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
478
|
+
.deserialize_into(TransactionFeesResponse.method(:from_hash))
|
479
|
+
.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)
|
485
|
+
.local_error('401',
|
486
|
+
'The request has not been applied because it lacks valid '\
|
487
|
+
' authentication credentials for the target resource.',
|
488
|
+
DefaultErrorException)
|
489
|
+
.local_error('403',
|
490
|
+
'The server understood the request but refuses to authorize it'\
|
491
|
+
'.',
|
492
|
+
ErrorUserAccessError1Exception)
|
493
|
+
.local_error('404',
|
494
|
+
'The origin server did not find a current representation for'\
|
495
|
+
' the target resource or is not willing to disclose that one'\
|
496
|
+
' exists.',
|
497
|
+
DefaultErrorException)
|
498
|
+
.local_error('500',
|
499
|
+
'The server encountered an unexpected condition the prevented'\
|
500
|
+
' it from fulfilling the request.',
|
501
|
+
DefaultErrorException))
|
502
502
|
.execute
|
503
503
|
end
|
504
504
|
|
@@ -523,7 +523,7 @@ module ShellDataReportingApIs
|
|
523
523
|
# back in the response from the request.
|
524
524
|
# @param [TransactionFeesRequest] body Optional parameter: FeeSummary
|
525
525
|
# RequestBody
|
526
|
-
# @return [FeeSummaryResponse] response from the API call
|
526
|
+
# @return [FeeSummaryResponse] response from the API call.
|
527
527
|
def fee_summary_response(apikey,
|
528
528
|
request_id,
|
529
529
|
body: nil)
|
@@ -539,31 +539,31 @@ module ShellDataReportingApIs
|
|
539
539
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
540
540
|
.auth(Single.new('BasicAuth')))
|
541
541
|
.response(new_response_handler
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
542
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
543
|
+
.deserialize_into(FeeSummaryResponse.method(:from_hash))
|
544
|
+
.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)
|
550
|
+
.local_error('401',
|
551
|
+
'The request has not been applied because it lacks valid '\
|
552
|
+
' authentication credentials for the target resource.',
|
553
|
+
DefaultErrorException)
|
554
|
+
.local_error('403',
|
555
|
+
'The server understood the request but refuses to authorize it'\
|
556
|
+
'.',
|
557
|
+
ErrorUserAccessError1Exception)
|
558
|
+
.local_error('404',
|
559
|
+
'The origin server did not find a current representation for'\
|
560
|
+
' the target resource or is not willing to disclose that one'\
|
561
|
+
' exists.',
|
562
|
+
DefaultErrorException)
|
563
|
+
.local_error('500',
|
564
|
+
'The server encountered an unexpected condition the prevented'\
|
565
|
+
' it from fulfilling the request.',
|
566
|
+
DefaultErrorException))
|
567
567
|
.execute
|
568
568
|
end
|
569
569
|
|
@@ -580,7 +580,7 @@ module ShellDataReportingApIs
|
|
580
580
|
# back in the response from the request.
|
581
581
|
# @param [FuelConsumptionRequest] body Optional parameter: FuelConsumption
|
582
582
|
# RequestBody
|
583
|
-
# @return [FuelConsumptionResponse] response from the API call
|
583
|
+
# @return [FuelConsumptionResponse] response from the API call.
|
584
584
|
def fuel_consumption(apikey,
|
585
585
|
request_id,
|
586
586
|
body: nil)
|
@@ -596,31 +596,31 @@ module ShellDataReportingApIs
|
|
596
596
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
597
597
|
.auth(Single.new('BasicAuth')))
|
598
598
|
.response(new_response_handler
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
599
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
600
|
+
.deserialize_into(FuelConsumptionResponse.method(:from_hash))
|
601
|
+
.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)
|
607
|
+
.local_error('401',
|
608
|
+
'The request has not been applied because it lacks valid '\
|
609
|
+
' authentication credentials for the target resource.',
|
610
|
+
DefaultErrorException)
|
611
|
+
.local_error('403',
|
612
|
+
'The server understood the request but refuses to authorize it'\
|
613
|
+
'.',
|
614
|
+
ErrorUserAccessError1Exception)
|
615
|
+
.local_error('404',
|
616
|
+
'The origin server did not find a current representation for'\
|
617
|
+
' the target resource or is not willing to disclose that one'\
|
618
|
+
' exists.',
|
619
|
+
DefaultErrorException)
|
620
|
+
.local_error('500',
|
621
|
+
'The server encountered an unexpected condition the prevented'\
|
622
|
+
' it from fulfilling the request.',
|
623
|
+
DefaultErrorException))
|
624
624
|
.execute
|
625
625
|
end
|
626
626
|
|
@@ -635,7 +635,7 @@ module ShellDataReportingApIs
|
|
635
635
|
# back in the response from the request.
|
636
636
|
# @param [UpdateOdometerRequest] body Optional parameter: updateOdometer
|
637
637
|
# RequestBody
|
638
|
-
# @return [UpdateOdometerResponse] response from the API call
|
638
|
+
# @return [UpdateOdometerResponse] response from the API call.
|
639
639
|
def update_odometer(apikey,
|
640
640
|
request_id,
|
641
641
|
body: nil)
|
@@ -651,31 +651,31 @@ module ShellDataReportingApIs
|
|
651
651
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
652
652
|
.auth(Single.new('BasicAuth')))
|
653
653
|
.response(new_response_handler
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
654
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
655
|
+
.deserialize_into(UpdateOdometerResponse.method(:from_hash))
|
656
|
+
.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)
|
662
|
+
.local_error('401',
|
663
|
+
'The request has not been applied because it lacks valid '\
|
664
|
+
' authentication credentials for the target resource.',
|
665
|
+
DefaultErrorException)
|
666
|
+
.local_error('403',
|
667
|
+
'The server understood the request but refuses to authorize it'\
|
668
|
+
'.',
|
669
|
+
ErrorUserAccessError1Exception)
|
670
|
+
.local_error('404',
|
671
|
+
'The origin server did not find a current representation for'\
|
672
|
+
' the target resource or is not willing to disclose that one'\
|
673
|
+
' exists.',
|
674
|
+
DefaultErrorException)
|
675
|
+
.local_error('500',
|
676
|
+
'The server encountered an unexpected condition the prevented'\
|
677
|
+
' it from fulfilling the request.',
|
678
|
+
DefaultErrorException))
|
679
679
|
.execute
|
680
680
|
end
|
681
681
|
|
@@ -691,7 +691,7 @@ module ShellDataReportingApIs
|
|
691
691
|
# back in the response from the request.
|
692
692
|
# @param [TransactionExceptionsRequest] body Optional parameter: Transaction
|
693
693
|
# Exceptions RequestBody
|
694
|
-
# @return [TransactionExceptionsResponse] response from the API call
|
694
|
+
# @return [TransactionExceptionsResponse] response from the API call.
|
695
695
|
def transaction_exceptions(apikey,
|
696
696
|
request_id,
|
697
697
|
body: nil)
|
@@ -707,31 +707,31 @@ module ShellDataReportingApIs
|
|
707
707
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
708
708
|
.auth(Single.new('BasicAuth')))
|
709
709
|
.response(new_response_handler
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
710
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
711
|
+
.deserialize_into(TransactionExceptionsResponse.method(:from_hash))
|
712
|
+
.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)
|
718
|
+
.local_error('401',
|
719
|
+
'The request has not been applied because it lacks valid '\
|
720
|
+
' authentication credentials for the target resource.',
|
721
|
+
DefaultErrorException)
|
722
|
+
.local_error('403',
|
723
|
+
'The server understood the request but refuses to authorize it'\
|
724
|
+
'.',
|
725
|
+
ErrorUserAccessError1Exception)
|
726
|
+
.local_error('404',
|
727
|
+
'The origin server did not find a current representation for'\
|
728
|
+
' the target resource or is not willing to disclose that one'\
|
729
|
+
' exists.',
|
730
|
+
DefaultErrorException)
|
731
|
+
.local_error('500',
|
732
|
+
'The server encountered an unexpected condition the prevented'\
|
733
|
+
' it from fulfilling the request.',
|
734
|
+
DefaultErrorException))
|
735
735
|
.execute
|
736
736
|
end
|
737
737
|
|
@@ -754,7 +754,7 @@ module ShellDataReportingApIs
|
|
754
754
|
# back in the response from the request.
|
755
755
|
# @param [RecentTransactionRequest] body Optional parameter: New Recent
|
756
756
|
# Transaction RequestBody
|
757
|
-
# @return [RecentTransactionsResponse] response from the API call
|
757
|
+
# @return [RecentTransactionsResponse] response from the API call.
|
758
758
|
def recent_transactions_new(request_id,
|
759
759
|
body: nil)
|
760
760
|
new_api_call_builder
|
@@ -768,30 +768,30 @@ module ShellDataReportingApIs
|
|
768
768
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
769
769
|
.auth(Single.new('BearerToken')))
|
770
770
|
.response(new_response_handler
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
771
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
772
|
+
.deserialize_into(RecentTransactionsResponse.method(:from_hash))
|
773
|
+
.local_error('400',
|
774
|
+
'The server cannot or will not process the request due to'\
|
775
|
+
' something that is perceived to be a client error (e.g.,'\
|
776
|
+
' malformed request syntax, invalid request message framing, or'\
|
777
|
+
' deceptive request routing).',
|
778
|
+
ErrorObjectException)
|
779
|
+
.local_error('401',
|
780
|
+
'The request has not been applied because it lacks valid '\
|
781
|
+
' authentication credentials for the target resource.',
|
782
|
+
ErrorObjectException)
|
783
|
+
.local_error('403',
|
784
|
+
'Forbidden',
|
785
|
+
ErrorObjectException)
|
786
|
+
.local_error('404',
|
787
|
+
'The origin server did not find a current representation for'\
|
788
|
+
' the target resource or is not willing to disclose that one'\
|
789
|
+
' exists.',
|
790
|
+
ErrorObjectException)
|
791
|
+
.local_error('500',
|
792
|
+
'The server encountered an unexpected condition that prevented'\
|
793
|
+
' it from fulfilling the request.',
|
794
|
+
ErrorObjectException))
|
795
795
|
.execute
|
796
796
|
end
|
797
797
|
|
@@ -834,7 +834,7 @@ module ShellDataReportingApIs
|
|
834
834
|
# back in the response from the request.
|
835
835
|
# @param [PricedTransactionRequestV2] body Optional parameter: Priced
|
836
836
|
# TransactionV2 RequestBody
|
837
|
-
# @return [PricedTransactionResponseV2] response from the API call
|
837
|
+
# @return [PricedTransactionResponseV2] response from the API call.
|
838
838
|
def priced_transactions_v2(request_id,
|
839
839
|
body: nil)
|
840
840
|
new_api_call_builder
|
@@ -848,30 +848,30 @@ module ShellDataReportingApIs
|
|
848
848
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
849
849
|
.auth(Single.new('BearerToken')))
|
850
850
|
.response(new_response_handler
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
851
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
852
|
+
.deserialize_into(PricedTransactionResponseV2.method(:from_hash))
|
853
|
+
.local_error('400',
|
854
|
+
'The server cannot or will not process the request due to'\
|
855
|
+
' something that is perceived to be a client error (e.g.,'\
|
856
|
+
' malformed request syntax, invalid request message framing, or'\
|
857
|
+
' deceptive request routing).',
|
858
|
+
ErrorObjectException)
|
859
|
+
.local_error('401',
|
860
|
+
'The request has not been applied because it lacks valid '\
|
861
|
+
' authentication credentials for the target resource.',
|
862
|
+
ErrorObjectException)
|
863
|
+
.local_error('403',
|
864
|
+
'Forbidden',
|
865
|
+
ErrorObjectException)
|
866
|
+
.local_error('404',
|
867
|
+
'The origin server did not find a current representation for'\
|
868
|
+
' the target resource or is not willing to disclose that one'\
|
869
|
+
' exists.',
|
870
|
+
ErrorObjectException)
|
871
|
+
.local_error('500',
|
872
|
+
'The server encountered an unexpected condition that prevented'\
|
873
|
+
' it from fulfilling the request.',
|
874
|
+
ErrorObjectException))
|
875
875
|
.execute
|
876
876
|
end
|
877
877
|
end
|