data-and-reporting-sdk 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (178) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +28 -0
  3. data/README.md +104 -0
  4. data/lib/shell_data_reporting_ap_is/api_helper.rb +10 -0
  5. data/lib/shell_data_reporting_ap_is/client.rb +84 -0
  6. data/lib/shell_data_reporting_ap_is/configuration.rb +110 -0
  7. data/lib/shell_data_reporting_ap_is/controllers/base_controller.rb +66 -0
  8. data/lib/shell_data_reporting_ap_is/controllers/customer_controller.rb +478 -0
  9. data/lib/shell_data_reporting_ap_is/controllers/invoice_controller.rb +470 -0
  10. data/lib/shell_data_reporting_ap_is/controllers/o_auth_authorization_controller.rb +42 -0
  11. data/lib/shell_data_reporting_ap_is/controllers/transaction_controller.rb +878 -0
  12. data/lib/shell_data_reporting_ap_is/exceptions/api_exception.rb +10 -0
  13. data/lib/shell_data_reporting_ap_is/exceptions/default_error_exception.rb +32 -0
  14. data/lib/shell_data_reporting_ap_is/exceptions/error_object_exception.rb +54 -0
  15. data/lib/shell_data_reporting_ap_is/exceptions/error_user_access_error1_exception.rb +32 -0
  16. data/lib/shell_data_reporting_ap_is/exceptions/o_auth_provider_exception.rb +48 -0
  17. data/lib/shell_data_reporting_ap_is/http/auth/basic_auth.rb +50 -0
  18. data/lib/shell_data_reporting_ap_is/http/auth/bearer_token.rb +89 -0
  19. data/lib/shell_data_reporting_ap_is/http/http_call_back.rb +10 -0
  20. data/lib/shell_data_reporting_ap_is/http/http_method_enum.rb +10 -0
  21. data/lib/shell_data_reporting_ap_is/http/http_request.rb +10 -0
  22. data/lib/shell_data_reporting_ap_is/http/http_response.rb +10 -0
  23. data/lib/shell_data_reporting_ap_is/models/account_access.rb +128 -0
  24. data/lib/shell_data_reporting_ap_is/models/account_request.rb +252 -0
  25. data/lib/shell_data_reporting_ap_is/models/account_response.rb +111 -0
  26. data/lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb +750 -0
  27. data/lib/shell_data_reporting_ap_is/models/accounts.rb +65 -0
  28. data/lib/shell_data_reporting_ap_is/models/address.rb +174 -0
  29. data/lib/shell_data_reporting_ap_is/models/associated_account.rb +98 -0
  30. data/lib/shell_data_reporting_ap_is/models/audit_request.rb +256 -0
  31. data/lib/shell_data_reporting_ap_is/models/audit_response.rb +111 -0
  32. data/lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb +450 -0
  33. data/lib/shell_data_reporting_ap_is/models/bank_account.rb +192 -0
  34. data/lib/shell_data_reporting_ap_is/models/base_model.rb +62 -0
  35. data/lib/shell_data_reporting_ap_is/models/bonus_configuration.rb +419 -0
  36. data/lib/shell_data_reporting_ap_is/models/bonus_history.rb +444 -0
  37. data/lib/shell_data_reporting_ap_is/models/card_day_time_restrictions.rb +159 -0
  38. data/lib/shell_data_reporting_ap_is/models/card_exceptions.rb +268 -0
  39. data/lib/shell_data_reporting_ap_is/models/card_group_request.rb +178 -0
  40. data/lib/shell_data_reporting_ap_is/models/card_group_response.rb +109 -0
  41. data/lib/shell_data_reporting_ap_is/models/card_group_response_card_groups_items.rb +301 -0
  42. data/lib/shell_data_reporting_ap_is/models/card_type_request.rb +145 -0
  43. data/lib/shell_data_reporting_ap_is/models/card_type_response.rb +79 -0
  44. data/lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb +470 -0
  45. data/lib/shell_data_reporting_ap_is/models/card_type_response_error.rb +60 -0
  46. data/lib/shell_data_reporting_ap_is/models/card_usage_restrictions.rb +281 -0
  47. data/lib/shell_data_reporting_ap_is/models/card_usage_summary_request.rb +159 -0
  48. data/lib/shell_data_reporting_ap_is/models/card_usage_summary_response.rb +79 -0
  49. data/lib/shell_data_reporting_ap_is/models/col_co_access.rb +88 -0
  50. data/lib/shell_data_reporting_ap_is/models/current_volume.rb +99 -0
  51. data/lib/shell_data_reporting_ap_is/models/customer_contract.rb +63 -0
  52. data/lib/shell_data_reporting_ap_is/models/customer_detail_request.rb +123 -0
  53. data/lib/shell_data_reporting_ap_is/models/customer_detail_response.rb +437 -0
  54. data/lib/shell_data_reporting_ap_is/models/customer_price_list_request.rb +200 -0
  55. data/lib/shell_data_reporting_ap_is/models/customer_price_list_response.rb +82 -0
  56. data/lib/shell_data_reporting_ap_is/models/default_error_fault.rb +60 -0
  57. data/lib/shell_data_reporting_ap_is/models/default_error_fault_detail.rb +50 -0
  58. data/lib/shell_data_reporting_ap_is/models/delivery_addresses.rb +258 -0
  59. data/lib/shell_data_reporting_ap_is/models/eid_access.rb +75 -0
  60. data/lib/shell_data_reporting_ap_is/models/eid_document.rb +166 -0
  61. data/lib/shell_data_reporting_ap_is/models/eid_document_response.rb +140 -0
  62. data/lib/shell_data_reporting_ap_is/models/eid_download_req.rb +86 -0
  63. data/lib/shell_data_reporting_ap_is/models/eid_download_request.rb +50 -0
  64. data/lib/shell_data_reporting_ap_is/models/eid_search_req.rb +160 -0
  65. data/lib/shell_data_reporting_ap_is/models/eid_search_request.rb +70 -0
  66. data/lib/shell_data_reporting_ap_is/models/error_details.rb +81 -0
  67. data/lib/shell_data_reporting_ap_is/models/error_status.rb +60 -0
  68. data/lib/shell_data_reporting_ap_is/models/error_user_access.rb +50 -0
  69. data/lib/shell_data_reporting_ap_is/models/error_user_access_error.rb +60 -0
  70. data/lib/shell_data_reporting_ap_is/models/exception_product.rb +65 -0
  71. data/lib/shell_data_reporting_ap_is/models/exception_site_location.rb +63 -0
  72. data/lib/shell_data_reporting_ap_is/models/fee_item.rb +977 -0
  73. data/lib/shell_data_reporting_ap_is/models/fee_item_summary_all_of0.rb +194 -0
  74. data/lib/shell_data_reporting_ap_is/models/fee_rule_location.rb +153 -0
  75. data/lib/shell_data_reporting_ap_is/models/fee_rule_product.rb +98 -0
  76. data/lib/shell_data_reporting_ap_is/models/fee_rule_tier.rb +74 -0
  77. data/lib/shell_data_reporting_ap_is/models/fee_summary_response.rb +85 -0
  78. data/lib/shell_data_reporting_ap_is/models/fees_fee_rule_tiers.rb +124 -0
  79. data/lib/shell_data_reporting_ap_is/models/finance_currency.rb +98 -0
  80. data/lib/shell_data_reporting_ap_is/models/fuel_consumption_card.rb +73 -0
  81. data/lib/shell_data_reporting_ap_is/models/fuel_consumption_data.rb +267 -0
  82. data/lib/shell_data_reporting_ap_is/models/fuel_consumption_request.rb +197 -0
  83. data/lib/shell_data_reporting_ap_is/models/fuel_consumption_response.rb +79 -0
  84. data/lib/shell_data_reporting_ap_is/models/invoice_dates_data.rb +62 -0
  85. data/lib/shell_data_reporting_ap_is/models/invoice_dates_request.rb +50 -0
  86. data/lib/shell_data_reporting_ap_is/models/invoice_dates_request_filters.rb +146 -0
  87. data/lib/shell_data_reporting_ap_is/models/invoice_dates_response_data.rb +80 -0
  88. data/lib/shell_data_reporting_ap_is/models/invoice_distribution_method.rb +99 -0
  89. data/lib/shell_data_reporting_ap_is/models/invoice_download_req.rb +99 -0
  90. data/lib/shell_data_reporting_ap_is/models/invoice_download_request.rb +50 -0
  91. data/lib/shell_data_reporting_ap_is/models/invoice_search_additional_document.rb +80 -0
  92. data/lib/shell_data_reporting_ap_is/models/invoice_search_details.rb +913 -0
  93. data/lib/shell_data_reporting_ap_is/models/invoice_search_request.rb +91 -0
  94. data/lib/shell_data_reporting_ap_is/models/invoice_search_request_filters.rb +344 -0
  95. data/lib/shell_data_reporting_ap_is/models/invoice_search_response.rb +127 -0
  96. data/lib/shell_data_reporting_ap_is/models/invoice_summary_details.rb +129 -0
  97. data/lib/shell_data_reporting_ap_is/models/invoice_summary_request.rb +50 -0
  98. data/lib/shell_data_reporting_ap_is/models/invoice_summary_request_filters.rb +345 -0
  99. data/lib/shell_data_reporting_ap_is/models/invoice_summary_response.rb +79 -0
  100. data/lib/shell_data_reporting_ap_is/models/invoices_summaries.rb +221 -0
  101. data/lib/shell_data_reporting_ap_is/models/last_statement_of_account.rb +421 -0
  102. data/lib/shell_data_reporting_ap_is/models/logged_in_user_request.rb +107 -0
  103. data/lib/shell_data_reporting_ap_is/models/logged_in_user_response.rb +394 -0
  104. data/lib/shell_data_reporting_ap_is/models/monthly_invoice_trend.rb +112 -0
  105. data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_request.rb +360 -0
  106. data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_request_accounts_items.rb +84 -0
  107. data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_response.rb +110 -0
  108. data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_response_transactions_items.rb +1724 -0
  109. data/lib/shell_data_reporting_ap_is/models/o_auth_provider_error_enum.rb +45 -0
  110. data/lib/shell_data_reporting_ap_is/models/o_auth_token.rb +100 -0
  111. data/lib/shell_data_reporting_ap_is/models/past_statement_of_accounts.rb +502 -0
  112. data/lib/shell_data_reporting_ap_is/models/payer_access.rb +147 -0
  113. data/lib/shell_data_reporting_ap_is/models/payer_details.rb +1412 -0
  114. data/lib/shell_data_reporting_ap_is/models/payer_request.rb +126 -0
  115. data/lib/shell_data_reporting_ap_is/models/payer_response.rb +115 -0
  116. data/lib/shell_data_reporting_ap_is/models/payers.rb +109 -0
  117. data/lib/shell_data_reporting_ap_is/models/payments_since_last_soa.rb +322 -0
  118. data/lib/shell_data_reporting_ap_is/models/pin_advice_types.rb +80 -0
  119. data/lib/shell_data_reporting_ap_is/models/price_list.rb +485 -0
  120. data/lib/shell_data_reporting_ap_is/models/price_trans_summary_request.rb +477 -0
  121. data/lib/shell_data_reporting_ap_is/models/price_transaction_request.rb +572 -0
  122. data/lib/shell_data_reporting_ap_is/models/priced_request_data.rb +485 -0
  123. data/lib/shell_data_reporting_ap_is/models/priced_response_data.rb +2132 -0
  124. data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_response.rb +79 -0
  125. data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_response_transactions_summary_items.rb +242 -0
  126. data/lib/shell_data_reporting_ap_is/models/priced_transaction_items_location_items.rb +67 -0
  127. data/lib/shell_data_reporting_ap_is/models/priced_transaction_req_v2_invoice_status_enum.rb +27 -0
  128. data/lib/shell_data_reporting_ap_is/models/priced_transaction_req_v2_period_enum.rb +27 -0
  129. data/lib/shell_data_reporting_ap_is/models/priced_transaction_req_v2_sort_order_enum.rb +37 -0
  130. data/lib/shell_data_reporting_ap_is/models/priced_transaction_request_v2.rb +72 -0
  131. data/lib/shell_data_reporting_ap_is/models/priced_transaction_resp_v2_refund_flag_enum.rb +23 -0
  132. data/lib/shell_data_reporting_ap_is/models/priced_transaction_response.rb +59 -0
  133. data/lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb +1719 -0
  134. data/lib/shell_data_reporting_ap_is/models/priced_transaction_response_v2.rb +110 -0
  135. data/lib/shell_data_reporting_ap_is/models/pricing_current_volume.rb +115 -0
  136. data/lib/shell_data_reporting_ap_is/models/pricing_history.rb +105 -0
  137. data/lib/shell_data_reporting_ap_is/models/purchase_categories.rb +114 -0
  138. data/lib/shell_data_reporting_ap_is/models/recent_transaction_req.rb +217 -0
  139. data/lib/shell_data_reporting_ap_is/models/recent_transaction_request.rb +66 -0
  140. data/lib/shell_data_reporting_ap_is/models/recent_transactions.rb +918 -0
  141. data/lib/shell_data_reporting_ap_is/models/recent_transactions_response.rb +110 -0
  142. data/lib/shell_data_reporting_ap_is/models/role.rb +102 -0
  143. data/lib/shell_data_reporting_ap_is/models/search_doc_req.rb +269 -0
  144. data/lib/shell_data_reporting_ap_is/models/search_documents_invoice.rb +204 -0
  145. data/lib/shell_data_reporting_ap_is/models/search_documents_request.rb +70 -0
  146. data/lib/shell_data_reporting_ap_is/models/search_documents_response.rb +122 -0
  147. data/lib/shell_data_reporting_ap_is/models/search_soa_req.rb +197 -0
  148. data/lib/shell_data_reporting_ap_is/models/search_statement_of_account.rb +220 -0
  149. data/lib/shell_data_reporting_ap_is/models/search_statement_of_account_request.rb +70 -0
  150. data/lib/shell_data_reporting_ap_is/models/search_statement_of_account_response.rb +120 -0
  151. data/lib/shell_data_reporting_ap_is/models/site_location.rb +67 -0
  152. data/lib/shell_data_reporting_ap_is/models/statement_of_account_request.rb +50 -0
  153. data/lib/shell_data_reporting_ap_is/models/statement_of_account_request_filters.rb +197 -0
  154. data/lib/shell_data_reporting_ap_is/models/statement_of_account_resp.rb +138 -0
  155. data/lib/shell_data_reporting_ap_is/models/statement_of_account_response.rb +80 -0
  156. data/lib/shell_data_reporting_ap_is/models/tier.rb +167 -0
  157. data/lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb +1267 -0
  158. data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_request.rb +267 -0
  159. data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_response.rb +100 -0
  160. data/lib/shell_data_reporting_ap_is/models/transaction_fees_request.rb +348 -0
  161. data/lib/shell_data_reporting_ap_is/models/transaction_fees_response.rb +111 -0
  162. data/lib/shell_data_reporting_ap_is/models/update_odometer.rb +62 -0
  163. data/lib/shell_data_reporting_ap_is/models/update_odometer_reference.rb +67 -0
  164. data/lib/shell_data_reporting_ap_is/models/update_odometer_request.rb +146 -0
  165. data/lib/shell_data_reporting_ap_is/models/update_odometer_response.rb +93 -0
  166. data/lib/shell_data_reporting_ap_is/models/usage_summary.rb +202 -0
  167. data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_request.rb +118 -0
  168. data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_response.rb +120 -0
  169. data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_request.rb +103 -0
  170. data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_response.rb +120 -0
  171. data/lib/shell_data_reporting_ap_is/utilities/date_time_helper.rb +11 -0
  172. data/lib/shell_data_reporting_ap_is/utilities/file_wrapper.rb +16 -0
  173. data/lib/shell_data_reporting_ap_is.rb +229 -0
  174. data/test/controllers/controller_test_base.rb +34 -0
  175. data/test/controllers/test_invoice_controller.rb +398 -0
  176. data/test/controllers/test_transaction_controller.rb +235 -0
  177. data/test/http_response_catcher.rb +19 -0
  178. metadata +302 -0
@@ -0,0 +1,2132 @@
1
+ # shell_data_reporting_ap_is
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ require 'date'
7
+ module ShellDataReportingApIs
8
+ # PricedResponseData Model.
9
+ class PricedResponseData < BaseModel
10
+ SKIP = Object.new
11
+ private_constant :SKIP
12
+
13
+ # Name of the account
14
+ # @return [String]
15
+ attr_accessor :account_name
16
+
17
+ # Account Id (i.e. Customer Id of the Sub Account in GFN) of the selected
18
+ # account.
19
+ # @return [Integer]
20
+ attr_accessor :account_id
21
+
22
+ # AccountNumber of the selected account.
23
+ # @return [String]
24
+ attr_accessor :account_number
25
+
26
+ # Nick name of the account
27
+ # @return [String]
28
+ attr_accessor :account_short_name
29
+
30
+ # Addtional SerialId or endpoint Id
31
+ # @return [String]
32
+ attr_accessor :additional1
33
+
34
+ # Addtional SerialId or endpoint Id
35
+ # @return [String]
36
+ attr_accessor :additional2
37
+
38
+ # Addtional SerialId or endpoint Id
39
+ # @return [String]
40
+ attr_accessor :additional3
41
+
42
+ # Addtional SerialId or endpoint Id
43
+ # @return [String]
44
+ attr_accessor :additional4
45
+
46
+ # Allow clearings
47
+ # @return [String]
48
+ attr_accessor :allow_clearing
49
+
50
+ # Autorization code
51
+ # @return [Integer]
52
+ attr_accessor :authorisation_code
53
+
54
+ # Status of the transaction
55
+ # @return [String]
56
+ attr_accessor :transaction_status
57
+
58
+ # Driver Name of Card record
59
+ # @return [String]
60
+ attr_accessor :driver_name
61
+
62
+ # Expiry period of the card
63
+ # @return [Integer]
64
+ attr_accessor :card_expiry_period
65
+
66
+ # Card Expiry Date
67
+ # @return [Date]
68
+ attr_accessor :card_expiry
69
+
70
+ # Card Group Code
71
+ # @return [Integer]
72
+ attr_accessor :card_group_id
73
+
74
+ # Group nmae of the card
75
+ # @return [String]
76
+ attr_accessor :card_group_name
77
+
78
+ # Issuer code
79
+ # @return [Integer]
80
+ attr_accessor :issuer_code
81
+
82
+ # Full Card PAN
83
+ # @return [String]
84
+ attr_accessor :card_pan
85
+
86
+ # Release code
87
+ # @return [Integer]
88
+ attr_accessor :release_code
89
+
90
+ # Sequesnce number of the card
91
+ # @return [Integer]
92
+ attr_accessor :card_sequence_number
93
+
94
+ # Type of card
95
+ # @return [String]
96
+ attr_accessor :card_type
97
+
98
+ # Collecting Company Code (Shell Code) of the selected payer.
99
+ # @return [String]
100
+ attr_accessor :col_co_code
101
+
102
+ # Unit discount Invoice currency
103
+ # @return [Float]
104
+ attr_accessor :unit_discount_invoice_currency
105
+
106
+ # Colco exchange rate
107
+ # @return [Float]
108
+ attr_accessor :col_co_exchange_rate
109
+
110
+ # Currency symbol on which the invoice was raised
111
+ # @return [String]
112
+ attr_accessor :invoice_currency_symbol
113
+
114
+ # Is there any correction
115
+ # @return [TrueClass | FalseClass]
116
+ attr_accessor :correction_flag
117
+
118
+ # CRM number
119
+ # @return [Float]
120
+ attr_accessor :crm_number
121
+
122
+ # Customer country
123
+ # @return [String]
124
+ attr_accessor :customer_country
125
+
126
+ # Curreny which customer uses to transact.
127
+ # @return [String]
128
+ attr_accessor :customer_currency_code
129
+
130
+ # Custome currency symbol
131
+ # @return [String]
132
+ attr_accessor :customer_currency_symbol
133
+
134
+ # Rebate on net amount in customer currency
135
+ # @return [Float]
136
+ attr_accessor :rebateon_net_amount_in_customer_currency
137
+
138
+ # Effective discount in customers currency
139
+ # @return [Float]
140
+ attr_accessor :effective_discount_in_customer_currency
141
+
142
+ # effectiive unit discount in customers currency
143
+ # @return [Float]
144
+ attr_accessor :effective_unit_discount_in_customer_currency
145
+
146
+ # Unitpricing in invoice currency
147
+ # @return [Float]
148
+ attr_accessor :unit_price_in_invoice_currency
149
+
150
+ # Invoice tax
151
+ # @return [Float]
152
+ attr_accessor :invoice_tax
153
+
154
+ # Invoice amount befor tax
155
+ # @return [Float]
156
+ attr_accessor :invoice_gross_amount
157
+
158
+ # Invoice amount after tax
159
+ # @return [Float]
160
+ attr_accessor :invoice_net_amount
161
+
162
+ # Vat on net amount in customer currency
163
+ # @return [Float]
164
+ attr_accessor :va_ton_net_amount_in_customer_currency
165
+
166
+ # Customer retail unit price before tax
167
+ # @return [Float]
168
+ attr_accessor :customer_retail_price_unit_gross
169
+
170
+ # Total Customer retail value before tax
171
+ # @return [Float]
172
+ attr_accessor :customer_retail_value_total_gross
173
+
174
+ # Total customer retail value after tax
175
+ # @return [Float]
176
+ attr_accessor :customer_retail_value_total_net
177
+
178
+ # Trasaction type description
179
+ # @return [Float]
180
+ attr_accessor :transaction_type_description
181
+
182
+ # Rebate give to net amountin transaction currency that is used
183
+ # @return [Float]
184
+ attr_accessor :rebateon_net_amount_in_transaction_currency
185
+
186
+ # Currency used to giveEffective discount on transactions
187
+ # @return [Float]
188
+ attr_accessor :effective_discount_in_trx_currency
189
+
190
+ # Exchange rate between Delco and Colco
191
+ # @return [Integer]
192
+ attr_accessor :del_co_to_col_co_exchange_rate
193
+
194
+ # Exchange rate between Delco and Colco
195
+ # @return [Array[Integer]]
196
+ attr_accessor :cards
197
+
198
+ # Currency used forto provide unit Transaction discount
199
+ # @return [Float]
200
+ attr_accessor :unit_discount_transaction_currency
201
+
202
+ # Transactional amount before tax
203
+ # @return [Float]
204
+ attr_accessor :transaction_gross_amount
205
+
206
+ # Transaction net amount after tax
207
+ # @return [Float]
208
+ attr_accessor :transaction_net_amount
209
+
210
+ # Transaction tax
211
+ # @return [Float]
212
+ attr_accessor :transaction_tax
213
+
214
+ # Transactinal tax rates
215
+ # @return [Float]
216
+ attr_accessor :va_ton_net_amount
217
+
218
+ # Priv
219
+ # @return [Float]
220
+ attr_accessor :delco_list_price_unit_net
221
+
222
+ # Delco retail price per unit before tax
223
+ # @return [Float]
224
+ attr_accessor :delco_retail_price_unit_gross
225
+
226
+ # Delco retail price per unit after tax
227
+ # @return [Float]
228
+ attr_accessor :unit_price_in_transaction_currency
229
+
230
+ # Delco retail price per unit
231
+ # @return [Float]
232
+ attr_accessor :delco_retail_price_unit_net
233
+
234
+ # Delco retail price before tax
235
+ # @return [Float]
236
+ attr_accessor :delco_retail_value_total_gross
237
+
238
+ # Delco per unit price after tax
239
+ # @return [Float]
240
+ attr_accessor :delco_retail_value_total_net
241
+
242
+ # Currency used for transaction.
243
+ # @return [String]
244
+ attr_accessor :transaction_currency_symbol
245
+
246
+ # Type of discount available
247
+ # @return [String]
248
+ attr_accessor :discount_type
249
+
250
+ # Is there any dispute status?True or False
251
+ # @return [TrueClass | FalseClass]
252
+ attr_accessor :dispute_status
253
+
254
+ # Is it a shell sites?True or False
255
+ # @return [TrueClass | FalseClass]
256
+ attr_accessor :is_shell_site
257
+
258
+ # Fleet identifier
259
+ # @return [String]
260
+ attr_accessor :fleet_id_input
261
+
262
+ # In coming product code
263
+ # @return [Integer]
264
+ attr_accessor :incoming_product_code
265
+
266
+ # Date of Posting
267
+ # @return [Date]
268
+ attr_accessor :posting_date
269
+
270
+ # Time whern posting happened
271
+ # @return [DateTime]
272
+ attr_accessor :posting_time
273
+
274
+ # Product Code - 21 Unleaded - High octane,22 Unleaded - Medium octane,23
275
+ # Unleaded - Low octane,24 Unleaded Environmental
276
+ # @return [Integer]
277
+ attr_accessor :product_code
278
+
279
+ # Name of the product
280
+ # @return [String]
281
+ attr_accessor :product_name
282
+
283
+ # Id of the product to which group it belongs
284
+ # @return [Integer]
285
+ attr_accessor :product_group_id
286
+
287
+ # In coming currecncy code
288
+ # @return [String]
289
+ attr_accessor :incoming_currency_code
290
+
291
+ # In coming Site description
292
+ # @return [String]
293
+ attr_accessor :incoming_site_description
294
+
295
+ # Location of the Shell site
296
+ # @return [String]
297
+ attr_accessor :location
298
+
299
+ # Shell site name
300
+ # @return [String]
301
+ attr_accessor :site_name
302
+
303
+ # Shell site code
304
+ # @return [Integer]
305
+ attr_accessor :site_code
306
+
307
+ # In coming site number
308
+ # @return [Integer]
309
+ attr_accessor :incoming_site_number
310
+
311
+ # Currency code on which the invoice is raised
312
+ # @return [String]
313
+ attr_accessor :invoice_currency_code
314
+
315
+ # Date on which the invoice was raised
316
+ # @return [Date]
317
+ attr_accessor :invoice_date
318
+
319
+ # Invoice number
320
+ # @return [Float]
321
+ attr_accessor :invoice_number
322
+
323
+ # Is it a fuel product? True or False
324
+ # @return [TrueClass | FalseClass]
325
+ attr_accessor :fuel_product
326
+
327
+ # Is VAT applicable?Y or N
328
+ # @return [String]
329
+ attr_accessor :vat_applicable
330
+
331
+ # Name of the payer
332
+ # @return [String]
333
+ attr_accessor :payer_name
334
+
335
+ # Payer account number
336
+ # @return [String]
337
+ attr_accessor :payer_number
338
+
339
+ # Parent account number of the payer
340
+ # @return [String]
341
+ attr_accessor :parent_customer_number
342
+
343
+ # The group which the payer belongs to
344
+ # @return [String]
345
+ attr_accessor :payer_group
346
+
347
+ # Name of the group to which the payer belongs to.
348
+ # @return [String]
349
+ attr_accessor :payer_group_name
350
+
351
+ # Check digit
352
+ # @return [Integer]
353
+ attr_accessor :check_digit
354
+
355
+ # After tax net invoice number
356
+ # @return [String]
357
+ attr_accessor :net_invoice_indicator
358
+
359
+ # Delco code
360
+ # @return [Integer]
361
+ attr_accessor :delco_code
362
+
363
+ # Network code of the payer
364
+ # @return [Integer]
365
+ attr_accessor :network_code
366
+
367
+ # Country of purchase
368
+ # @return [String]
369
+ attr_accessor :purchased_in_country
370
+
371
+ # Country where the site exists
372
+ # @return [String]
373
+ attr_accessor :site_country
374
+
375
+ # Country where VAT is applicable
376
+ # @return [String]
377
+ attr_accessor :vat_country
378
+
379
+ # Name of the delivery company
380
+ # @return [String]
381
+ attr_accessor :delco_name
382
+
383
+ # Network of the Delivery company
384
+ # @return [String]
385
+ attr_accessor :network
386
+
387
+ # Odometet input
388
+ # @return [Integer]
389
+ attr_accessor :odometer_input
390
+
391
+ # Original item identifier for sales
392
+ # @return [String]
393
+ attr_accessor :original_sales_item_id
394
+
395
+ # Fleet identifier description
396
+ # @return [String]
397
+ attr_accessor :fleet_id_description
398
+
399
+ # Identifier of parent customer
400
+ # @return [Integer]
401
+ attr_accessor :parent_customer_id
402
+
403
+ # PIN indicator
404
+ # @return [String]
405
+ attr_accessor :pin_indicator
406
+
407
+ # Name og the group the product belongs to
408
+ # @return [String]
409
+ attr_accessor :product_group_name
410
+
411
+ # The countroy code where the purchase was made
412
+ # @return [String]
413
+ attr_accessor :purchased_in_country_code
414
+
415
+ # Quantity of the product
416
+ # @return [Float]
417
+ attr_accessor :quantity
418
+
419
+ # Rebate rate if any
420
+ # @return [Float]
421
+ attr_accessor :rebate_rate
422
+
423
+ # Reciept number
424
+ # @return [Integer]
425
+ attr_accessor :receipt_number
426
+
427
+ # Flag to check if there is any refund
428
+ # @return [PricedTransactionRespV2RefundFlagEnum]
429
+ attr_accessor :refund_flag
430
+
431
+ # Group identifier for the site
432
+ # @return [Integer]
433
+ attr_accessor :site_group_id
434
+
435
+ # Name of the Site group
436
+ # @return [String]
437
+ attr_accessor :site_group_name
438
+
439
+ # Latitude of the site
440
+ # @return [Float]
441
+ attr_accessor :latitude
442
+
443
+ # Longitude of the site
444
+ # @return [Float]
445
+ attr_accessor :longitude
446
+
447
+ # Delivery company exchange rate
448
+ # @return [Float]
449
+ attr_accessor :del_co_exchange_rate
450
+
451
+ # Rebate amount in Euros
452
+ # @return [Float]
453
+ attr_accessor :euro_rebate_amount
454
+
455
+ # Net amount in Euros
456
+ # @return [Float]
457
+ attr_accessor :net_euro_amount
458
+
459
+ # Vat amount in Euros
460
+ # @return [Float]
461
+ attr_accessor :euro_vat_amount
462
+
463
+ # Customers parent name
464
+ # @return [String]
465
+ attr_accessor :parent_customer_name
466
+
467
+ # Is invoice raised
468
+ # @return [TrueClass | FalseClass]
469
+ attr_accessor :is_invoiced
470
+
471
+ # Transaction currency code
472
+ # @return [String]
473
+ attr_accessor :transaction_currency_code
474
+
475
+ # Is it Credit or debit C for credit D for Debit
476
+ # @return [String]
477
+ attr_accessor :credit_debit_code
478
+
479
+ # Date of transaction
480
+ # @return [Date]
481
+ attr_accessor :transaction_date
482
+
483
+ # Time of transaction
484
+ # @return [DateTime]
485
+ attr_accessor :transaction_time
486
+
487
+ # Identifier of the Iem in transaction
488
+ # @return [String]
489
+ attr_accessor :transaction_item_id
490
+
491
+ # Transaction identifier
492
+ # @return [String]
493
+ attr_accessor :trn_identifier
494
+
495
+ # Transaction type for Delco
496
+ # @return [String]
497
+ attr_accessor :type
498
+
499
+ # Transaction type for Delco
500
+ # @return [Integer]
501
+ attr_accessor :transaction_line
502
+
503
+ # Transaction type Colco
504
+ # @return [String]
505
+ attr_accessor :transaction_type
506
+
507
+ # Leaving country
508
+ # @return [String]
509
+ attr_accessor :utc_offset
510
+
511
+ # To which category and counry does the VAT come under
512
+ # @return [String]
513
+ attr_accessor :vat_category
514
+
515
+ # VAT rate
516
+ # @return [Float]
517
+ attr_accessor :vat_rate
518
+
519
+ # Vehicle registration number
520
+ # @return [String]
521
+ attr_accessor :vehicle_registration
522
+
523
+ # Check if the pruchase is cancelled
524
+ # @return [String]
525
+ attr_accessor :is_cancelled
526
+
527
+ # Gross amount from Colco
528
+ # @return [Float]
529
+ attr_accessor :col_co_gross_amount
530
+
531
+ # Net amount from Colco
532
+ # @return [Float]
533
+ attr_accessor :col_co_net_amount
534
+
535
+ # Colco VAT amount
536
+ # @return [Float]
537
+ attr_accessor :col_co_vat_amount
538
+
539
+ # Original currency code
540
+ # @return [String]
541
+ attr_accessor :original_currency_symbol
542
+
543
+ # Original currency code
544
+ # @return [String]
545
+ attr_accessor :original_currency_code
546
+
547
+ # Original VAT amount
548
+ # @return [Float]
549
+ attr_accessor :original_vat_amount
550
+
551
+ # Comapany name embosses in text
552
+ # @return [String]
553
+ attr_accessor :emboss_text
554
+
555
+ # Orginal exchange rate
556
+ # @return [Float]
557
+ attr_accessor :original_exchange_rate
558
+
559
+ # Original treansaction date
560
+ # @return [Date]
561
+ attr_accessor :original_transaction_item_invoice_date
562
+
563
+ # Fee type identifier
564
+ # @return [Integer]
565
+ attr_accessor :fee_type_id
566
+
567
+ # Line item identifier of the product
568
+ # @return [TrueClass | FalseClass]
569
+ attr_accessor :line_item_description
570
+
571
+ # Fee rule description
572
+ # @return [String]
573
+ attr_accessor :fee_rule_description
574
+
575
+ # Frequency of transaction
576
+ # @return [Integer]
577
+ attr_accessor :frequency
578
+
579
+ # Fee rule identifier
580
+ # @return [Integer]
581
+ attr_accessor :fee_rule_id
582
+
583
+ # Entry date in the system
584
+ # @return [Date]
585
+ attr_accessor :system_entry_date
586
+
587
+ # Entry time in the system
588
+ # @return [DateTime]
589
+ attr_accessor :system_entry_time
590
+
591
+ # Checking if its manual
592
+ # @return [String]
593
+ attr_accessor :is_manual
594
+
595
+ # Is it manual
596
+ # @return [String]
597
+ attr_accessor :original_transaction_item_id
598
+
599
+ # Original invoice transaction number
600
+ # @return [Integer]
601
+ attr_accessor :original_transaction_item_invoice_number
602
+
603
+ # Original Invoice transaction Identifier
604
+ # @return [Integer]
605
+ attr_accessor :original_transaction_item_invoice_id
606
+
607
+ # Payers short name
608
+ # @return [String]
609
+ attr_accessor :payer_short_name
610
+
611
+ # Is reverse charge?
612
+ # @return [String]
613
+ attr_accessor :reverse_charge
614
+
615
+ # Original gross amount
616
+ # @return [Float]
617
+ attr_accessor :original_gross_amount
618
+
619
+ # Original Net amount
620
+ # @return [Float]
621
+ attr_accessor :original_net_amount
622
+
623
+ # Unit of measure
624
+ # @return [String]
625
+ attr_accessor :unit_of_measure
626
+
627
+ # Type of road
628
+ # @return [String]
629
+ attr_accessor :road_type
630
+
631
+ # Customer country ISO Code
632
+ # @return [String]
633
+ attr_accessor :customer_country_iso_code
634
+
635
+ # EvOperator Name
636
+ # @return [String]
637
+ attr_accessor :ev_operator
638
+
639
+ # Ev Operator identifier
640
+ # @return [String]
641
+ attr_accessor :ev_serial_id
642
+
643
+ # EV Charging point iserial identifier
644
+ # @return [String]
645
+ attr_accessor :ev_charge_point_serial
646
+
647
+ # Ev chariging connector type
648
+ # @return [Integer]
649
+ attr_accessor :ev_charge_point_connector_type
650
+
651
+ # EV charging point connector type description
652
+ # @return [String]
653
+ attr_accessor :ev_charge_point_connector_type_description
654
+
655
+ # Ev charging Duration
656
+ # @return [String]
657
+ attr_accessor :ev_charge_duration
658
+
659
+ # EvCharging start Date
660
+ # @return [Date]
661
+ attr_accessor :ev_charge_start_date
662
+
663
+ # EvCharging start time
664
+ # @return [DateTime]
665
+ attr_accessor :ev_charge_start_time
666
+
667
+ # EvCharging End Date
668
+ # @return [Date]
669
+ attr_accessor :ev_charge_end_date
670
+
671
+ # EvCharging End time
672
+ # @return [DateTime]
673
+ attr_accessor :ev_charge_end_time
674
+
675
+ # EvCharging End time
676
+ # @return [Integer]
677
+ attr_accessor :hosting_collecting_company_number
678
+
679
+ # EvCharging End time
680
+ # @return [Float]
681
+ attr_accessor :transaction_id
682
+
683
+ # EvCharging End time
684
+ # @return [TrueClass | FalseClass]
685
+ attr_accessor :fuel_only
686
+
687
+ # A mapping from model property names to API property names.
688
+ def self.names
689
+ @_hash = {} if @_hash.nil?
690
+ @_hash['account_name'] = 'AccountName'
691
+ @_hash['account_id'] = 'AccountId'
692
+ @_hash['account_number'] = 'AccountNumber'
693
+ @_hash['account_short_name'] = 'AccountShortName'
694
+ @_hash['additional1'] = 'Additional1'
695
+ @_hash['additional2'] = 'Additional2'
696
+ @_hash['additional3'] = 'Additional3'
697
+ @_hash['additional4'] = 'Additional4'
698
+ @_hash['allow_clearing'] = 'AllowClearing'
699
+ @_hash['authorisation_code'] = 'AuthorisationCode'
700
+ @_hash['transaction_status'] = 'TransactionStatus'
701
+ @_hash['driver_name'] = 'DriverName'
702
+ @_hash['card_expiry_period'] = 'CardExpiryPeriod'
703
+ @_hash['card_expiry'] = 'CardExpiry'
704
+ @_hash['card_group_id'] = 'CardGroupId'
705
+ @_hash['card_group_name'] = 'CardGroupName'
706
+ @_hash['issuer_code'] = 'IssuerCode'
707
+ @_hash['card_pan'] = 'CardPAN'
708
+ @_hash['release_code'] = 'ReleaseCode'
709
+ @_hash['card_sequence_number'] = 'CardSequenceNumber'
710
+ @_hash['card_type'] = 'CardType'
711
+ @_hash['col_co_code'] = 'ColCoCode'
712
+ @_hash['unit_discount_invoice_currency'] = 'UnitDiscountInvoiceCurrency'
713
+ @_hash['col_co_exchange_rate'] = 'ColCoExchangeRate'
714
+ @_hash['invoice_currency_symbol'] = 'InvoiceCurrencySymbol'
715
+ @_hash['correction_flag'] = 'CorrectionFlag'
716
+ @_hash['crm_number'] = 'CRMNumber'
717
+ @_hash['customer_country'] = 'CustomerCountry'
718
+ @_hash['customer_currency_code'] = 'CustomerCurrencyCode'
719
+ @_hash['customer_currency_symbol'] = 'CustomerCurrencySymbol'
720
+ @_hash['rebateon_net_amount_in_customer_currency'] =
721
+ 'RebateonNetAmountInCustomerCurrency'
722
+ @_hash['effective_discount_in_customer_currency'] =
723
+ 'EffectiveDiscountInCustomerCurrency'
724
+ @_hash['effective_unit_discount_in_customer_currency'] =
725
+ 'EffectiveUnitDiscountInCustomerCurrency'
726
+ @_hash['unit_price_in_invoice_currency'] = 'UnitPriceInInvoiceCurrency'
727
+ @_hash['invoice_tax'] = 'InvoiceTax'
728
+ @_hash['invoice_gross_amount'] = 'InvoiceGrossAmount'
729
+ @_hash['invoice_net_amount'] = 'InvoiceNetAmount'
730
+ @_hash['va_ton_net_amount_in_customer_currency'] =
731
+ 'VATonNetAmountInCustomerCurrency'
732
+ @_hash['customer_retail_price_unit_gross'] =
733
+ 'CustomerRetailPriceUnitGross'
734
+ @_hash['customer_retail_value_total_gross'] =
735
+ 'CustomerRetailValueTotalGross'
736
+ @_hash['customer_retail_value_total_net'] =
737
+ 'CustomerRetailValueTotalNet'
738
+ @_hash['transaction_type_description'] = 'TransactionTypeDescription'
739
+ @_hash['rebateon_net_amount_in_transaction_currency'] =
740
+ 'RebateonNetAmountInTransactionCurrency'
741
+ @_hash['effective_discount_in_trx_currency'] =
742
+ 'EffectiveDiscountInTrxCurrency'
743
+ @_hash['del_co_to_col_co_exchange_rate'] = 'DelCoToColCoExchangeRate'
744
+ @_hash['cards'] = 'Cards'
745
+ @_hash['unit_discount_transaction_currency'] =
746
+ 'UnitDiscountTransactionCurrency'
747
+ @_hash['transaction_gross_amount'] = 'TransactionGrossAmount'
748
+ @_hash['transaction_net_amount'] = 'TransactionNetAmount'
749
+ @_hash['transaction_tax'] = 'TransactionTax'
750
+ @_hash['va_ton_net_amount'] = 'VATonNetAmount'
751
+ @_hash['delco_list_price_unit_net'] = 'DelcoListPriceUnitNet'
752
+ @_hash['delco_retail_price_unit_gross'] = 'DelcoRetailPriceUnitGross'
753
+ @_hash['unit_price_in_transaction_currency'] =
754
+ 'UnitPriceInTransactionCurrency'
755
+ @_hash['delco_retail_price_unit_net'] = 'DelcoRetailPriceUnitNet'
756
+ @_hash['delco_retail_value_total_gross'] = 'DelcoRetailValueTotalGross'
757
+ @_hash['delco_retail_value_total_net'] = 'DelcoRetailValueTotalNet'
758
+ @_hash['transaction_currency_symbol'] = 'TransactionCurrencySymbol'
759
+ @_hash['discount_type'] = 'DiscountType'
760
+ @_hash['dispute_status'] = 'DisputeStatus'
761
+ @_hash['is_shell_site'] = 'IsShellSite'
762
+ @_hash['fleet_id_input'] = 'FleetIdInput'
763
+ @_hash['incoming_product_code'] = 'IncomingProductCode'
764
+ @_hash['posting_date'] = 'PostingDate'
765
+ @_hash['posting_time'] = 'PostingTime'
766
+ @_hash['product_code'] = 'ProductCode'
767
+ @_hash['product_name'] = 'ProductName'
768
+ @_hash['product_group_id'] = 'ProductGroupId'
769
+ @_hash['incoming_currency_code'] = 'IncomingCurrencyCode'
770
+ @_hash['incoming_site_description'] = 'IncomingSiteDescription'
771
+ @_hash['location'] = 'Location'
772
+ @_hash['site_name'] = 'SiteName'
773
+ @_hash['site_code'] = 'SiteCode'
774
+ @_hash['incoming_site_number'] = 'IncomingSiteNumber'
775
+ @_hash['invoice_currency_code'] = 'InvoiceCurrencyCode'
776
+ @_hash['invoice_date'] = 'InvoiceDate'
777
+ @_hash['invoice_number'] = 'InvoiceNumber'
778
+ @_hash['fuel_product'] = 'FuelProduct'
779
+ @_hash['vat_applicable'] = 'VATApplicable'
780
+ @_hash['payer_name'] = 'PayerName'
781
+ @_hash['payer_number'] = 'PayerNumber'
782
+ @_hash['parent_customer_number'] = 'ParentCustomerNumber'
783
+ @_hash['payer_group'] = 'PayerGroup'
784
+ @_hash['payer_group_name'] = 'PayerGroupName'
785
+ @_hash['check_digit'] = 'CheckDigit'
786
+ @_hash['net_invoice_indicator'] = 'NetInvoiceIndicator'
787
+ @_hash['delco_code'] = 'DelcoCode'
788
+ @_hash['network_code'] = 'NetworkCode'
789
+ @_hash['purchased_in_country'] = 'PurchasedInCountry'
790
+ @_hash['site_country'] = 'SiteCountry'
791
+ @_hash['vat_country'] = 'VATCountry'
792
+ @_hash['delco_name'] = 'DelcoName'
793
+ @_hash['network'] = 'Network'
794
+ @_hash['odometer_input'] = 'OdometerInput'
795
+ @_hash['original_sales_item_id'] = 'OriginalSalesItemId'
796
+ @_hash['fleet_id_description'] = 'FleetIDDescription'
797
+ @_hash['parent_customer_id'] = 'ParentCustomerId'
798
+ @_hash['pin_indicator'] = 'PINIndicator'
799
+ @_hash['product_group_name'] = 'ProductGroupName'
800
+ @_hash['purchased_in_country_code'] = 'PurchasedInCountryCode'
801
+ @_hash['quantity'] = 'Quantity'
802
+ @_hash['rebate_rate'] = 'RebateRate'
803
+ @_hash['receipt_number'] = 'ReceiptNumber'
804
+ @_hash['refund_flag'] = 'RefundFlag'
805
+ @_hash['site_group_id'] = 'SiteGroupId'
806
+ @_hash['site_group_name'] = 'SiteGroupName'
807
+ @_hash['latitude'] = 'Latitude'
808
+ @_hash['longitude'] = 'Longitude'
809
+ @_hash['del_co_exchange_rate'] = 'DelCoExchangeRate'
810
+ @_hash['euro_rebate_amount'] = 'EuroRebateAmount'
811
+ @_hash['net_euro_amount'] = 'NetEuroAmount'
812
+ @_hash['euro_vat_amount'] = 'EuroVATAmount'
813
+ @_hash['parent_customer_name'] = 'ParentCustomerName'
814
+ @_hash['is_invoiced'] = 'IsInvoiced'
815
+ @_hash['transaction_currency_code'] = 'TransactionCurrencyCode'
816
+ @_hash['credit_debit_code'] = 'CreditDebitCode'
817
+ @_hash['transaction_date'] = 'TransactionDate'
818
+ @_hash['transaction_time'] = 'TransactionTime'
819
+ @_hash['transaction_item_id'] = 'TransactionItemId'
820
+ @_hash['trn_identifier'] = 'TrnIdentifier'
821
+ @_hash['type'] = 'Type'
822
+ @_hash['transaction_line'] = 'TransactionLine'
823
+ @_hash['transaction_type'] = 'TransactionType'
824
+ @_hash['utc_offset'] = 'UTCOffset'
825
+ @_hash['vat_category'] = 'VATCategory'
826
+ @_hash['vat_rate'] = 'VATRate'
827
+ @_hash['vehicle_registration'] = 'VehicleRegistration'
828
+ @_hash['is_cancelled'] = 'IsCancelled'
829
+ @_hash['col_co_gross_amount'] = 'ColCoGrossAmount'
830
+ @_hash['col_co_net_amount'] = 'ColCoNetAmount'
831
+ @_hash['col_co_vat_amount'] = 'ColCoVATAmount'
832
+ @_hash['original_currency_symbol'] = 'OriginalCurrencySymbol'
833
+ @_hash['original_currency_code'] = 'OriginalCurrencyCode'
834
+ @_hash['original_vat_amount'] = 'OriginalVATAmount'
835
+ @_hash['emboss_text'] = 'EmbossText'
836
+ @_hash['original_exchange_rate'] = 'OriginalExchangeRate'
837
+ @_hash['original_transaction_item_invoice_date'] =
838
+ 'OriginalTransactionItemInvoiceDate'
839
+ @_hash['fee_type_id'] = 'FeeTypeId'
840
+ @_hash['line_item_description'] = 'LineItemDescription'
841
+ @_hash['fee_rule_description'] = 'FeeRuleDescription'
842
+ @_hash['frequency'] = 'Frequency'
843
+ @_hash['fee_rule_id'] = 'FeeRuleId'
844
+ @_hash['system_entry_date'] = 'SystemEntryDate'
845
+ @_hash['system_entry_time'] = 'SystemEntryTime'
846
+ @_hash['is_manual'] = 'IsManual'
847
+ @_hash['original_transaction_item_id'] = 'OriginalTransactionItemId'
848
+ @_hash['original_transaction_item_invoice_number'] =
849
+ 'OriginalTransactionItemInvoiceNumber'
850
+ @_hash['original_transaction_item_invoice_id'] =
851
+ 'OriginalTransactionItemInvoiceId'
852
+ @_hash['payer_short_name'] = 'PayerShortName'
853
+ @_hash['reverse_charge'] = 'ReverseCharge'
854
+ @_hash['original_gross_amount'] = 'OriginalGrossAmount'
855
+ @_hash['original_net_amount'] = 'OriginalNetAmount'
856
+ @_hash['unit_of_measure'] = 'UnitOfMeasure'
857
+ @_hash['road_type'] = 'RoadType'
858
+ @_hash['customer_country_iso_code'] = 'CustomerCountryIsoCode'
859
+ @_hash['ev_operator'] = 'EVOperator'
860
+ @_hash['ev_serial_id'] = 'EVSerialId'
861
+ @_hash['ev_charge_point_serial'] = 'EVChargePointSerial'
862
+ @_hash['ev_charge_point_connector_type'] = 'EVChargePointConnectorType'
863
+ @_hash['ev_charge_point_connector_type_description'] =
864
+ 'EVChargePointConnectorTypeDescription'
865
+ @_hash['ev_charge_duration'] = 'EVChargeDuration'
866
+ @_hash['ev_charge_start_date'] = 'EVChargeStartDate'
867
+ @_hash['ev_charge_start_time'] = 'EVChargeStartTime'
868
+ @_hash['ev_charge_end_date'] = 'EVChargeEndDate'
869
+ @_hash['ev_charge_end_time'] = 'EVChargeEndTime'
870
+ @_hash['hosting_collecting_company_number'] =
871
+ 'HostingCollectingCompanyNumber'
872
+ @_hash['transaction_id'] = 'TransactionId'
873
+ @_hash['fuel_only'] = 'FuelOnly'
874
+ @_hash
875
+ end
876
+
877
+ # An array for optional fields
878
+ def self.optionals
879
+ %w[
880
+ account_name
881
+ account_id
882
+ account_number
883
+ account_short_name
884
+ additional1
885
+ additional2
886
+ additional3
887
+ additional4
888
+ allow_clearing
889
+ authorisation_code
890
+ transaction_status
891
+ driver_name
892
+ card_expiry_period
893
+ card_expiry
894
+ card_group_id
895
+ card_group_name
896
+ issuer_code
897
+ card_pan
898
+ release_code
899
+ card_sequence_number
900
+ card_type
901
+ col_co_code
902
+ unit_discount_invoice_currency
903
+ col_co_exchange_rate
904
+ invoice_currency_symbol
905
+ correction_flag
906
+ crm_number
907
+ customer_country
908
+ customer_currency_code
909
+ customer_currency_symbol
910
+ rebateon_net_amount_in_customer_currency
911
+ effective_discount_in_customer_currency
912
+ effective_unit_discount_in_customer_currency
913
+ unit_price_in_invoice_currency
914
+ invoice_tax
915
+ invoice_gross_amount
916
+ invoice_net_amount
917
+ va_ton_net_amount_in_customer_currency
918
+ customer_retail_price_unit_gross
919
+ customer_retail_value_total_gross
920
+ customer_retail_value_total_net
921
+ transaction_type_description
922
+ rebateon_net_amount_in_transaction_currency
923
+ effective_discount_in_trx_currency
924
+ del_co_to_col_co_exchange_rate
925
+ cards
926
+ unit_discount_transaction_currency
927
+ transaction_gross_amount
928
+ transaction_net_amount
929
+ transaction_tax
930
+ va_ton_net_amount
931
+ delco_list_price_unit_net
932
+ delco_retail_price_unit_gross
933
+ unit_price_in_transaction_currency
934
+ delco_retail_price_unit_net
935
+ delco_retail_value_total_gross
936
+ delco_retail_value_total_net
937
+ transaction_currency_symbol
938
+ discount_type
939
+ dispute_status
940
+ is_shell_site
941
+ fleet_id_input
942
+ incoming_product_code
943
+ posting_date
944
+ posting_time
945
+ product_code
946
+ product_name
947
+ product_group_id
948
+ incoming_currency_code
949
+ incoming_site_description
950
+ location
951
+ site_name
952
+ site_code
953
+ incoming_site_number
954
+ invoice_currency_code
955
+ invoice_date
956
+ invoice_number
957
+ fuel_product
958
+ vat_applicable
959
+ payer_name
960
+ payer_number
961
+ parent_customer_number
962
+ payer_group
963
+ payer_group_name
964
+ check_digit
965
+ net_invoice_indicator
966
+ delco_code
967
+ network_code
968
+ purchased_in_country
969
+ site_country
970
+ vat_country
971
+ delco_name
972
+ network
973
+ odometer_input
974
+ original_sales_item_id
975
+ fleet_id_description
976
+ parent_customer_id
977
+ pin_indicator
978
+ product_group_name
979
+ purchased_in_country_code
980
+ quantity
981
+ rebate_rate
982
+ receipt_number
983
+ refund_flag
984
+ site_group_id
985
+ site_group_name
986
+ latitude
987
+ longitude
988
+ del_co_exchange_rate
989
+ euro_rebate_amount
990
+ net_euro_amount
991
+ euro_vat_amount
992
+ parent_customer_name
993
+ is_invoiced
994
+ transaction_currency_code
995
+ credit_debit_code
996
+ transaction_date
997
+ transaction_time
998
+ transaction_item_id
999
+ trn_identifier
1000
+ type
1001
+ transaction_line
1002
+ transaction_type
1003
+ utc_offset
1004
+ vat_category
1005
+ vat_rate
1006
+ vehicle_registration
1007
+ is_cancelled
1008
+ col_co_gross_amount
1009
+ col_co_net_amount
1010
+ col_co_vat_amount
1011
+ original_currency_symbol
1012
+ original_currency_code
1013
+ original_vat_amount
1014
+ emboss_text
1015
+ original_exchange_rate
1016
+ original_transaction_item_invoice_date
1017
+ fee_type_id
1018
+ line_item_description
1019
+ fee_rule_description
1020
+ frequency
1021
+ fee_rule_id
1022
+ system_entry_date
1023
+ system_entry_time
1024
+ is_manual
1025
+ original_transaction_item_id
1026
+ original_transaction_item_invoice_number
1027
+ original_transaction_item_invoice_id
1028
+ payer_short_name
1029
+ reverse_charge
1030
+ original_gross_amount
1031
+ original_net_amount
1032
+ unit_of_measure
1033
+ road_type
1034
+ customer_country_iso_code
1035
+ ev_operator
1036
+ ev_serial_id
1037
+ ev_charge_point_serial
1038
+ ev_charge_point_connector_type
1039
+ ev_charge_point_connector_type_description
1040
+ ev_charge_duration
1041
+ ev_charge_start_date
1042
+ ev_charge_start_time
1043
+ ev_charge_end_date
1044
+ ev_charge_end_time
1045
+ hosting_collecting_company_number
1046
+ transaction_id
1047
+ fuel_only
1048
+ ]
1049
+ end
1050
+
1051
+ # An array for nullable fields
1052
+ def self.nullables
1053
+ %w[
1054
+ account_name
1055
+ account_id
1056
+ account_number
1057
+ account_short_name
1058
+ additional1
1059
+ additional2
1060
+ additional3
1061
+ additional4
1062
+ allow_clearing
1063
+ authorisation_code
1064
+ transaction_status
1065
+ driver_name
1066
+ card_expiry_period
1067
+ card_expiry
1068
+ card_group_id
1069
+ card_group_name
1070
+ issuer_code
1071
+ card_pan
1072
+ release_code
1073
+ card_sequence_number
1074
+ card_type
1075
+ col_co_code
1076
+ unit_discount_invoice_currency
1077
+ invoice_currency_symbol
1078
+ correction_flag
1079
+ crm_number
1080
+ customer_country
1081
+ customer_currency_code
1082
+ customer_currency_symbol
1083
+ rebateon_net_amount_in_customer_currency
1084
+ effective_discount_in_customer_currency
1085
+ effective_unit_discount_in_customer_currency
1086
+ unit_price_in_invoice_currency
1087
+ invoice_tax
1088
+ invoice_gross_amount
1089
+ invoice_net_amount
1090
+ va_ton_net_amount_in_customer_currency
1091
+ customer_retail_price_unit_gross
1092
+ customer_retail_value_total_gross
1093
+ customer_retail_value_total_net
1094
+ transaction_type_description
1095
+ rebateon_net_amount_in_transaction_currency
1096
+ effective_discount_in_trx_currency
1097
+ del_co_to_col_co_exchange_rate
1098
+ unit_discount_transaction_currency
1099
+ transaction_gross_amount
1100
+ transaction_net_amount
1101
+ transaction_tax
1102
+ va_ton_net_amount
1103
+ delco_list_price_unit_net
1104
+ delco_retail_price_unit_gross
1105
+ unit_price_in_transaction_currency
1106
+ delco_retail_price_unit_net
1107
+ delco_retail_value_total_gross
1108
+ delco_retail_value_total_net
1109
+ transaction_currency_symbol
1110
+ discount_type
1111
+ dispute_status
1112
+ fleet_id_input
1113
+ incoming_product_code
1114
+ posting_date
1115
+ posting_time
1116
+ product_code
1117
+ product_name
1118
+ product_group_id
1119
+ incoming_currency_code
1120
+ incoming_site_description
1121
+ location
1122
+ site_name
1123
+ site_code
1124
+ incoming_site_number
1125
+ invoice_currency_code
1126
+ invoice_date
1127
+ invoice_number
1128
+ fuel_product
1129
+ vat_applicable
1130
+ payer_name
1131
+ payer_number
1132
+ parent_customer_number
1133
+ payer_group
1134
+ payer_group_name
1135
+ check_digit
1136
+ net_invoice_indicator
1137
+ delco_code
1138
+ network_code
1139
+ purchased_in_country
1140
+ site_country
1141
+ vat_country
1142
+ delco_name
1143
+ network
1144
+ odometer_input
1145
+ original_sales_item_id
1146
+ fleet_id_description
1147
+ parent_customer_id
1148
+ pin_indicator
1149
+ product_group_name
1150
+ purchased_in_country_code
1151
+ quantity
1152
+ rebate_rate
1153
+ receipt_number
1154
+ site_group_id
1155
+ site_group_name
1156
+ latitude
1157
+ longitude
1158
+ del_co_exchange_rate
1159
+ euro_rebate_amount
1160
+ net_euro_amount
1161
+ euro_vat_amount
1162
+ parent_customer_name
1163
+ is_invoiced
1164
+ transaction_currency_code
1165
+ credit_debit_code
1166
+ transaction_date
1167
+ transaction_time
1168
+ transaction_item_id
1169
+ trn_identifier
1170
+ type
1171
+ transaction_line
1172
+ transaction_type
1173
+ utc_offset
1174
+ vat_category
1175
+ vat_rate
1176
+ vehicle_registration
1177
+ is_cancelled
1178
+ col_co_gross_amount
1179
+ col_co_net_amount
1180
+ col_co_vat_amount
1181
+ original_currency_symbol
1182
+ original_currency_code
1183
+ original_vat_amount
1184
+ emboss_text
1185
+ original_exchange_rate
1186
+ original_transaction_item_invoice_date
1187
+ fee_type_id
1188
+ line_item_description
1189
+ fee_rule_description
1190
+ frequency
1191
+ fee_rule_id
1192
+ system_entry_date
1193
+ system_entry_time
1194
+ is_manual
1195
+ original_transaction_item_id
1196
+ original_transaction_item_invoice_number
1197
+ original_transaction_item_invoice_id
1198
+ payer_short_name
1199
+ reverse_charge
1200
+ original_gross_amount
1201
+ original_net_amount
1202
+ unit_of_measure
1203
+ road_type
1204
+ customer_country_iso_code
1205
+ ev_operator
1206
+ ev_serial_id
1207
+ ev_charge_point_serial
1208
+ ev_charge_point_connector_type
1209
+ ev_charge_point_connector_type_description
1210
+ ev_charge_duration
1211
+ ev_charge_start_date
1212
+ ev_charge_start_time
1213
+ ev_charge_end_date
1214
+ ev_charge_end_time
1215
+ hosting_collecting_company_number
1216
+ transaction_id
1217
+ fuel_only
1218
+ ]
1219
+ end
1220
+
1221
+ def initialize(account_name = SKIP,
1222
+ account_id = SKIP,
1223
+ account_number = SKIP,
1224
+ account_short_name = SKIP,
1225
+ additional1 = SKIP,
1226
+ additional2 = SKIP,
1227
+ additional3 = SKIP,
1228
+ additional4 = SKIP,
1229
+ allow_clearing = SKIP,
1230
+ authorisation_code = SKIP,
1231
+ transaction_status = SKIP,
1232
+ driver_name = SKIP,
1233
+ card_expiry_period = SKIP,
1234
+ card_expiry = SKIP,
1235
+ card_group_id = SKIP,
1236
+ card_group_name = SKIP,
1237
+ issuer_code = SKIP,
1238
+ card_pan = SKIP,
1239
+ release_code = SKIP,
1240
+ card_sequence_number = SKIP,
1241
+ card_type = SKIP,
1242
+ col_co_code = SKIP,
1243
+ unit_discount_invoice_currency = SKIP,
1244
+ col_co_exchange_rate = SKIP,
1245
+ invoice_currency_symbol = SKIP,
1246
+ correction_flag = SKIP,
1247
+ crm_number = SKIP,
1248
+ customer_country = SKIP,
1249
+ customer_currency_code = SKIP,
1250
+ customer_currency_symbol = SKIP,
1251
+ rebateon_net_amount_in_customer_currency = SKIP,
1252
+ effective_discount_in_customer_currency = SKIP,
1253
+ effective_unit_discount_in_customer_currency = SKIP,
1254
+ unit_price_in_invoice_currency = SKIP,
1255
+ invoice_tax = SKIP,
1256
+ invoice_gross_amount = SKIP,
1257
+ invoice_net_amount = SKIP,
1258
+ va_ton_net_amount_in_customer_currency = SKIP,
1259
+ customer_retail_price_unit_gross = SKIP,
1260
+ customer_retail_value_total_gross = SKIP,
1261
+ customer_retail_value_total_net = SKIP,
1262
+ transaction_type_description = SKIP,
1263
+ rebateon_net_amount_in_transaction_currency = SKIP,
1264
+ effective_discount_in_trx_currency = SKIP,
1265
+ del_co_to_col_co_exchange_rate = SKIP,
1266
+ cards = SKIP,
1267
+ unit_discount_transaction_currency = SKIP,
1268
+ transaction_gross_amount = SKIP,
1269
+ transaction_net_amount = SKIP,
1270
+ transaction_tax = SKIP,
1271
+ va_ton_net_amount = SKIP,
1272
+ delco_list_price_unit_net = SKIP,
1273
+ delco_retail_price_unit_gross = SKIP,
1274
+ unit_price_in_transaction_currency = SKIP,
1275
+ delco_retail_price_unit_net = SKIP,
1276
+ delco_retail_value_total_gross = SKIP,
1277
+ delco_retail_value_total_net = SKIP,
1278
+ transaction_currency_symbol = SKIP,
1279
+ discount_type = SKIP,
1280
+ dispute_status = false,
1281
+ is_shell_site = false,
1282
+ fleet_id_input = SKIP,
1283
+ incoming_product_code = SKIP,
1284
+ posting_date = SKIP,
1285
+ posting_time = SKIP,
1286
+ product_code = SKIP,
1287
+ product_name = SKIP,
1288
+ product_group_id = SKIP,
1289
+ incoming_currency_code = SKIP,
1290
+ incoming_site_description = SKIP,
1291
+ location = SKIP,
1292
+ site_name = SKIP,
1293
+ site_code = SKIP,
1294
+ incoming_site_number = SKIP,
1295
+ invoice_currency_code = SKIP,
1296
+ invoice_date = SKIP,
1297
+ invoice_number = SKIP,
1298
+ fuel_product = SKIP,
1299
+ vat_applicable = SKIP,
1300
+ payer_name = SKIP,
1301
+ payer_number = SKIP,
1302
+ parent_customer_number = SKIP,
1303
+ payer_group = SKIP,
1304
+ payer_group_name = SKIP,
1305
+ check_digit = SKIP,
1306
+ net_invoice_indicator = SKIP,
1307
+ delco_code = SKIP,
1308
+ network_code = SKIP,
1309
+ purchased_in_country = SKIP,
1310
+ site_country = SKIP,
1311
+ vat_country = SKIP,
1312
+ delco_name = SKIP,
1313
+ network = SKIP,
1314
+ odometer_input = SKIP,
1315
+ original_sales_item_id = SKIP,
1316
+ fleet_id_description = SKIP,
1317
+ parent_customer_id = SKIP,
1318
+ pin_indicator = SKIP,
1319
+ product_group_name = SKIP,
1320
+ purchased_in_country_code = SKIP,
1321
+ quantity = SKIP,
1322
+ rebate_rate = SKIP,
1323
+ receipt_number = SKIP,
1324
+ refund_flag = SKIP,
1325
+ site_group_id = SKIP,
1326
+ site_group_name = SKIP,
1327
+ latitude = SKIP,
1328
+ longitude = SKIP,
1329
+ del_co_exchange_rate = SKIP,
1330
+ euro_rebate_amount = SKIP,
1331
+ net_euro_amount = SKIP,
1332
+ euro_vat_amount = SKIP,
1333
+ parent_customer_name = SKIP,
1334
+ is_invoiced = false,
1335
+ transaction_currency_code = SKIP,
1336
+ credit_debit_code = SKIP,
1337
+ transaction_date = SKIP,
1338
+ transaction_time = SKIP,
1339
+ transaction_item_id = SKIP,
1340
+ trn_identifier = SKIP,
1341
+ type = SKIP,
1342
+ transaction_line = SKIP,
1343
+ transaction_type = SKIP,
1344
+ utc_offset = SKIP,
1345
+ vat_category = SKIP,
1346
+ vat_rate = SKIP,
1347
+ vehicle_registration = SKIP,
1348
+ is_cancelled = SKIP,
1349
+ col_co_gross_amount = SKIP,
1350
+ col_co_net_amount = SKIP,
1351
+ col_co_vat_amount = SKIP,
1352
+ original_currency_symbol = SKIP,
1353
+ original_currency_code = SKIP,
1354
+ original_vat_amount = SKIP,
1355
+ emboss_text = SKIP,
1356
+ original_exchange_rate = SKIP,
1357
+ original_transaction_item_invoice_date = SKIP,
1358
+ fee_type_id = SKIP,
1359
+ line_item_description = false,
1360
+ fee_rule_description = SKIP,
1361
+ frequency = SKIP,
1362
+ fee_rule_id = SKIP,
1363
+ system_entry_date = SKIP,
1364
+ system_entry_time = SKIP,
1365
+ is_manual = SKIP,
1366
+ original_transaction_item_id = SKIP,
1367
+ original_transaction_item_invoice_number = SKIP,
1368
+ original_transaction_item_invoice_id = SKIP,
1369
+ payer_short_name = SKIP,
1370
+ reverse_charge = SKIP,
1371
+ original_gross_amount = SKIP,
1372
+ original_net_amount = SKIP,
1373
+ unit_of_measure = SKIP,
1374
+ road_type = SKIP,
1375
+ customer_country_iso_code = SKIP,
1376
+ ev_operator = SKIP,
1377
+ ev_serial_id = SKIP,
1378
+ ev_charge_point_serial = SKIP,
1379
+ ev_charge_point_connector_type = SKIP,
1380
+ ev_charge_point_connector_type_description = SKIP,
1381
+ ev_charge_duration = SKIP,
1382
+ ev_charge_start_date = SKIP,
1383
+ ev_charge_start_time = SKIP,
1384
+ ev_charge_end_date = SKIP,
1385
+ ev_charge_end_time = SKIP,
1386
+ hosting_collecting_company_number = SKIP,
1387
+ transaction_id = SKIP,
1388
+ fuel_only = SKIP)
1389
+ @account_name = account_name unless account_name == SKIP
1390
+ @account_id = account_id unless account_id == SKIP
1391
+ @account_number = account_number unless account_number == SKIP
1392
+ @account_short_name = account_short_name unless account_short_name == SKIP
1393
+ @additional1 = additional1 unless additional1 == SKIP
1394
+ @additional2 = additional2 unless additional2 == SKIP
1395
+ @additional3 = additional3 unless additional3 == SKIP
1396
+ @additional4 = additional4 unless additional4 == SKIP
1397
+ @allow_clearing = allow_clearing unless allow_clearing == SKIP
1398
+ @authorisation_code = authorisation_code unless authorisation_code == SKIP
1399
+ @transaction_status = transaction_status unless transaction_status == SKIP
1400
+ @driver_name = driver_name unless driver_name == SKIP
1401
+ @card_expiry_period = card_expiry_period unless card_expiry_period == SKIP
1402
+ @card_expiry = card_expiry unless card_expiry == SKIP
1403
+ @card_group_id = card_group_id unless card_group_id == SKIP
1404
+ @card_group_name = card_group_name unless card_group_name == SKIP
1405
+ @issuer_code = issuer_code unless issuer_code == SKIP
1406
+ @card_pan = card_pan unless card_pan == SKIP
1407
+ @release_code = release_code unless release_code == SKIP
1408
+ @card_sequence_number = card_sequence_number unless card_sequence_number == SKIP
1409
+ @card_type = card_type unless card_type == SKIP
1410
+ @col_co_code = col_co_code unless col_co_code == SKIP
1411
+ unless unit_discount_invoice_currency == SKIP
1412
+ @unit_discount_invoice_currency =
1413
+ unit_discount_invoice_currency
1414
+ end
1415
+ @col_co_exchange_rate = col_co_exchange_rate unless col_co_exchange_rate == SKIP
1416
+ @invoice_currency_symbol = invoice_currency_symbol unless invoice_currency_symbol == SKIP
1417
+ @correction_flag = correction_flag unless correction_flag == SKIP
1418
+ @crm_number = crm_number unless crm_number == SKIP
1419
+ @customer_country = customer_country unless customer_country == SKIP
1420
+ @customer_currency_code = customer_currency_code unless customer_currency_code == SKIP
1421
+ @customer_currency_symbol = customer_currency_symbol unless customer_currency_symbol == SKIP
1422
+ unless rebateon_net_amount_in_customer_currency == SKIP
1423
+ @rebateon_net_amount_in_customer_currency =
1424
+ rebateon_net_amount_in_customer_currency
1425
+ end
1426
+ unless effective_discount_in_customer_currency == SKIP
1427
+ @effective_discount_in_customer_currency =
1428
+ effective_discount_in_customer_currency
1429
+ end
1430
+ unless effective_unit_discount_in_customer_currency == SKIP
1431
+ @effective_unit_discount_in_customer_currency =
1432
+ effective_unit_discount_in_customer_currency
1433
+ end
1434
+ unless unit_price_in_invoice_currency == SKIP
1435
+ @unit_price_in_invoice_currency =
1436
+ unit_price_in_invoice_currency
1437
+ end
1438
+ @invoice_tax = invoice_tax unless invoice_tax == SKIP
1439
+ @invoice_gross_amount = invoice_gross_amount unless invoice_gross_amount == SKIP
1440
+ @invoice_net_amount = invoice_net_amount unless invoice_net_amount == SKIP
1441
+ unless va_ton_net_amount_in_customer_currency == SKIP
1442
+ @va_ton_net_amount_in_customer_currency =
1443
+ va_ton_net_amount_in_customer_currency
1444
+ end
1445
+ unless customer_retail_price_unit_gross == SKIP
1446
+ @customer_retail_price_unit_gross =
1447
+ customer_retail_price_unit_gross
1448
+ end
1449
+ unless customer_retail_value_total_gross == SKIP
1450
+ @customer_retail_value_total_gross =
1451
+ customer_retail_value_total_gross
1452
+ end
1453
+ unless customer_retail_value_total_net == SKIP
1454
+ @customer_retail_value_total_net =
1455
+ customer_retail_value_total_net
1456
+ end
1457
+ unless transaction_type_description == SKIP
1458
+ @transaction_type_description =
1459
+ transaction_type_description
1460
+ end
1461
+ unless rebateon_net_amount_in_transaction_currency == SKIP
1462
+ @rebateon_net_amount_in_transaction_currency =
1463
+ rebateon_net_amount_in_transaction_currency
1464
+ end
1465
+ unless effective_discount_in_trx_currency == SKIP
1466
+ @effective_discount_in_trx_currency =
1467
+ effective_discount_in_trx_currency
1468
+ end
1469
+ unless del_co_to_col_co_exchange_rate == SKIP
1470
+ @del_co_to_col_co_exchange_rate =
1471
+ del_co_to_col_co_exchange_rate
1472
+ end
1473
+ @cards = cards unless cards == SKIP
1474
+ unless unit_discount_transaction_currency == SKIP
1475
+ @unit_discount_transaction_currency =
1476
+ unit_discount_transaction_currency
1477
+ end
1478
+ @transaction_gross_amount = transaction_gross_amount unless transaction_gross_amount == SKIP
1479
+ @transaction_net_amount = transaction_net_amount unless transaction_net_amount == SKIP
1480
+ @transaction_tax = transaction_tax unless transaction_tax == SKIP
1481
+ @va_ton_net_amount = va_ton_net_amount unless va_ton_net_amount == SKIP
1482
+ unless delco_list_price_unit_net == SKIP
1483
+ @delco_list_price_unit_net =
1484
+ delco_list_price_unit_net
1485
+ end
1486
+ unless delco_retail_price_unit_gross == SKIP
1487
+ @delco_retail_price_unit_gross =
1488
+ delco_retail_price_unit_gross
1489
+ end
1490
+ unless unit_price_in_transaction_currency == SKIP
1491
+ @unit_price_in_transaction_currency =
1492
+ unit_price_in_transaction_currency
1493
+ end
1494
+ unless delco_retail_price_unit_net == SKIP
1495
+ @delco_retail_price_unit_net =
1496
+ delco_retail_price_unit_net
1497
+ end
1498
+ unless delco_retail_value_total_gross == SKIP
1499
+ @delco_retail_value_total_gross =
1500
+ delco_retail_value_total_gross
1501
+ end
1502
+ unless delco_retail_value_total_net == SKIP
1503
+ @delco_retail_value_total_net =
1504
+ delco_retail_value_total_net
1505
+ end
1506
+ unless transaction_currency_symbol == SKIP
1507
+ @transaction_currency_symbol =
1508
+ transaction_currency_symbol
1509
+ end
1510
+ @discount_type = discount_type unless discount_type == SKIP
1511
+ @dispute_status = dispute_status unless dispute_status == SKIP
1512
+ @is_shell_site = is_shell_site unless is_shell_site == SKIP
1513
+ @fleet_id_input = fleet_id_input unless fleet_id_input == SKIP
1514
+ @incoming_product_code = incoming_product_code unless incoming_product_code == SKIP
1515
+ @posting_date = posting_date unless posting_date == SKIP
1516
+ @posting_time = posting_time unless posting_time == SKIP
1517
+ @product_code = product_code unless product_code == SKIP
1518
+ @product_name = product_name unless product_name == SKIP
1519
+ @product_group_id = product_group_id unless product_group_id == SKIP
1520
+ @incoming_currency_code = incoming_currency_code unless incoming_currency_code == SKIP
1521
+ unless incoming_site_description == SKIP
1522
+ @incoming_site_description =
1523
+ incoming_site_description
1524
+ end
1525
+ @location = location unless location == SKIP
1526
+ @site_name = site_name unless site_name == SKIP
1527
+ @site_code = site_code unless site_code == SKIP
1528
+ @incoming_site_number = incoming_site_number unless incoming_site_number == SKIP
1529
+ @invoice_currency_code = invoice_currency_code unless invoice_currency_code == SKIP
1530
+ @invoice_date = invoice_date unless invoice_date == SKIP
1531
+ @invoice_number = invoice_number unless invoice_number == SKIP
1532
+ @fuel_product = fuel_product unless fuel_product == SKIP
1533
+ @vat_applicable = vat_applicable unless vat_applicable == SKIP
1534
+ @payer_name = payer_name unless payer_name == SKIP
1535
+ @payer_number = payer_number unless payer_number == SKIP
1536
+ @parent_customer_number = parent_customer_number unless parent_customer_number == SKIP
1537
+ @payer_group = payer_group unless payer_group == SKIP
1538
+ @payer_group_name = payer_group_name unless payer_group_name == SKIP
1539
+ @check_digit = check_digit unless check_digit == SKIP
1540
+ @net_invoice_indicator = net_invoice_indicator unless net_invoice_indicator == SKIP
1541
+ @delco_code = delco_code unless delco_code == SKIP
1542
+ @network_code = network_code unless network_code == SKIP
1543
+ @purchased_in_country = purchased_in_country unless purchased_in_country == SKIP
1544
+ @site_country = site_country unless site_country == SKIP
1545
+ @vat_country = vat_country unless vat_country == SKIP
1546
+ @delco_name = delco_name unless delco_name == SKIP
1547
+ @network = network unless network == SKIP
1548
+ @odometer_input = odometer_input unless odometer_input == SKIP
1549
+ @original_sales_item_id = original_sales_item_id unless original_sales_item_id == SKIP
1550
+ @fleet_id_description = fleet_id_description unless fleet_id_description == SKIP
1551
+ @parent_customer_id = parent_customer_id unless parent_customer_id == SKIP
1552
+ @pin_indicator = pin_indicator unless pin_indicator == SKIP
1553
+ @product_group_name = product_group_name unless product_group_name == SKIP
1554
+ unless purchased_in_country_code == SKIP
1555
+ @purchased_in_country_code =
1556
+ purchased_in_country_code
1557
+ end
1558
+ @quantity = quantity unless quantity == SKIP
1559
+ @rebate_rate = rebate_rate unless rebate_rate == SKIP
1560
+ @receipt_number = receipt_number unless receipt_number == SKIP
1561
+ @refund_flag = refund_flag unless refund_flag == SKIP
1562
+ @site_group_id = site_group_id unless site_group_id == SKIP
1563
+ @site_group_name = site_group_name unless site_group_name == SKIP
1564
+ @latitude = latitude unless latitude == SKIP
1565
+ @longitude = longitude unless longitude == SKIP
1566
+ @del_co_exchange_rate = del_co_exchange_rate unless del_co_exchange_rate == SKIP
1567
+ @euro_rebate_amount = euro_rebate_amount unless euro_rebate_amount == SKIP
1568
+ @net_euro_amount = net_euro_amount unless net_euro_amount == SKIP
1569
+ @euro_vat_amount = euro_vat_amount unless euro_vat_amount == SKIP
1570
+ @parent_customer_name = parent_customer_name unless parent_customer_name == SKIP
1571
+ @is_invoiced = is_invoiced unless is_invoiced == SKIP
1572
+ unless transaction_currency_code == SKIP
1573
+ @transaction_currency_code =
1574
+ transaction_currency_code
1575
+ end
1576
+ @credit_debit_code = credit_debit_code unless credit_debit_code == SKIP
1577
+ @transaction_date = transaction_date unless transaction_date == SKIP
1578
+ @transaction_time = transaction_time unless transaction_time == SKIP
1579
+ @transaction_item_id = transaction_item_id unless transaction_item_id == SKIP
1580
+ @trn_identifier = trn_identifier unless trn_identifier == SKIP
1581
+ @type = type unless type == SKIP
1582
+ @transaction_line = transaction_line unless transaction_line == SKIP
1583
+ @transaction_type = transaction_type unless transaction_type == SKIP
1584
+ @utc_offset = utc_offset unless utc_offset == SKIP
1585
+ @vat_category = vat_category unless vat_category == SKIP
1586
+ @vat_rate = vat_rate unless vat_rate == SKIP
1587
+ @vehicle_registration = vehicle_registration unless vehicle_registration == SKIP
1588
+ @is_cancelled = is_cancelled unless is_cancelled == SKIP
1589
+ @col_co_gross_amount = col_co_gross_amount unless col_co_gross_amount == SKIP
1590
+ @col_co_net_amount = col_co_net_amount unless col_co_net_amount == SKIP
1591
+ @col_co_vat_amount = col_co_vat_amount unless col_co_vat_amount == SKIP
1592
+ @original_currency_symbol = original_currency_symbol unless original_currency_symbol == SKIP
1593
+ @original_currency_code = original_currency_code unless original_currency_code == SKIP
1594
+ @original_vat_amount = original_vat_amount unless original_vat_amount == SKIP
1595
+ @emboss_text = emboss_text unless emboss_text == SKIP
1596
+ @original_exchange_rate = original_exchange_rate unless original_exchange_rate == SKIP
1597
+ unless original_transaction_item_invoice_date == SKIP
1598
+ @original_transaction_item_invoice_date =
1599
+ original_transaction_item_invoice_date
1600
+ end
1601
+ @fee_type_id = fee_type_id unless fee_type_id == SKIP
1602
+ @line_item_description = line_item_description unless line_item_description == SKIP
1603
+ @fee_rule_description = fee_rule_description unless fee_rule_description == SKIP
1604
+ @frequency = frequency unless frequency == SKIP
1605
+ @fee_rule_id = fee_rule_id unless fee_rule_id == SKIP
1606
+ @system_entry_date = system_entry_date unless system_entry_date == SKIP
1607
+ @system_entry_time = system_entry_time unless system_entry_time == SKIP
1608
+ @is_manual = is_manual unless is_manual == SKIP
1609
+ unless original_transaction_item_id == SKIP
1610
+ @original_transaction_item_id =
1611
+ original_transaction_item_id
1612
+ end
1613
+ unless original_transaction_item_invoice_number == SKIP
1614
+ @original_transaction_item_invoice_number =
1615
+ original_transaction_item_invoice_number
1616
+ end
1617
+ unless original_transaction_item_invoice_id == SKIP
1618
+ @original_transaction_item_invoice_id =
1619
+ original_transaction_item_invoice_id
1620
+ end
1621
+ @payer_short_name = payer_short_name unless payer_short_name == SKIP
1622
+ @reverse_charge = reverse_charge unless reverse_charge == SKIP
1623
+ @original_gross_amount = original_gross_amount unless original_gross_amount == SKIP
1624
+ @original_net_amount = original_net_amount unless original_net_amount == SKIP
1625
+ @unit_of_measure = unit_of_measure unless unit_of_measure == SKIP
1626
+ @road_type = road_type unless road_type == SKIP
1627
+ unless customer_country_iso_code == SKIP
1628
+ @customer_country_iso_code =
1629
+ customer_country_iso_code
1630
+ end
1631
+ @ev_operator = ev_operator unless ev_operator == SKIP
1632
+ @ev_serial_id = ev_serial_id unless ev_serial_id == SKIP
1633
+ @ev_charge_point_serial = ev_charge_point_serial unless ev_charge_point_serial == SKIP
1634
+ unless ev_charge_point_connector_type == SKIP
1635
+ @ev_charge_point_connector_type =
1636
+ ev_charge_point_connector_type
1637
+ end
1638
+ unless ev_charge_point_connector_type_description == SKIP
1639
+ @ev_charge_point_connector_type_description =
1640
+ ev_charge_point_connector_type_description
1641
+ end
1642
+ @ev_charge_duration = ev_charge_duration unless ev_charge_duration == SKIP
1643
+ @ev_charge_start_date = ev_charge_start_date unless ev_charge_start_date == SKIP
1644
+ @ev_charge_start_time = ev_charge_start_time unless ev_charge_start_time == SKIP
1645
+ @ev_charge_end_date = ev_charge_end_date unless ev_charge_end_date == SKIP
1646
+ @ev_charge_end_time = ev_charge_end_time unless ev_charge_end_time == SKIP
1647
+ unless hosting_collecting_company_number == SKIP
1648
+ @hosting_collecting_company_number =
1649
+ hosting_collecting_company_number
1650
+ end
1651
+ @transaction_id = transaction_id unless transaction_id == SKIP
1652
+ @fuel_only = fuel_only unless fuel_only == SKIP
1653
+ end
1654
+
1655
+ # Creates an instance of the object from a hash.
1656
+ def self.from_hash(hash)
1657
+ return nil unless hash
1658
+
1659
+ # Extract variables from the hash.
1660
+ account_name = hash.key?('AccountName') ? hash['AccountName'] : SKIP
1661
+ account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
1662
+ account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
1663
+ account_short_name =
1664
+ hash.key?('AccountShortName') ? hash['AccountShortName'] : SKIP
1665
+ additional1 = hash.key?('Additional1') ? hash['Additional1'] : SKIP
1666
+ additional2 = hash.key?('Additional2') ? hash['Additional2'] : SKIP
1667
+ additional3 = hash.key?('Additional3') ? hash['Additional3'] : SKIP
1668
+ additional4 = hash.key?('Additional4') ? hash['Additional4'] : SKIP
1669
+ allow_clearing = hash.key?('AllowClearing') ? hash['AllowClearing'] : SKIP
1670
+ authorisation_code =
1671
+ hash.key?('AuthorisationCode') ? hash['AuthorisationCode'] : SKIP
1672
+ transaction_status =
1673
+ hash.key?('TransactionStatus') ? hash['TransactionStatus'] : SKIP
1674
+ driver_name = hash.key?('DriverName') ? hash['DriverName'] : SKIP
1675
+ card_expiry_period =
1676
+ hash.key?('CardExpiryPeriod') ? hash['CardExpiryPeriod'] : SKIP
1677
+ card_expiry = hash.key?('CardExpiry') ? hash['CardExpiry'] : SKIP
1678
+ card_group_id = hash.key?('CardGroupId') ? hash['CardGroupId'] : SKIP
1679
+ card_group_name =
1680
+ hash.key?('CardGroupName') ? hash['CardGroupName'] : SKIP
1681
+ issuer_code = hash.key?('IssuerCode') ? hash['IssuerCode'] : SKIP
1682
+ card_pan = hash.key?('CardPAN') ? hash['CardPAN'] : SKIP
1683
+ release_code = hash.key?('ReleaseCode') ? hash['ReleaseCode'] : SKIP
1684
+ card_sequence_number =
1685
+ hash.key?('CardSequenceNumber') ? hash['CardSequenceNumber'] : SKIP
1686
+ card_type = hash.key?('CardType') ? hash['CardType'] : SKIP
1687
+ col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
1688
+ unit_discount_invoice_currency =
1689
+ hash.key?('UnitDiscountInvoiceCurrency') ? hash['UnitDiscountInvoiceCurrency'] : SKIP
1690
+ col_co_exchange_rate =
1691
+ hash.key?('ColCoExchangeRate') ? hash['ColCoExchangeRate'] : SKIP
1692
+ invoice_currency_symbol =
1693
+ hash.key?('InvoiceCurrencySymbol') ? hash['InvoiceCurrencySymbol'] : SKIP
1694
+ correction_flag =
1695
+ hash.key?('CorrectionFlag') ? hash['CorrectionFlag'] : SKIP
1696
+ crm_number = hash.key?('CRMNumber') ? hash['CRMNumber'] : SKIP
1697
+ customer_country =
1698
+ hash.key?('CustomerCountry') ? hash['CustomerCountry'] : SKIP
1699
+ customer_currency_code =
1700
+ hash.key?('CustomerCurrencyCode') ? hash['CustomerCurrencyCode'] : SKIP
1701
+ customer_currency_symbol =
1702
+ hash.key?('CustomerCurrencySymbol') ? hash['CustomerCurrencySymbol'] : SKIP
1703
+ rebateon_net_amount_in_customer_currency =
1704
+ hash.key?('RebateonNetAmountInCustomerCurrency') ? hash['RebateonNetAmountInCustomerCurrency'] : SKIP
1705
+ effective_discount_in_customer_currency =
1706
+ hash.key?('EffectiveDiscountInCustomerCurrency') ? hash['EffectiveDiscountInCustomerCurrency'] : SKIP
1707
+ effective_unit_discount_in_customer_currency =
1708
+ hash.key?('EffectiveUnitDiscountInCustomerCurrency') ? hash['EffectiveUnitDiscountInCustomerCurrency'] : SKIP
1709
+ unit_price_in_invoice_currency =
1710
+ hash.key?('UnitPriceInInvoiceCurrency') ? hash['UnitPriceInInvoiceCurrency'] : SKIP
1711
+ invoice_tax = hash.key?('InvoiceTax') ? hash['InvoiceTax'] : SKIP
1712
+ invoice_gross_amount =
1713
+ hash.key?('InvoiceGrossAmount') ? hash['InvoiceGrossAmount'] : SKIP
1714
+ invoice_net_amount =
1715
+ hash.key?('InvoiceNetAmount') ? hash['InvoiceNetAmount'] : SKIP
1716
+ va_ton_net_amount_in_customer_currency =
1717
+ hash.key?('VATonNetAmountInCustomerCurrency') ? hash['VATonNetAmountInCustomerCurrency'] : SKIP
1718
+ customer_retail_price_unit_gross =
1719
+ hash.key?('CustomerRetailPriceUnitGross') ? hash['CustomerRetailPriceUnitGross'] : SKIP
1720
+ customer_retail_value_total_gross =
1721
+ hash.key?('CustomerRetailValueTotalGross') ? hash['CustomerRetailValueTotalGross'] : SKIP
1722
+ customer_retail_value_total_net =
1723
+ hash.key?('CustomerRetailValueTotalNet') ? hash['CustomerRetailValueTotalNet'] : SKIP
1724
+ transaction_type_description =
1725
+ hash.key?('TransactionTypeDescription') ? hash['TransactionTypeDescription'] : SKIP
1726
+ rebateon_net_amount_in_transaction_currency =
1727
+ hash.key?('RebateonNetAmountInTransactionCurrency') ? hash['RebateonNetAmountInTransactionCurrency'] : SKIP
1728
+ effective_discount_in_trx_currency =
1729
+ hash.key?('EffectiveDiscountInTrxCurrency') ? hash['EffectiveDiscountInTrxCurrency'] : SKIP
1730
+ del_co_to_col_co_exchange_rate =
1731
+ hash.key?('DelCoToColCoExchangeRate') ? hash['DelCoToColCoExchangeRate'] : SKIP
1732
+ cards = hash.key?('Cards') ? hash['Cards'] : SKIP
1733
+ unit_discount_transaction_currency =
1734
+ hash.key?('UnitDiscountTransactionCurrency') ? hash['UnitDiscountTransactionCurrency'] : SKIP
1735
+ transaction_gross_amount =
1736
+ hash.key?('TransactionGrossAmount') ? hash['TransactionGrossAmount'] : SKIP
1737
+ transaction_net_amount =
1738
+ hash.key?('TransactionNetAmount') ? hash['TransactionNetAmount'] : SKIP
1739
+ transaction_tax =
1740
+ hash.key?('TransactionTax') ? hash['TransactionTax'] : SKIP
1741
+ va_ton_net_amount =
1742
+ hash.key?('VATonNetAmount') ? hash['VATonNetAmount'] : SKIP
1743
+ delco_list_price_unit_net =
1744
+ hash.key?('DelcoListPriceUnitNet') ? hash['DelcoListPriceUnitNet'] : SKIP
1745
+ delco_retail_price_unit_gross =
1746
+ hash.key?('DelcoRetailPriceUnitGross') ? hash['DelcoRetailPriceUnitGross'] : SKIP
1747
+ unit_price_in_transaction_currency =
1748
+ hash.key?('UnitPriceInTransactionCurrency') ? hash['UnitPriceInTransactionCurrency'] : SKIP
1749
+ delco_retail_price_unit_net =
1750
+ hash.key?('DelcoRetailPriceUnitNet') ? hash['DelcoRetailPriceUnitNet'] : SKIP
1751
+ delco_retail_value_total_gross =
1752
+ hash.key?('DelcoRetailValueTotalGross') ? hash['DelcoRetailValueTotalGross'] : SKIP
1753
+ delco_retail_value_total_net =
1754
+ hash.key?('DelcoRetailValueTotalNet') ? hash['DelcoRetailValueTotalNet'] : SKIP
1755
+ transaction_currency_symbol =
1756
+ hash.key?('TransactionCurrencySymbol') ? hash['TransactionCurrencySymbol'] : SKIP
1757
+ discount_type = hash.key?('DiscountType') ? hash['DiscountType'] : SKIP
1758
+ dispute_status = hash['DisputeStatus'] ||= false
1759
+ is_shell_site = hash['IsShellSite'] ||= false
1760
+ fleet_id_input = hash.key?('FleetIdInput') ? hash['FleetIdInput'] : SKIP
1761
+ incoming_product_code =
1762
+ hash.key?('IncomingProductCode') ? hash['IncomingProductCode'] : SKIP
1763
+ posting_date = hash.key?('PostingDate') ? hash['PostingDate'] : SKIP
1764
+ posting_time = if hash.key?('PostingTime')
1765
+ (DateTimeHelper.from_rfc3339(hash['PostingTime']) if hash['PostingTime'])
1766
+ else
1767
+ SKIP
1768
+ end
1769
+ product_code = hash.key?('ProductCode') ? hash['ProductCode'] : SKIP
1770
+ product_name = hash.key?('ProductName') ? hash['ProductName'] : SKIP
1771
+ product_group_id =
1772
+ hash.key?('ProductGroupId') ? hash['ProductGroupId'] : SKIP
1773
+ incoming_currency_code =
1774
+ hash.key?('IncomingCurrencyCode') ? hash['IncomingCurrencyCode'] : SKIP
1775
+ incoming_site_description =
1776
+ hash.key?('IncomingSiteDescription') ? hash['IncomingSiteDescription'] : SKIP
1777
+ location = hash.key?('Location') ? hash['Location'] : SKIP
1778
+ site_name = hash.key?('SiteName') ? hash['SiteName'] : SKIP
1779
+ site_code = hash.key?('SiteCode') ? hash['SiteCode'] : SKIP
1780
+ incoming_site_number =
1781
+ hash.key?('IncomingSiteNumber') ? hash['IncomingSiteNumber'] : SKIP
1782
+ invoice_currency_code =
1783
+ hash.key?('InvoiceCurrencyCode') ? hash['InvoiceCurrencyCode'] : SKIP
1784
+ invoice_date = hash.key?('InvoiceDate') ? hash['InvoiceDate'] : SKIP
1785
+ invoice_number = hash.key?('InvoiceNumber') ? hash['InvoiceNumber'] : SKIP
1786
+ fuel_product = hash.key?('FuelProduct') ? hash['FuelProduct'] : SKIP
1787
+ vat_applicable = hash.key?('VATApplicable') ? hash['VATApplicable'] : SKIP
1788
+ payer_name = hash.key?('PayerName') ? hash['PayerName'] : SKIP
1789
+ payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
1790
+ parent_customer_number =
1791
+ hash.key?('ParentCustomerNumber') ? hash['ParentCustomerNumber'] : SKIP
1792
+ payer_group = hash.key?('PayerGroup') ? hash['PayerGroup'] : SKIP
1793
+ payer_group_name =
1794
+ hash.key?('PayerGroupName') ? hash['PayerGroupName'] : SKIP
1795
+ check_digit = hash.key?('CheckDigit') ? hash['CheckDigit'] : SKIP
1796
+ net_invoice_indicator =
1797
+ hash.key?('NetInvoiceIndicator') ? hash['NetInvoiceIndicator'] : SKIP
1798
+ delco_code = hash.key?('DelcoCode') ? hash['DelcoCode'] : SKIP
1799
+ network_code = hash.key?('NetworkCode') ? hash['NetworkCode'] : SKIP
1800
+ purchased_in_country =
1801
+ hash.key?('PurchasedInCountry') ? hash['PurchasedInCountry'] : SKIP
1802
+ site_country = hash.key?('SiteCountry') ? hash['SiteCountry'] : SKIP
1803
+ vat_country = hash.key?('VATCountry') ? hash['VATCountry'] : SKIP
1804
+ delco_name = hash.key?('DelcoName') ? hash['DelcoName'] : SKIP
1805
+ network = hash.key?('Network') ? hash['Network'] : SKIP
1806
+ odometer_input = hash.key?('OdometerInput') ? hash['OdometerInput'] : SKIP
1807
+ original_sales_item_id =
1808
+ hash.key?('OriginalSalesItemId') ? hash['OriginalSalesItemId'] : SKIP
1809
+ fleet_id_description =
1810
+ hash.key?('FleetIDDescription') ? hash['FleetIDDescription'] : SKIP
1811
+ parent_customer_id =
1812
+ hash.key?('ParentCustomerId') ? hash['ParentCustomerId'] : SKIP
1813
+ pin_indicator = hash.key?('PINIndicator') ? hash['PINIndicator'] : SKIP
1814
+ product_group_name =
1815
+ hash.key?('ProductGroupName') ? hash['ProductGroupName'] : SKIP
1816
+ purchased_in_country_code =
1817
+ hash.key?('PurchasedInCountryCode') ? hash['PurchasedInCountryCode'] : SKIP
1818
+ quantity = hash.key?('Quantity') ? hash['Quantity'] : SKIP
1819
+ rebate_rate = hash.key?('RebateRate') ? hash['RebateRate'] : SKIP
1820
+ receipt_number = hash.key?('ReceiptNumber') ? hash['ReceiptNumber'] : SKIP
1821
+ refund_flag = hash.key?('RefundFlag') ? hash['RefundFlag'] : SKIP
1822
+ site_group_id = hash.key?('SiteGroupId') ? hash['SiteGroupId'] : SKIP
1823
+ site_group_name =
1824
+ hash.key?('SiteGroupName') ? hash['SiteGroupName'] : SKIP
1825
+ latitude = hash.key?('Latitude') ? hash['Latitude'] : SKIP
1826
+ longitude = hash.key?('Longitude') ? hash['Longitude'] : SKIP
1827
+ del_co_exchange_rate =
1828
+ hash.key?('DelCoExchangeRate') ? hash['DelCoExchangeRate'] : SKIP
1829
+ euro_rebate_amount =
1830
+ hash.key?('EuroRebateAmount') ? hash['EuroRebateAmount'] : SKIP
1831
+ net_euro_amount =
1832
+ hash.key?('NetEuroAmount') ? hash['NetEuroAmount'] : SKIP
1833
+ euro_vat_amount =
1834
+ hash.key?('EuroVATAmount') ? hash['EuroVATAmount'] : SKIP
1835
+ parent_customer_name =
1836
+ hash.key?('ParentCustomerName') ? hash['ParentCustomerName'] : SKIP
1837
+ is_invoiced = hash['IsInvoiced'] ||= false
1838
+ transaction_currency_code =
1839
+ hash.key?('TransactionCurrencyCode') ? hash['TransactionCurrencyCode'] : SKIP
1840
+ credit_debit_code =
1841
+ hash.key?('CreditDebitCode') ? hash['CreditDebitCode'] : SKIP
1842
+ transaction_date =
1843
+ hash.key?('TransactionDate') ? hash['TransactionDate'] : SKIP
1844
+ transaction_time = if hash.key?('TransactionTime')
1845
+ (DateTimeHelper.from_rfc3339(hash['TransactionTime']) if hash['TransactionTime'])
1846
+ else
1847
+ SKIP
1848
+ end
1849
+ transaction_item_id =
1850
+ hash.key?('TransactionItemId') ? hash['TransactionItemId'] : SKIP
1851
+ trn_identifier = hash.key?('TrnIdentifier') ? hash['TrnIdentifier'] : SKIP
1852
+ type = hash.key?('Type') ? hash['Type'] : SKIP
1853
+ transaction_line =
1854
+ hash.key?('TransactionLine') ? hash['TransactionLine'] : SKIP
1855
+ transaction_type =
1856
+ hash.key?('TransactionType') ? hash['TransactionType'] : SKIP
1857
+ utc_offset = hash.key?('UTCOffset') ? hash['UTCOffset'] : SKIP
1858
+ vat_category = hash.key?('VATCategory') ? hash['VATCategory'] : SKIP
1859
+ vat_rate = hash.key?('VATRate') ? hash['VATRate'] : SKIP
1860
+ vehicle_registration =
1861
+ hash.key?('VehicleRegistration') ? hash['VehicleRegistration'] : SKIP
1862
+ is_cancelled = hash.key?('IsCancelled') ? hash['IsCancelled'] : SKIP
1863
+ col_co_gross_amount =
1864
+ hash.key?('ColCoGrossAmount') ? hash['ColCoGrossAmount'] : SKIP
1865
+ col_co_net_amount =
1866
+ hash.key?('ColCoNetAmount') ? hash['ColCoNetAmount'] : SKIP
1867
+ col_co_vat_amount =
1868
+ hash.key?('ColCoVATAmount') ? hash['ColCoVATAmount'] : SKIP
1869
+ original_currency_symbol =
1870
+ hash.key?('OriginalCurrencySymbol') ? hash['OriginalCurrencySymbol'] : SKIP
1871
+ original_currency_code =
1872
+ hash.key?('OriginalCurrencyCode') ? hash['OriginalCurrencyCode'] : SKIP
1873
+ original_vat_amount =
1874
+ hash.key?('OriginalVATAmount') ? hash['OriginalVATAmount'] : SKIP
1875
+ emboss_text = hash.key?('EmbossText') ? hash['EmbossText'] : SKIP
1876
+ original_exchange_rate =
1877
+ hash.key?('OriginalExchangeRate') ? hash['OriginalExchangeRate'] : SKIP
1878
+ original_transaction_item_invoice_date =
1879
+ hash.key?('OriginalTransactionItemInvoiceDate') ? hash['OriginalTransactionItemInvoiceDate'] : SKIP
1880
+ fee_type_id = hash.key?('FeeTypeId') ? hash['FeeTypeId'] : SKIP
1881
+ line_item_description = hash['LineItemDescription'] ||= false
1882
+ fee_rule_description =
1883
+ hash.key?('FeeRuleDescription') ? hash['FeeRuleDescription'] : SKIP
1884
+ frequency = hash.key?('Frequency') ? hash['Frequency'] : SKIP
1885
+ fee_rule_id = hash.key?('FeeRuleId') ? hash['FeeRuleId'] : SKIP
1886
+ system_entry_date =
1887
+ hash.key?('SystemEntryDate') ? hash['SystemEntryDate'] : SKIP
1888
+ system_entry_time = if hash.key?('SystemEntryTime')
1889
+ (DateTimeHelper.from_rfc3339(hash['SystemEntryTime']) if hash['SystemEntryTime'])
1890
+ else
1891
+ SKIP
1892
+ end
1893
+ is_manual = hash.key?('IsManual') ? hash['IsManual'] : SKIP
1894
+ original_transaction_item_id =
1895
+ hash.key?('OriginalTransactionItemId') ? hash['OriginalTransactionItemId'] : SKIP
1896
+ original_transaction_item_invoice_number =
1897
+ hash.key?('OriginalTransactionItemInvoiceNumber') ? hash['OriginalTransactionItemInvoiceNumber'] : SKIP
1898
+ original_transaction_item_invoice_id =
1899
+ hash.key?('OriginalTransactionItemInvoiceId') ? hash['OriginalTransactionItemInvoiceId'] : SKIP
1900
+ payer_short_name =
1901
+ hash.key?('PayerShortName') ? hash['PayerShortName'] : SKIP
1902
+ reverse_charge = hash.key?('ReverseCharge') ? hash['ReverseCharge'] : SKIP
1903
+ original_gross_amount =
1904
+ hash.key?('OriginalGrossAmount') ? hash['OriginalGrossAmount'] : SKIP
1905
+ original_net_amount =
1906
+ hash.key?('OriginalNetAmount') ? hash['OriginalNetAmount'] : SKIP
1907
+ unit_of_measure =
1908
+ hash.key?('UnitOfMeasure') ? hash['UnitOfMeasure'] : SKIP
1909
+ road_type = hash.key?('RoadType') ? hash['RoadType'] : SKIP
1910
+ customer_country_iso_code =
1911
+ hash.key?('CustomerCountryIsoCode') ? hash['CustomerCountryIsoCode'] : SKIP
1912
+ ev_operator = hash.key?('EVOperator') ? hash['EVOperator'] : SKIP
1913
+ ev_serial_id = hash.key?('EVSerialId') ? hash['EVSerialId'] : SKIP
1914
+ ev_charge_point_serial =
1915
+ hash.key?('EVChargePointSerial') ? hash['EVChargePointSerial'] : SKIP
1916
+ ev_charge_point_connector_type =
1917
+ hash.key?('EVChargePointConnectorType') ? hash['EVChargePointConnectorType'] : SKIP
1918
+ ev_charge_point_connector_type_description =
1919
+ hash.key?('EVChargePointConnectorTypeDescription') ? hash['EVChargePointConnectorTypeDescription'] : SKIP
1920
+ ev_charge_duration =
1921
+ hash.key?('EVChargeDuration') ? hash['EVChargeDuration'] : SKIP
1922
+ ev_charge_start_date =
1923
+ hash.key?('EVChargeStartDate') ? hash['EVChargeStartDate'] : SKIP
1924
+ ev_charge_start_time = if hash.key?('EVChargeStartTime')
1925
+ (DateTimeHelper.from_rfc3339(hash['EVChargeStartTime']) if hash['EVChargeStartTime'])
1926
+ else
1927
+ SKIP
1928
+ end
1929
+ ev_charge_end_date =
1930
+ hash.key?('EVChargeEndDate') ? hash['EVChargeEndDate'] : SKIP
1931
+ ev_charge_end_time = if hash.key?('EVChargeEndTime')
1932
+ (DateTimeHelper.from_rfc3339(hash['EVChargeEndTime']) if hash['EVChargeEndTime'])
1933
+ else
1934
+ SKIP
1935
+ end
1936
+ hosting_collecting_company_number =
1937
+ hash.key?('HostingCollectingCompanyNumber') ? hash['HostingCollectingCompanyNumber'] : SKIP
1938
+ transaction_id = hash.key?('TransactionId') ? hash['TransactionId'] : SKIP
1939
+ fuel_only = hash.key?('FuelOnly') ? hash['FuelOnly'] : SKIP
1940
+
1941
+ # Create object from extracted values.
1942
+ PricedResponseData.new(account_name,
1943
+ account_id,
1944
+ account_number,
1945
+ account_short_name,
1946
+ additional1,
1947
+ additional2,
1948
+ additional3,
1949
+ additional4,
1950
+ allow_clearing,
1951
+ authorisation_code,
1952
+ transaction_status,
1953
+ driver_name,
1954
+ card_expiry_period,
1955
+ card_expiry,
1956
+ card_group_id,
1957
+ card_group_name,
1958
+ issuer_code,
1959
+ card_pan,
1960
+ release_code,
1961
+ card_sequence_number,
1962
+ card_type,
1963
+ col_co_code,
1964
+ unit_discount_invoice_currency,
1965
+ col_co_exchange_rate,
1966
+ invoice_currency_symbol,
1967
+ correction_flag,
1968
+ crm_number,
1969
+ customer_country,
1970
+ customer_currency_code,
1971
+ customer_currency_symbol,
1972
+ rebateon_net_amount_in_customer_currency,
1973
+ effective_discount_in_customer_currency,
1974
+ effective_unit_discount_in_customer_currency,
1975
+ unit_price_in_invoice_currency,
1976
+ invoice_tax,
1977
+ invoice_gross_amount,
1978
+ invoice_net_amount,
1979
+ va_ton_net_amount_in_customer_currency,
1980
+ customer_retail_price_unit_gross,
1981
+ customer_retail_value_total_gross,
1982
+ customer_retail_value_total_net,
1983
+ transaction_type_description,
1984
+ rebateon_net_amount_in_transaction_currency,
1985
+ effective_discount_in_trx_currency,
1986
+ del_co_to_col_co_exchange_rate,
1987
+ cards,
1988
+ unit_discount_transaction_currency,
1989
+ transaction_gross_amount,
1990
+ transaction_net_amount,
1991
+ transaction_tax,
1992
+ va_ton_net_amount,
1993
+ delco_list_price_unit_net,
1994
+ delco_retail_price_unit_gross,
1995
+ unit_price_in_transaction_currency,
1996
+ delco_retail_price_unit_net,
1997
+ delco_retail_value_total_gross,
1998
+ delco_retail_value_total_net,
1999
+ transaction_currency_symbol,
2000
+ discount_type,
2001
+ dispute_status,
2002
+ is_shell_site,
2003
+ fleet_id_input,
2004
+ incoming_product_code,
2005
+ posting_date,
2006
+ posting_time,
2007
+ product_code,
2008
+ product_name,
2009
+ product_group_id,
2010
+ incoming_currency_code,
2011
+ incoming_site_description,
2012
+ location,
2013
+ site_name,
2014
+ site_code,
2015
+ incoming_site_number,
2016
+ invoice_currency_code,
2017
+ invoice_date,
2018
+ invoice_number,
2019
+ fuel_product,
2020
+ vat_applicable,
2021
+ payer_name,
2022
+ payer_number,
2023
+ parent_customer_number,
2024
+ payer_group,
2025
+ payer_group_name,
2026
+ check_digit,
2027
+ net_invoice_indicator,
2028
+ delco_code,
2029
+ network_code,
2030
+ purchased_in_country,
2031
+ site_country,
2032
+ vat_country,
2033
+ delco_name,
2034
+ network,
2035
+ odometer_input,
2036
+ original_sales_item_id,
2037
+ fleet_id_description,
2038
+ parent_customer_id,
2039
+ pin_indicator,
2040
+ product_group_name,
2041
+ purchased_in_country_code,
2042
+ quantity,
2043
+ rebate_rate,
2044
+ receipt_number,
2045
+ refund_flag,
2046
+ site_group_id,
2047
+ site_group_name,
2048
+ latitude,
2049
+ longitude,
2050
+ del_co_exchange_rate,
2051
+ euro_rebate_amount,
2052
+ net_euro_amount,
2053
+ euro_vat_amount,
2054
+ parent_customer_name,
2055
+ is_invoiced,
2056
+ transaction_currency_code,
2057
+ credit_debit_code,
2058
+ transaction_date,
2059
+ transaction_time,
2060
+ transaction_item_id,
2061
+ trn_identifier,
2062
+ type,
2063
+ transaction_line,
2064
+ transaction_type,
2065
+ utc_offset,
2066
+ vat_category,
2067
+ vat_rate,
2068
+ vehicle_registration,
2069
+ is_cancelled,
2070
+ col_co_gross_amount,
2071
+ col_co_net_amount,
2072
+ col_co_vat_amount,
2073
+ original_currency_symbol,
2074
+ original_currency_code,
2075
+ original_vat_amount,
2076
+ emboss_text,
2077
+ original_exchange_rate,
2078
+ original_transaction_item_invoice_date,
2079
+ fee_type_id,
2080
+ line_item_description,
2081
+ fee_rule_description,
2082
+ frequency,
2083
+ fee_rule_id,
2084
+ system_entry_date,
2085
+ system_entry_time,
2086
+ is_manual,
2087
+ original_transaction_item_id,
2088
+ original_transaction_item_invoice_number,
2089
+ original_transaction_item_invoice_id,
2090
+ payer_short_name,
2091
+ reverse_charge,
2092
+ original_gross_amount,
2093
+ original_net_amount,
2094
+ unit_of_measure,
2095
+ road_type,
2096
+ customer_country_iso_code,
2097
+ ev_operator,
2098
+ ev_serial_id,
2099
+ ev_charge_point_serial,
2100
+ ev_charge_point_connector_type,
2101
+ ev_charge_point_connector_type_description,
2102
+ ev_charge_duration,
2103
+ ev_charge_start_date,
2104
+ ev_charge_start_time,
2105
+ ev_charge_end_date,
2106
+ ev_charge_end_time,
2107
+ hosting_collecting_company_number,
2108
+ transaction_id,
2109
+ fuel_only)
2110
+ end
2111
+
2112
+ def to_custom_posting_time
2113
+ DateTimeHelper.to_rfc3339(posting_time)
2114
+ end
2115
+
2116
+ def to_custom_transaction_time
2117
+ DateTimeHelper.to_rfc3339(transaction_time)
2118
+ end
2119
+
2120
+ def to_custom_system_entry_time
2121
+ DateTimeHelper.to_rfc3339(system_entry_time)
2122
+ end
2123
+
2124
+ def to_custom_ev_charge_start_time
2125
+ DateTimeHelper.to_rfc3339(ev_charge_start_time)
2126
+ end
2127
+
2128
+ def to_custom_ev_charge_end_time
2129
+ DateTimeHelper.to_rfc3339(ev_charge_end_time)
2130
+ end
2131
+ end
2132
+ end