data-and-reporting-sdk 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +104 -0
- data/lib/shell_data_reporting_ap_is/api_helper.rb +10 -0
- data/lib/shell_data_reporting_ap_is/client.rb +84 -0
- data/lib/shell_data_reporting_ap_is/configuration.rb +110 -0
- data/lib/shell_data_reporting_ap_is/controllers/base_controller.rb +66 -0
- data/lib/shell_data_reporting_ap_is/controllers/customer_controller.rb +478 -0
- data/lib/shell_data_reporting_ap_is/controllers/invoice_controller.rb +470 -0
- data/lib/shell_data_reporting_ap_is/controllers/o_auth_authorization_controller.rb +42 -0
- data/lib/shell_data_reporting_ap_is/controllers/transaction_controller.rb +878 -0
- data/lib/shell_data_reporting_ap_is/exceptions/api_exception.rb +10 -0
- data/lib/shell_data_reporting_ap_is/exceptions/default_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/error_object_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/error_user_access_error1_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/o_auth_provider_exception.rb +48 -0
- data/lib/shell_data_reporting_ap_is/http/auth/basic_auth.rb +50 -0
- data/lib/shell_data_reporting_ap_is/http/auth/bearer_token.rb +89 -0
- data/lib/shell_data_reporting_ap_is/http/http_call_back.rb +10 -0
- data/lib/shell_data_reporting_ap_is/http/http_method_enum.rb +10 -0
- data/lib/shell_data_reporting_ap_is/http/http_request.rb +10 -0
- data/lib/shell_data_reporting_ap_is/http/http_response.rb +10 -0
- data/lib/shell_data_reporting_ap_is/models/account_access.rb +128 -0
- data/lib/shell_data_reporting_ap_is/models/account_request.rb +252 -0
- data/lib/shell_data_reporting_ap_is/models/account_response.rb +111 -0
- data/lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb +750 -0
- data/lib/shell_data_reporting_ap_is/models/accounts.rb +65 -0
- data/lib/shell_data_reporting_ap_is/models/address.rb +174 -0
- data/lib/shell_data_reporting_ap_is/models/associated_account.rb +98 -0
- data/lib/shell_data_reporting_ap_is/models/audit_request.rb +256 -0
- data/lib/shell_data_reporting_ap_is/models/audit_response.rb +111 -0
- data/lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb +450 -0
- data/lib/shell_data_reporting_ap_is/models/bank_account.rb +192 -0
- data/lib/shell_data_reporting_ap_is/models/base_model.rb +62 -0
- data/lib/shell_data_reporting_ap_is/models/bonus_configuration.rb +419 -0
- data/lib/shell_data_reporting_ap_is/models/bonus_history.rb +444 -0
- data/lib/shell_data_reporting_ap_is/models/card_day_time_restrictions.rb +159 -0
- data/lib/shell_data_reporting_ap_is/models/card_exceptions.rb +268 -0
- data/lib/shell_data_reporting_ap_is/models/card_group_request.rb +178 -0
- data/lib/shell_data_reporting_ap_is/models/card_group_response.rb +109 -0
- data/lib/shell_data_reporting_ap_is/models/card_group_response_card_groups_items.rb +301 -0
- data/lib/shell_data_reporting_ap_is/models/card_type_request.rb +145 -0
- data/lib/shell_data_reporting_ap_is/models/card_type_response.rb +79 -0
- data/lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb +470 -0
- data/lib/shell_data_reporting_ap_is/models/card_type_response_error.rb +60 -0
- data/lib/shell_data_reporting_ap_is/models/card_usage_restrictions.rb +281 -0
- data/lib/shell_data_reporting_ap_is/models/card_usage_summary_request.rb +159 -0
- data/lib/shell_data_reporting_ap_is/models/card_usage_summary_response.rb +79 -0
- data/lib/shell_data_reporting_ap_is/models/col_co_access.rb +88 -0
- data/lib/shell_data_reporting_ap_is/models/current_volume.rb +99 -0
- data/lib/shell_data_reporting_ap_is/models/customer_contract.rb +63 -0
- data/lib/shell_data_reporting_ap_is/models/customer_detail_request.rb +123 -0
- data/lib/shell_data_reporting_ap_is/models/customer_detail_response.rb +437 -0
- data/lib/shell_data_reporting_ap_is/models/customer_price_list_request.rb +200 -0
- data/lib/shell_data_reporting_ap_is/models/customer_price_list_response.rb +82 -0
- data/lib/shell_data_reporting_ap_is/models/default_error_fault.rb +60 -0
- data/lib/shell_data_reporting_ap_is/models/default_error_fault_detail.rb +50 -0
- data/lib/shell_data_reporting_ap_is/models/delivery_addresses.rb +258 -0
- data/lib/shell_data_reporting_ap_is/models/eid_access.rb +75 -0
- data/lib/shell_data_reporting_ap_is/models/eid_document.rb +166 -0
- data/lib/shell_data_reporting_ap_is/models/eid_document_response.rb +140 -0
- data/lib/shell_data_reporting_ap_is/models/eid_download_req.rb +86 -0
- data/lib/shell_data_reporting_ap_is/models/eid_download_request.rb +50 -0
- data/lib/shell_data_reporting_ap_is/models/eid_search_req.rb +160 -0
- data/lib/shell_data_reporting_ap_is/models/eid_search_request.rb +70 -0
- data/lib/shell_data_reporting_ap_is/models/error_details.rb +81 -0
- data/lib/shell_data_reporting_ap_is/models/error_status.rb +60 -0
- data/lib/shell_data_reporting_ap_is/models/error_user_access.rb +50 -0
- data/lib/shell_data_reporting_ap_is/models/error_user_access_error.rb +60 -0
- data/lib/shell_data_reporting_ap_is/models/exception_product.rb +65 -0
- data/lib/shell_data_reporting_ap_is/models/exception_site_location.rb +63 -0
- data/lib/shell_data_reporting_ap_is/models/fee_item.rb +977 -0
- data/lib/shell_data_reporting_ap_is/models/fee_item_summary_all_of0.rb +194 -0
- data/lib/shell_data_reporting_ap_is/models/fee_rule_location.rb +153 -0
- data/lib/shell_data_reporting_ap_is/models/fee_rule_product.rb +98 -0
- data/lib/shell_data_reporting_ap_is/models/fee_rule_tier.rb +74 -0
- data/lib/shell_data_reporting_ap_is/models/fee_summary_response.rb +85 -0
- data/lib/shell_data_reporting_ap_is/models/fees_fee_rule_tiers.rb +124 -0
- data/lib/shell_data_reporting_ap_is/models/finance_currency.rb +98 -0
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_card.rb +73 -0
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_data.rb +267 -0
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_request.rb +197 -0
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_response.rb +79 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_dates_data.rb +62 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_dates_request.rb +50 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_dates_request_filters.rb +146 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_dates_response_data.rb +80 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_distribution_method.rb +99 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_download_req.rb +99 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_download_request.rb +50 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_search_additional_document.rb +80 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_search_details.rb +913 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_search_request.rb +91 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_search_request_filters.rb +344 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_search_response.rb +127 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_summary_details.rb +129 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_summary_request.rb +50 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_summary_request_filters.rb +345 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_summary_response.rb +79 -0
- data/lib/shell_data_reporting_ap_is/models/invoices_summaries.rb +221 -0
- data/lib/shell_data_reporting_ap_is/models/last_statement_of_account.rb +421 -0
- data/lib/shell_data_reporting_ap_is/models/logged_in_user_request.rb +107 -0
- data/lib/shell_data_reporting_ap_is/models/logged_in_user_response.rb +394 -0
- data/lib/shell_data_reporting_ap_is/models/monthly_invoice_trend.rb +112 -0
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_request.rb +360 -0
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_request_accounts_items.rb +84 -0
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_response.rb +110 -0
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_response_transactions_items.rb +1724 -0
- data/lib/shell_data_reporting_ap_is/models/o_auth_provider_error_enum.rb +45 -0
- data/lib/shell_data_reporting_ap_is/models/o_auth_token.rb +100 -0
- data/lib/shell_data_reporting_ap_is/models/past_statement_of_accounts.rb +502 -0
- data/lib/shell_data_reporting_ap_is/models/payer_access.rb +147 -0
- data/lib/shell_data_reporting_ap_is/models/payer_details.rb +1412 -0
- data/lib/shell_data_reporting_ap_is/models/payer_request.rb +126 -0
- data/lib/shell_data_reporting_ap_is/models/payer_response.rb +115 -0
- data/lib/shell_data_reporting_ap_is/models/payers.rb +109 -0
- data/lib/shell_data_reporting_ap_is/models/payments_since_last_soa.rb +322 -0
- data/lib/shell_data_reporting_ap_is/models/pin_advice_types.rb +80 -0
- data/lib/shell_data_reporting_ap_is/models/price_list.rb +485 -0
- data/lib/shell_data_reporting_ap_is/models/price_trans_summary_request.rb +477 -0
- data/lib/shell_data_reporting_ap_is/models/price_transaction_request.rb +572 -0
- data/lib/shell_data_reporting_ap_is/models/priced_request_data.rb +485 -0
- data/lib/shell_data_reporting_ap_is/models/priced_response_data.rb +2132 -0
- data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_response.rb +79 -0
- data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_response_transactions_summary_items.rb +242 -0
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_items_location_items.rb +67 -0
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_req_v2_invoice_status_enum.rb +27 -0
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_req_v2_period_enum.rb +27 -0
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_req_v2_sort_order_enum.rb +37 -0
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_request_v2.rb +72 -0
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_resp_v2_refund_flag_enum.rb +23 -0
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_response.rb +59 -0
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb +1719 -0
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_response_v2.rb +110 -0
- data/lib/shell_data_reporting_ap_is/models/pricing_current_volume.rb +115 -0
- data/lib/shell_data_reporting_ap_is/models/pricing_history.rb +105 -0
- data/lib/shell_data_reporting_ap_is/models/purchase_categories.rb +114 -0
- data/lib/shell_data_reporting_ap_is/models/recent_transaction_req.rb +217 -0
- data/lib/shell_data_reporting_ap_is/models/recent_transaction_request.rb +66 -0
- data/lib/shell_data_reporting_ap_is/models/recent_transactions.rb +918 -0
- data/lib/shell_data_reporting_ap_is/models/recent_transactions_response.rb +110 -0
- data/lib/shell_data_reporting_ap_is/models/role.rb +102 -0
- data/lib/shell_data_reporting_ap_is/models/search_doc_req.rb +269 -0
- data/lib/shell_data_reporting_ap_is/models/search_documents_invoice.rb +204 -0
- data/lib/shell_data_reporting_ap_is/models/search_documents_request.rb +70 -0
- data/lib/shell_data_reporting_ap_is/models/search_documents_response.rb +122 -0
- data/lib/shell_data_reporting_ap_is/models/search_soa_req.rb +197 -0
- data/lib/shell_data_reporting_ap_is/models/search_statement_of_account.rb +220 -0
- data/lib/shell_data_reporting_ap_is/models/search_statement_of_account_request.rb +70 -0
- data/lib/shell_data_reporting_ap_is/models/search_statement_of_account_response.rb +120 -0
- data/lib/shell_data_reporting_ap_is/models/site_location.rb +67 -0
- data/lib/shell_data_reporting_ap_is/models/statement_of_account_request.rb +50 -0
- data/lib/shell_data_reporting_ap_is/models/statement_of_account_request_filters.rb +197 -0
- data/lib/shell_data_reporting_ap_is/models/statement_of_account_resp.rb +138 -0
- data/lib/shell_data_reporting_ap_is/models/statement_of_account_response.rb +80 -0
- data/lib/shell_data_reporting_ap_is/models/tier.rb +167 -0
- data/lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb +1267 -0
- data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_request.rb +267 -0
- data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_response.rb +100 -0
- data/lib/shell_data_reporting_ap_is/models/transaction_fees_request.rb +348 -0
- data/lib/shell_data_reporting_ap_is/models/transaction_fees_response.rb +111 -0
- data/lib/shell_data_reporting_ap_is/models/update_odometer.rb +62 -0
- data/lib/shell_data_reporting_ap_is/models/update_odometer_reference.rb +67 -0
- data/lib/shell_data_reporting_ap_is/models/update_odometer_request.rb +146 -0
- data/lib/shell_data_reporting_ap_is/models/update_odometer_response.rb +93 -0
- data/lib/shell_data_reporting_ap_is/models/usage_summary.rb +202 -0
- data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_request.rb +118 -0
- data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_response.rb +120 -0
- data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_request.rb +103 -0
- data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_response.rb +120 -0
- data/lib/shell_data_reporting_ap_is/utilities/date_time_helper.rb +11 -0
- data/lib/shell_data_reporting_ap_is/utilities/file_wrapper.rb +16 -0
- data/lib/shell_data_reporting_ap_is.rb +229 -0
- data/test/controllers/controller_test_base.rb +34 -0
- data/test/controllers/test_invoice_controller.rb +398 -0
- data/test/controllers/test_transaction_controller.rb +235 -0
- data/test/http_response_catcher.rb +19 -0
- metadata +302 -0
@@ -0,0 +1,918 @@
|
|
1
|
+
# shell_data_reporting_ap_is
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module ShellDataReportingApIs
|
7
|
+
# RecentTransactions Model.
|
8
|
+
class RecentTransactions < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# ColCoCode
|
13
|
+
# @return [Integer]
|
14
|
+
attr_accessor :col_co_code
|
15
|
+
|
16
|
+
# PayerNumber
|
17
|
+
# @return [String]
|
18
|
+
attr_accessor :payer_number
|
19
|
+
|
20
|
+
# Account Number
|
21
|
+
# @return [String]
|
22
|
+
attr_accessor :account_number
|
23
|
+
|
24
|
+
# Card Issue Number
|
25
|
+
# @return [String]
|
26
|
+
attr_accessor :card_issue_number
|
27
|
+
|
28
|
+
# Collecting Company Currency IsoCode
|
29
|
+
# @return [String]
|
30
|
+
attr_accessor :collecting_company_currency_code
|
31
|
+
|
32
|
+
# Customer entered data for reference.
|
33
|
+
# @return [String]
|
34
|
+
attr_accessor :cust_data_customer_entered
|
35
|
+
|
36
|
+
# Customer Data DriverId
|
37
|
+
# @return [String]
|
38
|
+
attr_accessor :cust_data_driver_id
|
39
|
+
|
40
|
+
# Cust Data Fleet Description
|
41
|
+
# @return [String]
|
42
|
+
attr_accessor :cust_data_fleet_description
|
43
|
+
|
44
|
+
# Fleet Id Input
|
45
|
+
# @return [String]
|
46
|
+
attr_accessor :fleet_id_input
|
47
|
+
|
48
|
+
# Amount
|
49
|
+
# @return [Float]
|
50
|
+
attr_accessor :amount
|
51
|
+
|
52
|
+
# EuroshellSiteNumber
|
53
|
+
# @return [String]
|
54
|
+
attr_accessor :euroshell_site_number
|
55
|
+
|
56
|
+
# IncomingProductCode
|
57
|
+
# @return [String]
|
58
|
+
attr_accessor :incoming_product_code
|
59
|
+
|
60
|
+
# ProductCode
|
61
|
+
# @return [String]
|
62
|
+
attr_accessor :product_code
|
63
|
+
|
64
|
+
# ProductName
|
65
|
+
# @return [String]
|
66
|
+
attr_accessor :product_name
|
67
|
+
|
68
|
+
# SiteCode
|
69
|
+
# @return [Integer]
|
70
|
+
attr_accessor :site_code
|
71
|
+
|
72
|
+
# HostingCollectingCompanyName
|
73
|
+
# @return [String]
|
74
|
+
attr_accessor :hosting_collecting_company_name
|
75
|
+
|
76
|
+
# HostingCollectingCompanyNumber
|
77
|
+
# @return [String]
|
78
|
+
attr_accessor :hosting_collecting_company_number
|
79
|
+
|
80
|
+
# Transaction type code
|
81
|
+
# @return [String]
|
82
|
+
attr_accessor :iccdata_tran_type_code
|
83
|
+
|
84
|
+
# Transaction type description.
|
85
|
+
# @return [String]
|
86
|
+
attr_accessor :transaction_type
|
87
|
+
|
88
|
+
# Latitude of the Coordinate 3.11573
|
89
|
+
# @return [String]
|
90
|
+
attr_accessor :latitude
|
91
|
+
|
92
|
+
# Longitude of the Coordinate
|
93
|
+
# @return [String]
|
94
|
+
attr_accessor :longitude
|
95
|
+
|
96
|
+
# Merchant category
|
97
|
+
# @return [String]
|
98
|
+
attr_accessor :merchant_category
|
99
|
+
|
100
|
+
# Merchant category description
|
101
|
+
# @return [String]
|
102
|
+
attr_accessor :merchant_category_description
|
103
|
+
|
104
|
+
# Purchased in country
|
105
|
+
# @return [String]
|
106
|
+
attr_accessor :purchased_in_country
|
107
|
+
|
108
|
+
# Merchant Id
|
109
|
+
# @return [String]
|
110
|
+
attr_accessor :merchant_id
|
111
|
+
|
112
|
+
# Site name
|
113
|
+
# @return [String]
|
114
|
+
attr_accessor :site_name
|
115
|
+
|
116
|
+
# Network
|
117
|
+
# @return [String]
|
118
|
+
attr_accessor :network
|
119
|
+
|
120
|
+
# Three character DelcoCode
|
121
|
+
# @return [String]
|
122
|
+
attr_accessor :delco_code
|
123
|
+
|
124
|
+
# Odometer input
|
125
|
+
# @return [String]
|
126
|
+
attr_accessor :odometer_input
|
127
|
+
|
128
|
+
# Odometer reading in Kms
|
129
|
+
# @return [String]
|
130
|
+
attr_accessor :odometer_reading_km
|
131
|
+
|
132
|
+
# Odometer reading in miles
|
133
|
+
# @return [String]
|
134
|
+
attr_accessor :odometer_reading_miles
|
135
|
+
|
136
|
+
# Masked Card PAN
|
137
|
+
# @return [String]
|
138
|
+
attr_accessor :card_pan
|
139
|
+
|
140
|
+
# PIN indicator
|
141
|
+
# @return [String]
|
142
|
+
attr_accessor :pin_indicator
|
143
|
+
|
144
|
+
# POIReceiptNumber
|
145
|
+
# @return [String]
|
146
|
+
attr_accessor :poi_receipt_number
|
147
|
+
|
148
|
+
# Additinal Products Code
|
149
|
+
# @return [String]
|
150
|
+
attr_accessor :products_code_additional
|
151
|
+
|
152
|
+
# Products tax code
|
153
|
+
# @return [String]
|
154
|
+
attr_accessor :products_tax_code
|
155
|
+
|
156
|
+
# Fuel volume
|
157
|
+
# @return [Float]
|
158
|
+
attr_accessor :fuel_volume
|
159
|
+
|
160
|
+
# SfgwCard expiry date
|
161
|
+
# @return [String]
|
162
|
+
attr_accessor :sfgw_card_date_of_expiry
|
163
|
+
|
164
|
+
# Three character Site currency ISO code
|
165
|
+
# @return [String]
|
166
|
+
attr_accessor :site_currency_iso_code
|
167
|
+
|
168
|
+
# Card ID
|
169
|
+
# @return [String]
|
170
|
+
attr_accessor :card_id
|
171
|
+
|
172
|
+
# ISO8601-compliant UTC datetime of the last update of the EVSE
|
173
|
+
# @return [Date]
|
174
|
+
attr_accessor :transaction_date
|
175
|
+
|
176
|
+
# ISO8601-compliant UTC datetime of the last update of the EVSE
|
177
|
+
# @return [String]
|
178
|
+
attr_accessor :transaction_date_time
|
179
|
+
|
180
|
+
# TransactionId
|
181
|
+
# @return [String]
|
182
|
+
attr_accessor :transaction_id
|
183
|
+
|
184
|
+
# Type of the connector in the EVSE unit.
|
185
|
+
# @return [String]
|
186
|
+
attr_accessor :transaction_status
|
187
|
+
|
188
|
+
# Unit of measure
|
189
|
+
# @return [String]
|
190
|
+
attr_accessor :unit_of_measure
|
191
|
+
|
192
|
+
# VehicleRegistrationNumber
|
193
|
+
# @return [String]
|
194
|
+
attr_accessor :vehicle_registration_number
|
195
|
+
|
196
|
+
# Network Delco name
|
197
|
+
# @return [String]
|
198
|
+
attr_accessor :network_delco_name
|
199
|
+
|
200
|
+
# ProductGroupName
|
201
|
+
# @return [String]
|
202
|
+
attr_accessor :product_group_name
|
203
|
+
|
204
|
+
# FuelProduct
|
205
|
+
# @return [String]
|
206
|
+
attr_accessor :fuel_product
|
207
|
+
|
208
|
+
# AccountCustomerName
|
209
|
+
# @return [String]
|
210
|
+
attr_accessor :account_customer_name
|
211
|
+
|
212
|
+
# PayerName
|
213
|
+
# @return [String]
|
214
|
+
attr_accessor :payer_name
|
215
|
+
|
216
|
+
# ISO8601-compliant UTC datetime of the last update of the EVSE
|
217
|
+
# @return [String]
|
218
|
+
attr_accessor :transaction_time
|
219
|
+
|
220
|
+
# TransactionCurrencySymbol
|
221
|
+
# @return [String]
|
222
|
+
attr_accessor :transaction_currency
|
223
|
+
|
224
|
+
# UnitPrice
|
225
|
+
# @return [Float]
|
226
|
+
attr_accessor :unit_price
|
227
|
+
|
228
|
+
# AuthorisedFlag
|
229
|
+
# @return [String]
|
230
|
+
attr_accessor :authorised_flag
|
231
|
+
|
232
|
+
# TransactionTimeGMT update of the EVSE
|
233
|
+
# @return [String]
|
234
|
+
attr_accessor :transaction_time_gmt
|
235
|
+
|
236
|
+
# ReasonCode
|
237
|
+
# @return [String]
|
238
|
+
attr_accessor :reason_code
|
239
|
+
|
240
|
+
# IssuerActionCode
|
241
|
+
# @return [String]
|
242
|
+
attr_accessor :issuer_action_code
|
243
|
+
|
244
|
+
# IssuerActionCodeDescription.
|
245
|
+
# @return [String]
|
246
|
+
attr_accessor :issuer_action_code_description
|
247
|
+
|
248
|
+
# DeclinedReason.
|
249
|
+
# @return [String]
|
250
|
+
attr_accessor :declined_reason
|
251
|
+
|
252
|
+
# CardStatusReasonDescription.
|
253
|
+
# @return [String]
|
254
|
+
attr_accessor :card_status_reason_description
|
255
|
+
|
256
|
+
# TransactionCountry
|
257
|
+
# @return [String]
|
258
|
+
attr_accessor :transaction_country
|
259
|
+
|
260
|
+
# IssuingCollectingCompanyName.
|
261
|
+
# @return [String]
|
262
|
+
attr_accessor :issuing_collecting_company_name
|
263
|
+
|
264
|
+
# CardIssuerName.
|
265
|
+
# @return [String]
|
266
|
+
attr_accessor :card_issuer_name
|
267
|
+
|
268
|
+
# DriverName.
|
269
|
+
# @return [String]
|
270
|
+
attr_accessor :driver_name
|
271
|
+
|
272
|
+
# BearerDescription.
|
273
|
+
# @return [String]
|
274
|
+
attr_accessor :bearer_description
|
275
|
+
|
276
|
+
# CardCategoryDescription.
|
277
|
+
# @return [String]
|
278
|
+
attr_accessor :card_category_description
|
279
|
+
|
280
|
+
# CardTypeDescription.
|
281
|
+
# @return [String]
|
282
|
+
attr_accessor :card_type_description
|
283
|
+
|
284
|
+
# CardTokenTypeDescription.
|
285
|
+
# @return [String]
|
286
|
+
attr_accessor :card_token_type_description
|
287
|
+
|
288
|
+
# EmbossType.
|
289
|
+
# @return [String]
|
290
|
+
attr_accessor :emboss_type
|
291
|
+
|
292
|
+
# The EVPrintedNumber which can be found on the Shell EV Card
|
293
|
+
# @return [String]
|
294
|
+
attr_accessor :ev_printed_number
|
295
|
+
|
296
|
+
# Whether the card type is enabled for RFID (Radio Frequency Identification)
|
297
|
+
# @return [TrueClass | FalseClass]
|
298
|
+
attr_accessor :is_rfid
|
299
|
+
|
300
|
+
# A mapping from model property names to API property names.
|
301
|
+
def self.names
|
302
|
+
@_hash = {} if @_hash.nil?
|
303
|
+
@_hash['col_co_code'] = 'ColCoCode'
|
304
|
+
@_hash['payer_number'] = 'PayerNumber'
|
305
|
+
@_hash['account_number'] = 'AccountNumber'
|
306
|
+
@_hash['card_issue_number'] = 'CardIssueNumber'
|
307
|
+
@_hash['collecting_company_currency_code'] =
|
308
|
+
'CollectingCompanyCurrencyCode'
|
309
|
+
@_hash['cust_data_customer_entered'] = 'CustDataCustomerEntered'
|
310
|
+
@_hash['cust_data_driver_id'] = 'CustDataDriverId'
|
311
|
+
@_hash['cust_data_fleet_description'] = 'CustDataFleetDescription'
|
312
|
+
@_hash['fleet_id_input'] = 'FleetIdInput'
|
313
|
+
@_hash['amount'] = 'Amount'
|
314
|
+
@_hash['euroshell_site_number'] = 'EuroshellSiteNumber'
|
315
|
+
@_hash['incoming_product_code'] = 'IncomingProductCode'
|
316
|
+
@_hash['product_code'] = 'ProductCode'
|
317
|
+
@_hash['product_name'] = 'ProductName'
|
318
|
+
@_hash['site_code'] = 'SiteCode'
|
319
|
+
@_hash['hosting_collecting_company_name'] =
|
320
|
+
'HostingCollectingCompanyName'
|
321
|
+
@_hash['hosting_collecting_company_number'] =
|
322
|
+
'HostingCollectingCompanyNumber'
|
323
|
+
@_hash['iccdata_tran_type_code'] = 'IccdataTranTypeCode'
|
324
|
+
@_hash['transaction_type'] = 'TransactionType'
|
325
|
+
@_hash['latitude'] = 'Latitude'
|
326
|
+
@_hash['longitude'] = 'Longitude'
|
327
|
+
@_hash['merchant_category'] = 'MerchantCategory'
|
328
|
+
@_hash['merchant_category_description'] = 'MerchantCategoryDescription'
|
329
|
+
@_hash['purchased_in_country'] = 'PurchasedInCountry'
|
330
|
+
@_hash['merchant_id'] = 'MerchantId'
|
331
|
+
@_hash['site_name'] = 'SiteName'
|
332
|
+
@_hash['network'] = 'Network'
|
333
|
+
@_hash['delco_code'] = 'DelcoCode'
|
334
|
+
@_hash['odometer_input'] = 'OdometerInput'
|
335
|
+
@_hash['odometer_reading_km'] = 'OdometerReadingKm'
|
336
|
+
@_hash['odometer_reading_miles'] = 'OdometerReadingMiles'
|
337
|
+
@_hash['card_pan'] = 'CardPAN'
|
338
|
+
@_hash['pin_indicator'] = 'PINIndicator'
|
339
|
+
@_hash['poi_receipt_number'] = 'POIReceiptNumber'
|
340
|
+
@_hash['products_code_additional'] = 'ProductsCodeAdditional'
|
341
|
+
@_hash['products_tax_code'] = 'ProductsTaxCode'
|
342
|
+
@_hash['fuel_volume'] = 'FuelVolume'
|
343
|
+
@_hash['sfgw_card_date_of_expiry'] = 'SfgwCardDateOfExpiry'
|
344
|
+
@_hash['site_currency_iso_code'] = 'SiteCurrencyISOCode'
|
345
|
+
@_hash['card_id'] = 'CardId'
|
346
|
+
@_hash['transaction_date'] = 'TransactionDate'
|
347
|
+
@_hash['transaction_date_time'] = 'TransactionDateTime'
|
348
|
+
@_hash['transaction_id'] = 'TransactionId'
|
349
|
+
@_hash['transaction_status'] = 'TransactionStatus'
|
350
|
+
@_hash['unit_of_measure'] = 'UnitOfMeasure'
|
351
|
+
@_hash['vehicle_registration_number'] = 'VehicleRegistrationNumber'
|
352
|
+
@_hash['network_delco_name'] = 'NetworkDelcoName'
|
353
|
+
@_hash['product_group_name'] = 'ProductGroupName'
|
354
|
+
@_hash['fuel_product'] = 'FuelProduct'
|
355
|
+
@_hash['account_customer_name'] = 'AccountCustomerName'
|
356
|
+
@_hash['payer_name'] = 'PayerName'
|
357
|
+
@_hash['transaction_time'] = 'TransactionTime'
|
358
|
+
@_hash['transaction_currency'] = 'TransactionCurrency'
|
359
|
+
@_hash['unit_price'] = 'UnitPrice'
|
360
|
+
@_hash['authorised_flag'] = 'AuthorisedFlag'
|
361
|
+
@_hash['transaction_time_gmt'] = 'TransactionTimeGMT'
|
362
|
+
@_hash['reason_code'] = 'ReasonCode'
|
363
|
+
@_hash['issuer_action_code'] = 'IssuerActionCode'
|
364
|
+
@_hash['issuer_action_code_description'] = 'IssuerActionCodeDescription'
|
365
|
+
@_hash['declined_reason'] = 'DeclinedReason'
|
366
|
+
@_hash['card_status_reason_description'] = 'CardStatusReasonDescription'
|
367
|
+
@_hash['transaction_country'] = 'TransactionCountry'
|
368
|
+
@_hash['issuing_collecting_company_name'] =
|
369
|
+
'IssuingCollectingCompanyName'
|
370
|
+
@_hash['card_issuer_name'] = 'CardIssuerName'
|
371
|
+
@_hash['driver_name'] = 'DriverName'
|
372
|
+
@_hash['bearer_description'] = 'BearerDescription'
|
373
|
+
@_hash['card_category_description'] = 'CardCategoryDescription'
|
374
|
+
@_hash['card_type_description'] = 'CardTypeDescription'
|
375
|
+
@_hash['card_token_type_description'] = 'CardTokenTypeDescription'
|
376
|
+
@_hash['emboss_type'] = 'EmbossType'
|
377
|
+
@_hash['ev_printed_number'] = 'EVPrintedNumber'
|
378
|
+
@_hash['is_rfid'] = 'IsRFID'
|
379
|
+
@_hash
|
380
|
+
end
|
381
|
+
|
382
|
+
# An array for optional fields
|
383
|
+
def self.optionals
|
384
|
+
%w[
|
385
|
+
col_co_code
|
386
|
+
payer_number
|
387
|
+
account_number
|
388
|
+
card_issue_number
|
389
|
+
collecting_company_currency_code
|
390
|
+
cust_data_customer_entered
|
391
|
+
cust_data_driver_id
|
392
|
+
cust_data_fleet_description
|
393
|
+
fleet_id_input
|
394
|
+
amount
|
395
|
+
euroshell_site_number
|
396
|
+
incoming_product_code
|
397
|
+
product_code
|
398
|
+
product_name
|
399
|
+
site_code
|
400
|
+
hosting_collecting_company_name
|
401
|
+
hosting_collecting_company_number
|
402
|
+
iccdata_tran_type_code
|
403
|
+
transaction_type
|
404
|
+
latitude
|
405
|
+
longitude
|
406
|
+
merchant_category
|
407
|
+
merchant_category_description
|
408
|
+
purchased_in_country
|
409
|
+
merchant_id
|
410
|
+
site_name
|
411
|
+
network
|
412
|
+
delco_code
|
413
|
+
odometer_input
|
414
|
+
odometer_reading_km
|
415
|
+
odometer_reading_miles
|
416
|
+
card_pan
|
417
|
+
pin_indicator
|
418
|
+
poi_receipt_number
|
419
|
+
products_code_additional
|
420
|
+
products_tax_code
|
421
|
+
fuel_volume
|
422
|
+
sfgw_card_date_of_expiry
|
423
|
+
site_currency_iso_code
|
424
|
+
card_id
|
425
|
+
transaction_date
|
426
|
+
transaction_date_time
|
427
|
+
transaction_id
|
428
|
+
transaction_status
|
429
|
+
unit_of_measure
|
430
|
+
vehicle_registration_number
|
431
|
+
network_delco_name
|
432
|
+
product_group_name
|
433
|
+
fuel_product
|
434
|
+
account_customer_name
|
435
|
+
payer_name
|
436
|
+
transaction_time
|
437
|
+
transaction_currency
|
438
|
+
unit_price
|
439
|
+
authorised_flag
|
440
|
+
transaction_time_gmt
|
441
|
+
reason_code
|
442
|
+
issuer_action_code
|
443
|
+
issuer_action_code_description
|
444
|
+
declined_reason
|
445
|
+
card_status_reason_description
|
446
|
+
transaction_country
|
447
|
+
issuing_collecting_company_name
|
448
|
+
card_issuer_name
|
449
|
+
driver_name
|
450
|
+
bearer_description
|
451
|
+
card_category_description
|
452
|
+
card_type_description
|
453
|
+
card_token_type_description
|
454
|
+
emboss_type
|
455
|
+
ev_printed_number
|
456
|
+
is_rfid
|
457
|
+
]
|
458
|
+
end
|
459
|
+
|
460
|
+
# An array for nullable fields
|
461
|
+
def self.nullables
|
462
|
+
%w[
|
463
|
+
col_co_code
|
464
|
+
payer_number
|
465
|
+
account_number
|
466
|
+
card_issue_number
|
467
|
+
collecting_company_currency_code
|
468
|
+
cust_data_customer_entered
|
469
|
+
cust_data_driver_id
|
470
|
+
cust_data_fleet_description
|
471
|
+
fleet_id_input
|
472
|
+
amount
|
473
|
+
euroshell_site_number
|
474
|
+
incoming_product_code
|
475
|
+
product_code
|
476
|
+
product_name
|
477
|
+
site_code
|
478
|
+
hosting_collecting_company_name
|
479
|
+
hosting_collecting_company_number
|
480
|
+
iccdata_tran_type_code
|
481
|
+
transaction_type
|
482
|
+
latitude
|
483
|
+
longitude
|
484
|
+
merchant_category
|
485
|
+
merchant_category_description
|
486
|
+
purchased_in_country
|
487
|
+
merchant_id
|
488
|
+
site_name
|
489
|
+
network
|
490
|
+
delco_code
|
491
|
+
odometer_input
|
492
|
+
odometer_reading_km
|
493
|
+
odometer_reading_miles
|
494
|
+
card_pan
|
495
|
+
pin_indicator
|
496
|
+
poi_receipt_number
|
497
|
+
products_code_additional
|
498
|
+
products_tax_code
|
499
|
+
fuel_volume
|
500
|
+
sfgw_card_date_of_expiry
|
501
|
+
site_currency_iso_code
|
502
|
+
card_id
|
503
|
+
transaction_date
|
504
|
+
transaction_date_time
|
505
|
+
transaction_id
|
506
|
+
transaction_status
|
507
|
+
unit_of_measure
|
508
|
+
vehicle_registration_number
|
509
|
+
network_delco_name
|
510
|
+
product_group_name
|
511
|
+
fuel_product
|
512
|
+
account_customer_name
|
513
|
+
payer_name
|
514
|
+
transaction_time
|
515
|
+
transaction_currency
|
516
|
+
unit_price
|
517
|
+
authorised_flag
|
518
|
+
transaction_time_gmt
|
519
|
+
reason_code
|
520
|
+
issuer_action_code
|
521
|
+
issuer_action_code_description
|
522
|
+
declined_reason
|
523
|
+
card_status_reason_description
|
524
|
+
transaction_country
|
525
|
+
issuing_collecting_company_name
|
526
|
+
card_issuer_name
|
527
|
+
driver_name
|
528
|
+
bearer_description
|
529
|
+
card_category_description
|
530
|
+
card_type_description
|
531
|
+
card_token_type_description
|
532
|
+
emboss_type
|
533
|
+
ev_printed_number
|
534
|
+
is_rfid
|
535
|
+
]
|
536
|
+
end
|
537
|
+
|
538
|
+
def initialize(col_co_code = SKIP,
|
539
|
+
payer_number = SKIP,
|
540
|
+
account_number = SKIP,
|
541
|
+
card_issue_number = SKIP,
|
542
|
+
collecting_company_currency_code = SKIP,
|
543
|
+
cust_data_customer_entered = SKIP,
|
544
|
+
cust_data_driver_id = SKIP,
|
545
|
+
cust_data_fleet_description = SKIP,
|
546
|
+
fleet_id_input = SKIP,
|
547
|
+
amount = SKIP,
|
548
|
+
euroshell_site_number = SKIP,
|
549
|
+
incoming_product_code = SKIP,
|
550
|
+
product_code = SKIP,
|
551
|
+
product_name = SKIP,
|
552
|
+
site_code = SKIP,
|
553
|
+
hosting_collecting_company_name = SKIP,
|
554
|
+
hosting_collecting_company_number = SKIP,
|
555
|
+
iccdata_tran_type_code = SKIP,
|
556
|
+
transaction_type = SKIP,
|
557
|
+
latitude = SKIP,
|
558
|
+
longitude = SKIP,
|
559
|
+
merchant_category = SKIP,
|
560
|
+
merchant_category_description = SKIP,
|
561
|
+
purchased_in_country = SKIP,
|
562
|
+
merchant_id = SKIP,
|
563
|
+
site_name = SKIP,
|
564
|
+
network = SKIP,
|
565
|
+
delco_code = SKIP,
|
566
|
+
odometer_input = SKIP,
|
567
|
+
odometer_reading_km = SKIP,
|
568
|
+
odometer_reading_miles = SKIP,
|
569
|
+
card_pan = SKIP,
|
570
|
+
pin_indicator = SKIP,
|
571
|
+
poi_receipt_number = SKIP,
|
572
|
+
products_code_additional = SKIP,
|
573
|
+
products_tax_code = SKIP,
|
574
|
+
fuel_volume = SKIP,
|
575
|
+
sfgw_card_date_of_expiry = SKIP,
|
576
|
+
site_currency_iso_code = SKIP,
|
577
|
+
card_id = SKIP,
|
578
|
+
transaction_date = SKIP,
|
579
|
+
transaction_date_time = SKIP,
|
580
|
+
transaction_id = SKIP,
|
581
|
+
transaction_status = SKIP,
|
582
|
+
unit_of_measure = SKIP,
|
583
|
+
vehicle_registration_number = SKIP,
|
584
|
+
network_delco_name = SKIP,
|
585
|
+
product_group_name = SKIP,
|
586
|
+
fuel_product = SKIP,
|
587
|
+
account_customer_name = SKIP,
|
588
|
+
payer_name = SKIP,
|
589
|
+
transaction_time = SKIP,
|
590
|
+
transaction_currency = SKIP,
|
591
|
+
unit_price = SKIP,
|
592
|
+
authorised_flag = SKIP,
|
593
|
+
transaction_time_gmt = SKIP,
|
594
|
+
reason_code = SKIP,
|
595
|
+
issuer_action_code = SKIP,
|
596
|
+
issuer_action_code_description = SKIP,
|
597
|
+
declined_reason = SKIP,
|
598
|
+
card_status_reason_description = SKIP,
|
599
|
+
transaction_country = SKIP,
|
600
|
+
issuing_collecting_company_name = SKIP,
|
601
|
+
card_issuer_name = SKIP,
|
602
|
+
driver_name = SKIP,
|
603
|
+
bearer_description = SKIP,
|
604
|
+
card_category_description = SKIP,
|
605
|
+
card_type_description = SKIP,
|
606
|
+
card_token_type_description = SKIP,
|
607
|
+
emboss_type = SKIP,
|
608
|
+
ev_printed_number = SKIP,
|
609
|
+
is_rfid = SKIP)
|
610
|
+
@col_co_code = col_co_code unless col_co_code == SKIP
|
611
|
+
@payer_number = payer_number unless payer_number == SKIP
|
612
|
+
@account_number = account_number unless account_number == SKIP
|
613
|
+
@card_issue_number = card_issue_number unless card_issue_number == SKIP
|
614
|
+
unless collecting_company_currency_code == SKIP
|
615
|
+
@collecting_company_currency_code =
|
616
|
+
collecting_company_currency_code
|
617
|
+
end
|
618
|
+
unless cust_data_customer_entered == SKIP
|
619
|
+
@cust_data_customer_entered =
|
620
|
+
cust_data_customer_entered
|
621
|
+
end
|
622
|
+
@cust_data_driver_id = cust_data_driver_id unless cust_data_driver_id == SKIP
|
623
|
+
unless cust_data_fleet_description == SKIP
|
624
|
+
@cust_data_fleet_description =
|
625
|
+
cust_data_fleet_description
|
626
|
+
end
|
627
|
+
@fleet_id_input = fleet_id_input unless fleet_id_input == SKIP
|
628
|
+
@amount = amount unless amount == SKIP
|
629
|
+
@euroshell_site_number = euroshell_site_number unless euroshell_site_number == SKIP
|
630
|
+
@incoming_product_code = incoming_product_code unless incoming_product_code == SKIP
|
631
|
+
@product_code = product_code unless product_code == SKIP
|
632
|
+
@product_name = product_name unless product_name == SKIP
|
633
|
+
@site_code = site_code unless site_code == SKIP
|
634
|
+
unless hosting_collecting_company_name == SKIP
|
635
|
+
@hosting_collecting_company_name =
|
636
|
+
hosting_collecting_company_name
|
637
|
+
end
|
638
|
+
unless hosting_collecting_company_number == SKIP
|
639
|
+
@hosting_collecting_company_number =
|
640
|
+
hosting_collecting_company_number
|
641
|
+
end
|
642
|
+
@iccdata_tran_type_code = iccdata_tran_type_code unless iccdata_tran_type_code == SKIP
|
643
|
+
@transaction_type = transaction_type unless transaction_type == SKIP
|
644
|
+
@latitude = latitude unless latitude == SKIP
|
645
|
+
@longitude = longitude unless longitude == SKIP
|
646
|
+
@merchant_category = merchant_category unless merchant_category == SKIP
|
647
|
+
unless merchant_category_description == SKIP
|
648
|
+
@merchant_category_description =
|
649
|
+
merchant_category_description
|
650
|
+
end
|
651
|
+
@purchased_in_country = purchased_in_country unless purchased_in_country == SKIP
|
652
|
+
@merchant_id = merchant_id unless merchant_id == SKIP
|
653
|
+
@site_name = site_name unless site_name == SKIP
|
654
|
+
@network = network unless network == SKIP
|
655
|
+
@delco_code = delco_code unless delco_code == SKIP
|
656
|
+
@odometer_input = odometer_input unless odometer_input == SKIP
|
657
|
+
@odometer_reading_km = odometer_reading_km unless odometer_reading_km == SKIP
|
658
|
+
@odometer_reading_miles = odometer_reading_miles unless odometer_reading_miles == SKIP
|
659
|
+
@card_pan = card_pan unless card_pan == SKIP
|
660
|
+
@pin_indicator = pin_indicator unless pin_indicator == SKIP
|
661
|
+
@poi_receipt_number = poi_receipt_number unless poi_receipt_number == SKIP
|
662
|
+
@products_code_additional = products_code_additional unless products_code_additional == SKIP
|
663
|
+
@products_tax_code = products_tax_code unless products_tax_code == SKIP
|
664
|
+
@fuel_volume = fuel_volume unless fuel_volume == SKIP
|
665
|
+
@sfgw_card_date_of_expiry = sfgw_card_date_of_expiry unless sfgw_card_date_of_expiry == SKIP
|
666
|
+
@site_currency_iso_code = site_currency_iso_code unless site_currency_iso_code == SKIP
|
667
|
+
@card_id = card_id unless card_id == SKIP
|
668
|
+
@transaction_date = transaction_date unless transaction_date == SKIP
|
669
|
+
@transaction_date_time = transaction_date_time unless transaction_date_time == SKIP
|
670
|
+
@transaction_id = transaction_id unless transaction_id == SKIP
|
671
|
+
@transaction_status = transaction_status unless transaction_status == SKIP
|
672
|
+
@unit_of_measure = unit_of_measure unless unit_of_measure == SKIP
|
673
|
+
unless vehicle_registration_number == SKIP
|
674
|
+
@vehicle_registration_number =
|
675
|
+
vehicle_registration_number
|
676
|
+
end
|
677
|
+
@network_delco_name = network_delco_name unless network_delco_name == SKIP
|
678
|
+
@product_group_name = product_group_name unless product_group_name == SKIP
|
679
|
+
@fuel_product = fuel_product unless fuel_product == SKIP
|
680
|
+
@account_customer_name = account_customer_name unless account_customer_name == SKIP
|
681
|
+
@payer_name = payer_name unless payer_name == SKIP
|
682
|
+
@transaction_time = transaction_time unless transaction_time == SKIP
|
683
|
+
@transaction_currency = transaction_currency unless transaction_currency == SKIP
|
684
|
+
@unit_price = unit_price unless unit_price == SKIP
|
685
|
+
@authorised_flag = authorised_flag unless authorised_flag == SKIP
|
686
|
+
@transaction_time_gmt = transaction_time_gmt unless transaction_time_gmt == SKIP
|
687
|
+
@reason_code = reason_code unless reason_code == SKIP
|
688
|
+
@issuer_action_code = issuer_action_code unless issuer_action_code == SKIP
|
689
|
+
unless issuer_action_code_description == SKIP
|
690
|
+
@issuer_action_code_description =
|
691
|
+
issuer_action_code_description
|
692
|
+
end
|
693
|
+
@declined_reason = declined_reason unless declined_reason == SKIP
|
694
|
+
unless card_status_reason_description == SKIP
|
695
|
+
@card_status_reason_description =
|
696
|
+
card_status_reason_description
|
697
|
+
end
|
698
|
+
@transaction_country = transaction_country unless transaction_country == SKIP
|
699
|
+
unless issuing_collecting_company_name == SKIP
|
700
|
+
@issuing_collecting_company_name =
|
701
|
+
issuing_collecting_company_name
|
702
|
+
end
|
703
|
+
@card_issuer_name = card_issuer_name unless card_issuer_name == SKIP
|
704
|
+
@driver_name = driver_name unless driver_name == SKIP
|
705
|
+
@bearer_description = bearer_description unless bearer_description == SKIP
|
706
|
+
unless card_category_description == SKIP
|
707
|
+
@card_category_description =
|
708
|
+
card_category_description
|
709
|
+
end
|
710
|
+
@card_type_description = card_type_description unless card_type_description == SKIP
|
711
|
+
unless card_token_type_description == SKIP
|
712
|
+
@card_token_type_description =
|
713
|
+
card_token_type_description
|
714
|
+
end
|
715
|
+
@emboss_type = emboss_type unless emboss_type == SKIP
|
716
|
+
@ev_printed_number = ev_printed_number unless ev_printed_number == SKIP
|
717
|
+
@is_rfid = is_rfid unless is_rfid == SKIP
|
718
|
+
end
|
719
|
+
|
720
|
+
# Creates an instance of the object from a hash.
|
721
|
+
def self.from_hash(hash)
|
722
|
+
return nil unless hash
|
723
|
+
|
724
|
+
# Extract variables from the hash.
|
725
|
+
col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
|
726
|
+
payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
|
727
|
+
account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
|
728
|
+
card_issue_number =
|
729
|
+
hash.key?('CardIssueNumber') ? hash['CardIssueNumber'] : SKIP
|
730
|
+
collecting_company_currency_code =
|
731
|
+
hash.key?('CollectingCompanyCurrencyCode') ? hash['CollectingCompanyCurrencyCode'] : SKIP
|
732
|
+
cust_data_customer_entered =
|
733
|
+
hash.key?('CustDataCustomerEntered') ? hash['CustDataCustomerEntered'] : SKIP
|
734
|
+
cust_data_driver_id =
|
735
|
+
hash.key?('CustDataDriverId') ? hash['CustDataDriverId'] : SKIP
|
736
|
+
cust_data_fleet_description =
|
737
|
+
hash.key?('CustDataFleetDescription') ? hash['CustDataFleetDescription'] : SKIP
|
738
|
+
fleet_id_input = hash.key?('FleetIdInput') ? hash['FleetIdInput'] : SKIP
|
739
|
+
amount = hash.key?('Amount') ? hash['Amount'] : SKIP
|
740
|
+
euroshell_site_number =
|
741
|
+
hash.key?('EuroshellSiteNumber') ? hash['EuroshellSiteNumber'] : SKIP
|
742
|
+
incoming_product_code =
|
743
|
+
hash.key?('IncomingProductCode') ? hash['IncomingProductCode'] : SKIP
|
744
|
+
product_code = hash.key?('ProductCode') ? hash['ProductCode'] : SKIP
|
745
|
+
product_name = hash.key?('ProductName') ? hash['ProductName'] : SKIP
|
746
|
+
site_code = hash.key?('SiteCode') ? hash['SiteCode'] : SKIP
|
747
|
+
hosting_collecting_company_name =
|
748
|
+
hash.key?('HostingCollectingCompanyName') ? hash['HostingCollectingCompanyName'] : SKIP
|
749
|
+
hosting_collecting_company_number =
|
750
|
+
hash.key?('HostingCollectingCompanyNumber') ? hash['HostingCollectingCompanyNumber'] : SKIP
|
751
|
+
iccdata_tran_type_code =
|
752
|
+
hash.key?('IccdataTranTypeCode') ? hash['IccdataTranTypeCode'] : SKIP
|
753
|
+
transaction_type =
|
754
|
+
hash.key?('TransactionType') ? hash['TransactionType'] : SKIP
|
755
|
+
latitude = hash.key?('Latitude') ? hash['Latitude'] : SKIP
|
756
|
+
longitude = hash.key?('Longitude') ? hash['Longitude'] : SKIP
|
757
|
+
merchant_category =
|
758
|
+
hash.key?('MerchantCategory') ? hash['MerchantCategory'] : SKIP
|
759
|
+
merchant_category_description =
|
760
|
+
hash.key?('MerchantCategoryDescription') ? hash['MerchantCategoryDescription'] : SKIP
|
761
|
+
purchased_in_country =
|
762
|
+
hash.key?('PurchasedInCountry') ? hash['PurchasedInCountry'] : SKIP
|
763
|
+
merchant_id = hash.key?('MerchantId') ? hash['MerchantId'] : SKIP
|
764
|
+
site_name = hash.key?('SiteName') ? hash['SiteName'] : SKIP
|
765
|
+
network = hash.key?('Network') ? hash['Network'] : SKIP
|
766
|
+
delco_code = hash.key?('DelcoCode') ? hash['DelcoCode'] : SKIP
|
767
|
+
odometer_input = hash.key?('OdometerInput') ? hash['OdometerInput'] : SKIP
|
768
|
+
odometer_reading_km =
|
769
|
+
hash.key?('OdometerReadingKm') ? hash['OdometerReadingKm'] : SKIP
|
770
|
+
odometer_reading_miles =
|
771
|
+
hash.key?('OdometerReadingMiles') ? hash['OdometerReadingMiles'] : SKIP
|
772
|
+
card_pan = hash.key?('CardPAN') ? hash['CardPAN'] : SKIP
|
773
|
+
pin_indicator = hash.key?('PINIndicator') ? hash['PINIndicator'] : SKIP
|
774
|
+
poi_receipt_number =
|
775
|
+
hash.key?('POIReceiptNumber') ? hash['POIReceiptNumber'] : SKIP
|
776
|
+
products_code_additional =
|
777
|
+
hash.key?('ProductsCodeAdditional') ? hash['ProductsCodeAdditional'] : SKIP
|
778
|
+
products_tax_code =
|
779
|
+
hash.key?('ProductsTaxCode') ? hash['ProductsTaxCode'] : SKIP
|
780
|
+
fuel_volume = hash.key?('FuelVolume') ? hash['FuelVolume'] : SKIP
|
781
|
+
sfgw_card_date_of_expiry =
|
782
|
+
hash.key?('SfgwCardDateOfExpiry') ? hash['SfgwCardDateOfExpiry'] : SKIP
|
783
|
+
site_currency_iso_code =
|
784
|
+
hash.key?('SiteCurrencyISOCode') ? hash['SiteCurrencyISOCode'] : SKIP
|
785
|
+
card_id = hash.key?('CardId') ? hash['CardId'] : SKIP
|
786
|
+
transaction_date =
|
787
|
+
hash.key?('TransactionDate') ? hash['TransactionDate'] : SKIP
|
788
|
+
transaction_date_time =
|
789
|
+
hash.key?('TransactionDateTime') ? hash['TransactionDateTime'] : SKIP
|
790
|
+
transaction_id = hash.key?('TransactionId') ? hash['TransactionId'] : SKIP
|
791
|
+
transaction_status =
|
792
|
+
hash.key?('TransactionStatus') ? hash['TransactionStatus'] : SKIP
|
793
|
+
unit_of_measure =
|
794
|
+
hash.key?('UnitOfMeasure') ? hash['UnitOfMeasure'] : SKIP
|
795
|
+
vehicle_registration_number =
|
796
|
+
hash.key?('VehicleRegistrationNumber') ? hash['VehicleRegistrationNumber'] : SKIP
|
797
|
+
network_delco_name =
|
798
|
+
hash.key?('NetworkDelcoName') ? hash['NetworkDelcoName'] : SKIP
|
799
|
+
product_group_name =
|
800
|
+
hash.key?('ProductGroupName') ? hash['ProductGroupName'] : SKIP
|
801
|
+
fuel_product = hash.key?('FuelProduct') ? hash['FuelProduct'] : SKIP
|
802
|
+
account_customer_name =
|
803
|
+
hash.key?('AccountCustomerName') ? hash['AccountCustomerName'] : SKIP
|
804
|
+
payer_name = hash.key?('PayerName') ? hash['PayerName'] : SKIP
|
805
|
+
transaction_time =
|
806
|
+
hash.key?('TransactionTime') ? hash['TransactionTime'] : SKIP
|
807
|
+
transaction_currency =
|
808
|
+
hash.key?('TransactionCurrency') ? hash['TransactionCurrency'] : SKIP
|
809
|
+
unit_price = hash.key?('UnitPrice') ? hash['UnitPrice'] : SKIP
|
810
|
+
authorised_flag =
|
811
|
+
hash.key?('AuthorisedFlag') ? hash['AuthorisedFlag'] : SKIP
|
812
|
+
transaction_time_gmt =
|
813
|
+
hash.key?('TransactionTimeGMT') ? hash['TransactionTimeGMT'] : SKIP
|
814
|
+
reason_code = hash.key?('ReasonCode') ? hash['ReasonCode'] : SKIP
|
815
|
+
issuer_action_code =
|
816
|
+
hash.key?('IssuerActionCode') ? hash['IssuerActionCode'] : SKIP
|
817
|
+
issuer_action_code_description =
|
818
|
+
hash.key?('IssuerActionCodeDescription') ? hash['IssuerActionCodeDescription'] : SKIP
|
819
|
+
declined_reason =
|
820
|
+
hash.key?('DeclinedReason') ? hash['DeclinedReason'] : SKIP
|
821
|
+
card_status_reason_description =
|
822
|
+
hash.key?('CardStatusReasonDescription') ? hash['CardStatusReasonDescription'] : SKIP
|
823
|
+
transaction_country =
|
824
|
+
hash.key?('TransactionCountry') ? hash['TransactionCountry'] : SKIP
|
825
|
+
issuing_collecting_company_name =
|
826
|
+
hash.key?('IssuingCollectingCompanyName') ? hash['IssuingCollectingCompanyName'] : SKIP
|
827
|
+
card_issuer_name =
|
828
|
+
hash.key?('CardIssuerName') ? hash['CardIssuerName'] : SKIP
|
829
|
+
driver_name = hash.key?('DriverName') ? hash['DriverName'] : SKIP
|
830
|
+
bearer_description =
|
831
|
+
hash.key?('BearerDescription') ? hash['BearerDescription'] : SKIP
|
832
|
+
card_category_description =
|
833
|
+
hash.key?('CardCategoryDescription') ? hash['CardCategoryDescription'] : SKIP
|
834
|
+
card_type_description =
|
835
|
+
hash.key?('CardTypeDescription') ? hash['CardTypeDescription'] : SKIP
|
836
|
+
card_token_type_description =
|
837
|
+
hash.key?('CardTokenTypeDescription') ? hash['CardTokenTypeDescription'] : SKIP
|
838
|
+
emboss_type = hash.key?('EmbossType') ? hash['EmbossType'] : SKIP
|
839
|
+
ev_printed_number =
|
840
|
+
hash.key?('EVPrintedNumber') ? hash['EVPrintedNumber'] : SKIP
|
841
|
+
is_rfid = hash.key?('IsRFID') ? hash['IsRFID'] : SKIP
|
842
|
+
|
843
|
+
# Create object from extracted values.
|
844
|
+
RecentTransactions.new(col_co_code,
|
845
|
+
payer_number,
|
846
|
+
account_number,
|
847
|
+
card_issue_number,
|
848
|
+
collecting_company_currency_code,
|
849
|
+
cust_data_customer_entered,
|
850
|
+
cust_data_driver_id,
|
851
|
+
cust_data_fleet_description,
|
852
|
+
fleet_id_input,
|
853
|
+
amount,
|
854
|
+
euroshell_site_number,
|
855
|
+
incoming_product_code,
|
856
|
+
product_code,
|
857
|
+
product_name,
|
858
|
+
site_code,
|
859
|
+
hosting_collecting_company_name,
|
860
|
+
hosting_collecting_company_number,
|
861
|
+
iccdata_tran_type_code,
|
862
|
+
transaction_type,
|
863
|
+
latitude,
|
864
|
+
longitude,
|
865
|
+
merchant_category,
|
866
|
+
merchant_category_description,
|
867
|
+
purchased_in_country,
|
868
|
+
merchant_id,
|
869
|
+
site_name,
|
870
|
+
network,
|
871
|
+
delco_code,
|
872
|
+
odometer_input,
|
873
|
+
odometer_reading_km,
|
874
|
+
odometer_reading_miles,
|
875
|
+
card_pan,
|
876
|
+
pin_indicator,
|
877
|
+
poi_receipt_number,
|
878
|
+
products_code_additional,
|
879
|
+
products_tax_code,
|
880
|
+
fuel_volume,
|
881
|
+
sfgw_card_date_of_expiry,
|
882
|
+
site_currency_iso_code,
|
883
|
+
card_id,
|
884
|
+
transaction_date,
|
885
|
+
transaction_date_time,
|
886
|
+
transaction_id,
|
887
|
+
transaction_status,
|
888
|
+
unit_of_measure,
|
889
|
+
vehicle_registration_number,
|
890
|
+
network_delco_name,
|
891
|
+
product_group_name,
|
892
|
+
fuel_product,
|
893
|
+
account_customer_name,
|
894
|
+
payer_name,
|
895
|
+
transaction_time,
|
896
|
+
transaction_currency,
|
897
|
+
unit_price,
|
898
|
+
authorised_flag,
|
899
|
+
transaction_time_gmt,
|
900
|
+
reason_code,
|
901
|
+
issuer_action_code,
|
902
|
+
issuer_action_code_description,
|
903
|
+
declined_reason,
|
904
|
+
card_status_reason_description,
|
905
|
+
transaction_country,
|
906
|
+
issuing_collecting_company_name,
|
907
|
+
card_issuer_name,
|
908
|
+
driver_name,
|
909
|
+
bearer_description,
|
910
|
+
card_category_description,
|
911
|
+
card_type_description,
|
912
|
+
card_token_type_description,
|
913
|
+
emboss_type,
|
914
|
+
ev_printed_number,
|
915
|
+
is_rfid)
|
916
|
+
end
|
917
|
+
end
|
918
|
+
end
|