data-and-reporting-sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +104 -0
- data/lib/shell_data_reporting_ap_is/api_helper.rb +10 -0
- data/lib/shell_data_reporting_ap_is/client.rb +84 -0
- data/lib/shell_data_reporting_ap_is/configuration.rb +110 -0
- data/lib/shell_data_reporting_ap_is/controllers/base_controller.rb +66 -0
- data/lib/shell_data_reporting_ap_is/controllers/customer_controller.rb +478 -0
- data/lib/shell_data_reporting_ap_is/controllers/invoice_controller.rb +470 -0
- data/lib/shell_data_reporting_ap_is/controllers/o_auth_authorization_controller.rb +42 -0
- data/lib/shell_data_reporting_ap_is/controllers/transaction_controller.rb +878 -0
- data/lib/shell_data_reporting_ap_is/exceptions/api_exception.rb +10 -0
- data/lib/shell_data_reporting_ap_is/exceptions/default_error_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/error_object_exception.rb +54 -0
- data/lib/shell_data_reporting_ap_is/exceptions/error_user_access_error1_exception.rb +32 -0
- data/lib/shell_data_reporting_ap_is/exceptions/o_auth_provider_exception.rb +48 -0
- data/lib/shell_data_reporting_ap_is/http/auth/basic_auth.rb +50 -0
- data/lib/shell_data_reporting_ap_is/http/auth/bearer_token.rb +89 -0
- data/lib/shell_data_reporting_ap_is/http/http_call_back.rb +10 -0
- data/lib/shell_data_reporting_ap_is/http/http_method_enum.rb +10 -0
- data/lib/shell_data_reporting_ap_is/http/http_request.rb +10 -0
- data/lib/shell_data_reporting_ap_is/http/http_response.rb +10 -0
- data/lib/shell_data_reporting_ap_is/models/account_access.rb +128 -0
- data/lib/shell_data_reporting_ap_is/models/account_request.rb +252 -0
- data/lib/shell_data_reporting_ap_is/models/account_response.rb +111 -0
- data/lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb +750 -0
- data/lib/shell_data_reporting_ap_is/models/accounts.rb +65 -0
- data/lib/shell_data_reporting_ap_is/models/address.rb +174 -0
- data/lib/shell_data_reporting_ap_is/models/associated_account.rb +98 -0
- data/lib/shell_data_reporting_ap_is/models/audit_request.rb +256 -0
- data/lib/shell_data_reporting_ap_is/models/audit_response.rb +111 -0
- data/lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb +450 -0
- data/lib/shell_data_reporting_ap_is/models/bank_account.rb +192 -0
- data/lib/shell_data_reporting_ap_is/models/base_model.rb +62 -0
- data/lib/shell_data_reporting_ap_is/models/bonus_configuration.rb +419 -0
- data/lib/shell_data_reporting_ap_is/models/bonus_history.rb +444 -0
- data/lib/shell_data_reporting_ap_is/models/card_day_time_restrictions.rb +159 -0
- data/lib/shell_data_reporting_ap_is/models/card_exceptions.rb +268 -0
- data/lib/shell_data_reporting_ap_is/models/card_group_request.rb +178 -0
- data/lib/shell_data_reporting_ap_is/models/card_group_response.rb +109 -0
- data/lib/shell_data_reporting_ap_is/models/card_group_response_card_groups_items.rb +301 -0
- data/lib/shell_data_reporting_ap_is/models/card_type_request.rb +145 -0
- data/lib/shell_data_reporting_ap_is/models/card_type_response.rb +79 -0
- data/lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb +470 -0
- data/lib/shell_data_reporting_ap_is/models/card_type_response_error.rb +60 -0
- data/lib/shell_data_reporting_ap_is/models/card_usage_restrictions.rb +281 -0
- data/lib/shell_data_reporting_ap_is/models/card_usage_summary_request.rb +159 -0
- data/lib/shell_data_reporting_ap_is/models/card_usage_summary_response.rb +79 -0
- data/lib/shell_data_reporting_ap_is/models/col_co_access.rb +88 -0
- data/lib/shell_data_reporting_ap_is/models/current_volume.rb +99 -0
- data/lib/shell_data_reporting_ap_is/models/customer_contract.rb +63 -0
- data/lib/shell_data_reporting_ap_is/models/customer_detail_request.rb +123 -0
- data/lib/shell_data_reporting_ap_is/models/customer_detail_response.rb +437 -0
- data/lib/shell_data_reporting_ap_is/models/customer_price_list_request.rb +200 -0
- data/lib/shell_data_reporting_ap_is/models/customer_price_list_response.rb +82 -0
- data/lib/shell_data_reporting_ap_is/models/default_error_fault.rb +60 -0
- data/lib/shell_data_reporting_ap_is/models/default_error_fault_detail.rb +50 -0
- data/lib/shell_data_reporting_ap_is/models/delivery_addresses.rb +258 -0
- data/lib/shell_data_reporting_ap_is/models/eid_access.rb +75 -0
- data/lib/shell_data_reporting_ap_is/models/eid_document.rb +166 -0
- data/lib/shell_data_reporting_ap_is/models/eid_document_response.rb +140 -0
- data/lib/shell_data_reporting_ap_is/models/eid_download_req.rb +86 -0
- data/lib/shell_data_reporting_ap_is/models/eid_download_request.rb +50 -0
- data/lib/shell_data_reporting_ap_is/models/eid_search_req.rb +160 -0
- data/lib/shell_data_reporting_ap_is/models/eid_search_request.rb +70 -0
- data/lib/shell_data_reporting_ap_is/models/error_details.rb +81 -0
- data/lib/shell_data_reporting_ap_is/models/error_status.rb +60 -0
- data/lib/shell_data_reporting_ap_is/models/error_user_access.rb +50 -0
- data/lib/shell_data_reporting_ap_is/models/error_user_access_error.rb +60 -0
- data/lib/shell_data_reporting_ap_is/models/exception_product.rb +65 -0
- data/lib/shell_data_reporting_ap_is/models/exception_site_location.rb +63 -0
- data/lib/shell_data_reporting_ap_is/models/fee_item.rb +977 -0
- data/lib/shell_data_reporting_ap_is/models/fee_item_summary_all_of0.rb +194 -0
- data/lib/shell_data_reporting_ap_is/models/fee_rule_location.rb +153 -0
- data/lib/shell_data_reporting_ap_is/models/fee_rule_product.rb +98 -0
- data/lib/shell_data_reporting_ap_is/models/fee_rule_tier.rb +74 -0
- data/lib/shell_data_reporting_ap_is/models/fee_summary_response.rb +85 -0
- data/lib/shell_data_reporting_ap_is/models/fees_fee_rule_tiers.rb +124 -0
- data/lib/shell_data_reporting_ap_is/models/finance_currency.rb +98 -0
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_card.rb +73 -0
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_data.rb +267 -0
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_request.rb +197 -0
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_response.rb +79 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_dates_data.rb +62 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_dates_request.rb +50 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_dates_request_filters.rb +146 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_dates_response_data.rb +80 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_distribution_method.rb +99 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_download_req.rb +99 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_download_request.rb +50 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_search_additional_document.rb +80 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_search_details.rb +913 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_search_request.rb +91 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_search_request_filters.rb +344 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_search_response.rb +127 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_summary_details.rb +129 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_summary_request.rb +50 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_summary_request_filters.rb +345 -0
- data/lib/shell_data_reporting_ap_is/models/invoice_summary_response.rb +79 -0
- data/lib/shell_data_reporting_ap_is/models/invoices_summaries.rb +221 -0
- data/lib/shell_data_reporting_ap_is/models/last_statement_of_account.rb +421 -0
- data/lib/shell_data_reporting_ap_is/models/logged_in_user_request.rb +107 -0
- data/lib/shell_data_reporting_ap_is/models/logged_in_user_response.rb +394 -0
- data/lib/shell_data_reporting_ap_is/models/monthly_invoice_trend.rb +112 -0
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_request.rb +360 -0
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_request_accounts_items.rb +84 -0
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_response.rb +110 -0
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_response_transactions_items.rb +1724 -0
- data/lib/shell_data_reporting_ap_is/models/o_auth_provider_error_enum.rb +45 -0
- data/lib/shell_data_reporting_ap_is/models/o_auth_token.rb +100 -0
- data/lib/shell_data_reporting_ap_is/models/past_statement_of_accounts.rb +502 -0
- data/lib/shell_data_reporting_ap_is/models/payer_access.rb +147 -0
- data/lib/shell_data_reporting_ap_is/models/payer_details.rb +1412 -0
- data/lib/shell_data_reporting_ap_is/models/payer_request.rb +126 -0
- data/lib/shell_data_reporting_ap_is/models/payer_response.rb +115 -0
- data/lib/shell_data_reporting_ap_is/models/payers.rb +109 -0
- data/lib/shell_data_reporting_ap_is/models/payments_since_last_soa.rb +322 -0
- data/lib/shell_data_reporting_ap_is/models/pin_advice_types.rb +80 -0
- data/lib/shell_data_reporting_ap_is/models/price_list.rb +485 -0
- data/lib/shell_data_reporting_ap_is/models/price_trans_summary_request.rb +477 -0
- data/lib/shell_data_reporting_ap_is/models/price_transaction_request.rb +572 -0
- data/lib/shell_data_reporting_ap_is/models/priced_request_data.rb +485 -0
- data/lib/shell_data_reporting_ap_is/models/priced_response_data.rb +2132 -0
- data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_response.rb +79 -0
- data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_response_transactions_summary_items.rb +242 -0
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_items_location_items.rb +67 -0
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_req_v2_invoice_status_enum.rb +27 -0
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_req_v2_period_enum.rb +27 -0
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_req_v2_sort_order_enum.rb +37 -0
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_request_v2.rb +72 -0
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_resp_v2_refund_flag_enum.rb +23 -0
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_response.rb +59 -0
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb +1719 -0
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_response_v2.rb +110 -0
- data/lib/shell_data_reporting_ap_is/models/pricing_current_volume.rb +115 -0
- data/lib/shell_data_reporting_ap_is/models/pricing_history.rb +105 -0
- data/lib/shell_data_reporting_ap_is/models/purchase_categories.rb +114 -0
- data/lib/shell_data_reporting_ap_is/models/recent_transaction_req.rb +217 -0
- data/lib/shell_data_reporting_ap_is/models/recent_transaction_request.rb +66 -0
- data/lib/shell_data_reporting_ap_is/models/recent_transactions.rb +918 -0
- data/lib/shell_data_reporting_ap_is/models/recent_transactions_response.rb +110 -0
- data/lib/shell_data_reporting_ap_is/models/role.rb +102 -0
- data/lib/shell_data_reporting_ap_is/models/search_doc_req.rb +269 -0
- data/lib/shell_data_reporting_ap_is/models/search_documents_invoice.rb +204 -0
- data/lib/shell_data_reporting_ap_is/models/search_documents_request.rb +70 -0
- data/lib/shell_data_reporting_ap_is/models/search_documents_response.rb +122 -0
- data/lib/shell_data_reporting_ap_is/models/search_soa_req.rb +197 -0
- data/lib/shell_data_reporting_ap_is/models/search_statement_of_account.rb +220 -0
- data/lib/shell_data_reporting_ap_is/models/search_statement_of_account_request.rb +70 -0
- data/lib/shell_data_reporting_ap_is/models/search_statement_of_account_response.rb +120 -0
- data/lib/shell_data_reporting_ap_is/models/site_location.rb +67 -0
- data/lib/shell_data_reporting_ap_is/models/statement_of_account_request.rb +50 -0
- data/lib/shell_data_reporting_ap_is/models/statement_of_account_request_filters.rb +197 -0
- data/lib/shell_data_reporting_ap_is/models/statement_of_account_resp.rb +138 -0
- data/lib/shell_data_reporting_ap_is/models/statement_of_account_response.rb +80 -0
- data/lib/shell_data_reporting_ap_is/models/tier.rb +167 -0
- data/lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb +1267 -0
- data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_request.rb +267 -0
- data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_response.rb +100 -0
- data/lib/shell_data_reporting_ap_is/models/transaction_fees_request.rb +348 -0
- data/lib/shell_data_reporting_ap_is/models/transaction_fees_response.rb +111 -0
- data/lib/shell_data_reporting_ap_is/models/update_odometer.rb +62 -0
- data/lib/shell_data_reporting_ap_is/models/update_odometer_reference.rb +67 -0
- data/lib/shell_data_reporting_ap_is/models/update_odometer_request.rb +146 -0
- data/lib/shell_data_reporting_ap_is/models/update_odometer_response.rb +93 -0
- data/lib/shell_data_reporting_ap_is/models/usage_summary.rb +202 -0
- data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_request.rb +118 -0
- data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_response.rb +120 -0
- data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_request.rb +103 -0
- data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_response.rb +120 -0
- data/lib/shell_data_reporting_ap_is/utilities/date_time_helper.rb +11 -0
- data/lib/shell_data_reporting_ap_is/utilities/file_wrapper.rb +16 -0
- data/lib/shell_data_reporting_ap_is.rb +229 -0
- data/test/controllers/controller_test_base.rb +34 -0
- data/test/controllers/test_invoice_controller.rb +398 -0
- data/test/controllers/test_transaction_controller.rb +235 -0
- data/test/http_response_catcher.rb +19 -0
- metadata +302 -0
data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_response_transactions_items.rb
ADDED
|
@@ -0,0 +1,1724 @@
|
|
|
1
|
+
# shell_data_reporting_ap_is
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
+
# ( https://apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ShellDataReportingApIs
|
|
7
|
+
# MultiPricedTransactionResponseTransactionsItems Model.
|
|
8
|
+
class MultiPricedTransactionResponseTransactionsItems < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TransactionType is the type of transaction.
|
|
13
|
+
# Example: SalesItem /FeeItem
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_accessor :type
|
|
16
|
+
|
|
17
|
+
# Unique Card Id in GFN
|
|
18
|
+
# Example: 275549
|
|
19
|
+
# @return [Integer]
|
|
20
|
+
attr_accessor :card_id
|
|
21
|
+
|
|
22
|
+
# Card PAN
|
|
23
|
+
# Mask PAN if enabled at Microservices configuration (Mask all digits except
|
|
24
|
+
# the Last 6 digits of the PAN)
|
|
25
|
+
# Example: 7002051006629890645
|
|
26
|
+
# @return [String]
|
|
27
|
+
attr_accessor :card_pan
|
|
28
|
+
|
|
29
|
+
# Card Expiry Date
|
|
30
|
+
# Format: yyyyMMdd
|
|
31
|
+
# @return [String]
|
|
32
|
+
attr_accessor :card_expiry
|
|
33
|
+
|
|
34
|
+
# Local Transaction Date of where the transaction took place
|
|
35
|
+
# Format: yyyyMMdd
|
|
36
|
+
# Note: For a fee item, this parameter will be populated with fee date.
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :transaction_date
|
|
39
|
+
|
|
40
|
+
# Local Transaction Time of where the transaction took place
|
|
41
|
+
# Format: HH:mm:ss (24 hours format)
|
|
42
|
+
# Note: For a fee item, this parameter will be populated with fee date.
|
|
43
|
+
# @return [String]
|
|
44
|
+
attr_accessor :transaction_time
|
|
45
|
+
|
|
46
|
+
# UTC Offset extracted from Sales Date time.
|
|
47
|
+
# Note: This may not be accurate for all TPN transactions
|
|
48
|
+
# Format: +/-HH:mm:ss (24 hours format)
|
|
49
|
+
# @return [String]
|
|
50
|
+
attr_accessor :utc_offset
|
|
51
|
+
|
|
52
|
+
# Fleet Id Input as entered by the drivers at the time of transaction
|
|
53
|
+
# Example: XYZ1234
|
|
54
|
+
# Note: - The value could be null/blank for fees item.
|
|
55
|
+
# @return [String]
|
|
56
|
+
attr_accessor :fleet_id_input
|
|
57
|
+
|
|
58
|
+
# Odometer Input as entered by the drivers at the time of transaction
|
|
59
|
+
# Example: 12345
|
|
60
|
+
# Note: - The value could be null/blank for fees item.
|
|
61
|
+
# @return [Integer]
|
|
62
|
+
attr_accessor :odometer_input
|
|
63
|
+
|
|
64
|
+
# Driver Name embossed on the card
|
|
65
|
+
# Example: ANDREW GILBERRY
|
|
66
|
+
# @return [String]
|
|
67
|
+
attr_accessor :driver_name
|
|
68
|
+
|
|
69
|
+
# Vehicle Registration Number embossed on the card
|
|
70
|
+
# @return [String]
|
|
71
|
+
attr_accessor :vehicle_registration
|
|
72
|
+
|
|
73
|
+
# ISO currency code
|
|
74
|
+
# @return [String]
|
|
75
|
+
attr_accessor :invoice_currency_code
|
|
76
|
+
|
|
77
|
+
# Currency symbol of the Invoice Currency Code
|
|
78
|
+
# Example: £, $
|
|
79
|
+
# @return [String]
|
|
80
|
+
attr_accessor :invoice_currency_symbol
|
|
81
|
+
|
|
82
|
+
# ISO currency code
|
|
83
|
+
# Example: GBP
|
|
84
|
+
# @return [String]
|
|
85
|
+
attr_accessor :transaction_currency_code
|
|
86
|
+
|
|
87
|
+
# Currency symbol of the Transaction Currency Code
|
|
88
|
+
# Example: £, $
|
|
89
|
+
# @return [String]
|
|
90
|
+
attr_accessor :transaction_currency_symbol
|
|
91
|
+
|
|
92
|
+
# Net Amount
|
|
93
|
+
# @return [Integer]
|
|
94
|
+
attr_accessor :transaction_net_amount
|
|
95
|
+
|
|
96
|
+
# Tax Amount
|
|
97
|
+
# @return [Integer]
|
|
98
|
+
attr_accessor :transaction_tax
|
|
99
|
+
|
|
100
|
+
# Gross Amount
|
|
101
|
+
# @return [Integer]
|
|
102
|
+
attr_accessor :transaction_gross_amount
|
|
103
|
+
|
|
104
|
+
# Invoiced Net Amount
|
|
105
|
+
# Note: For a fee item, this parameter will be populated with fee
|
|
106
|
+
# InvoiceNetAmount.
|
|
107
|
+
# @return [Integer]
|
|
108
|
+
attr_accessor :invoice_net_amount
|
|
109
|
+
|
|
110
|
+
# Invoiced Tax Amount
|
|
111
|
+
# @return [Integer]
|
|
112
|
+
attr_accessor :invoice_tax
|
|
113
|
+
|
|
114
|
+
# Invoice Gross Amount
|
|
115
|
+
# Note: For a fee item, this parameter will be populated with fee
|
|
116
|
+
# InvoiceGrossAmount.
|
|
117
|
+
# @return [Integer]
|
|
118
|
+
attr_accessor :invoice_gross_amount
|
|
119
|
+
|
|
120
|
+
# Country of Purchase
|
|
121
|
+
# Example: France, Germany
|
|
122
|
+
# Note: - The value could be null/blank for fees item.
|
|
123
|
+
# @return [String]
|
|
124
|
+
attr_accessor :purchased_in_country
|
|
125
|
+
|
|
126
|
+
# Account Id
|
|
127
|
+
# @return [Integer]
|
|
128
|
+
attr_accessor :account_id
|
|
129
|
+
|
|
130
|
+
# Account Number
|
|
131
|
+
# @return [String]
|
|
132
|
+
attr_accessor :account_number
|
|
133
|
+
|
|
134
|
+
# Account Name
|
|
135
|
+
# @return [String]
|
|
136
|
+
attr_accessor :account_name
|
|
137
|
+
|
|
138
|
+
# Account Short Name
|
|
139
|
+
# @return [String]
|
|
140
|
+
attr_accessor :account_short_name
|
|
141
|
+
|
|
142
|
+
# Quantity/Volume
|
|
143
|
+
# @return [Integer]
|
|
144
|
+
attr_accessor :quantity
|
|
145
|
+
|
|
146
|
+
# True if the product on transaction is listed as a fuel product else return
|
|
147
|
+
# false
|
|
148
|
+
# @return [TrueClass | FalseClass]
|
|
149
|
+
attr_accessor :fuel_product
|
|
150
|
+
|
|
151
|
+
# Product Unit Price in transaction currency
|
|
152
|
+
# Note: - The value could be null/blank for fees item
|
|
153
|
+
# @return [Integer]
|
|
154
|
+
attr_accessor :unit_price_in_transaction_currency
|
|
155
|
+
|
|
156
|
+
# Product Unit Price in invoice currency
|
|
157
|
+
# Note: - The value could be null/blank for fees item
|
|
158
|
+
# @return [Integer]
|
|
159
|
+
attr_accessor :unit_price_in_invoice_currency
|
|
160
|
+
|
|
161
|
+
# Unit Discount in transaction currency
|
|
162
|
+
# Note: - The value could be null/blank for fees item
|
|
163
|
+
# @return [Integer]
|
|
164
|
+
attr_accessor :unit_discount_transaction_currency
|
|
165
|
+
|
|
166
|
+
# Unit Discount in invoice currency
|
|
167
|
+
# Note: - The value could be null/blank for fees item.
|
|
168
|
+
# @return [Integer]
|
|
169
|
+
attr_accessor :unit_discount_invoice_currency
|
|
170
|
+
|
|
171
|
+
# True when the transaction is already invoice, else return False
|
|
172
|
+
# @return [TrueClass | FalseClass]
|
|
173
|
+
attr_accessor :is_invoiced
|
|
174
|
+
|
|
175
|
+
# Invoice Number if invoiced
|
|
176
|
+
# Example:
|
|
177
|
+
# S04500493
|
|
178
|
+
# S04478304
|
|
179
|
+
# S04490319
|
|
180
|
+
# @return [String]
|
|
181
|
+
attr_accessor :invoice_number
|
|
182
|
+
|
|
183
|
+
# Invoice Date
|
|
184
|
+
# Format: yyyyMMdd HH:mm:ss
|
|
185
|
+
# @return [String]
|
|
186
|
+
attr_accessor :invoice_date
|
|
187
|
+
|
|
188
|
+
# Site Code
|
|
189
|
+
# Example:
|
|
190
|
+
# 050001 - CHARNOCK RICHARD NTHBOUND MWSA 0755
|
|
191
|
+
# @return [String]
|
|
192
|
+
attr_accessor :site_code
|
|
193
|
+
|
|
194
|
+
# Site Name
|
|
195
|
+
# Example:
|
|
196
|
+
# 050001 - CHARNOCK RICHARD NTHBOUND MWSA 0755
|
|
197
|
+
# @return [String]
|
|
198
|
+
attr_accessor :site_name
|
|
199
|
+
|
|
200
|
+
# Site Country
|
|
201
|
+
# Example: France, Germany
|
|
202
|
+
# @return [String]
|
|
203
|
+
attr_accessor :site_country
|
|
204
|
+
|
|
205
|
+
# Site Country
|
|
206
|
+
# Example: France, Germany
|
|
207
|
+
# @return [Array[SiteLocation]]
|
|
208
|
+
attr_accessor :location
|
|
209
|
+
|
|
210
|
+
# Card Group Name
|
|
211
|
+
# @return [String]
|
|
212
|
+
attr_accessor :card_group_name
|
|
213
|
+
|
|
214
|
+
# ReceiptNumber
|
|
215
|
+
# @return [String]
|
|
216
|
+
attr_accessor :receipt_number
|
|
217
|
+
|
|
218
|
+
# Product Code
|
|
219
|
+
# 10 TMF Charges
|
|
220
|
+
# 11 Tunnel/Bridges
|
|
221
|
+
# 12 Motorway toll
|
|
222
|
+
# @return [String]
|
|
223
|
+
attr_accessor :product_code
|
|
224
|
+
|
|
225
|
+
# Product Name
|
|
226
|
+
# Example:
|
|
227
|
+
# Unleaded - High octane
|
|
228
|
+
# Unleaded - Medium octane
|
|
229
|
+
# Unleaded - Low octane
|
|
230
|
+
# Unleaded Environmental
|
|
231
|
+
# @return [String]
|
|
232
|
+
attr_accessor :product_name
|
|
233
|
+
|
|
234
|
+
# Product Group Id
|
|
235
|
+
# Example:
|
|
236
|
+
# 1 Parent Product Group
|
|
237
|
+
# 2 All Fuels
|
|
238
|
+
# 3 Motor gasoline
|
|
239
|
+
# 4 2 stroke
|
|
240
|
+
# 5 Autogas
|
|
241
|
+
# @return [Integer]
|
|
242
|
+
attr_accessor :product_group_id
|
|
243
|
+
|
|
244
|
+
# Product Group Name
|
|
245
|
+
# Example:
|
|
246
|
+
# 1 Parent Product Group
|
|
247
|
+
# 2 All Fuels
|
|
248
|
+
# 3 Motor gasoline
|
|
249
|
+
# 4 2 stroke
|
|
250
|
+
# 5 Autogas
|
|
251
|
+
# @return [String]
|
|
252
|
+
attr_accessor :product_group_name
|
|
253
|
+
|
|
254
|
+
# DelCo Exchange Rate (Site exchange rate)
|
|
255
|
+
# Note: - The value could be null/blank for fees item.
|
|
256
|
+
# @return [Float]
|
|
257
|
+
attr_accessor :del_co_exchange_rate
|
|
258
|
+
|
|
259
|
+
# ColCo Exchange Rate (Customer exchange rate)
|
|
260
|
+
# @return [Integer]
|
|
261
|
+
attr_accessor :col_co_exchange_rate
|
|
262
|
+
|
|
263
|
+
# True when transaction occurred at a Shell site else return False
|
|
264
|
+
# Note: - The value could be null/blank for fees item.
|
|
265
|
+
# @return [TrueClass | FalseClass]
|
|
266
|
+
attr_accessor :is_shell_site
|
|
267
|
+
|
|
268
|
+
# Network (Shell PH, ESSO, etc.,)
|
|
269
|
+
# 100013 STEINDORFER
|
|
270
|
+
# 100015 S.A. BELGIAN SHELL N.V.
|
|
271
|
+
# 100016 ESSO BE
|
|
272
|
+
# Note: - The value could be null/blank for fees item.
|
|
273
|
+
# @return [String]
|
|
274
|
+
attr_accessor :network
|
|
275
|
+
|
|
276
|
+
# Site Group Id
|
|
277
|
+
# Example: 202
|
|
278
|
+
# Note: - The value could be null/blank for fees item.
|
|
279
|
+
# @return [Integer]
|
|
280
|
+
attr_accessor :site_group_id
|
|
281
|
+
|
|
282
|
+
# Site GroupName
|
|
283
|
+
# Example: CZ 9100 ECONOMY NETWORK
|
|
284
|
+
# Note: - The value could be null/blank for fees item.
|
|
285
|
+
# @return [String]
|
|
286
|
+
attr_accessor :site_group_name
|
|
287
|
+
|
|
288
|
+
# Transaction Posting Date
|
|
289
|
+
# Format: yyyyMMdd HHmmss
|
|
290
|
+
# @return [String]
|
|
291
|
+
attr_accessor :posting_date
|
|
292
|
+
|
|
293
|
+
# First digits of the Card PAN
|
|
294
|
+
# 7002 = Fleet
|
|
295
|
+
# @return [String]
|
|
296
|
+
attr_accessor :issuer_code
|
|
297
|
+
|
|
298
|
+
# ISO code of the country where the transaction took place
|
|
299
|
+
# Example: “NL”
|
|
300
|
+
# Note: - The value could be null/blank for fees item.
|
|
301
|
+
# @return [String]
|
|
302
|
+
attr_accessor :purchased_in_country_code
|
|
303
|
+
|
|
304
|
+
# ISO code of the Customer Country
|
|
305
|
+
# Example: NL
|
|
306
|
+
# @return [String]
|
|
307
|
+
attr_accessor :customer_country_code
|
|
308
|
+
|
|
309
|
+
# Name of the Customer Country
|
|
310
|
+
# Example: Netherlands
|
|
311
|
+
# @return [String]
|
|
312
|
+
attr_accessor :customer_country
|
|
313
|
+
|
|
314
|
+
# Release code, 7th Digit of the Card PAN
|
|
315
|
+
# Example: 8 for 7021882
|
|
316
|
+
# @return [String]
|
|
317
|
+
attr_accessor :release_code
|
|
318
|
+
|
|
319
|
+
# Card group ID
|
|
320
|
+
# @return [String]
|
|
321
|
+
attr_accessor :card_group_id
|
|
322
|
+
|
|
323
|
+
# 3 digits, Card sequence number and Check digit (Digit 16,17 and 18 on the
|
|
324
|
+
# card pan)
|
|
325
|
+
# @return [String]
|
|
326
|
+
attr_accessor :card_sequence_number
|
|
327
|
+
|
|
328
|
+
# Check digit, Last number of the card pan
|
|
329
|
+
# @return [String]
|
|
330
|
+
attr_accessor :check_digit
|
|
331
|
+
|
|
332
|
+
# FleetId/CRN description in Card Platform configured at the account level
|
|
333
|
+
# @return [String]
|
|
334
|
+
attr_accessor :fleet_id_description
|
|
335
|
+
|
|
336
|
+
# VAT Percentage
|
|
337
|
+
# 0.20 for 20%
|
|
338
|
+
# Note: This parameter will be populated in the response for both SalesItem
|
|
339
|
+
# and FeeItem
|
|
340
|
+
# @return [Float]
|
|
341
|
+
attr_accessor :vat_rate
|
|
342
|
+
|
|
343
|
+
# VAT Category Id-Description
|
|
344
|
+
# 1-Zero Rated
|
|
345
|
+
# @return [String]
|
|
346
|
+
attr_accessor :vat_category
|
|
347
|
+
|
|
348
|
+
# VAT Country
|
|
349
|
+
# Example: Netherlands
|
|
350
|
+
# @return [String]
|
|
351
|
+
attr_accessor :vat_country
|
|
352
|
+
|
|
353
|
+
# Effective Discount (excluding VAT, in transaction currency) 4 digits
|
|
354
|
+
# Example: 0.0000
|
|
355
|
+
# @return [Float]
|
|
356
|
+
attr_accessor :effective_discount_in_trx_currency
|
|
357
|
+
|
|
358
|
+
# Transaction Type
|
|
359
|
+
# Example: Purchase when Card is Present else Blank
|
|
360
|
+
# Note: - The value could be null/blank for fees item.
|
|
361
|
+
# @return [String]
|
|
362
|
+
attr_accessor :transaction_type
|
|
363
|
+
|
|
364
|
+
# Pin Indicator (Indicates whether PIN used or not used at the time of
|
|
365
|
+
# transaction)
|
|
366
|
+
# Example: “PIN Used'” or “No PIN” or “Unknown”
|
|
367
|
+
# Note: - The value could be null/blank for fees item
|
|
368
|
+
# @return [String]
|
|
369
|
+
attr_accessor :pin_indicator
|
|
370
|
+
|
|
371
|
+
# Is VAT Applicable for this transaction
|
|
372
|
+
# Example: “Y” or “N”
|
|
373
|
+
# @return [String]
|
|
374
|
+
attr_accessor :vat_applicable
|
|
375
|
+
|
|
376
|
+
# Net Invoice Indicator, Will the customer receive an invoice without VAT?
|
|
377
|
+
# Example: “Y” or “N”
|
|
378
|
+
# Note: - The value could be null/blank for fees item.
|
|
379
|
+
# @return [String]
|
|
380
|
+
attr_accessor :net_invoice_indicator
|
|
381
|
+
|
|
382
|
+
# Customer currency code
|
|
383
|
+
# Example: GBP
|
|
384
|
+
# @return [String]
|
|
385
|
+
attr_accessor :customer_currency_code
|
|
386
|
+
|
|
387
|
+
# Customer currency Symbol
|
|
388
|
+
# @return [String]
|
|
389
|
+
attr_accessor :customer_currency_symbol
|
|
390
|
+
|
|
391
|
+
# Effective Unit Discount (excluding VAT in Customer currency)
|
|
392
|
+
# Note: - The value could be null/blank for fees item.
|
|
393
|
+
# @return [Integer]
|
|
394
|
+
attr_accessor :effective_unit_discount_in_customer_currency
|
|
395
|
+
|
|
396
|
+
# Effective Discount (excluding VAT in Customer currency)
|
|
397
|
+
# Note: - The value could be null/blank for fees item.
|
|
398
|
+
# @return [Integer]
|
|
399
|
+
attr_accessor :effective_discount_in_customer_currency
|
|
400
|
+
|
|
401
|
+
# VAT on Net Amount (in Customer currency)
|
|
402
|
+
# @return [Integer]
|
|
403
|
+
attr_accessor :va_ton_net_amount_in_customer_currency
|
|
404
|
+
|
|
405
|
+
# Discount Type
|
|
406
|
+
# Example: 1-None
|
|
407
|
+
# 2-Pence per unit
|
|
408
|
+
# @return [String]
|
|
409
|
+
attr_accessor :discount_type
|
|
410
|
+
|
|
411
|
+
# Transaction status "U" or "I"
|
|
412
|
+
# “U” stands for Uninvoiced
|
|
413
|
+
# “I” stands for Invoiced
|
|
414
|
+
# @return [String]
|
|
415
|
+
attr_accessor :transaction_status
|
|
416
|
+
|
|
417
|
+
# Unique Sales Item Identifier
|
|
418
|
+
# Example: 18315958002
|
|
419
|
+
# Note: For a fee item, this parameter will be populated with SalesItemId.
|
|
420
|
+
# @return [Integer]
|
|
421
|
+
attr_accessor :sales_item_id
|
|
422
|
+
|
|
423
|
+
# Payer Group applicable for the Large Customer NL+8 digit code
|
|
424
|
+
# @return [String]
|
|
425
|
+
attr_accessor :payer_group
|
|
426
|
+
|
|
427
|
+
# Payer Group Name
|
|
428
|
+
# @return [String]
|
|
429
|
+
attr_accessor :payer_group_name
|
|
430
|
+
|
|
431
|
+
# Refund Flag “N” for Not Refunded and “Y” for Refunded.
|
|
432
|
+
# Note: - The value could be null/blank for fees item.
|
|
433
|
+
# @return [String]
|
|
434
|
+
attr_accessor :refund_flag
|
|
435
|
+
|
|
436
|
+
# Shows Sales Item Id of the original item that was refunded
|
|
437
|
+
# @return [String]
|
|
438
|
+
attr_accessor :original_sales_item_id
|
|
439
|
+
|
|
440
|
+
# Delco Name
|
|
441
|
+
# Example: SHELL NEDERLAND VERKOOPMAATSCHAPPIJ BV
|
|
442
|
+
# @return [String]
|
|
443
|
+
attr_accessor :delco_name
|
|
444
|
+
|
|
445
|
+
# Delco Code
|
|
446
|
+
# 014, 018, etc.,
|
|
447
|
+
# @return [String]
|
|
448
|
+
attr_accessor :delco_code
|
|
449
|
+
|
|
450
|
+
# Payer number (Country code+8 digits)
|
|
451
|
+
# Example: NL10042616
|
|
452
|
+
# @return [String]
|
|
453
|
+
attr_accessor :payer_number
|
|
454
|
+
|
|
455
|
+
# Payer name
|
|
456
|
+
# Example: V.M. LE COMTE
|
|
457
|
+
# @return [String]
|
|
458
|
+
attr_accessor :payer_name
|
|
459
|
+
|
|
460
|
+
# Year/Month of the Card Expiry captured on the transaction
|
|
461
|
+
# Example: 1901
|
|
462
|
+
# @return [String]
|
|
463
|
+
attr_accessor :card_expiry_period
|
|
464
|
+
|
|
465
|
+
# Authorisation code of the transaction
|
|
466
|
+
# Example: 011256
|
|
467
|
+
# Note: - The value could be null/blank for fees item.
|
|
468
|
+
# @return [String]
|
|
469
|
+
attr_accessor :authorisation_code
|
|
470
|
+
|
|
471
|
+
# Unique id of the transaction that may include one or more salesitems
|
|
472
|
+
# Example: io9KVXk1UkW57XWKyeaHHg
|
|
473
|
+
# Note: - The value could be null/blank for fees item.
|
|
474
|
+
# @return [String]
|
|
475
|
+
attr_accessor :transaction_id
|
|
476
|
+
|
|
477
|
+
# Transaction line item number
|
|
478
|
+
# Example: 1
|
|
479
|
+
# Note: - The value could be null/blank for fees item.
|
|
480
|
+
# @return [String]
|
|
481
|
+
attr_accessor :transaction_line
|
|
482
|
+
|
|
483
|
+
# Is the Sales Item allowed for clearing? i.e. not written off
|
|
484
|
+
# Example: “Y” or “N”
|
|
485
|
+
# Note: - The value could be null/blank for fees item.
|
|
486
|
+
# @return [String]
|
|
487
|
+
attr_accessor :allow_clearing
|
|
488
|
+
|
|
489
|
+
# CRM Case number if the sales item is in dispute.
|
|
490
|
+
# Note: - The value could be null/blank for fees item.
|
|
491
|
+
# @return [String]
|
|
492
|
+
attr_accessor :crm_number
|
|
493
|
+
|
|
494
|
+
# Sales Item Dispute Status if disputed
|
|
495
|
+
# 0 No Dispute
|
|
496
|
+
# 1 In Dispute
|
|
497
|
+
# 2 Re-Instated
|
|
498
|
+
# 3 Adjusted
|
|
499
|
+
# 4 Written Off by Colco
|
|
500
|
+
# 5 Written Off by Delco
|
|
501
|
+
# 6 Charged Back to Site
|
|
502
|
+
# @return [String]
|
|
503
|
+
attr_accessor :dispute_status
|
|
504
|
+
|
|
505
|
+
# Unit discount in customer currency.
|
|
506
|
+
# Example: 28.279000
|
|
507
|
+
# @return [Float]
|
|
508
|
+
attr_accessor :rebate_rate
|
|
509
|
+
|
|
510
|
+
# Exchange rate from transaction currency to customer currency.
|
|
511
|
+
# Example: 1
|
|
512
|
+
# @return [Integer]
|
|
513
|
+
attr_accessor :del_co_to_col_co_exchange_rate
|
|
514
|
+
|
|
515
|
+
# Net euro amount.
|
|
516
|
+
# Example: 37.93
|
|
517
|
+
# Note: - The value could be null/blank for fees item.
|
|
518
|
+
# @return [Float]
|
|
519
|
+
attr_accessor :net_euro_amount
|
|
520
|
+
|
|
521
|
+
# Euro rebate amount.
|
|
522
|
+
# Example: 0
|
|
523
|
+
# Note: - The value could be null/blank for fees item.
|
|
524
|
+
# @return [Integer]
|
|
525
|
+
attr_accessor :euro_rebate_amount
|
|
526
|
+
|
|
527
|
+
# Euro VAT amount.
|
|
528
|
+
# Example: 7.96
|
|
529
|
+
# Note: - The value could be null/blank for fees item.
|
|
530
|
+
# @return [Float]
|
|
531
|
+
attr_accessor :euro_vat_amount
|
|
532
|
+
|
|
533
|
+
# Parent customer number
|
|
534
|
+
# @return [String]
|
|
535
|
+
attr_accessor :parent_customer_number
|
|
536
|
+
|
|
537
|
+
# Parent customer name.
|
|
538
|
+
# @return [String]
|
|
539
|
+
attr_accessor :parent_customer_name
|
|
540
|
+
|
|
541
|
+
# Parent customer id.
|
|
542
|
+
# @return [Integer]
|
|
543
|
+
attr_accessor :parent_customer_id
|
|
544
|
+
|
|
545
|
+
# Incoming Site Number
|
|
546
|
+
# Example: 100021
|
|
547
|
+
# Note: - The value could be null/blank for fees item.
|
|
548
|
+
# @return [String]
|
|
549
|
+
attr_accessor :incoming_site_number
|
|
550
|
+
|
|
551
|
+
# Incoming Site Description
|
|
552
|
+
# Example: HN3 INTI_02-82.02
|
|
553
|
+
# Note: - The value could be null/blank for fees item.
|
|
554
|
+
# @return [String]
|
|
555
|
+
attr_accessor :incoming_site_description
|
|
556
|
+
|
|
557
|
+
# Incoming Currency Code
|
|
558
|
+
# Example: GBP
|
|
559
|
+
# Note: - The value could be null/blank for fees item.
|
|
560
|
+
# @return [String]
|
|
561
|
+
attr_accessor :incoming_currency_code
|
|
562
|
+
|
|
563
|
+
# Incoming Product Code
|
|
564
|
+
# Example: 30
|
|
565
|
+
# @return [String]
|
|
566
|
+
attr_accessor :incoming_product_code
|
|
567
|
+
|
|
568
|
+
# Credit Debit Code
|
|
569
|
+
# Example: “D” or “C”
|
|
570
|
+
# The value could be null/blank for fees item.
|
|
571
|
+
# @return [String]
|
|
572
|
+
attr_accessor :credit_debit_code
|
|
573
|
+
|
|
574
|
+
# Correction Flag
|
|
575
|
+
# Example: “Y” or “N”
|
|
576
|
+
# Note: - The value could be null/blank for fees item.
|
|
577
|
+
# @return [String]
|
|
578
|
+
attr_accessor :correction_flag
|
|
579
|
+
|
|
580
|
+
# Additional details
|
|
581
|
+
# @return [String]
|
|
582
|
+
attr_accessor :additional1
|
|
583
|
+
|
|
584
|
+
# Additional details
|
|
585
|
+
# @return [String]
|
|
586
|
+
attr_accessor :additional2
|
|
587
|
+
|
|
588
|
+
# Additional details
|
|
589
|
+
# @return [String]
|
|
590
|
+
attr_accessor :additional3
|
|
591
|
+
|
|
592
|
+
# Additional details
|
|
593
|
+
# @return [String]
|
|
594
|
+
attr_accessor :additional4
|
|
595
|
+
|
|
596
|
+
# Rebate on Net Amount in Customer Currency
|
|
597
|
+
# Example: -0.735000000000
|
|
598
|
+
# Note: - The value could be null/blank for fees item.
|
|
599
|
+
# @return [Float]
|
|
600
|
+
attr_accessor :rebateon_net_amount_in_customer_currency
|
|
601
|
+
|
|
602
|
+
# Rebate on Net Amount in Transaction Currency
|
|
603
|
+
# Example: -0.735000000000
|
|
604
|
+
# Note: - The value could be null/blank for fees item.
|
|
605
|
+
# @return [Float]
|
|
606
|
+
attr_accessor :rebateon_net_amount_in_transaction_currency
|
|
607
|
+
|
|
608
|
+
# Network Code
|
|
609
|
+
# Example: AVEE PTUAZONW CUBFAO COSFS
|
|
610
|
+
# Note: - The value could be null/blank for fees item.
|
|
611
|
+
# @return [String]
|
|
612
|
+
attr_accessor :network_code
|
|
613
|
+
|
|
614
|
+
# Transaction Identifier
|
|
615
|
+
# @return [String]
|
|
616
|
+
attr_accessor :trn_identifier
|
|
617
|
+
|
|
618
|
+
# Card Type
|
|
619
|
+
# @return [String]
|
|
620
|
+
attr_accessor :card_type
|
|
621
|
+
|
|
622
|
+
# Delco List Price Unit Net
|
|
623
|
+
# Example: 30.500000
|
|
624
|
+
# Note: - The value could be null/blank for fees item
|
|
625
|
+
# @return [Float]
|
|
626
|
+
attr_accessor :delco_list_price_unit_net
|
|
627
|
+
|
|
628
|
+
# Retail Net Price (or pump net price) per Unit in transaction currency
|
|
629
|
+
# Example: 1.921000
|
|
630
|
+
# Note: - The value could be null/blank for fees item
|
|
631
|
+
# @return [Float]
|
|
632
|
+
attr_accessor :delco_retail_price_unit_net
|
|
633
|
+
|
|
634
|
+
# Retail gross price (or pump gross price) per unit in transaction currency
|
|
635
|
+
# Note: - The value could be null/blank for fees item
|
|
636
|
+
# @return [Float]
|
|
637
|
+
attr_accessor :delco_retail_price_unit_gross
|
|
638
|
+
|
|
639
|
+
# Retail net price (or net pump price) in transaction currency
|
|
640
|
+
# Note: - The value could be null/blank for fees item
|
|
641
|
+
# @return [Float]
|
|
642
|
+
attr_accessor :delco_retail_value_total_net
|
|
643
|
+
|
|
644
|
+
# Retail gross price (or gross pump price) in transaction currency
|
|
645
|
+
# Note: - The value could be null/blank for fees item
|
|
646
|
+
# @return [Float]
|
|
647
|
+
attr_accessor :delco_retail_value_total_gross
|
|
648
|
+
|
|
649
|
+
# Retail gross price (or pump gross price) per unit in customer currency
|
|
650
|
+
# Note: - The value could be null/blank for fees item
|
|
651
|
+
# @return [Float]
|
|
652
|
+
attr_accessor :customer_retail_price_unit_gross
|
|
653
|
+
|
|
654
|
+
# Retail gross price (or gross pump price) in customer currency
|
|
655
|
+
# Note: - The value could be null/blank for fees item
|
|
656
|
+
# @return [Float]
|
|
657
|
+
attr_accessor :customer_retail_value_total_gross
|
|
658
|
+
|
|
659
|
+
# Retail net price (or net pump price) in customer currency
|
|
660
|
+
# Note: - The value could be null/blank for fees item
|
|
661
|
+
# @return [Float]
|
|
662
|
+
attr_accessor :customer_retail_value_total_net
|
|
663
|
+
|
|
664
|
+
# Transaction Type Description
|
|
665
|
+
# Note: - The value could be null/blank for fees item
|
|
666
|
+
# @return [String]
|
|
667
|
+
attr_accessor :transaction_type_description
|
|
668
|
+
|
|
669
|
+
# A mapping from model property names to API property names.
|
|
670
|
+
def self.names
|
|
671
|
+
@_hash = {} if @_hash.nil?
|
|
672
|
+
@_hash['type'] = 'Type'
|
|
673
|
+
@_hash['card_id'] = 'CardId'
|
|
674
|
+
@_hash['card_pan'] = 'CardPAN'
|
|
675
|
+
@_hash['card_expiry'] = 'CardExpiry'
|
|
676
|
+
@_hash['transaction_date'] = 'TransactionDate'
|
|
677
|
+
@_hash['transaction_time'] = 'TransactionTime'
|
|
678
|
+
@_hash['utc_offset'] = 'UTCOffset'
|
|
679
|
+
@_hash['fleet_id_input'] = 'FleetIdInput'
|
|
680
|
+
@_hash['odometer_input'] = 'OdometerInput'
|
|
681
|
+
@_hash['driver_name'] = 'DriverName'
|
|
682
|
+
@_hash['vehicle_registration'] = 'VehicleRegistration'
|
|
683
|
+
@_hash['invoice_currency_code'] = 'InvoiceCurrencyCode'
|
|
684
|
+
@_hash['invoice_currency_symbol'] = 'InvoiceCurrencySymbol'
|
|
685
|
+
@_hash['transaction_currency_code'] = 'TransactionCurrencyCode'
|
|
686
|
+
@_hash['transaction_currency_symbol'] = 'TransactionCurrencySymbol'
|
|
687
|
+
@_hash['transaction_net_amount'] = 'TransactionNetAmount'
|
|
688
|
+
@_hash['transaction_tax'] = 'TransactionTax'
|
|
689
|
+
@_hash['transaction_gross_amount'] = 'TransactionGrossAmount'
|
|
690
|
+
@_hash['invoice_net_amount'] = 'InvoiceNetAmount'
|
|
691
|
+
@_hash['invoice_tax'] = 'InvoiceTax'
|
|
692
|
+
@_hash['invoice_gross_amount'] = 'InvoiceGrossAmount'
|
|
693
|
+
@_hash['purchased_in_country'] = 'PurchasedInCountry'
|
|
694
|
+
@_hash['account_id'] = 'AccountId'
|
|
695
|
+
@_hash['account_number'] = 'AccountNumber'
|
|
696
|
+
@_hash['account_name'] = 'AccountName'
|
|
697
|
+
@_hash['account_short_name'] = 'AccountShortName'
|
|
698
|
+
@_hash['quantity'] = 'Quantity'
|
|
699
|
+
@_hash['fuel_product'] = 'FuelProduct'
|
|
700
|
+
@_hash['unit_price_in_transaction_currency'] =
|
|
701
|
+
'UnitPriceInTransactionCurrency'
|
|
702
|
+
@_hash['unit_price_in_invoice_currency'] = 'UnitPriceInInvoiceCurrency'
|
|
703
|
+
@_hash['unit_discount_transaction_currency'] =
|
|
704
|
+
'UnitDiscountTransactionCurrency'
|
|
705
|
+
@_hash['unit_discount_invoice_currency'] = 'UnitDiscountInvoiceCurrency'
|
|
706
|
+
@_hash['is_invoiced'] = 'IsInvoiced'
|
|
707
|
+
@_hash['invoice_number'] = 'InvoiceNumber'
|
|
708
|
+
@_hash['invoice_date'] = 'InvoiceDate'
|
|
709
|
+
@_hash['site_code'] = 'SiteCode'
|
|
710
|
+
@_hash['site_name'] = 'SiteName'
|
|
711
|
+
@_hash['site_country'] = 'SiteCountry'
|
|
712
|
+
@_hash['location'] = 'Location'
|
|
713
|
+
@_hash['card_group_name'] = 'CardGroupName'
|
|
714
|
+
@_hash['receipt_number'] = 'ReceiptNumber'
|
|
715
|
+
@_hash['product_code'] = 'ProductCode'
|
|
716
|
+
@_hash['product_name'] = 'ProductName'
|
|
717
|
+
@_hash['product_group_id'] = 'ProductGroupId'
|
|
718
|
+
@_hash['product_group_name'] = 'ProductGroupName'
|
|
719
|
+
@_hash['del_co_exchange_rate'] = 'DelCoExchangeRate'
|
|
720
|
+
@_hash['col_co_exchange_rate'] = 'ColCoExchangeRate'
|
|
721
|
+
@_hash['is_shell_site'] = 'IsShellSite'
|
|
722
|
+
@_hash['network'] = 'Network'
|
|
723
|
+
@_hash['site_group_id'] = 'SiteGroupId'
|
|
724
|
+
@_hash['site_group_name'] = 'SiteGroupName'
|
|
725
|
+
@_hash['posting_date'] = 'PostingDate'
|
|
726
|
+
@_hash['issuer_code'] = 'IssuerCode'
|
|
727
|
+
@_hash['purchased_in_country_code'] = 'PurchasedInCountryCode'
|
|
728
|
+
@_hash['customer_country_code'] = 'CustomerCountryCode'
|
|
729
|
+
@_hash['customer_country'] = 'CustomerCountry'
|
|
730
|
+
@_hash['release_code'] = 'ReleaseCode'
|
|
731
|
+
@_hash['card_group_id'] = 'CardGroupId'
|
|
732
|
+
@_hash['card_sequence_number'] = 'CardSequenceNumber'
|
|
733
|
+
@_hash['check_digit'] = 'CheckDigit'
|
|
734
|
+
@_hash['fleet_id_description'] = 'FleetIDDescription'
|
|
735
|
+
@_hash['vat_rate'] = 'VATRate'
|
|
736
|
+
@_hash['vat_category'] = 'VATCategory'
|
|
737
|
+
@_hash['vat_country'] = 'VATCountry'
|
|
738
|
+
@_hash['effective_discount_in_trx_currency'] =
|
|
739
|
+
'EffectiveDiscountInTrxCurrency'
|
|
740
|
+
@_hash['transaction_type'] = 'TransactionType'
|
|
741
|
+
@_hash['pin_indicator'] = 'PINIndicator'
|
|
742
|
+
@_hash['vat_applicable'] = 'VATApplicable'
|
|
743
|
+
@_hash['net_invoice_indicator'] = 'NetInvoiceIndicator'
|
|
744
|
+
@_hash['customer_currency_code'] = 'CustomerCurrencyCode'
|
|
745
|
+
@_hash['customer_currency_symbol'] = 'CustomerCurrencySymbol'
|
|
746
|
+
@_hash['effective_unit_discount_in_customer_currency'] =
|
|
747
|
+
'EffectiveUnitDiscountInCustomerCurrency'
|
|
748
|
+
@_hash['effective_discount_in_customer_currency'] =
|
|
749
|
+
'EffectiveDiscountInCustomerCurrency'
|
|
750
|
+
@_hash['va_ton_net_amount_in_customer_currency'] =
|
|
751
|
+
'VATonNetAmountInCustomerCurrency'
|
|
752
|
+
@_hash['discount_type'] = 'DiscountType'
|
|
753
|
+
@_hash['transaction_status'] = 'TransactionStatus'
|
|
754
|
+
@_hash['sales_item_id'] = 'SalesItemId'
|
|
755
|
+
@_hash['payer_group'] = 'PayerGroup'
|
|
756
|
+
@_hash['payer_group_name'] = 'PayerGroupName'
|
|
757
|
+
@_hash['refund_flag'] = 'RefundFlag'
|
|
758
|
+
@_hash['original_sales_item_id'] = 'OriginalSalesItemId'
|
|
759
|
+
@_hash['delco_name'] = 'DelcoName'
|
|
760
|
+
@_hash['delco_code'] = 'DelcoCode'
|
|
761
|
+
@_hash['payer_number'] = 'PayerNumber'
|
|
762
|
+
@_hash['payer_name'] = 'PayerName'
|
|
763
|
+
@_hash['card_expiry_period'] = 'CardExpiryPeriod'
|
|
764
|
+
@_hash['authorisation_code'] = 'AuthorisationCode'
|
|
765
|
+
@_hash['transaction_id'] = 'TransactionId'
|
|
766
|
+
@_hash['transaction_line'] = 'TransactionLine'
|
|
767
|
+
@_hash['allow_clearing'] = 'AllowClearing'
|
|
768
|
+
@_hash['crm_number'] = 'CRMNumber'
|
|
769
|
+
@_hash['dispute_status'] = 'DisputeStatus'
|
|
770
|
+
@_hash['rebate_rate'] = 'RebateRate'
|
|
771
|
+
@_hash['del_co_to_col_co_exchange_rate'] = 'DelCoToColCoExchangeRate'
|
|
772
|
+
@_hash['net_euro_amount'] = 'NetEuroAmount'
|
|
773
|
+
@_hash['euro_rebate_amount'] = 'EuroRebateAmount'
|
|
774
|
+
@_hash['euro_vat_amount'] = 'EuroVATAmount'
|
|
775
|
+
@_hash['parent_customer_number'] = 'ParentCustomerNumber'
|
|
776
|
+
@_hash['parent_customer_name'] = 'ParentCustomerName'
|
|
777
|
+
@_hash['parent_customer_id'] = 'ParentCustomerId'
|
|
778
|
+
@_hash['incoming_site_number'] = 'IncomingSiteNumber'
|
|
779
|
+
@_hash['incoming_site_description'] = 'IncomingSiteDescription'
|
|
780
|
+
@_hash['incoming_currency_code'] = 'IncomingCurrencyCode'
|
|
781
|
+
@_hash['incoming_product_code'] = 'IncomingProductCode'
|
|
782
|
+
@_hash['credit_debit_code'] = 'CreditDebitCode'
|
|
783
|
+
@_hash['correction_flag'] = 'CorrectionFlag'
|
|
784
|
+
@_hash['additional1'] = 'Additional1'
|
|
785
|
+
@_hash['additional2'] = 'Additional2'
|
|
786
|
+
@_hash['additional3'] = 'Additional3'
|
|
787
|
+
@_hash['additional4'] = 'Additional4'
|
|
788
|
+
@_hash['rebateon_net_amount_in_customer_currency'] =
|
|
789
|
+
'RebateonNetAmountInCustomerCurrency'
|
|
790
|
+
@_hash['rebateon_net_amount_in_transaction_currency'] =
|
|
791
|
+
'RebateonNetAmountInTransactionCurrency'
|
|
792
|
+
@_hash['network_code'] = 'NetworkCode'
|
|
793
|
+
@_hash['trn_identifier'] = 'TrnIdentifier'
|
|
794
|
+
@_hash['card_type'] = 'CardType'
|
|
795
|
+
@_hash['delco_list_price_unit_net'] = 'DelcoListPriceUnitNet'
|
|
796
|
+
@_hash['delco_retail_price_unit_net'] = 'DelcoRetailPriceUnitNet'
|
|
797
|
+
@_hash['delco_retail_price_unit_gross'] = 'DelcoRetailPriceUnitGross'
|
|
798
|
+
@_hash['delco_retail_value_total_net'] = 'DelcoRetailValueTotalNet'
|
|
799
|
+
@_hash['delco_retail_value_total_gross'] = 'DelcoRetailValueTotalGross'
|
|
800
|
+
@_hash['customer_retail_price_unit_gross'] =
|
|
801
|
+
'CustomerRetailPriceUnitGross'
|
|
802
|
+
@_hash['customer_retail_value_total_gross'] =
|
|
803
|
+
'CustomerRetailValueTotalGross'
|
|
804
|
+
@_hash['customer_retail_value_total_net'] =
|
|
805
|
+
'CustomerRetailValueTotalNet'
|
|
806
|
+
@_hash['transaction_type_description'] = 'TransactionTypeDescription'
|
|
807
|
+
@_hash
|
|
808
|
+
end
|
|
809
|
+
|
|
810
|
+
# An array for optional fields
|
|
811
|
+
def self.optionals
|
|
812
|
+
%w[
|
|
813
|
+
type
|
|
814
|
+
card_id
|
|
815
|
+
card_pan
|
|
816
|
+
card_expiry
|
|
817
|
+
transaction_date
|
|
818
|
+
transaction_time
|
|
819
|
+
utc_offset
|
|
820
|
+
fleet_id_input
|
|
821
|
+
odometer_input
|
|
822
|
+
driver_name
|
|
823
|
+
vehicle_registration
|
|
824
|
+
invoice_currency_code
|
|
825
|
+
invoice_currency_symbol
|
|
826
|
+
transaction_currency_code
|
|
827
|
+
transaction_currency_symbol
|
|
828
|
+
transaction_net_amount
|
|
829
|
+
transaction_tax
|
|
830
|
+
transaction_gross_amount
|
|
831
|
+
invoice_net_amount
|
|
832
|
+
invoice_tax
|
|
833
|
+
invoice_gross_amount
|
|
834
|
+
purchased_in_country
|
|
835
|
+
account_id
|
|
836
|
+
account_number
|
|
837
|
+
account_name
|
|
838
|
+
account_short_name
|
|
839
|
+
quantity
|
|
840
|
+
fuel_product
|
|
841
|
+
unit_price_in_transaction_currency
|
|
842
|
+
unit_price_in_invoice_currency
|
|
843
|
+
unit_discount_transaction_currency
|
|
844
|
+
unit_discount_invoice_currency
|
|
845
|
+
is_invoiced
|
|
846
|
+
invoice_number
|
|
847
|
+
invoice_date
|
|
848
|
+
site_code
|
|
849
|
+
site_name
|
|
850
|
+
site_country
|
|
851
|
+
location
|
|
852
|
+
card_group_name
|
|
853
|
+
receipt_number
|
|
854
|
+
product_code
|
|
855
|
+
product_name
|
|
856
|
+
product_group_id
|
|
857
|
+
product_group_name
|
|
858
|
+
del_co_exchange_rate
|
|
859
|
+
col_co_exchange_rate
|
|
860
|
+
is_shell_site
|
|
861
|
+
network
|
|
862
|
+
site_group_id
|
|
863
|
+
site_group_name
|
|
864
|
+
posting_date
|
|
865
|
+
issuer_code
|
|
866
|
+
purchased_in_country_code
|
|
867
|
+
customer_country_code
|
|
868
|
+
customer_country
|
|
869
|
+
release_code
|
|
870
|
+
card_group_id
|
|
871
|
+
card_sequence_number
|
|
872
|
+
check_digit
|
|
873
|
+
fleet_id_description
|
|
874
|
+
vat_rate
|
|
875
|
+
vat_category
|
|
876
|
+
vat_country
|
|
877
|
+
effective_discount_in_trx_currency
|
|
878
|
+
transaction_type
|
|
879
|
+
pin_indicator
|
|
880
|
+
vat_applicable
|
|
881
|
+
net_invoice_indicator
|
|
882
|
+
customer_currency_code
|
|
883
|
+
customer_currency_symbol
|
|
884
|
+
effective_unit_discount_in_customer_currency
|
|
885
|
+
effective_discount_in_customer_currency
|
|
886
|
+
va_ton_net_amount_in_customer_currency
|
|
887
|
+
discount_type
|
|
888
|
+
transaction_status
|
|
889
|
+
sales_item_id
|
|
890
|
+
payer_group
|
|
891
|
+
payer_group_name
|
|
892
|
+
refund_flag
|
|
893
|
+
original_sales_item_id
|
|
894
|
+
delco_name
|
|
895
|
+
delco_code
|
|
896
|
+
payer_number
|
|
897
|
+
payer_name
|
|
898
|
+
card_expiry_period
|
|
899
|
+
authorisation_code
|
|
900
|
+
transaction_id
|
|
901
|
+
transaction_line
|
|
902
|
+
allow_clearing
|
|
903
|
+
crm_number
|
|
904
|
+
dispute_status
|
|
905
|
+
rebate_rate
|
|
906
|
+
del_co_to_col_co_exchange_rate
|
|
907
|
+
net_euro_amount
|
|
908
|
+
euro_rebate_amount
|
|
909
|
+
euro_vat_amount
|
|
910
|
+
parent_customer_number
|
|
911
|
+
parent_customer_name
|
|
912
|
+
parent_customer_id
|
|
913
|
+
incoming_site_number
|
|
914
|
+
incoming_site_description
|
|
915
|
+
incoming_currency_code
|
|
916
|
+
incoming_product_code
|
|
917
|
+
credit_debit_code
|
|
918
|
+
correction_flag
|
|
919
|
+
additional1
|
|
920
|
+
additional2
|
|
921
|
+
additional3
|
|
922
|
+
additional4
|
|
923
|
+
rebateon_net_amount_in_customer_currency
|
|
924
|
+
rebateon_net_amount_in_transaction_currency
|
|
925
|
+
network_code
|
|
926
|
+
trn_identifier
|
|
927
|
+
card_type
|
|
928
|
+
delco_list_price_unit_net
|
|
929
|
+
delco_retail_price_unit_net
|
|
930
|
+
delco_retail_price_unit_gross
|
|
931
|
+
delco_retail_value_total_net
|
|
932
|
+
delco_retail_value_total_gross
|
|
933
|
+
customer_retail_price_unit_gross
|
|
934
|
+
customer_retail_value_total_gross
|
|
935
|
+
customer_retail_value_total_net
|
|
936
|
+
transaction_type_description
|
|
937
|
+
]
|
|
938
|
+
end
|
|
939
|
+
|
|
940
|
+
# An array for nullable fields
|
|
941
|
+
def self.nullables
|
|
942
|
+
%w[
|
|
943
|
+
type
|
|
944
|
+
card_id
|
|
945
|
+
card_pan
|
|
946
|
+
card_expiry
|
|
947
|
+
transaction_date
|
|
948
|
+
transaction_time
|
|
949
|
+
utc_offset
|
|
950
|
+
fleet_id_input
|
|
951
|
+
odometer_input
|
|
952
|
+
driver_name
|
|
953
|
+
vehicle_registration
|
|
954
|
+
invoice_currency_code
|
|
955
|
+
invoice_currency_symbol
|
|
956
|
+
transaction_currency_code
|
|
957
|
+
transaction_currency_symbol
|
|
958
|
+
transaction_net_amount
|
|
959
|
+
transaction_tax
|
|
960
|
+
transaction_gross_amount
|
|
961
|
+
invoice_net_amount
|
|
962
|
+
invoice_tax
|
|
963
|
+
invoice_gross_amount
|
|
964
|
+
purchased_in_country
|
|
965
|
+
account_id
|
|
966
|
+
account_number
|
|
967
|
+
account_name
|
|
968
|
+
account_short_name
|
|
969
|
+
quantity
|
|
970
|
+
fuel_product
|
|
971
|
+
unit_price_in_transaction_currency
|
|
972
|
+
unit_price_in_invoice_currency
|
|
973
|
+
unit_discount_transaction_currency
|
|
974
|
+
unit_discount_invoice_currency
|
|
975
|
+
is_invoiced
|
|
976
|
+
invoice_number
|
|
977
|
+
invoice_date
|
|
978
|
+
site_code
|
|
979
|
+
site_name
|
|
980
|
+
site_country
|
|
981
|
+
card_group_name
|
|
982
|
+
receipt_number
|
|
983
|
+
product_code
|
|
984
|
+
product_name
|
|
985
|
+
product_group_id
|
|
986
|
+
product_group_name
|
|
987
|
+
del_co_exchange_rate
|
|
988
|
+
col_co_exchange_rate
|
|
989
|
+
is_shell_site
|
|
990
|
+
network
|
|
991
|
+
site_group_id
|
|
992
|
+
site_group_name
|
|
993
|
+
posting_date
|
|
994
|
+
issuer_code
|
|
995
|
+
purchased_in_country_code
|
|
996
|
+
customer_country_code
|
|
997
|
+
customer_country
|
|
998
|
+
release_code
|
|
999
|
+
card_group_id
|
|
1000
|
+
card_sequence_number
|
|
1001
|
+
check_digit
|
|
1002
|
+
fleet_id_description
|
|
1003
|
+
vat_rate
|
|
1004
|
+
vat_category
|
|
1005
|
+
vat_country
|
|
1006
|
+
effective_discount_in_trx_currency
|
|
1007
|
+
transaction_type
|
|
1008
|
+
pin_indicator
|
|
1009
|
+
vat_applicable
|
|
1010
|
+
net_invoice_indicator
|
|
1011
|
+
customer_currency_code
|
|
1012
|
+
customer_currency_symbol
|
|
1013
|
+
effective_unit_discount_in_customer_currency
|
|
1014
|
+
effective_discount_in_customer_currency
|
|
1015
|
+
va_ton_net_amount_in_customer_currency
|
|
1016
|
+
discount_type
|
|
1017
|
+
transaction_status
|
|
1018
|
+
sales_item_id
|
|
1019
|
+
payer_group
|
|
1020
|
+
payer_group_name
|
|
1021
|
+
refund_flag
|
|
1022
|
+
original_sales_item_id
|
|
1023
|
+
delco_name
|
|
1024
|
+
delco_code
|
|
1025
|
+
payer_number
|
|
1026
|
+
payer_name
|
|
1027
|
+
card_expiry_period
|
|
1028
|
+
authorisation_code
|
|
1029
|
+
transaction_id
|
|
1030
|
+
transaction_line
|
|
1031
|
+
allow_clearing
|
|
1032
|
+
crm_number
|
|
1033
|
+
dispute_status
|
|
1034
|
+
rebate_rate
|
|
1035
|
+
del_co_to_col_co_exchange_rate
|
|
1036
|
+
net_euro_amount
|
|
1037
|
+
euro_rebate_amount
|
|
1038
|
+
euro_vat_amount
|
|
1039
|
+
parent_customer_number
|
|
1040
|
+
parent_customer_name
|
|
1041
|
+
parent_customer_id
|
|
1042
|
+
incoming_site_number
|
|
1043
|
+
incoming_site_description
|
|
1044
|
+
incoming_currency_code
|
|
1045
|
+
incoming_product_code
|
|
1046
|
+
credit_debit_code
|
|
1047
|
+
correction_flag
|
|
1048
|
+
additional1
|
|
1049
|
+
additional2
|
|
1050
|
+
additional3
|
|
1051
|
+
additional4
|
|
1052
|
+
rebateon_net_amount_in_customer_currency
|
|
1053
|
+
rebateon_net_amount_in_transaction_currency
|
|
1054
|
+
network_code
|
|
1055
|
+
trn_identifier
|
|
1056
|
+
card_type
|
|
1057
|
+
delco_list_price_unit_net
|
|
1058
|
+
delco_retail_price_unit_net
|
|
1059
|
+
delco_retail_price_unit_gross
|
|
1060
|
+
delco_retail_value_total_net
|
|
1061
|
+
delco_retail_value_total_gross
|
|
1062
|
+
customer_retail_price_unit_gross
|
|
1063
|
+
customer_retail_value_total_gross
|
|
1064
|
+
customer_retail_value_total_net
|
|
1065
|
+
transaction_type_description
|
|
1066
|
+
]
|
|
1067
|
+
end
|
|
1068
|
+
|
|
1069
|
+
def initialize(type = SKIP,
|
|
1070
|
+
card_id = SKIP,
|
|
1071
|
+
card_pan = SKIP,
|
|
1072
|
+
card_expiry = SKIP,
|
|
1073
|
+
transaction_date = SKIP,
|
|
1074
|
+
transaction_time = SKIP,
|
|
1075
|
+
utc_offset = SKIP,
|
|
1076
|
+
fleet_id_input = SKIP,
|
|
1077
|
+
odometer_input = SKIP,
|
|
1078
|
+
driver_name = SKIP,
|
|
1079
|
+
vehicle_registration = SKIP,
|
|
1080
|
+
invoice_currency_code = SKIP,
|
|
1081
|
+
invoice_currency_symbol = SKIP,
|
|
1082
|
+
transaction_currency_code = SKIP,
|
|
1083
|
+
transaction_currency_symbol = SKIP,
|
|
1084
|
+
transaction_net_amount = SKIP,
|
|
1085
|
+
transaction_tax = SKIP,
|
|
1086
|
+
transaction_gross_amount = SKIP,
|
|
1087
|
+
invoice_net_amount = SKIP,
|
|
1088
|
+
invoice_tax = SKIP,
|
|
1089
|
+
invoice_gross_amount = SKIP,
|
|
1090
|
+
purchased_in_country = SKIP,
|
|
1091
|
+
account_id = SKIP,
|
|
1092
|
+
account_number = SKIP,
|
|
1093
|
+
account_name = SKIP,
|
|
1094
|
+
account_short_name = SKIP,
|
|
1095
|
+
quantity = SKIP,
|
|
1096
|
+
fuel_product = SKIP,
|
|
1097
|
+
unit_price_in_transaction_currency = SKIP,
|
|
1098
|
+
unit_price_in_invoice_currency = SKIP,
|
|
1099
|
+
unit_discount_transaction_currency = SKIP,
|
|
1100
|
+
unit_discount_invoice_currency = SKIP,
|
|
1101
|
+
is_invoiced = SKIP,
|
|
1102
|
+
invoice_number = SKIP,
|
|
1103
|
+
invoice_date = SKIP,
|
|
1104
|
+
site_code = SKIP,
|
|
1105
|
+
site_name = SKIP,
|
|
1106
|
+
site_country = SKIP,
|
|
1107
|
+
location = SKIP,
|
|
1108
|
+
card_group_name = SKIP,
|
|
1109
|
+
receipt_number = SKIP,
|
|
1110
|
+
product_code = SKIP,
|
|
1111
|
+
product_name = SKIP,
|
|
1112
|
+
product_group_id = SKIP,
|
|
1113
|
+
product_group_name = SKIP,
|
|
1114
|
+
del_co_exchange_rate = SKIP,
|
|
1115
|
+
col_co_exchange_rate = SKIP,
|
|
1116
|
+
is_shell_site = SKIP,
|
|
1117
|
+
network = SKIP,
|
|
1118
|
+
site_group_id = SKIP,
|
|
1119
|
+
site_group_name = SKIP,
|
|
1120
|
+
posting_date = SKIP,
|
|
1121
|
+
issuer_code = SKIP,
|
|
1122
|
+
purchased_in_country_code = SKIP,
|
|
1123
|
+
customer_country_code = SKIP,
|
|
1124
|
+
customer_country = SKIP,
|
|
1125
|
+
release_code = SKIP,
|
|
1126
|
+
card_group_id = SKIP,
|
|
1127
|
+
card_sequence_number = SKIP,
|
|
1128
|
+
check_digit = SKIP,
|
|
1129
|
+
fleet_id_description = SKIP,
|
|
1130
|
+
vat_rate = SKIP,
|
|
1131
|
+
vat_category = SKIP,
|
|
1132
|
+
vat_country = SKIP,
|
|
1133
|
+
effective_discount_in_trx_currency = SKIP,
|
|
1134
|
+
transaction_type = SKIP,
|
|
1135
|
+
pin_indicator = SKIP,
|
|
1136
|
+
vat_applicable = SKIP,
|
|
1137
|
+
net_invoice_indicator = SKIP,
|
|
1138
|
+
customer_currency_code = SKIP,
|
|
1139
|
+
customer_currency_symbol = SKIP,
|
|
1140
|
+
effective_unit_discount_in_customer_currency = SKIP,
|
|
1141
|
+
effective_discount_in_customer_currency = SKIP,
|
|
1142
|
+
va_ton_net_amount_in_customer_currency = SKIP,
|
|
1143
|
+
discount_type = SKIP,
|
|
1144
|
+
transaction_status = SKIP,
|
|
1145
|
+
sales_item_id = SKIP,
|
|
1146
|
+
payer_group = SKIP,
|
|
1147
|
+
payer_group_name = SKIP,
|
|
1148
|
+
refund_flag = SKIP,
|
|
1149
|
+
original_sales_item_id = SKIP,
|
|
1150
|
+
delco_name = SKIP,
|
|
1151
|
+
delco_code = SKIP,
|
|
1152
|
+
payer_number = SKIP,
|
|
1153
|
+
payer_name = SKIP,
|
|
1154
|
+
card_expiry_period = SKIP,
|
|
1155
|
+
authorisation_code = SKIP,
|
|
1156
|
+
transaction_id = SKIP,
|
|
1157
|
+
transaction_line = SKIP,
|
|
1158
|
+
allow_clearing = SKIP,
|
|
1159
|
+
crm_number = SKIP,
|
|
1160
|
+
dispute_status = SKIP,
|
|
1161
|
+
rebate_rate = SKIP,
|
|
1162
|
+
del_co_to_col_co_exchange_rate = SKIP,
|
|
1163
|
+
net_euro_amount = SKIP,
|
|
1164
|
+
euro_rebate_amount = SKIP,
|
|
1165
|
+
euro_vat_amount = SKIP,
|
|
1166
|
+
parent_customer_number = SKIP,
|
|
1167
|
+
parent_customer_name = SKIP,
|
|
1168
|
+
parent_customer_id = SKIP,
|
|
1169
|
+
incoming_site_number = SKIP,
|
|
1170
|
+
incoming_site_description = SKIP,
|
|
1171
|
+
incoming_currency_code = SKIP,
|
|
1172
|
+
incoming_product_code = SKIP,
|
|
1173
|
+
credit_debit_code = SKIP,
|
|
1174
|
+
correction_flag = SKIP,
|
|
1175
|
+
additional1 = SKIP,
|
|
1176
|
+
additional2 = SKIP,
|
|
1177
|
+
additional3 = SKIP,
|
|
1178
|
+
additional4 = SKIP,
|
|
1179
|
+
rebateon_net_amount_in_customer_currency = SKIP,
|
|
1180
|
+
rebateon_net_amount_in_transaction_currency = SKIP,
|
|
1181
|
+
network_code = SKIP,
|
|
1182
|
+
trn_identifier = SKIP,
|
|
1183
|
+
card_type = SKIP,
|
|
1184
|
+
delco_list_price_unit_net = SKIP,
|
|
1185
|
+
delco_retail_price_unit_net = SKIP,
|
|
1186
|
+
delco_retail_price_unit_gross = SKIP,
|
|
1187
|
+
delco_retail_value_total_net = SKIP,
|
|
1188
|
+
delco_retail_value_total_gross = SKIP,
|
|
1189
|
+
customer_retail_price_unit_gross = SKIP,
|
|
1190
|
+
customer_retail_value_total_gross = SKIP,
|
|
1191
|
+
customer_retail_value_total_net = SKIP,
|
|
1192
|
+
transaction_type_description = SKIP)
|
|
1193
|
+
@type = type unless type == SKIP
|
|
1194
|
+
@card_id = card_id unless card_id == SKIP
|
|
1195
|
+
@card_pan = card_pan unless card_pan == SKIP
|
|
1196
|
+
@card_expiry = card_expiry unless card_expiry == SKIP
|
|
1197
|
+
@transaction_date = transaction_date unless transaction_date == SKIP
|
|
1198
|
+
@transaction_time = transaction_time unless transaction_time == SKIP
|
|
1199
|
+
@utc_offset = utc_offset unless utc_offset == SKIP
|
|
1200
|
+
@fleet_id_input = fleet_id_input unless fleet_id_input == SKIP
|
|
1201
|
+
@odometer_input = odometer_input unless odometer_input == SKIP
|
|
1202
|
+
@driver_name = driver_name unless driver_name == SKIP
|
|
1203
|
+
@vehicle_registration = vehicle_registration unless vehicle_registration == SKIP
|
|
1204
|
+
@invoice_currency_code = invoice_currency_code unless invoice_currency_code == SKIP
|
|
1205
|
+
@invoice_currency_symbol = invoice_currency_symbol unless invoice_currency_symbol == SKIP
|
|
1206
|
+
unless transaction_currency_code == SKIP
|
|
1207
|
+
@transaction_currency_code =
|
|
1208
|
+
transaction_currency_code
|
|
1209
|
+
end
|
|
1210
|
+
unless transaction_currency_symbol == SKIP
|
|
1211
|
+
@transaction_currency_symbol =
|
|
1212
|
+
transaction_currency_symbol
|
|
1213
|
+
end
|
|
1214
|
+
@transaction_net_amount = transaction_net_amount unless transaction_net_amount == SKIP
|
|
1215
|
+
@transaction_tax = transaction_tax unless transaction_tax == SKIP
|
|
1216
|
+
@transaction_gross_amount = transaction_gross_amount unless transaction_gross_amount == SKIP
|
|
1217
|
+
@invoice_net_amount = invoice_net_amount unless invoice_net_amount == SKIP
|
|
1218
|
+
@invoice_tax = invoice_tax unless invoice_tax == SKIP
|
|
1219
|
+
@invoice_gross_amount = invoice_gross_amount unless invoice_gross_amount == SKIP
|
|
1220
|
+
@purchased_in_country = purchased_in_country unless purchased_in_country == SKIP
|
|
1221
|
+
@account_id = account_id unless account_id == SKIP
|
|
1222
|
+
@account_number = account_number unless account_number == SKIP
|
|
1223
|
+
@account_name = account_name unless account_name == SKIP
|
|
1224
|
+
@account_short_name = account_short_name unless account_short_name == SKIP
|
|
1225
|
+
@quantity = quantity unless quantity == SKIP
|
|
1226
|
+
@fuel_product = fuel_product unless fuel_product == SKIP
|
|
1227
|
+
unless unit_price_in_transaction_currency == SKIP
|
|
1228
|
+
@unit_price_in_transaction_currency =
|
|
1229
|
+
unit_price_in_transaction_currency
|
|
1230
|
+
end
|
|
1231
|
+
unless unit_price_in_invoice_currency == SKIP
|
|
1232
|
+
@unit_price_in_invoice_currency =
|
|
1233
|
+
unit_price_in_invoice_currency
|
|
1234
|
+
end
|
|
1235
|
+
unless unit_discount_transaction_currency == SKIP
|
|
1236
|
+
@unit_discount_transaction_currency =
|
|
1237
|
+
unit_discount_transaction_currency
|
|
1238
|
+
end
|
|
1239
|
+
unless unit_discount_invoice_currency == SKIP
|
|
1240
|
+
@unit_discount_invoice_currency =
|
|
1241
|
+
unit_discount_invoice_currency
|
|
1242
|
+
end
|
|
1243
|
+
@is_invoiced = is_invoiced unless is_invoiced == SKIP
|
|
1244
|
+
@invoice_number = invoice_number unless invoice_number == SKIP
|
|
1245
|
+
@invoice_date = invoice_date unless invoice_date == SKIP
|
|
1246
|
+
@site_code = site_code unless site_code == SKIP
|
|
1247
|
+
@site_name = site_name unless site_name == SKIP
|
|
1248
|
+
@site_country = site_country unless site_country == SKIP
|
|
1249
|
+
@location = location unless location == SKIP
|
|
1250
|
+
@card_group_name = card_group_name unless card_group_name == SKIP
|
|
1251
|
+
@receipt_number = receipt_number unless receipt_number == SKIP
|
|
1252
|
+
@product_code = product_code unless product_code == SKIP
|
|
1253
|
+
@product_name = product_name unless product_name == SKIP
|
|
1254
|
+
@product_group_id = product_group_id unless product_group_id == SKIP
|
|
1255
|
+
@product_group_name = product_group_name unless product_group_name == SKIP
|
|
1256
|
+
@del_co_exchange_rate = del_co_exchange_rate unless del_co_exchange_rate == SKIP
|
|
1257
|
+
@col_co_exchange_rate = col_co_exchange_rate unless col_co_exchange_rate == SKIP
|
|
1258
|
+
@is_shell_site = is_shell_site unless is_shell_site == SKIP
|
|
1259
|
+
@network = network unless network == SKIP
|
|
1260
|
+
@site_group_id = site_group_id unless site_group_id == SKIP
|
|
1261
|
+
@site_group_name = site_group_name unless site_group_name == SKIP
|
|
1262
|
+
@posting_date = posting_date unless posting_date == SKIP
|
|
1263
|
+
@issuer_code = issuer_code unless issuer_code == SKIP
|
|
1264
|
+
unless purchased_in_country_code == SKIP
|
|
1265
|
+
@purchased_in_country_code =
|
|
1266
|
+
purchased_in_country_code
|
|
1267
|
+
end
|
|
1268
|
+
@customer_country_code = customer_country_code unless customer_country_code == SKIP
|
|
1269
|
+
@customer_country = customer_country unless customer_country == SKIP
|
|
1270
|
+
@release_code = release_code unless release_code == SKIP
|
|
1271
|
+
@card_group_id = card_group_id unless card_group_id == SKIP
|
|
1272
|
+
@card_sequence_number = card_sequence_number unless card_sequence_number == SKIP
|
|
1273
|
+
@check_digit = check_digit unless check_digit == SKIP
|
|
1274
|
+
@fleet_id_description = fleet_id_description unless fleet_id_description == SKIP
|
|
1275
|
+
@vat_rate = vat_rate unless vat_rate == SKIP
|
|
1276
|
+
@vat_category = vat_category unless vat_category == SKIP
|
|
1277
|
+
@vat_country = vat_country unless vat_country == SKIP
|
|
1278
|
+
unless effective_discount_in_trx_currency == SKIP
|
|
1279
|
+
@effective_discount_in_trx_currency =
|
|
1280
|
+
effective_discount_in_trx_currency
|
|
1281
|
+
end
|
|
1282
|
+
@transaction_type = transaction_type unless transaction_type == SKIP
|
|
1283
|
+
@pin_indicator = pin_indicator unless pin_indicator == SKIP
|
|
1284
|
+
@vat_applicable = vat_applicable unless vat_applicable == SKIP
|
|
1285
|
+
@net_invoice_indicator = net_invoice_indicator unless net_invoice_indicator == SKIP
|
|
1286
|
+
@customer_currency_code = customer_currency_code unless customer_currency_code == SKIP
|
|
1287
|
+
@customer_currency_symbol = customer_currency_symbol unless customer_currency_symbol == SKIP
|
|
1288
|
+
unless effective_unit_discount_in_customer_currency == SKIP
|
|
1289
|
+
@effective_unit_discount_in_customer_currency =
|
|
1290
|
+
effective_unit_discount_in_customer_currency
|
|
1291
|
+
end
|
|
1292
|
+
unless effective_discount_in_customer_currency == SKIP
|
|
1293
|
+
@effective_discount_in_customer_currency =
|
|
1294
|
+
effective_discount_in_customer_currency
|
|
1295
|
+
end
|
|
1296
|
+
unless va_ton_net_amount_in_customer_currency == SKIP
|
|
1297
|
+
@va_ton_net_amount_in_customer_currency =
|
|
1298
|
+
va_ton_net_amount_in_customer_currency
|
|
1299
|
+
end
|
|
1300
|
+
@discount_type = discount_type unless discount_type == SKIP
|
|
1301
|
+
@transaction_status = transaction_status unless transaction_status == SKIP
|
|
1302
|
+
@sales_item_id = sales_item_id unless sales_item_id == SKIP
|
|
1303
|
+
@payer_group = payer_group unless payer_group == SKIP
|
|
1304
|
+
@payer_group_name = payer_group_name unless payer_group_name == SKIP
|
|
1305
|
+
@refund_flag = refund_flag unless refund_flag == SKIP
|
|
1306
|
+
@original_sales_item_id = original_sales_item_id unless original_sales_item_id == SKIP
|
|
1307
|
+
@delco_name = delco_name unless delco_name == SKIP
|
|
1308
|
+
@delco_code = delco_code unless delco_code == SKIP
|
|
1309
|
+
@payer_number = payer_number unless payer_number == SKIP
|
|
1310
|
+
@payer_name = payer_name unless payer_name == SKIP
|
|
1311
|
+
@card_expiry_period = card_expiry_period unless card_expiry_period == SKIP
|
|
1312
|
+
@authorisation_code = authorisation_code unless authorisation_code == SKIP
|
|
1313
|
+
@transaction_id = transaction_id unless transaction_id == SKIP
|
|
1314
|
+
@transaction_line = transaction_line unless transaction_line == SKIP
|
|
1315
|
+
@allow_clearing = allow_clearing unless allow_clearing == SKIP
|
|
1316
|
+
@crm_number = crm_number unless crm_number == SKIP
|
|
1317
|
+
@dispute_status = dispute_status unless dispute_status == SKIP
|
|
1318
|
+
@rebate_rate = rebate_rate unless rebate_rate == SKIP
|
|
1319
|
+
unless del_co_to_col_co_exchange_rate == SKIP
|
|
1320
|
+
@del_co_to_col_co_exchange_rate =
|
|
1321
|
+
del_co_to_col_co_exchange_rate
|
|
1322
|
+
end
|
|
1323
|
+
@net_euro_amount = net_euro_amount unless net_euro_amount == SKIP
|
|
1324
|
+
@euro_rebate_amount = euro_rebate_amount unless euro_rebate_amount == SKIP
|
|
1325
|
+
@euro_vat_amount = euro_vat_amount unless euro_vat_amount == SKIP
|
|
1326
|
+
@parent_customer_number = parent_customer_number unless parent_customer_number == SKIP
|
|
1327
|
+
@parent_customer_name = parent_customer_name unless parent_customer_name == SKIP
|
|
1328
|
+
@parent_customer_id = parent_customer_id unless parent_customer_id == SKIP
|
|
1329
|
+
@incoming_site_number = incoming_site_number unless incoming_site_number == SKIP
|
|
1330
|
+
unless incoming_site_description == SKIP
|
|
1331
|
+
@incoming_site_description =
|
|
1332
|
+
incoming_site_description
|
|
1333
|
+
end
|
|
1334
|
+
@incoming_currency_code = incoming_currency_code unless incoming_currency_code == SKIP
|
|
1335
|
+
@incoming_product_code = incoming_product_code unless incoming_product_code == SKIP
|
|
1336
|
+
@credit_debit_code = credit_debit_code unless credit_debit_code == SKIP
|
|
1337
|
+
@correction_flag = correction_flag unless correction_flag == SKIP
|
|
1338
|
+
@additional1 = additional1 unless additional1 == SKIP
|
|
1339
|
+
@additional2 = additional2 unless additional2 == SKIP
|
|
1340
|
+
@additional3 = additional3 unless additional3 == SKIP
|
|
1341
|
+
@additional4 = additional4 unless additional4 == SKIP
|
|
1342
|
+
unless rebateon_net_amount_in_customer_currency == SKIP
|
|
1343
|
+
@rebateon_net_amount_in_customer_currency =
|
|
1344
|
+
rebateon_net_amount_in_customer_currency
|
|
1345
|
+
end
|
|
1346
|
+
unless rebateon_net_amount_in_transaction_currency == SKIP
|
|
1347
|
+
@rebateon_net_amount_in_transaction_currency =
|
|
1348
|
+
rebateon_net_amount_in_transaction_currency
|
|
1349
|
+
end
|
|
1350
|
+
@network_code = network_code unless network_code == SKIP
|
|
1351
|
+
@trn_identifier = trn_identifier unless trn_identifier == SKIP
|
|
1352
|
+
@card_type = card_type unless card_type == SKIP
|
|
1353
|
+
unless delco_list_price_unit_net == SKIP
|
|
1354
|
+
@delco_list_price_unit_net =
|
|
1355
|
+
delco_list_price_unit_net
|
|
1356
|
+
end
|
|
1357
|
+
unless delco_retail_price_unit_net == SKIP
|
|
1358
|
+
@delco_retail_price_unit_net =
|
|
1359
|
+
delco_retail_price_unit_net
|
|
1360
|
+
end
|
|
1361
|
+
unless delco_retail_price_unit_gross == SKIP
|
|
1362
|
+
@delco_retail_price_unit_gross =
|
|
1363
|
+
delco_retail_price_unit_gross
|
|
1364
|
+
end
|
|
1365
|
+
unless delco_retail_value_total_net == SKIP
|
|
1366
|
+
@delco_retail_value_total_net =
|
|
1367
|
+
delco_retail_value_total_net
|
|
1368
|
+
end
|
|
1369
|
+
unless delco_retail_value_total_gross == SKIP
|
|
1370
|
+
@delco_retail_value_total_gross =
|
|
1371
|
+
delco_retail_value_total_gross
|
|
1372
|
+
end
|
|
1373
|
+
unless customer_retail_price_unit_gross == SKIP
|
|
1374
|
+
@customer_retail_price_unit_gross =
|
|
1375
|
+
customer_retail_price_unit_gross
|
|
1376
|
+
end
|
|
1377
|
+
unless customer_retail_value_total_gross == SKIP
|
|
1378
|
+
@customer_retail_value_total_gross =
|
|
1379
|
+
customer_retail_value_total_gross
|
|
1380
|
+
end
|
|
1381
|
+
unless customer_retail_value_total_net == SKIP
|
|
1382
|
+
@customer_retail_value_total_net =
|
|
1383
|
+
customer_retail_value_total_net
|
|
1384
|
+
end
|
|
1385
|
+
unless transaction_type_description == SKIP
|
|
1386
|
+
@transaction_type_description =
|
|
1387
|
+
transaction_type_description
|
|
1388
|
+
end
|
|
1389
|
+
end
|
|
1390
|
+
|
|
1391
|
+
# Creates an instance of the object from a hash.
|
|
1392
|
+
def self.from_hash(hash)
|
|
1393
|
+
return nil unless hash
|
|
1394
|
+
|
|
1395
|
+
# Extract variables from the hash.
|
|
1396
|
+
type = hash.key?('Type') ? hash['Type'] : SKIP
|
|
1397
|
+
card_id = hash.key?('CardId') ? hash['CardId'] : SKIP
|
|
1398
|
+
card_pan = hash.key?('CardPAN') ? hash['CardPAN'] : SKIP
|
|
1399
|
+
card_expiry = hash.key?('CardExpiry') ? hash['CardExpiry'] : SKIP
|
|
1400
|
+
transaction_date =
|
|
1401
|
+
hash.key?('TransactionDate') ? hash['TransactionDate'] : SKIP
|
|
1402
|
+
transaction_time =
|
|
1403
|
+
hash.key?('TransactionTime') ? hash['TransactionTime'] : SKIP
|
|
1404
|
+
utc_offset = hash.key?('UTCOffset') ? hash['UTCOffset'] : SKIP
|
|
1405
|
+
fleet_id_input = hash.key?('FleetIdInput') ? hash['FleetIdInput'] : SKIP
|
|
1406
|
+
odometer_input = hash.key?('OdometerInput') ? hash['OdometerInput'] : SKIP
|
|
1407
|
+
driver_name = hash.key?('DriverName') ? hash['DriverName'] : SKIP
|
|
1408
|
+
vehicle_registration =
|
|
1409
|
+
hash.key?('VehicleRegistration') ? hash['VehicleRegistration'] : SKIP
|
|
1410
|
+
invoice_currency_code =
|
|
1411
|
+
hash.key?('InvoiceCurrencyCode') ? hash['InvoiceCurrencyCode'] : SKIP
|
|
1412
|
+
invoice_currency_symbol =
|
|
1413
|
+
hash.key?('InvoiceCurrencySymbol') ? hash['InvoiceCurrencySymbol'] : SKIP
|
|
1414
|
+
transaction_currency_code =
|
|
1415
|
+
hash.key?('TransactionCurrencyCode') ? hash['TransactionCurrencyCode'] : SKIP
|
|
1416
|
+
transaction_currency_symbol =
|
|
1417
|
+
hash.key?('TransactionCurrencySymbol') ? hash['TransactionCurrencySymbol'] : SKIP
|
|
1418
|
+
transaction_net_amount =
|
|
1419
|
+
hash.key?('TransactionNetAmount') ? hash['TransactionNetAmount'] : SKIP
|
|
1420
|
+
transaction_tax =
|
|
1421
|
+
hash.key?('TransactionTax') ? hash['TransactionTax'] : SKIP
|
|
1422
|
+
transaction_gross_amount =
|
|
1423
|
+
hash.key?('TransactionGrossAmount') ? hash['TransactionGrossAmount'] : SKIP
|
|
1424
|
+
invoice_net_amount =
|
|
1425
|
+
hash.key?('InvoiceNetAmount') ? hash['InvoiceNetAmount'] : SKIP
|
|
1426
|
+
invoice_tax = hash.key?('InvoiceTax') ? hash['InvoiceTax'] : SKIP
|
|
1427
|
+
invoice_gross_amount =
|
|
1428
|
+
hash.key?('InvoiceGrossAmount') ? hash['InvoiceGrossAmount'] : SKIP
|
|
1429
|
+
purchased_in_country =
|
|
1430
|
+
hash.key?('PurchasedInCountry') ? hash['PurchasedInCountry'] : SKIP
|
|
1431
|
+
account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
|
|
1432
|
+
account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
|
|
1433
|
+
account_name = hash.key?('AccountName') ? hash['AccountName'] : SKIP
|
|
1434
|
+
account_short_name =
|
|
1435
|
+
hash.key?('AccountShortName') ? hash['AccountShortName'] : SKIP
|
|
1436
|
+
quantity = hash.key?('Quantity') ? hash['Quantity'] : SKIP
|
|
1437
|
+
fuel_product = hash.key?('FuelProduct') ? hash['FuelProduct'] : SKIP
|
|
1438
|
+
unit_price_in_transaction_currency =
|
|
1439
|
+
hash.key?('UnitPriceInTransactionCurrency') ? hash['UnitPriceInTransactionCurrency'] : SKIP
|
|
1440
|
+
unit_price_in_invoice_currency =
|
|
1441
|
+
hash.key?('UnitPriceInInvoiceCurrency') ? hash['UnitPriceInInvoiceCurrency'] : SKIP
|
|
1442
|
+
unit_discount_transaction_currency =
|
|
1443
|
+
hash.key?('UnitDiscountTransactionCurrency') ? hash['UnitDiscountTransactionCurrency'] : SKIP
|
|
1444
|
+
unit_discount_invoice_currency =
|
|
1445
|
+
hash.key?('UnitDiscountInvoiceCurrency') ? hash['UnitDiscountInvoiceCurrency'] : SKIP
|
|
1446
|
+
is_invoiced = hash.key?('IsInvoiced') ? hash['IsInvoiced'] : SKIP
|
|
1447
|
+
invoice_number = hash.key?('InvoiceNumber') ? hash['InvoiceNumber'] : SKIP
|
|
1448
|
+
invoice_date = hash.key?('InvoiceDate') ? hash['InvoiceDate'] : SKIP
|
|
1449
|
+
site_code = hash.key?('SiteCode') ? hash['SiteCode'] : SKIP
|
|
1450
|
+
site_name = hash.key?('SiteName') ? hash['SiteName'] : SKIP
|
|
1451
|
+
site_country = hash.key?('SiteCountry') ? hash['SiteCountry'] : SKIP
|
|
1452
|
+
# Parameter is an array, so we need to iterate through it
|
|
1453
|
+
location = nil
|
|
1454
|
+
unless hash['Location'].nil?
|
|
1455
|
+
location = []
|
|
1456
|
+
hash['Location'].each do |structure|
|
|
1457
|
+
location << (SiteLocation.from_hash(structure) if structure)
|
|
1458
|
+
end
|
|
1459
|
+
end
|
|
1460
|
+
|
|
1461
|
+
location = SKIP unless hash.key?('Location')
|
|
1462
|
+
card_group_name =
|
|
1463
|
+
hash.key?('CardGroupName') ? hash['CardGroupName'] : SKIP
|
|
1464
|
+
receipt_number = hash.key?('ReceiptNumber') ? hash['ReceiptNumber'] : SKIP
|
|
1465
|
+
product_code = hash.key?('ProductCode') ? hash['ProductCode'] : SKIP
|
|
1466
|
+
product_name = hash.key?('ProductName') ? hash['ProductName'] : SKIP
|
|
1467
|
+
product_group_id =
|
|
1468
|
+
hash.key?('ProductGroupId') ? hash['ProductGroupId'] : SKIP
|
|
1469
|
+
product_group_name =
|
|
1470
|
+
hash.key?('ProductGroupName') ? hash['ProductGroupName'] : SKIP
|
|
1471
|
+
del_co_exchange_rate =
|
|
1472
|
+
hash.key?('DelCoExchangeRate') ? hash['DelCoExchangeRate'] : SKIP
|
|
1473
|
+
col_co_exchange_rate =
|
|
1474
|
+
hash.key?('ColCoExchangeRate') ? hash['ColCoExchangeRate'] : SKIP
|
|
1475
|
+
is_shell_site = hash.key?('IsShellSite') ? hash['IsShellSite'] : SKIP
|
|
1476
|
+
network = hash.key?('Network') ? hash['Network'] : SKIP
|
|
1477
|
+
site_group_id = hash.key?('SiteGroupId') ? hash['SiteGroupId'] : SKIP
|
|
1478
|
+
site_group_name =
|
|
1479
|
+
hash.key?('SiteGroupName') ? hash['SiteGroupName'] : SKIP
|
|
1480
|
+
posting_date = hash.key?('PostingDate') ? hash['PostingDate'] : SKIP
|
|
1481
|
+
issuer_code = hash.key?('IssuerCode') ? hash['IssuerCode'] : SKIP
|
|
1482
|
+
purchased_in_country_code =
|
|
1483
|
+
hash.key?('PurchasedInCountryCode') ? hash['PurchasedInCountryCode'] : SKIP
|
|
1484
|
+
customer_country_code =
|
|
1485
|
+
hash.key?('CustomerCountryCode') ? hash['CustomerCountryCode'] : SKIP
|
|
1486
|
+
customer_country =
|
|
1487
|
+
hash.key?('CustomerCountry') ? hash['CustomerCountry'] : SKIP
|
|
1488
|
+
release_code = hash.key?('ReleaseCode') ? hash['ReleaseCode'] : SKIP
|
|
1489
|
+
card_group_id = hash.key?('CardGroupId') ? hash['CardGroupId'] : SKIP
|
|
1490
|
+
card_sequence_number =
|
|
1491
|
+
hash.key?('CardSequenceNumber') ? hash['CardSequenceNumber'] : SKIP
|
|
1492
|
+
check_digit = hash.key?('CheckDigit') ? hash['CheckDigit'] : SKIP
|
|
1493
|
+
fleet_id_description =
|
|
1494
|
+
hash.key?('FleetIDDescription') ? hash['FleetIDDescription'] : SKIP
|
|
1495
|
+
vat_rate = hash.key?('VATRate') ? hash['VATRate'] : SKIP
|
|
1496
|
+
vat_category = hash.key?('VATCategory') ? hash['VATCategory'] : SKIP
|
|
1497
|
+
vat_country = hash.key?('VATCountry') ? hash['VATCountry'] : SKIP
|
|
1498
|
+
effective_discount_in_trx_currency =
|
|
1499
|
+
hash.key?('EffectiveDiscountInTrxCurrency') ? hash['EffectiveDiscountInTrxCurrency'] : SKIP
|
|
1500
|
+
transaction_type =
|
|
1501
|
+
hash.key?('TransactionType') ? hash['TransactionType'] : SKIP
|
|
1502
|
+
pin_indicator = hash.key?('PINIndicator') ? hash['PINIndicator'] : SKIP
|
|
1503
|
+
vat_applicable = hash.key?('VATApplicable') ? hash['VATApplicable'] : SKIP
|
|
1504
|
+
net_invoice_indicator =
|
|
1505
|
+
hash.key?('NetInvoiceIndicator') ? hash['NetInvoiceIndicator'] : SKIP
|
|
1506
|
+
customer_currency_code =
|
|
1507
|
+
hash.key?('CustomerCurrencyCode') ? hash['CustomerCurrencyCode'] : SKIP
|
|
1508
|
+
customer_currency_symbol =
|
|
1509
|
+
hash.key?('CustomerCurrencySymbol') ? hash['CustomerCurrencySymbol'] : SKIP
|
|
1510
|
+
effective_unit_discount_in_customer_currency =
|
|
1511
|
+
hash.key?('EffectiveUnitDiscountInCustomerCurrency') ? hash['EffectiveUnitDiscountInCustomerCurrency'] : SKIP
|
|
1512
|
+
effective_discount_in_customer_currency =
|
|
1513
|
+
hash.key?('EffectiveDiscountInCustomerCurrency') ? hash['EffectiveDiscountInCustomerCurrency'] : SKIP
|
|
1514
|
+
va_ton_net_amount_in_customer_currency =
|
|
1515
|
+
hash.key?('VATonNetAmountInCustomerCurrency') ? hash['VATonNetAmountInCustomerCurrency'] : SKIP
|
|
1516
|
+
discount_type = hash.key?('DiscountType') ? hash['DiscountType'] : SKIP
|
|
1517
|
+
transaction_status =
|
|
1518
|
+
hash.key?('TransactionStatus') ? hash['TransactionStatus'] : SKIP
|
|
1519
|
+
sales_item_id = hash.key?('SalesItemId') ? hash['SalesItemId'] : SKIP
|
|
1520
|
+
payer_group = hash.key?('PayerGroup') ? hash['PayerGroup'] : SKIP
|
|
1521
|
+
payer_group_name =
|
|
1522
|
+
hash.key?('PayerGroupName') ? hash['PayerGroupName'] : SKIP
|
|
1523
|
+
refund_flag = hash.key?('RefundFlag') ? hash['RefundFlag'] : SKIP
|
|
1524
|
+
original_sales_item_id =
|
|
1525
|
+
hash.key?('OriginalSalesItemId') ? hash['OriginalSalesItemId'] : SKIP
|
|
1526
|
+
delco_name = hash.key?('DelcoName') ? hash['DelcoName'] : SKIP
|
|
1527
|
+
delco_code = hash.key?('DelcoCode') ? hash['DelcoCode'] : SKIP
|
|
1528
|
+
payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
|
|
1529
|
+
payer_name = hash.key?('PayerName') ? hash['PayerName'] : SKIP
|
|
1530
|
+
card_expiry_period =
|
|
1531
|
+
hash.key?('CardExpiryPeriod') ? hash['CardExpiryPeriod'] : SKIP
|
|
1532
|
+
authorisation_code =
|
|
1533
|
+
hash.key?('AuthorisationCode') ? hash['AuthorisationCode'] : SKIP
|
|
1534
|
+
transaction_id = hash.key?('TransactionId') ? hash['TransactionId'] : SKIP
|
|
1535
|
+
transaction_line =
|
|
1536
|
+
hash.key?('TransactionLine') ? hash['TransactionLine'] : SKIP
|
|
1537
|
+
allow_clearing = hash.key?('AllowClearing') ? hash['AllowClearing'] : SKIP
|
|
1538
|
+
crm_number = hash.key?('CRMNumber') ? hash['CRMNumber'] : SKIP
|
|
1539
|
+
dispute_status = hash.key?('DisputeStatus') ? hash['DisputeStatus'] : SKIP
|
|
1540
|
+
rebate_rate = hash.key?('RebateRate') ? hash['RebateRate'] : SKIP
|
|
1541
|
+
del_co_to_col_co_exchange_rate =
|
|
1542
|
+
hash.key?('DelCoToColCoExchangeRate') ? hash['DelCoToColCoExchangeRate'] : SKIP
|
|
1543
|
+
net_euro_amount =
|
|
1544
|
+
hash.key?('NetEuroAmount') ? hash['NetEuroAmount'] : SKIP
|
|
1545
|
+
euro_rebate_amount =
|
|
1546
|
+
hash.key?('EuroRebateAmount') ? hash['EuroRebateAmount'] : SKIP
|
|
1547
|
+
euro_vat_amount =
|
|
1548
|
+
hash.key?('EuroVATAmount') ? hash['EuroVATAmount'] : SKIP
|
|
1549
|
+
parent_customer_number =
|
|
1550
|
+
hash.key?('ParentCustomerNumber') ? hash['ParentCustomerNumber'] : SKIP
|
|
1551
|
+
parent_customer_name =
|
|
1552
|
+
hash.key?('ParentCustomerName') ? hash['ParentCustomerName'] : SKIP
|
|
1553
|
+
parent_customer_id =
|
|
1554
|
+
hash.key?('ParentCustomerId') ? hash['ParentCustomerId'] : SKIP
|
|
1555
|
+
incoming_site_number =
|
|
1556
|
+
hash.key?('IncomingSiteNumber') ? hash['IncomingSiteNumber'] : SKIP
|
|
1557
|
+
incoming_site_description =
|
|
1558
|
+
hash.key?('IncomingSiteDescription') ? hash['IncomingSiteDescription'] : SKIP
|
|
1559
|
+
incoming_currency_code =
|
|
1560
|
+
hash.key?('IncomingCurrencyCode') ? hash['IncomingCurrencyCode'] : SKIP
|
|
1561
|
+
incoming_product_code =
|
|
1562
|
+
hash.key?('IncomingProductCode') ? hash['IncomingProductCode'] : SKIP
|
|
1563
|
+
credit_debit_code =
|
|
1564
|
+
hash.key?('CreditDebitCode') ? hash['CreditDebitCode'] : SKIP
|
|
1565
|
+
correction_flag =
|
|
1566
|
+
hash.key?('CorrectionFlag') ? hash['CorrectionFlag'] : SKIP
|
|
1567
|
+
additional1 = hash.key?('Additional1') ? hash['Additional1'] : SKIP
|
|
1568
|
+
additional2 = hash.key?('Additional2') ? hash['Additional2'] : SKIP
|
|
1569
|
+
additional3 = hash.key?('Additional3') ? hash['Additional3'] : SKIP
|
|
1570
|
+
additional4 = hash.key?('Additional4') ? hash['Additional4'] : SKIP
|
|
1571
|
+
rebateon_net_amount_in_customer_currency =
|
|
1572
|
+
hash.key?('RebateonNetAmountInCustomerCurrency') ? hash['RebateonNetAmountInCustomerCurrency'] : SKIP
|
|
1573
|
+
rebateon_net_amount_in_transaction_currency =
|
|
1574
|
+
hash.key?('RebateonNetAmountInTransactionCurrency') ? hash['RebateonNetAmountInTransactionCurrency'] : SKIP
|
|
1575
|
+
network_code = hash.key?('NetworkCode') ? hash['NetworkCode'] : SKIP
|
|
1576
|
+
trn_identifier = hash.key?('TrnIdentifier') ? hash['TrnIdentifier'] : SKIP
|
|
1577
|
+
card_type = hash.key?('CardType') ? hash['CardType'] : SKIP
|
|
1578
|
+
delco_list_price_unit_net =
|
|
1579
|
+
hash.key?('DelcoListPriceUnitNet') ? hash['DelcoListPriceUnitNet'] : SKIP
|
|
1580
|
+
delco_retail_price_unit_net =
|
|
1581
|
+
hash.key?('DelcoRetailPriceUnitNet') ? hash['DelcoRetailPriceUnitNet'] : SKIP
|
|
1582
|
+
delco_retail_price_unit_gross =
|
|
1583
|
+
hash.key?('DelcoRetailPriceUnitGross') ? hash['DelcoRetailPriceUnitGross'] : SKIP
|
|
1584
|
+
delco_retail_value_total_net =
|
|
1585
|
+
hash.key?('DelcoRetailValueTotalNet') ? hash['DelcoRetailValueTotalNet'] : SKIP
|
|
1586
|
+
delco_retail_value_total_gross =
|
|
1587
|
+
hash.key?('DelcoRetailValueTotalGross') ? hash['DelcoRetailValueTotalGross'] : SKIP
|
|
1588
|
+
customer_retail_price_unit_gross =
|
|
1589
|
+
hash.key?('CustomerRetailPriceUnitGross') ? hash['CustomerRetailPriceUnitGross'] : SKIP
|
|
1590
|
+
customer_retail_value_total_gross =
|
|
1591
|
+
hash.key?('CustomerRetailValueTotalGross') ? hash['CustomerRetailValueTotalGross'] : SKIP
|
|
1592
|
+
customer_retail_value_total_net =
|
|
1593
|
+
hash.key?('CustomerRetailValueTotalNet') ? hash['CustomerRetailValueTotalNet'] : SKIP
|
|
1594
|
+
transaction_type_description =
|
|
1595
|
+
hash.key?('TransactionTypeDescription') ? hash['TransactionTypeDescription'] : SKIP
|
|
1596
|
+
|
|
1597
|
+
# Create object from extracted values.
|
|
1598
|
+
MultiPricedTransactionResponseTransactionsItems.new(type,
|
|
1599
|
+
card_id,
|
|
1600
|
+
card_pan,
|
|
1601
|
+
card_expiry,
|
|
1602
|
+
transaction_date,
|
|
1603
|
+
transaction_time,
|
|
1604
|
+
utc_offset,
|
|
1605
|
+
fleet_id_input,
|
|
1606
|
+
odometer_input,
|
|
1607
|
+
driver_name,
|
|
1608
|
+
vehicle_registration,
|
|
1609
|
+
invoice_currency_code,
|
|
1610
|
+
invoice_currency_symbol,
|
|
1611
|
+
transaction_currency_code,
|
|
1612
|
+
transaction_currency_symbol,
|
|
1613
|
+
transaction_net_amount,
|
|
1614
|
+
transaction_tax,
|
|
1615
|
+
transaction_gross_amount,
|
|
1616
|
+
invoice_net_amount,
|
|
1617
|
+
invoice_tax,
|
|
1618
|
+
invoice_gross_amount,
|
|
1619
|
+
purchased_in_country,
|
|
1620
|
+
account_id,
|
|
1621
|
+
account_number,
|
|
1622
|
+
account_name,
|
|
1623
|
+
account_short_name,
|
|
1624
|
+
quantity,
|
|
1625
|
+
fuel_product,
|
|
1626
|
+
unit_price_in_transaction_currency,
|
|
1627
|
+
unit_price_in_invoice_currency,
|
|
1628
|
+
unit_discount_transaction_currency,
|
|
1629
|
+
unit_discount_invoice_currency,
|
|
1630
|
+
is_invoiced,
|
|
1631
|
+
invoice_number,
|
|
1632
|
+
invoice_date,
|
|
1633
|
+
site_code,
|
|
1634
|
+
site_name,
|
|
1635
|
+
site_country,
|
|
1636
|
+
location,
|
|
1637
|
+
card_group_name,
|
|
1638
|
+
receipt_number,
|
|
1639
|
+
product_code,
|
|
1640
|
+
product_name,
|
|
1641
|
+
product_group_id,
|
|
1642
|
+
product_group_name,
|
|
1643
|
+
del_co_exchange_rate,
|
|
1644
|
+
col_co_exchange_rate,
|
|
1645
|
+
is_shell_site,
|
|
1646
|
+
network,
|
|
1647
|
+
site_group_id,
|
|
1648
|
+
site_group_name,
|
|
1649
|
+
posting_date,
|
|
1650
|
+
issuer_code,
|
|
1651
|
+
purchased_in_country_code,
|
|
1652
|
+
customer_country_code,
|
|
1653
|
+
customer_country,
|
|
1654
|
+
release_code,
|
|
1655
|
+
card_group_id,
|
|
1656
|
+
card_sequence_number,
|
|
1657
|
+
check_digit,
|
|
1658
|
+
fleet_id_description,
|
|
1659
|
+
vat_rate,
|
|
1660
|
+
vat_category,
|
|
1661
|
+
vat_country,
|
|
1662
|
+
effective_discount_in_trx_currency,
|
|
1663
|
+
transaction_type,
|
|
1664
|
+
pin_indicator,
|
|
1665
|
+
vat_applicable,
|
|
1666
|
+
net_invoice_indicator,
|
|
1667
|
+
customer_currency_code,
|
|
1668
|
+
customer_currency_symbol,
|
|
1669
|
+
effective_unit_discount_in_customer_currency,
|
|
1670
|
+
effective_discount_in_customer_currency,
|
|
1671
|
+
va_ton_net_amount_in_customer_currency,
|
|
1672
|
+
discount_type,
|
|
1673
|
+
transaction_status,
|
|
1674
|
+
sales_item_id,
|
|
1675
|
+
payer_group,
|
|
1676
|
+
payer_group_name,
|
|
1677
|
+
refund_flag,
|
|
1678
|
+
original_sales_item_id,
|
|
1679
|
+
delco_name,
|
|
1680
|
+
delco_code,
|
|
1681
|
+
payer_number,
|
|
1682
|
+
payer_name,
|
|
1683
|
+
card_expiry_period,
|
|
1684
|
+
authorisation_code,
|
|
1685
|
+
transaction_id,
|
|
1686
|
+
transaction_line,
|
|
1687
|
+
allow_clearing,
|
|
1688
|
+
crm_number,
|
|
1689
|
+
dispute_status,
|
|
1690
|
+
rebate_rate,
|
|
1691
|
+
del_co_to_col_co_exchange_rate,
|
|
1692
|
+
net_euro_amount,
|
|
1693
|
+
euro_rebate_amount,
|
|
1694
|
+
euro_vat_amount,
|
|
1695
|
+
parent_customer_number,
|
|
1696
|
+
parent_customer_name,
|
|
1697
|
+
parent_customer_id,
|
|
1698
|
+
incoming_site_number,
|
|
1699
|
+
incoming_site_description,
|
|
1700
|
+
incoming_currency_code,
|
|
1701
|
+
incoming_product_code,
|
|
1702
|
+
credit_debit_code,
|
|
1703
|
+
correction_flag,
|
|
1704
|
+
additional1,
|
|
1705
|
+
additional2,
|
|
1706
|
+
additional3,
|
|
1707
|
+
additional4,
|
|
1708
|
+
rebateon_net_amount_in_customer_currency,
|
|
1709
|
+
rebateon_net_amount_in_transaction_currency,
|
|
1710
|
+
network_code,
|
|
1711
|
+
trn_identifier,
|
|
1712
|
+
card_type,
|
|
1713
|
+
delco_list_price_unit_net,
|
|
1714
|
+
delco_retail_price_unit_net,
|
|
1715
|
+
delco_retail_price_unit_gross,
|
|
1716
|
+
delco_retail_value_total_net,
|
|
1717
|
+
delco_retail_value_total_gross,
|
|
1718
|
+
customer_retail_price_unit_gross,
|
|
1719
|
+
customer_retail_value_total_gross,
|
|
1720
|
+
customer_retail_value_total_net,
|
|
1721
|
+
transaction_type_description)
|
|
1722
|
+
end
|
|
1723
|
+
end
|
|
1724
|
+
end
|