Class: ShellDataReportingApIs::PricedTransactionResponseTransactionsItems

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb

Overview

PricedTransactionResponseTransactionsItems Model.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_hash, #to_json

Constructor Details

#initialize(type = SKIP, card_id = SKIP, card_pan = SKIP, card_expiry = SKIP, transaction_date = SKIP, transaction_time = SKIP, utc_offset = SKIP, fleet_id_input = SKIP, odometer_input = SKIP, driver_name = SKIP, vehicle_registration = SKIP, invoice_currency_code = SKIP, invoice_currency_symbol = SKIP, transaction_currency_code = SKIP, transaction_currency_symbol = SKIP, transaction_net_amount = SKIP, transaction_tax = SKIP, transaction_gross_amount = SKIP, invoice_net_amount = SKIP, invoice_tax = SKIP, invoice_gross_amount = SKIP, purchased_in_country = SKIP, account_id = SKIP, account_number = SKIP, account_name = SKIP, account_short_name = SKIP, quantity = SKIP, fuel_product = SKIP, unit_price_in_transaction_currency = SKIP, unit_price_in_invoice_currency = SKIP, unit_discount_transaction_currency = SKIP, unit_discount_invoice_currency = SKIP, is_invoiced = SKIP, invoice_number = SKIP, invoice_date = SKIP, site_code = SKIP, site_name = SKIP, site_country = SKIP, location = SKIP, card_group_name = SKIP, receipt_number = SKIP, product_code = SKIP, product_name = SKIP, product_group_id = SKIP, product_group_name = SKIP, del_co_exchange_rate = SKIP, col_co_exchange_rate = SKIP, is_shell_site = SKIP, network = SKIP, site_group_id = SKIP, site_group_name = SKIP, posting_date = SKIP, issuer_code = SKIP, purchased_in_country_code = SKIP, customer_country_code = SKIP, customer_country = SKIP, release_code = SKIP, card_group_id = SKIP, card_sequence_number = SKIP, check_digit = SKIP, fleet_id_description = SKIP, vat_rate = SKIP, vat_category = SKIP, vat_country = SKIP, effective_discount_in_trx_currency = SKIP, transaction_type = SKIP, pin_indicator = SKIP, vat_applicable = SKIP, net_invoice_indicator = SKIP, customer_currency_code = SKIP, customer_currency_symbol = SKIP, effective_unit_discount_in_customer_currency = SKIP, effective_discount_in_customer_currency = SKIP, va_ton_net_amount_in_customer_currency = SKIP, discount_type = SKIP, transaction_status = SKIP, sales_item_id = SKIP, payer_group = SKIP, payer_group_name = SKIP, refund_flag = SKIP, original_sales_item_id = SKIP, delco_name = SKIP, delco_code = SKIP, payer_number = SKIP, payer_name = SKIP, card_expiry_period = SKIP, authorisation_code = SKIP, transaction_id = SKIP, transaction_line = SKIP, allow_clearing = SKIP, crm_number = SKIP, dispute_status = SKIP, rebate_rate = SKIP, del_co_to_col_co_exchange_rate = SKIP, net_euro_amount = SKIP, euro_rebate_amount = SKIP, euro_vat_amount = SKIP, parent_customer_number = SKIP, parent_customer_name = SKIP, parent_customer_id = SKIP, incoming_site_number = SKIP, incoming_site_description = SKIP, incoming_currency_code = SKIP, incoming_product_code = SKIP, credit_debit_code = SKIP, correction_flag = SKIP, additional1 = SKIP, additional2 = SKIP, additional3 = SKIP, additional4 = SKIP, rebateon_net_amount_in_customer_currency = SKIP, rebateon_net_amount_in_transaction_currency = SKIP, network_code = SKIP, trn_identifier = SKIP, card_type = SKIP, delco_list_price_unit_net = SKIP, delco_retail_price_unit_net = SKIP, delco_retail_price_unit_gross = SKIP, delco_retail_value_total_net = SKIP, delco_retail_value_total_gross = SKIP, customer_retail_price_unit_gross = SKIP, customer_retail_value_total_gross = SKIP, customer_retail_value_total_net = SKIP, transaction_type_description = SKIP, error = SKIP, request_id = SKIP) ⇒ PricedTransactionResponseTransactionsItems

Returns a new instance of PricedTransactionResponseTransactionsItems.



1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 1056

def initialize(type = SKIP, card_id = SKIP, card_pan = SKIP,
               card_expiry = SKIP, transaction_date = SKIP,
               transaction_time = SKIP, utc_offset = SKIP,
               fleet_id_input = SKIP, odometer_input = SKIP,
               driver_name = SKIP, vehicle_registration = SKIP,
               invoice_currency_code = SKIP, invoice_currency_symbol = SKIP,
               transaction_currency_code = SKIP,
               transaction_currency_symbol = SKIP,
               transaction_net_amount = SKIP, transaction_tax = SKIP,
               transaction_gross_amount = SKIP, invoice_net_amount = SKIP,
               invoice_tax = SKIP, invoice_gross_amount = SKIP,
               purchased_in_country = SKIP,  = SKIP,
                = SKIP,  = SKIP,
                = SKIP, quantity = SKIP,
               fuel_product = SKIP,
               unit_price_in_transaction_currency = SKIP,
               unit_price_in_invoice_currency = SKIP,
               unit_discount_transaction_currency = SKIP,
               unit_discount_invoice_currency = SKIP, is_invoiced = SKIP,
               invoice_number = SKIP, invoice_date = SKIP, site_code = SKIP,
               site_name = SKIP, site_country = SKIP, location = SKIP,
               card_group_name = SKIP, receipt_number = SKIP,
               product_code = SKIP, product_name = SKIP,
               product_group_id = SKIP, product_group_name = SKIP,
               del_co_exchange_rate = SKIP, col_co_exchange_rate = SKIP,
               is_shell_site = SKIP, network = SKIP, site_group_id = SKIP,
               site_group_name = SKIP, posting_date = SKIP,
               issuer_code = SKIP, purchased_in_country_code = SKIP,
               customer_country_code = SKIP, customer_country = SKIP,
               release_code = SKIP, card_group_id = SKIP,
               card_sequence_number = SKIP, check_digit = SKIP,
               fleet_id_description = SKIP, vat_rate = SKIP,
               vat_category = SKIP, vat_country = SKIP,
               effective_discount_in_trx_currency = SKIP,
               transaction_type = SKIP, pin_indicator = SKIP,
               vat_applicable = SKIP, net_invoice_indicator = SKIP,
               customer_currency_code = SKIP,
               customer_currency_symbol = SKIP,
               effective_unit_discount_in_customer_currency = SKIP,
               effective_discount_in_customer_currency = SKIP,
               va_ton_net_amount_in_customer_currency = SKIP,
               discount_type = SKIP, transaction_status = SKIP,
               sales_item_id = SKIP, payer_group = SKIP,
               payer_group_name = SKIP, refund_flag = SKIP,
               original_sales_item_id = SKIP, delco_name = SKIP,
               delco_code = SKIP, payer_number = SKIP, payer_name = SKIP,
               card_expiry_period = SKIP, authorisation_code = SKIP,
               transaction_id = SKIP, transaction_line = SKIP,
               allow_clearing = SKIP, crm_number = SKIP,
               dispute_status = SKIP, rebate_rate = SKIP,
               del_co_to_col_co_exchange_rate = SKIP,
               net_euro_amount = SKIP, euro_rebate_amount = SKIP,
               euro_vat_amount = SKIP, parent_customer_number = SKIP,
               parent_customer_name = SKIP, parent_customer_id = SKIP,
               incoming_site_number = SKIP,
               incoming_site_description = SKIP,
               incoming_currency_code = SKIP, incoming_product_code = SKIP,
               credit_debit_code = SKIP, correction_flag = SKIP,
               additional1 = SKIP, additional2 = SKIP, additional3 = SKIP,
               additional4 = SKIP,
               rebateon_net_amount_in_customer_currency = SKIP,
               rebateon_net_amount_in_transaction_currency = SKIP,
               network_code = SKIP, trn_identifier = SKIP, card_type = SKIP,
               delco_list_price_unit_net = SKIP,
               delco_retail_price_unit_net = SKIP,
               delco_retail_price_unit_gross = SKIP,
               delco_retail_value_total_net = SKIP,
               delco_retail_value_total_gross = SKIP,
               customer_retail_price_unit_gross = SKIP,
               customer_retail_value_total_gross = SKIP,
               customer_retail_value_total_net = SKIP,
               transaction_type_description = SKIP, error = SKIP,
               request_id = SKIP)
  @type = type unless type == SKIP
  @card_id = card_id unless card_id == SKIP
  @card_pan = card_pan unless card_pan == SKIP
  @card_expiry = card_expiry unless card_expiry == SKIP
  @transaction_date = transaction_date unless transaction_date == SKIP
  @transaction_time = transaction_time unless transaction_time == SKIP
  @utc_offset = utc_offset unless utc_offset == SKIP
  @fleet_id_input = fleet_id_input unless fleet_id_input == SKIP
  @odometer_input = odometer_input unless odometer_input == SKIP
  @driver_name = driver_name unless driver_name == SKIP
  @vehicle_registration = vehicle_registration unless vehicle_registration == SKIP
  @invoice_currency_code = invoice_currency_code unless invoice_currency_code == SKIP
  @invoice_currency_symbol = invoice_currency_symbol unless invoice_currency_symbol == SKIP
  unless transaction_currency_code == SKIP
    @transaction_currency_code =
      transaction_currency_code
  end
  unless transaction_currency_symbol == SKIP
    @transaction_currency_symbol =
      transaction_currency_symbol
  end
  @transaction_net_amount = transaction_net_amount unless transaction_net_amount == SKIP
  @transaction_tax = transaction_tax unless transaction_tax == SKIP
  @transaction_gross_amount = transaction_gross_amount unless transaction_gross_amount == SKIP
  @invoice_net_amount = invoice_net_amount unless invoice_net_amount == SKIP
  @invoice_tax = invoice_tax unless invoice_tax == SKIP
  @invoice_gross_amount = invoice_gross_amount unless invoice_gross_amount == SKIP
  @purchased_in_country = purchased_in_country unless purchased_in_country == SKIP
  @account_id =  unless  == SKIP
  @account_number =  unless  == SKIP
  @account_name =  unless  == SKIP
  @account_short_name =  unless  == SKIP
  @quantity = quantity unless quantity == SKIP
  @fuel_product = fuel_product unless fuel_product == SKIP
  unless unit_price_in_transaction_currency == SKIP
    @unit_price_in_transaction_currency =
      unit_price_in_transaction_currency
  end
  unless unit_price_in_invoice_currency == SKIP
    @unit_price_in_invoice_currency =
      unit_price_in_invoice_currency
  end
  unless unit_discount_transaction_currency == SKIP
    @unit_discount_transaction_currency =
      unit_discount_transaction_currency
  end
  unless unit_discount_invoice_currency == SKIP
    @unit_discount_invoice_currency =
      unit_discount_invoice_currency
  end
  @is_invoiced = is_invoiced unless is_invoiced == SKIP
  @invoice_number = invoice_number unless invoice_number == SKIP
  @invoice_date = invoice_date unless invoice_date == SKIP
  @site_code = site_code unless site_code == SKIP
  @site_name = site_name unless site_name == SKIP
  @site_country = site_country unless site_country == SKIP
  @location = location unless location == SKIP
  @card_group_name = card_group_name unless card_group_name == SKIP
  @receipt_number = receipt_number unless receipt_number == SKIP
  @product_code = product_code unless product_code == SKIP
  @product_name = product_name unless product_name == SKIP
  @product_group_id = product_group_id unless product_group_id == SKIP
  @product_group_name = product_group_name unless product_group_name == SKIP
  @del_co_exchange_rate = del_co_exchange_rate unless del_co_exchange_rate == SKIP
  @col_co_exchange_rate = col_co_exchange_rate unless col_co_exchange_rate == SKIP
  @is_shell_site = is_shell_site unless is_shell_site == SKIP
  @network = network unless network == SKIP
  @site_group_id = site_group_id unless site_group_id == SKIP
  @site_group_name = site_group_name unless site_group_name == SKIP
  @posting_date = posting_date unless posting_date == SKIP
  @issuer_code = issuer_code unless issuer_code == SKIP
  unless purchased_in_country_code == SKIP
    @purchased_in_country_code =
      purchased_in_country_code
  end
  @customer_country_code = customer_country_code unless customer_country_code == SKIP
  @customer_country = customer_country unless customer_country == SKIP
  @release_code = release_code unless release_code == SKIP
  @card_group_id = card_group_id unless card_group_id == SKIP
  @card_sequence_number = card_sequence_number unless card_sequence_number == SKIP
  @check_digit = check_digit unless check_digit == SKIP
  @fleet_id_description = fleet_id_description unless fleet_id_description == SKIP
  @vat_rate = vat_rate unless vat_rate == SKIP
  @vat_category = vat_category unless vat_category == SKIP
  @vat_country = vat_country unless vat_country == SKIP
  unless effective_discount_in_trx_currency == SKIP
    @effective_discount_in_trx_currency =
      effective_discount_in_trx_currency
  end
  @transaction_type = transaction_type unless transaction_type == SKIP
  @pin_indicator = pin_indicator unless pin_indicator == SKIP
  @vat_applicable = vat_applicable unless vat_applicable == SKIP
  @net_invoice_indicator = net_invoice_indicator unless net_invoice_indicator == SKIP
  @customer_currency_code = customer_currency_code unless customer_currency_code == SKIP
  @customer_currency_symbol = customer_currency_symbol unless customer_currency_symbol == SKIP
  unless effective_unit_discount_in_customer_currency == SKIP
    @effective_unit_discount_in_customer_currency =
      effective_unit_discount_in_customer_currency
  end
  unless effective_discount_in_customer_currency == SKIP
    @effective_discount_in_customer_currency =
      effective_discount_in_customer_currency
  end
  unless va_ton_net_amount_in_customer_currency == SKIP
    @va_ton_net_amount_in_customer_currency =
      va_ton_net_amount_in_customer_currency
  end
  @discount_type = discount_type unless discount_type == SKIP
  @transaction_status = transaction_status unless transaction_status == SKIP
  @sales_item_id = sales_item_id unless sales_item_id == SKIP
  @payer_group = payer_group unless payer_group == SKIP
  @payer_group_name = payer_group_name unless payer_group_name == SKIP
  @refund_flag = refund_flag unless refund_flag == SKIP
  @original_sales_item_id = original_sales_item_id unless original_sales_item_id == SKIP
  @delco_name = delco_name unless delco_name == SKIP
  @delco_code = delco_code unless delco_code == SKIP
  @payer_number = payer_number unless payer_number == SKIP
  @payer_name = payer_name unless payer_name == SKIP
  @card_expiry_period = card_expiry_period unless card_expiry_period == SKIP
  @authorisation_code = authorisation_code unless authorisation_code == SKIP
  @transaction_id = transaction_id unless transaction_id == SKIP
  @transaction_line = transaction_line unless transaction_line == SKIP
  @allow_clearing = allow_clearing unless allow_clearing == SKIP
  @crm_number = crm_number unless crm_number == SKIP
  @dispute_status = dispute_status unless dispute_status == SKIP
  @rebate_rate = rebate_rate unless rebate_rate == SKIP
  unless del_co_to_col_co_exchange_rate == SKIP
    @del_co_to_col_co_exchange_rate =
      del_co_to_col_co_exchange_rate
  end
  @net_euro_amount = net_euro_amount unless net_euro_amount == SKIP
  @euro_rebate_amount = euro_rebate_amount unless euro_rebate_amount == SKIP
  @euro_vat_amount = euro_vat_amount unless euro_vat_amount == SKIP
  @parent_customer_number = parent_customer_number unless parent_customer_number == SKIP
  @parent_customer_name = parent_customer_name unless parent_customer_name == SKIP
  @parent_customer_id = parent_customer_id unless parent_customer_id == SKIP
  @incoming_site_number = incoming_site_number unless incoming_site_number == SKIP
  unless incoming_site_description == SKIP
    @incoming_site_description =
      incoming_site_description
  end
  @incoming_currency_code = incoming_currency_code unless incoming_currency_code == SKIP
  @incoming_product_code = incoming_product_code unless incoming_product_code == SKIP
  @credit_debit_code = credit_debit_code unless credit_debit_code == SKIP
  @correction_flag = correction_flag unless correction_flag == SKIP
  @additional1 = additional1 unless additional1 == SKIP
  @additional2 = additional2 unless additional2 == SKIP
  @additional3 = additional3 unless additional3 == SKIP
  @additional4 = additional4 unless additional4 == SKIP
  unless rebateon_net_amount_in_customer_currency == SKIP
    @rebateon_net_amount_in_customer_currency =
      rebateon_net_amount_in_customer_currency
  end
  unless rebateon_net_amount_in_transaction_currency == SKIP
    @rebateon_net_amount_in_transaction_currency =
      rebateon_net_amount_in_transaction_currency
  end
  @network_code = network_code unless network_code == SKIP
  @trn_identifier = trn_identifier unless trn_identifier == SKIP
  @card_type = card_type unless card_type == SKIP
  unless delco_list_price_unit_net == SKIP
    @delco_list_price_unit_net =
      delco_list_price_unit_net
  end
  unless delco_retail_price_unit_net == SKIP
    @delco_retail_price_unit_net =
      delco_retail_price_unit_net
  end
  unless delco_retail_price_unit_gross == SKIP
    @delco_retail_price_unit_gross =
      delco_retail_price_unit_gross
  end
  unless delco_retail_value_total_net == SKIP
    @delco_retail_value_total_net =
      delco_retail_value_total_net
  end
  unless delco_retail_value_total_gross == SKIP
    @delco_retail_value_total_gross =
      delco_retail_value_total_gross
  end
  unless customer_retail_price_unit_gross == SKIP
    @customer_retail_price_unit_gross =
      customer_retail_price_unit_gross
  end
  unless customer_retail_value_total_gross == SKIP
    @customer_retail_value_total_gross =
      customer_retail_value_total_gross
  end
  unless customer_retail_value_total_net == SKIP
    @customer_retail_value_total_net =
      customer_retail_value_total_net
  end
  unless transaction_type_description == SKIP
    @transaction_type_description =
      transaction_type_description
  end
  @error = error unless error == SKIP
  @request_id = request_id unless request_id == SKIP
end

Instance Attribute Details

#account_idInteger

Account Id Example: 29484

Returns:

  • (Integer)


120
121
122
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 120

def 
  @account_id
end

#account_nameString

Account Name

Returns:

  • (String)


128
129
130
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 128

def 
  @account_name
end

#account_numberString

Account Number

Returns:

  • (String)


124
125
126
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 124

def 
  @account_number
end

#account_short_nameString

Account Short Name

Returns:

  • (String)


132
133
134
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 132

def 
  @account_short_name
end

#additional1String

Additional1

Returns:

  • (String)


563
564
565
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 563

def additional1
  @additional1
end

#additional2String

Additional2

Returns:

  • (String)


567
568
569
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 567

def additional2
  @additional2
end

#additional3String

Additional3

Returns:

  • (String)


571
572
573
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 571

def additional3
  @additional3
end

#additional4String

Additional4

Returns:

  • (String)


575
576
577
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 575

def additional4
  @additional4
end

#allow_clearingString

Is the Sales Item allowed for clearing? i.e. not written off Example: “Y” or “N” Note: - The value could be null/blank for fees item.

Returns:

  • (String)


465
466
467
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 465

def allow_clearing
  @allow_clearing
end

#authorisation_codeString

Authorisation code of the transaction Example: 011256 Note: - The value could be null/blank for fees item

Returns:

  • (String)


451
452
453
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 451

def authorisation_code
  @authorisation_code
end

#card_expiryString

Card Expiry Date

Returns:

  • (String)


27
28
29
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 27

def card_expiry
  @card_expiry
end

#card_expiry_periodString

Year/Month of the Card Expiry captured on the transaction

Returns:

  • (String)


445
446
447
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 445

def card_expiry_period
  @card_expiry_period
end

#card_group_idString

Card group ID

Returns:

  • (String)


310
311
312
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 310

def card_group_id
  @card_group_id
end

#card_group_nameString

Card Group Name

Returns:

  • (String)


203
204
205
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 203

def card_group_name
  @card_group_name
end

#card_idInteger

Unique Card Id

Returns:

  • (Integer)


19
20
21
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 19

def card_id
  @card_id
end

#card_panString

Card PAN

Returns:

  • (String)


23
24
25
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 23

def card_pan
  @card_pan
end

#card_sequence_numberString

3 digits, Card sequence number and Check digit

Returns:

  • (String)


314
315
316
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 314

def card_sequence_number
  @card_sequence_number
end

#card_typeString

Card Type

Returns:

  • (String)


601
602
603
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 601

def card_type
  @card_type
end

#check_digitString

Check digit, Last number of the card pan

Returns:

  • (String)


318
319
320
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 318

def check_digit
  @check_digit
end

#col_co_exchange_rateFloat

ColCo Exchange Rate (Customer exchange rate)

Returns:

  • (Float)


254
255
256
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 254

def col_co_exchange_rate
  @col_co_exchange_rate
end

#correction_flagString

Correction Flag Example: “Y” or “N” The value could be null/blank for fees item.

Returns:

  • (String)


559
560
561
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 559

def correction_flag
  @correction_flag
end

#credit_debit_codeString

Credit Debit Code Example: “D” or “C” The value could be null/blank for fees item.

Returns:

  • (String)


553
554
555
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 553

def credit_debit_code
  @credit_debit_code
end

#crm_numberString

CRM Case number if the sales item is in dispute Note: - The value could be null/blank for fees item.

Returns:

  • (String)


470
471
472
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 470

def crm_number
  @crm_number
end

#customer_countryString

Name of the Customer Country

Returns:

  • (String)


302
303
304
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 302

def customer_country
  @customer_country
end

#customer_country_codeString

ISO code of the Customer Country

Returns:

  • (String)


298
299
300
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 298

def customer_country_code
  @customer_country_code
end

#customer_currency_codeString

Customer currency code

Returns:

  • (String)


370
371
372
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 370

def customer_currency_code
  @customer_currency_code
end

#customer_currency_symbolString

Customer currency Symbol

Returns:

  • (String)


374
375
376
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 374

def customer_currency_symbol
  @customer_currency_symbol
end

#customer_retail_price_unit_grossFloat

Retail gross price (or pump gross price) per unit in customer currency

Returns:

  • (Float)


627
628
629
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 627

def customer_retail_price_unit_gross
  @customer_retail_price_unit_gross
end

#customer_retail_value_total_grossFloat

Retail gross price (or gross pump price) in customer currency

Returns:

  • (Float)


631
632
633
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 631

def customer_retail_value_total_gross
  @customer_retail_value_total_gross
end

#customer_retail_value_total_netFloat

Retail gross price (or gross pump price) in customer currency Retail net price (or net pump price) in customer currency

Returns:

  • (Float)


636
637
638
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 636

def customer_retail_value_total_net
  @customer_retail_value_total_net
end

#del_co_exchange_rateFloat

DelCo Exchange Rate (Site exchange rate)

Returns:

  • (Float)


250
251
252
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 250

def del_co_exchange_rate
  @del_co_exchange_rate
end

#del_co_to_col_co_exchange_rateFloat

Exchange rate from transaction currency to customer currency. Example: 1 Note: - The value could be null/blank for fees item

Returns:

  • (Float)


494
495
496
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 494

def del_co_to_col_co_exchange_rate
  @del_co_to_col_co_exchange_rate
end

#delco_codeString

Delco Code

Returns:

  • (String)


432
433
434
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 432

def delco_code
  @delco_code
end

#delco_list_price_unit_netFloat

Delco List Price Unit Net Example: 30.500000

Returns:

  • (Float)


606
607
608
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 606

def delco_list_price_unit_net
  @delco_list_price_unit_net
end

#delco_nameString

Delco Name

Returns:

  • (String)


428
429
430
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 428

def delco_name
  @delco_name
end

#delco_retail_price_unit_grossFloat

Retail gross price (or pump gross price) per unit in transaction currency

Returns:

  • (Float)


615
616
617
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 615

def delco_retail_price_unit_gross
  @delco_retail_price_unit_gross
end

#delco_retail_price_unit_netFloat

Retail Net Price (or pump net price) per Unit in transaction currency Example: 1.921000

Returns:

  • (Float)


611
612
613
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 611

def delco_retail_price_unit_net
  @delco_retail_price_unit_net
end

#delco_retail_value_total_grossFloat

Retail gross price (or gross pump price) in transaction currency

Returns:

  • (Float)


623
624
625
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 623

def delco_retail_value_total_gross
  @delco_retail_value_total_gross
end

#delco_retail_value_total_netFloat

Retail net price (or net pump price) in transaction currency

Returns:

  • (Float)


619
620
621
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 619

def delco_retail_value_total_net
  @delco_retail_value_total_net
end

#discount_typeString

Discount Type Example: 1-None 2-Pence per unit 3-Percentage Note: - The value could be null/blank for fees item

Returns:

  • (String)


396
397
398
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 396

def discount_type
  @discount_type
end

#dispute_statusString

Sales Item Dispute Status if disputed 0 No Dispute 1 In Dispute 2 Re-Instated 3 Adjusted 4 Written Off by Colco 5 Written Off by Delco 6 Charged Back to Site Note: - The value could be null/blank for fees item.

Returns:

  • (String)


482
483
484
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 482

def dispute_status
  @dispute_status
end

#driver_nameString

Driver Name embossed on the card Example: ANDREW GILBERRY

Returns:

  • (String)


59
60
61
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 59

def driver_name
  @driver_name
end

#effective_discount_in_customer_currencyFloat

Effective Discount (excluding VAT in Customer currency) Note: - The value could be null/blank for fees item

Returns:

  • (Float)


384
385
386
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 384

def effective_discount_in_customer_currency
  @effective_discount_in_customer_currency
end

#effective_discount_in_trx_currencyFloat

Effective Discount (excluding VAT, in transaction currency) 4 digits Example: 0.0000 Note: - The value could be null/blank for fees item.

Returns:

  • (Float)


344
345
346
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 344

def effective_discount_in_trx_currency
  @effective_discount_in_trx_currency
end

#effective_unit_discount_in_customer_currencyFloat

Effective Unit Discount (excluding VAT in Customer currency) Note: - The value could be null/blank for fees item.

Returns:

  • (Float)


379
380
381
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 379

def effective_unit_discount_in_customer_currency
  @effective_unit_discount_in_customer_currency
end

#errorErrorStatus

Transaction Type Description Note: - The value could be null/blank for fees item

Returns:



646
647
648
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 646

def error
  @error
end

#euro_rebate_amountFloat

Euro rebate amount. Example: 0 Note: - The value could be null/blank for fees item

Returns:

  • (Float)


506
507
508
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 506

def euro_rebate_amount
  @euro_rebate_amount
end

#euro_vat_amountFloat

Euro VAT amount. Example: 7.96 Note: - The value could be null/blank for fees item

Returns:

  • (Float)


512
513
514
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 512

def euro_vat_amount
  @euro_vat_amount
end

#fleet_id_descriptionString

FleetId/CRN description in Card Platform configured at the account level

Returns:

  • (String)


322
323
324
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 322

def fleet_id_description
  @fleet_id_description
end

#fleet_id_inputString

Fleet Id Input as entered by the drivers at the time of transaction Example: XYZ1234 Note: - The value could be null/blank for fees item.

Returns:

  • (String)


48
49
50
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 48

def fleet_id_input
  @fleet_id_input
end

#fuel_productTrueClass | FalseClass

True if the product on transaction is listed as a fuel product else return false

Returns:

  • (TrueClass | FalseClass)


141
142
143
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 141

def fuel_product
  @fuel_product
end

#incoming_currency_codeString

Incoming Currency Code Example: GBP Note: - The value could be null/blank for fees item

Returns:

  • (String)


542
543
544
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 542

def incoming_currency_code
  @incoming_currency_code
end

#incoming_product_codeString

Incoming Product Code Example: 30

Returns:

  • (String)


547
548
549
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 547

def incoming_product_code
  @incoming_product_code
end

#incoming_site_descriptionString

Incoming Site Description Example: HN3 INTI_02-82.02 Note: - The value could be null/blank for fees item.

Returns:

  • (String)


536
537
538
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 536

def incoming_site_description
  @incoming_site_description
end

#incoming_site_numberString

Incoming Site Number Example: 100021 Note: - The value could be null/blank for fees item.

Returns:

  • (String)


530
531
532
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 530

def incoming_site_number
  @incoming_site_number
end

#invoice_currency_codeString

ISO currency code Example: GBP

Returns:

  • (String)


69
70
71
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 69

def invoice_currency_code
  @invoice_currency_code
end

#invoice_currency_symbolString

Currency symbol of the Invoice Currency Code Example: £, $

Returns:

  • (String)


74
75
76
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 74

def invoice_currency_symbol
  @invoice_currency_symbol
end

#invoice_dateString

Invoice Date Format: yyyyMMdd HH:mm:ss

Returns:

  • (String)


172
173
174
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 172

def invoice_date
  @invoice_date
end

#invoice_gross_amountFloat

Invoice Gross Amount Note: For a fee item, this parameter will be populated with fee InvoiceGrossAmount.

Returns:

  • (Float)


111
112
113
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 111

def invoice_gross_amount
  @invoice_gross_amount
end

#invoice_net_amountFloat

Invoiced Net Amount Note: For a fee item, this parameter will be populated with fee InvoiceNetAmount.

Returns:

  • (Float)


101
102
103
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 101

def invoice_net_amount
  @invoice_net_amount
end

#invoice_numberString

Invoice Number if invoiced S04500493

Returns:

  • (String)


167
168
169
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 167

def invoice_number
  @invoice_number
end

#invoice_taxFloat

Invoiced Tax Amount

Returns:

  • (Float)


105
106
107
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 105

def invoice_tax
  @invoice_tax
end

#is_invoicedTrueClass | FalseClass

True when the transaction is already invoice, else return False

Returns:

  • (TrueClass | FalseClass)


162
163
164
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 162

def is_invoiced
  @is_invoiced
end

#is_shell_siteTrueClass | FalseClass

True when transaction occurred at a Shell site else return False Note: - The value could be null/blank for fees item.

Returns:

  • (TrueClass | FalseClass)


259
260
261
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 259

def is_shell_site
  @is_shell_site
end

#issuer_codeString

First digits of the Card PAN 7002 = Fleet

7077 = CRT

Returns:

  • (String)


289
290
291
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 289

def issuer_code
  @issuer_code
end

#locationArray[Object]

Geography Location entity for Site Location Note: - The value could be null/blank for fees item

Returns:

  • (Array[Object])


199
200
201
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 199

def location
  @location
end

#net_euro_amountFloat

Net euro amount. Example: 37.93 Note: - The value could be null/blank for fees item

Returns:

  • (Float)


500
501
502
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 500

def net_euro_amount
  @net_euro_amount
end

#net_invoice_indicatorString

Net Invoice Indicator, Will the customer receive an invoice without VAT? Example: “Y” or “N”

Returns:

  • (String)


366
367
368
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 366

def net_invoice_indicator
  @net_invoice_indicator
end

#networkString

Network as configured in GFN (Shell PH, ESSO, etc.,) 100013 STEINDORFER 100015 S.A. BELGIAN SHELL N.V. 100016 ESSO BE Note: - The value could be null/blank for fees item

Returns:

  • (String)


267
268
269
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 267

def network
  @network
end

#network_codeString

Network Code Example: AVEE PTUAZONW CUBFAO COSFS Note: - The value could be null/blank for fees item

Returns:

  • (String)


593
594
595
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 593

def network_code
  @network_code
end

#odometer_inputInteger

Odometer Input as entered by the drivers at the time of transaction Example: 12345 Note: - The value could be null/blank for fees item.

Returns:

  • (Integer)


54
55
56
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 54

def odometer_input
  @odometer_input
end

#original_sales_item_idString

Shows Sales Item Id of the original item that was refunded

Returns:

  • (String)


424
425
426
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 424

def original_sales_item_id
  @original_sales_item_id
end

#parent_customer_idInteger

Parent customer id.

Returns:

  • (Integer)


524
525
526
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 524

def parent_customer_id
  @parent_customer_id
end

#parent_customer_nameString

Parent customer name.

Returns:

  • (String)


520
521
522
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 520

def parent_customer_name
  @parent_customer_name
end

#parent_customer_numberString

Parent customer number

Returns:

  • (String)


516
517
518
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 516

def parent_customer_number
  @parent_customer_number
end

#payer_groupString

Payer Group applicable for the Large Customer NL+8 digit code

Returns:

  • (String)


412
413
414
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 412

def payer_group
  @payer_group
end

#payer_group_nameString

Payer Group Name

Returns:

  • (String)


416
417
418
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 416

def payer_group_name
  @payer_group_name
end

#payer_nameString

Payer name Example: V.M. LE COMTE

Returns:

  • (String)


441
442
443
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 441

def payer_name
  @payer_name
end

#payer_numberString

Payer number (Country code+8 digits)

Returns:

  • (String)


436
437
438
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 436

def payer_number
  @payer_number
end

#pin_indicatorString

Pin Indicator (Indicates whether PIN used or not used at the time of transaction) Example: “PIN Used’” or “No PIN” or “Unknown” Note: - The value could be null/blank for fees item

Returns:

  • (String)


357
358
359
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 357

def pin_indicator
  @pin_indicator
end

#posting_dateString

Transaction Posting Date Format: yyyyMMdd HHmmss

Returns:

  • (String)


283
284
285
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 283

def posting_date
  @posting_date
end

#product_codeString

Product Code 10 TMF Charges 11 Tunnel/Bridges 12 Motorway toll 13 Ferries

Returns:

  • (String)


215
216
217
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 215

def product_code
  @product_code
end

#product_group_idInteger

Product Group Id Example: 1 Parent Product Group 2 All Fuels 3 Motor gasoline 4 2 stroke 5 Autogas 6 CNG

Returns:

  • (Integer)


234
235
236
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 234

def product_group_id
  @product_group_id
end

#product_group_nameString

Product Group Name Example: 1 Parent Product Group 2 All Fuels 3 Motor gasoline 4 2 stroke 5 Autogas 6 CNG 7 Automotive Gas Oil

Returns:

  • (String)


246
247
248
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 246

def product_group_name
  @product_group_name
end

#product_nameString

Product Name Unleaded - High octane Unleaded - Medium octane Unleaded - Low octane Unleaded Environmental

Returns:

  • (String)


223
224
225
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 223

def product_name
  @product_name
end

#purchased_in_countryString

Country of Purchase

Returns:

  • (String)


115
116
117
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 115

def purchased_in_country
  @purchased_in_country
end

#purchased_in_country_codeString

ISO code of the country where the transaction took place Example: “NL”

Returns:

  • (String)


294
295
296
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 294

def purchased_in_country_code
  @purchased_in_country_code
end

#quantityInteger

Quantity/Volume

Returns:

  • (Integer)


136
137
138
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 136

def quantity
  @quantity
end

#rebate_rateFloat

Unit discount in customer currency. Example: 28.279000 Note: - The value could be null/blank for fees item

Returns:

  • (Float)


488
489
490
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 488

def rebate_rate
  @rebate_rate
end

#rebateon_net_amount_in_customer_currencyFloat

Rebate on Net Amount In Customer Currency Example: -0.735000000000 Note: - The value could be null/blank for fees item.

Returns:

  • (Float)


581
582
583
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 581

def rebateon_net_amount_in_customer_currency
  @rebateon_net_amount_in_customer_currency
end

#rebateon_net_amount_in_transaction_currencyFloat

Rebate on Net Amount In Transaction Currency Example: -0.735000000000 Note: - The value could be null/blank for fees item.

Returns:

  • (Float)


587
588
589
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 587

def rebateon_net_amount_in_transaction_currency
  @rebateon_net_amount_in_transaction_currency
end

#receipt_numberString

Receipt Number

Returns:

  • (String)


207
208
209
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 207

def receipt_number
  @receipt_number
end

#refund_flagString

Refund Flag “N” for Not Refunded and “Y” for Refunded.

Returns:

  • (String)


420
421
422
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 420

def refund_flag
  @refund_flag
end

#release_codeString

Release code, 7th Digit of the Card PAN

Returns:

  • (String)


306
307
308
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 306

def release_code
  @release_code
end

#request_idString

API Request Id

Returns:

  • (String)


650
651
652
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 650

def request_id
  @request_id
end

#sales_item_idInteger

Unique Sales Item Identifier Example: 18315958002 Note: For a fee item, this parameter will be populated with SalesItemId.

Returns:

  • (Integer)


408
409
410
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 408

def sales_item_id
  @sales_item_id
end

#site_codeString

Site Code Example: 050001 - CHARNOCK RICHARD NTHBOUND MWSA 0755 050002 - CHARNOCK RICHARD STHBOUND MWSA 0755

Returns:

  • (String)


179
180
181
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 179

def site_code
  @site_code
end

#site_countryString

Site Country Example: France, Germany Note: - The value could be null/blank for fees item. Geography Location entity for Site Location Note: - The value could be null/blank for fees item.

Returns:

  • (String)


194
195
196
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 194

def site_country
  @site_country
end

#site_group_idInteger

Site Group Id Example: 202 Note: - The value could be null/blank for fees item.

Returns:

  • (Integer)


273
274
275
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 273

def site_group_id
  @site_group_id
end

#site_group_nameString

Site Group Name Example: CZ 9100 ECONOMY NETWORK

Returns:

  • (String)


278
279
280
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 278

def site_group_name
  @site_group_name
end

#site_nameString

Site Name Example: 050001 - CHARNOCK RICHARD NTHBOUND MWSA 0755 050002 - CHARNOCK RICHARD STHBOUND MWSA 0755

Returns:

  • (String)


186
187
188
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 186

def site_name
  @site_name
end

#transaction_currency_codeString

ISO currency code

Returns:

  • (String)


78
79
80
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 78

def transaction_currency_code
  @transaction_currency_code
end

#transaction_currency_symbolString

Currency symbol of the Transaction Currency Code Example: £, $

Returns:

  • (String)


83
84
85
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 83

def transaction_currency_symbol
  @transaction_currency_symbol
end

#transaction_dateString

Local Transaction Date of where the transaction took place

Returns:

  • (String)


31
32
33
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 31

def transaction_date
  @transaction_date
end

#transaction_gross_amountFloat

Gross Amount

Returns:

  • (Float)


95
96
97
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 95

def transaction_gross_amount
  @transaction_gross_amount
end

#transaction_idString

Unique id of the transaction that may include one or more salesitems

Returns:

  • (String)


455
456
457
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 455

def transaction_id
  @transaction_id
end

#transaction_lineString

Transaction line item number

Returns:

  • (String)


459
460
461
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 459

def transaction_line
  @transaction_line
end

#transaction_net_amountFloat

Net Amount

Returns:

  • (Float)


87
88
89
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 87

def transaction_net_amount
  @transaction_net_amount
end

#transaction_statusString

Transaction status “U” or “I” “U” stands for Uninvoiced “I” stands for Invoiced

Returns:

  • (String)


402
403
404
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 402

def transaction_status
  @transaction_status
end

#transaction_taxFloat

Tax Amount

Returns:

  • (Float)


91
92
93
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 91

def transaction_tax
  @transaction_tax
end

#transaction_timeString

Local Transaction Time of where the transaction took place

Returns:

  • (String)


35
36
37
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 35

def transaction_time
  @transaction_time
end

#transaction_typeString

Transaction Type Example: Purchase when Card is Present else Blank Note: - The value could be null/blank for fees item.

Returns:

  • (String)


350
351
352
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 350

def transaction_type
  @transaction_type
end

#transaction_type_descriptionString

Transaction Type Description Note: - The value could be null/blank for fees item

Returns:

  • (String)


641
642
643
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 641

def transaction_type_description
  @transaction_type_description
end

#trn_identifierString

Transaction Identifier

Returns:

  • (String)


597
598
599
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 597

def trn_identifier
  @trn_identifier
end

#typeString

TransactionType is the type of transaction. Example: SalesItem /FeeItem

Returns:

  • (String)


15
16
17
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 15

def type
  @type
end

#unit_discount_invoice_currencyFloat

Unit Discount in invoice currency Note: - The value could be null/blank for fees item.

Returns:

  • (Float)


158
159
160
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 158

def unit_discount_invoice_currency
  @unit_discount_invoice_currency
end

#unit_discount_transaction_currencyFloat

Unit Discount in transaction currency

Returns:

  • (Float)


153
154
155
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 153

def unit_discount_transaction_currency
  @unit_discount_transaction_currency
end

#unit_price_in_invoice_currencyFloat

Product Unit Price in invoice currency

Returns:

  • (Float)


149
150
151
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 149

def unit_price_in_invoice_currency
  @unit_price_in_invoice_currency
end

#unit_price_in_transaction_currencyFloat

Product Unit Price in transaction currency

Returns:

  • (Float)


145
146
147
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 145

def unit_price_in_transaction_currency
  @unit_price_in_transaction_currency
end

#utc_offsetString

UTC Offset extracted from Sales Date time. Note: This may not be accurate for all TPN transactions Format: +/-HH:mm:ss (24 hours format) Note: - The value could be null/blank for fees item.

Returns:

  • (String)


42
43
44
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 42

def utc_offset
  @utc_offset
end

#va_ton_net_amount_in_customer_currencyFloat

VAT on Net Amount (in Customer currency)

Returns:

  • (Float)


388
389
390
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 388

def va_ton_net_amount_in_customer_currency
  @va_ton_net_amount_in_customer_currency
end

#vat_applicableString

Is VAT Applicable for this transaction

Returns:

  • (String)


361
362
363
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 361

def vat_applicable
  @vat_applicable
end

#vat_categoryString

VAT Category Id-Description 1-Zero Rated 2-A1 PH-O 12% Sales Domestic 3-VAT exempt

Returns:

  • (String)


334
335
336
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 334

def vat_category
  @vat_category
end

#vat_countryString

VAT Country

Returns:

  • (String)


338
339
340
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 338

def vat_country
  @vat_country
end

#vat_rateFloat

VAT Percentage 0.20 for 20%

Returns:

  • (Float)


327
328
329
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 327

def vat_rate
  @vat_rate
end

#vehicle_registrationString

Vehicle Registration Number embossed on the card Example: MV65YLH

Returns:

  • (String)


64
65
66
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 64

def vehicle_registration
  @vehicle_registration
end

Class Method Details

.from_hash(hash) ⇒ Object

Creates an instance of the object from a hash.



1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 1330

def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  type = hash.key?('Type') ? hash['Type'] : SKIP
  card_id = hash.key?('CardId') ? hash['CardId'] : SKIP
  card_pan = hash.key?('CardPAN') ? hash['CardPAN'] : SKIP
  card_expiry = hash.key?('CardExpiry') ? hash['CardExpiry'] : SKIP
  transaction_date =
    hash.key?('TransactionDate') ? hash['TransactionDate'] : SKIP
  transaction_time =
    hash.key?('TransactionTime') ? hash['TransactionTime'] : SKIP
  utc_offset = hash.key?('UTCOffset') ? hash['UTCOffset'] : SKIP
  fleet_id_input = hash.key?('FleetIdInput') ? hash['FleetIdInput'] : SKIP
  odometer_input = hash.key?('OdometerInput') ? hash['OdometerInput'] : SKIP
  driver_name = hash.key?('DriverName') ? hash['DriverName'] : SKIP
  vehicle_registration =
    hash.key?('VehicleRegistration') ? hash['VehicleRegistration'] : SKIP
  invoice_currency_code =
    hash.key?('InvoiceCurrencyCode') ? hash['InvoiceCurrencyCode'] : SKIP
  invoice_currency_symbol =
    hash.key?('InvoiceCurrencySymbol') ? hash['InvoiceCurrencySymbol'] : SKIP
  transaction_currency_code =
    hash.key?('TransactionCurrencyCode') ? hash['TransactionCurrencyCode'] : SKIP
  transaction_currency_symbol =
    hash.key?('TransactionCurrencySymbol') ? hash['TransactionCurrencySymbol'] : SKIP
  transaction_net_amount =
    hash.key?('TransactionNetAmount') ? hash['TransactionNetAmount'] : SKIP
  transaction_tax =
    hash.key?('TransactionTax') ? hash['TransactionTax'] : SKIP
  transaction_gross_amount =
    hash.key?('TransactionGrossAmount') ? hash['TransactionGrossAmount'] : SKIP
  invoice_net_amount =
    hash.key?('InvoiceNetAmount') ? hash['InvoiceNetAmount'] : SKIP
  invoice_tax = hash.key?('InvoiceTax') ? hash['InvoiceTax'] : SKIP
  invoice_gross_amount =
    hash.key?('InvoiceGrossAmount') ? hash['InvoiceGrossAmount'] : SKIP
  purchased_in_country =
    hash.key?('PurchasedInCountry') ? hash['PurchasedInCountry'] : SKIP
   = hash.key?('AccountId') ? hash['AccountId'] : SKIP
   = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
   = hash.key?('AccountName') ? hash['AccountName'] : SKIP
   =
    hash.key?('AccountShortName') ? hash['AccountShortName'] : SKIP
  quantity = hash.key?('Quantity') ? hash['Quantity'] : SKIP
  fuel_product = hash.key?('FuelProduct') ? hash['FuelProduct'] : SKIP
  unit_price_in_transaction_currency =
    hash.key?('UnitPriceInTransactionCurrency') ? hash['UnitPriceInTransactionCurrency'] : SKIP
  unit_price_in_invoice_currency =
    hash.key?('UnitPriceInInvoiceCurrency') ? hash['UnitPriceInInvoiceCurrency'] : SKIP
  unit_discount_transaction_currency =
    hash.key?('UnitDiscountTransactionCurrency') ? hash['UnitDiscountTransactionCurrency'] : SKIP
  unit_discount_invoice_currency =
    hash.key?('UnitDiscountInvoiceCurrency') ? hash['UnitDiscountInvoiceCurrency'] : SKIP
  is_invoiced = hash.key?('IsInvoiced') ? hash['IsInvoiced'] : SKIP
  invoice_number = hash.key?('InvoiceNumber') ? hash['InvoiceNumber'] : SKIP
  invoice_date = hash.key?('InvoiceDate') ? hash['InvoiceDate'] : SKIP
  site_code = hash.key?('SiteCode') ? hash['SiteCode'] : SKIP
  site_name = hash.key?('SiteName') ? hash['SiteName'] : SKIP
  site_country = hash.key?('SiteCountry') ? hash['SiteCountry'] : SKIP
  location = hash.key?('Location') ? APIHelper.deserialize_union_type(
    UnionTypeLookUp.get(:PricedTransactionResponseTransactionsItemsLocation), hash['Location']
  ) : SKIP
  card_group_name =
    hash.key?('CardGroupName') ? hash['CardGroupName'] : SKIP
  receipt_number = hash.key?('ReceiptNumber') ? hash['ReceiptNumber'] : SKIP
  product_code = hash.key?('ProductCode') ? hash['ProductCode'] : SKIP
  product_name = hash.key?('ProductName') ? hash['ProductName'] : SKIP
  product_group_id =
    hash.key?('ProductGroupId') ? hash['ProductGroupId'] : SKIP
  product_group_name =
    hash.key?('ProductGroupName') ? hash['ProductGroupName'] : SKIP
  del_co_exchange_rate =
    hash.key?('DelCoExchangeRate') ? hash['DelCoExchangeRate'] : SKIP
  col_co_exchange_rate =
    hash.key?('ColCoExchangeRate') ? hash['ColCoExchangeRate'] : SKIP
  is_shell_site = hash.key?('IsShellSite') ? hash['IsShellSite'] : SKIP
  network = hash.key?('Network') ? hash['Network'] : SKIP
  site_group_id = hash.key?('SiteGroupId') ? hash['SiteGroupId'] : SKIP
  site_group_name =
    hash.key?('SiteGroupName') ? hash['SiteGroupName'] : SKIP
  posting_date = hash.key?('PostingDate') ? hash['PostingDate'] : SKIP
  issuer_code = hash.key?('IssuerCode') ? hash['IssuerCode'] : SKIP
  purchased_in_country_code =
    hash.key?('PurchasedInCountryCode') ? hash['PurchasedInCountryCode'] : SKIP
  customer_country_code =
    hash.key?('CustomerCountryCode') ? hash['CustomerCountryCode'] : SKIP
  customer_country =
    hash.key?('CustomerCountry') ? hash['CustomerCountry'] : SKIP
  release_code = hash.key?('ReleaseCode') ? hash['ReleaseCode'] : SKIP
  card_group_id = hash.key?('CardGroupId') ? hash['CardGroupId'] : SKIP
  card_sequence_number =
    hash.key?('CardSequenceNumber') ? hash['CardSequenceNumber'] : SKIP
  check_digit = hash.key?('CheckDigit') ? hash['CheckDigit'] : SKIP
  fleet_id_description =
    hash.key?('FleetIDDescription') ? hash['FleetIDDescription'] : SKIP
  vat_rate = hash.key?('VATRate') ? hash['VATRate'] : SKIP
  vat_category = hash.key?('VATCategory') ? hash['VATCategory'] : SKIP
  vat_country = hash.key?('VATCountry') ? hash['VATCountry'] : SKIP
  effective_discount_in_trx_currency =
    hash.key?('EffectiveDiscountInTrxCurrency') ? hash['EffectiveDiscountInTrxCurrency'] : SKIP
  transaction_type =
    hash.key?('TransactionType') ? hash['TransactionType'] : SKIP
  pin_indicator = hash.key?('PINIndicator') ? hash['PINIndicator'] : SKIP
  vat_applicable = hash.key?('VATApplicable') ? hash['VATApplicable'] : SKIP
  net_invoice_indicator =
    hash.key?('NetInvoiceIndicator') ? hash['NetInvoiceIndicator'] : SKIP
  customer_currency_code =
    hash.key?('CustomerCurrencyCode') ? hash['CustomerCurrencyCode'] : SKIP
  customer_currency_symbol =
    hash.key?('CustomerCurrencySymbol') ? hash['CustomerCurrencySymbol'] : SKIP
  effective_unit_discount_in_customer_currency =
    hash.key?('EffectiveUnitDiscountInCustomerCurrency') ? hash['EffectiveUnitDiscountInCustomerCurrency'] : SKIP
  effective_discount_in_customer_currency =
    hash.key?('EffectiveDiscountInCustomerCurrency') ? hash['EffectiveDiscountInCustomerCurrency'] : SKIP
  va_ton_net_amount_in_customer_currency =
    hash.key?('VATonNetAmountInCustomerCurrency') ? hash['VATonNetAmountInCustomerCurrency'] : SKIP
  discount_type = hash.key?('DiscountType') ? hash['DiscountType'] : SKIP
  transaction_status =
    hash.key?('TransactionStatus') ? hash['TransactionStatus'] : SKIP
  sales_item_id = hash.key?('SalesItemId') ? hash['SalesItemId'] : SKIP
  payer_group = hash.key?('PayerGroup') ? hash['PayerGroup'] : SKIP
  payer_group_name =
    hash.key?('PayerGroupName') ? hash['PayerGroupName'] : SKIP
  refund_flag = hash.key?('RefundFlag') ? hash['RefundFlag'] : SKIP
  original_sales_item_id =
    hash.key?('OriginalSalesItemId') ? hash['OriginalSalesItemId'] : SKIP
  delco_name = hash.key?('DelcoName') ? hash['DelcoName'] : SKIP
  delco_code = hash.key?('DelcoCode') ? hash['DelcoCode'] : SKIP
  payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
  payer_name = hash.key?('PayerName') ? hash['PayerName'] : SKIP
  card_expiry_period =
    hash.key?('CardExpiryPeriod') ? hash['CardExpiryPeriod'] : SKIP
  authorisation_code =
    hash.key?('AuthorisationCode') ? hash['AuthorisationCode'] : SKIP
  transaction_id = hash.key?('TransactionId') ? hash['TransactionId'] : SKIP
  transaction_line =
    hash.key?('TransactionLine') ? hash['TransactionLine'] : SKIP
  allow_clearing = hash.key?('AllowClearing') ? hash['AllowClearing'] : SKIP
  crm_number = hash.key?('CRMNumber') ? hash['CRMNumber'] : SKIP
  dispute_status = hash.key?('DisputeStatus') ? hash['DisputeStatus'] : SKIP
  rebate_rate = hash.key?('RebateRate') ? hash['RebateRate'] : SKIP
  del_co_to_col_co_exchange_rate =
    hash.key?('DelCoToColCoExchangeRate') ? hash['DelCoToColCoExchangeRate'] : SKIP
  net_euro_amount =
    hash.key?('NetEuroAmount') ? hash['NetEuroAmount'] : SKIP
  euro_rebate_amount =
    hash.key?('EuroRebateAmount') ? hash['EuroRebateAmount'] : SKIP
  euro_vat_amount =
    hash.key?('EuroVATAmount') ? hash['EuroVATAmount'] : SKIP
  parent_customer_number =
    hash.key?('ParentCustomerNumber') ? hash['ParentCustomerNumber'] : SKIP
  parent_customer_name =
    hash.key?('ParentCustomerName') ? hash['ParentCustomerName'] : SKIP
  parent_customer_id =
    hash.key?('ParentCustomerId') ? hash['ParentCustomerId'] : SKIP
  incoming_site_number =
    hash.key?('IncomingSiteNumber') ? hash['IncomingSiteNumber'] : SKIP
  incoming_site_description =
    hash.key?('IncomingSiteDescription') ? hash['IncomingSiteDescription'] : SKIP
  incoming_currency_code =
    hash.key?('IncomingCurrencyCode') ? hash['IncomingCurrencyCode'] : SKIP
  incoming_product_code =
    hash.key?('IncomingProductCode') ? hash['IncomingProductCode'] : SKIP
  credit_debit_code =
    hash.key?('CreditDebitCode') ? hash['CreditDebitCode'] : SKIP
  correction_flag =
    hash.key?('CorrectionFlag') ? hash['CorrectionFlag'] : SKIP
  additional1 = hash.key?('Additional1') ? hash['Additional1'] : SKIP
  additional2 = hash.key?('Additional2') ? hash['Additional2'] : SKIP
  additional3 = hash.key?('Additional3') ? hash['Additional3'] : SKIP
  additional4 = hash.key?('Additional4') ? hash['Additional4'] : SKIP
  rebateon_net_amount_in_customer_currency =
    hash.key?('RebateonNetAmountInCustomerCurrency') ? hash['RebateonNetAmountInCustomerCurrency'] : SKIP
  rebateon_net_amount_in_transaction_currency =
    hash.key?('RebateonNetAmountInTransactionCurrency') ? hash['RebateonNetAmountInTransactionCurrency'] : SKIP
  network_code = hash.key?('NetworkCode') ? hash['NetworkCode'] : SKIP
  trn_identifier = hash.key?('TrnIdentifier') ? hash['TrnIdentifier'] : SKIP
  card_type = hash.key?('CardType') ? hash['CardType'] : SKIP
  delco_list_price_unit_net =
    hash.key?('DelcoListPriceUnitNet') ? hash['DelcoListPriceUnitNet'] : SKIP
  delco_retail_price_unit_net =
    hash.key?('DelcoRetailPriceUnitNet') ? hash['DelcoRetailPriceUnitNet'] : SKIP
  delco_retail_price_unit_gross =
    hash.key?('DelcoRetailPriceUnitGross') ? hash['DelcoRetailPriceUnitGross'] : SKIP
  delco_retail_value_total_net =
    hash.key?('DelcoRetailValueTotalNet') ? hash['DelcoRetailValueTotalNet'] : SKIP
  delco_retail_value_total_gross =
    hash.key?('DelcoRetailValueTotalGross') ? hash['DelcoRetailValueTotalGross'] : SKIP
  customer_retail_price_unit_gross =
    hash.key?('CustomerRetailPriceUnitGross') ? hash['CustomerRetailPriceUnitGross'] : SKIP
  customer_retail_value_total_gross =
    hash.key?('CustomerRetailValueTotalGross') ? hash['CustomerRetailValueTotalGross'] : SKIP
  customer_retail_value_total_net =
    hash.key?('CustomerRetailValueTotalNet') ? hash['CustomerRetailValueTotalNet'] : SKIP
  transaction_type_description =
    hash.key?('TransactionTypeDescription') ? hash['TransactionTypeDescription'] : SKIP
  error = ErrorStatus.from_hash(hash['Error']) if hash['Error']
  request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP

  # Create object from extracted values.
  PricedTransactionResponseTransactionsItems.new(type,
                                                 card_id,
                                                 card_pan,
                                                 card_expiry,
                                                 transaction_date,
                                                 transaction_time,
                                                 utc_offset,
                                                 fleet_id_input,
                                                 odometer_input,
                                                 driver_name,
                                                 vehicle_registration,
                                                 invoice_currency_code,
                                                 invoice_currency_symbol,
                                                 transaction_currency_code,
                                                 transaction_currency_symbol,
                                                 transaction_net_amount,
                                                 transaction_tax,
                                                 transaction_gross_amount,
                                                 invoice_net_amount,
                                                 invoice_tax,
                                                 invoice_gross_amount,
                                                 purchased_in_country,
                                                 ,
                                                 ,
                                                 ,
                                                 ,
                                                 quantity,
                                                 fuel_product,
                                                 unit_price_in_transaction_currency,
                                                 unit_price_in_invoice_currency,
                                                 unit_discount_transaction_currency,
                                                 unit_discount_invoice_currency,
                                                 is_invoiced,
                                                 invoice_number,
                                                 invoice_date,
                                                 site_code,
                                                 site_name,
                                                 site_country,
                                                 location,
                                                 card_group_name,
                                                 receipt_number,
                                                 product_code,
                                                 product_name,
                                                 product_group_id,
                                                 product_group_name,
                                                 del_co_exchange_rate,
                                                 col_co_exchange_rate,
                                                 is_shell_site,
                                                 network,
                                                 site_group_id,
                                                 site_group_name,
                                                 posting_date,
                                                 issuer_code,
                                                 purchased_in_country_code,
                                                 customer_country_code,
                                                 customer_country,
                                                 release_code,
                                                 card_group_id,
                                                 card_sequence_number,
                                                 check_digit,
                                                 fleet_id_description,
                                                 vat_rate,
                                                 vat_category,
                                                 vat_country,
                                                 effective_discount_in_trx_currency,
                                                 transaction_type,
                                                 pin_indicator,
                                                 vat_applicable,
                                                 net_invoice_indicator,
                                                 customer_currency_code,
                                                 customer_currency_symbol,
                                                 effective_unit_discount_in_customer_currency,
                                                 effective_discount_in_customer_currency,
                                                 va_ton_net_amount_in_customer_currency,
                                                 discount_type,
                                                 transaction_status,
                                                 sales_item_id,
                                                 payer_group,
                                                 payer_group_name,
                                                 refund_flag,
                                                 original_sales_item_id,
                                                 delco_name,
                                                 delco_code,
                                                 payer_number,
                                                 payer_name,
                                                 card_expiry_period,
                                                 authorisation_code,
                                                 transaction_id,
                                                 transaction_line,
                                                 allow_clearing,
                                                 crm_number,
                                                 dispute_status,
                                                 rebate_rate,
                                                 del_co_to_col_co_exchange_rate,
                                                 net_euro_amount,
                                                 euro_rebate_amount,
                                                 euro_vat_amount,
                                                 parent_customer_number,
                                                 parent_customer_name,
                                                 parent_customer_id,
                                                 incoming_site_number,
                                                 incoming_site_description,
                                                 incoming_currency_code,
                                                 incoming_product_code,
                                                 credit_debit_code,
                                                 correction_flag,
                                                 additional1,
                                                 additional2,
                                                 additional3,
                                                 additional4,
                                                 rebateon_net_amount_in_customer_currency,
                                                 rebateon_net_amount_in_transaction_currency,
                                                 network_code,
                                                 trn_identifier,
                                                 card_type,
                                                 delco_list_price_unit_net,
                                                 delco_retail_price_unit_net,
                                                 delco_retail_price_unit_gross,
                                                 delco_retail_value_total_net,
                                                 delco_retail_value_total_gross,
                                                 customer_retail_price_unit_gross,
                                                 customer_retail_value_total_gross,
                                                 customer_retail_value_total_net,
                                                 transaction_type_description,
                                                 error,
                                                 request_id)
end

.namesObject

A mapping from model property names to API property names.



653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 653

def self.names
  @_hash = {} if @_hash.nil?
  @_hash['type'] = 'Type'
  @_hash['card_id'] = 'CardId'
  @_hash['card_pan'] = 'CardPAN'
  @_hash['card_expiry'] = 'CardExpiry'
  @_hash['transaction_date'] = 'TransactionDate'
  @_hash['transaction_time'] = 'TransactionTime'
  @_hash['utc_offset'] = 'UTCOffset'
  @_hash['fleet_id_input'] = 'FleetIdInput'
  @_hash['odometer_input'] = 'OdometerInput'
  @_hash['driver_name'] = 'DriverName'
  @_hash['vehicle_registration'] = 'VehicleRegistration'
  @_hash['invoice_currency_code'] = 'InvoiceCurrencyCode'
  @_hash['invoice_currency_symbol'] = 'InvoiceCurrencySymbol'
  @_hash['transaction_currency_code'] = 'TransactionCurrencyCode'
  @_hash['transaction_currency_symbol'] = 'TransactionCurrencySymbol'
  @_hash['transaction_net_amount'] = 'TransactionNetAmount'
  @_hash['transaction_tax'] = 'TransactionTax'
  @_hash['transaction_gross_amount'] = 'TransactionGrossAmount'
  @_hash['invoice_net_amount'] = 'InvoiceNetAmount'
  @_hash['invoice_tax'] = 'InvoiceTax'
  @_hash['invoice_gross_amount'] = 'InvoiceGrossAmount'
  @_hash['purchased_in_country'] = 'PurchasedInCountry'
  @_hash['account_id'] = 'AccountId'
  @_hash['account_number'] = 'AccountNumber'
  @_hash['account_name'] = 'AccountName'
  @_hash['account_short_name'] = 'AccountShortName'
  @_hash['quantity'] = 'Quantity'
  @_hash['fuel_product'] = 'FuelProduct'
  @_hash['unit_price_in_transaction_currency'] =
    'UnitPriceInTransactionCurrency'
  @_hash['unit_price_in_invoice_currency'] = 'UnitPriceInInvoiceCurrency'
  @_hash['unit_discount_transaction_currency'] =
    'UnitDiscountTransactionCurrency'
  @_hash['unit_discount_invoice_currency'] = 'UnitDiscountInvoiceCurrency'
  @_hash['is_invoiced'] = 'IsInvoiced'
  @_hash['invoice_number'] = 'InvoiceNumber'
  @_hash['invoice_date'] = 'InvoiceDate'
  @_hash['site_code'] = 'SiteCode'
  @_hash['site_name'] = 'SiteName'
  @_hash['site_country'] = 'SiteCountry'
  @_hash['location'] = 'Location'
  @_hash['card_group_name'] = 'CardGroupName'
  @_hash['receipt_number'] = 'ReceiptNumber'
  @_hash['product_code'] = 'ProductCode'
  @_hash['product_name'] = 'ProductName'
  @_hash['product_group_id'] = 'ProductGroupId'
  @_hash['product_group_name'] = 'ProductGroupName'
  @_hash['del_co_exchange_rate'] = 'DelCoExchangeRate'
  @_hash['col_co_exchange_rate'] = 'ColCoExchangeRate'
  @_hash['is_shell_site'] = 'IsShellSite'
  @_hash['network'] = 'Network'
  @_hash['site_group_id'] = 'SiteGroupId'
  @_hash['site_group_name'] = 'SiteGroupName'
  @_hash['posting_date'] = 'PostingDate'
  @_hash['issuer_code'] = 'IssuerCode'
  @_hash['purchased_in_country_code'] = 'PurchasedInCountryCode'
  @_hash['customer_country_code'] = 'CustomerCountryCode'
  @_hash['customer_country'] = 'CustomerCountry'
  @_hash['release_code'] = 'ReleaseCode'
  @_hash['card_group_id'] = 'CardGroupId'
  @_hash['card_sequence_number'] = 'CardSequenceNumber'
  @_hash['check_digit'] = 'CheckDigit'
  @_hash['fleet_id_description'] = 'FleetIDDescription'
  @_hash['vat_rate'] = 'VATRate'
  @_hash['vat_category'] = 'VATCategory'
  @_hash['vat_country'] = 'VATCountry'
  @_hash['effective_discount_in_trx_currency'] =
    'EffectiveDiscountInTrxCurrency'
  @_hash['transaction_type'] = 'TransactionType'
  @_hash['pin_indicator'] = 'PINIndicator'
  @_hash['vat_applicable'] = 'VATApplicable'
  @_hash['net_invoice_indicator'] = 'NetInvoiceIndicator'
  @_hash['customer_currency_code'] = 'CustomerCurrencyCode'
  @_hash['customer_currency_symbol'] = 'CustomerCurrencySymbol'
  @_hash['effective_unit_discount_in_customer_currency'] =
    'EffectiveUnitDiscountInCustomerCurrency'
  @_hash['effective_discount_in_customer_currency'] =
    'EffectiveDiscountInCustomerCurrency'
  @_hash['va_ton_net_amount_in_customer_currency'] =
    'VATonNetAmountInCustomerCurrency'
  @_hash['discount_type'] = 'DiscountType'
  @_hash['transaction_status'] = 'TransactionStatus'
  @_hash['sales_item_id'] = 'SalesItemId'
  @_hash['payer_group'] = 'PayerGroup'
  @_hash['payer_group_name'] = 'PayerGroupName'
  @_hash['refund_flag'] = 'RefundFlag'
  @_hash['original_sales_item_id'] = 'OriginalSalesItemId'
  @_hash['delco_name'] = 'DelcoName'
  @_hash['delco_code'] = 'DelcoCode'
  @_hash['payer_number'] = 'PayerNumber'
  @_hash['payer_name'] = 'PayerName'
  @_hash['card_expiry_period'] = 'CardExpiryPeriod'
  @_hash['authorisation_code'] = 'AuthorisationCode'
  @_hash['transaction_id'] = 'TransactionId'
  @_hash['transaction_line'] = 'TransactionLine'
  @_hash['allow_clearing'] = 'AllowClearing'
  @_hash['crm_number'] = 'CRMNumber'
  @_hash['dispute_status'] = 'DisputeStatus'
  @_hash['rebate_rate'] = 'RebateRate'
  @_hash['del_co_to_col_co_exchange_rate'] = 'DelCoToColCoExchangeRate'
  @_hash['net_euro_amount'] = 'NetEuroAmount'
  @_hash['euro_rebate_amount'] = 'EuroRebateAmount'
  @_hash['euro_vat_amount'] = 'EuroVATAmount'
  @_hash['parent_customer_number'] = 'ParentCustomerNumber'
  @_hash['parent_customer_name'] = 'ParentCustomerName'
  @_hash['parent_customer_id'] = 'ParentCustomerId'
  @_hash['incoming_site_number'] = 'IncomingSiteNumber'
  @_hash['incoming_site_description'] = 'IncomingSiteDescription'
  @_hash['incoming_currency_code'] = 'IncomingCurrencyCode'
  @_hash['incoming_product_code'] = 'IncomingProductCode'
  @_hash['credit_debit_code'] = 'CreditDebitCode'
  @_hash['correction_flag'] = 'CorrectionFlag'
  @_hash['additional1'] = 'Additional1'
  @_hash['additional2'] = 'Additional2'
  @_hash['additional3'] = 'Additional3'
  @_hash['additional4'] = 'Additional4'
  @_hash['rebateon_net_amount_in_customer_currency'] =
    'RebateonNetAmountInCustomerCurrency'
  @_hash['rebateon_net_amount_in_transaction_currency'] =
    'RebateonNetAmountInTransactionCurrency'
  @_hash['network_code'] = 'NetworkCode'
  @_hash['trn_identifier'] = 'TrnIdentifier'
  @_hash['card_type'] = 'CardType'
  @_hash['delco_list_price_unit_net'] = 'DelcoListPriceUnitNet'
  @_hash['delco_retail_price_unit_net'] = 'DelcoRetailPriceUnitNet'
  @_hash['delco_retail_price_unit_gross'] = 'DelcoRetailPriceUnitGross'
  @_hash['delco_retail_value_total_net'] = 'DelcoRetailValueTotalNet'
  @_hash['delco_retail_value_total_gross'] = 'DelcoRetailValueTotalGross'
  @_hash['customer_retail_price_unit_gross'] =
    'CustomerRetailPriceUnitGross'
  @_hash['customer_retail_value_total_gross'] =
    'CustomerRetailValueTotalGross'
  @_hash['customer_retail_value_total_net'] =
    'CustomerRetailValueTotalNet'
  @_hash['transaction_type_description'] = 'TransactionTypeDescription'
  @_hash['error'] = 'Error'
  @_hash['request_id'] = 'RequestId'
  @_hash
end

.nullablesObject

An array for nullable fields



928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 928

def self.nullables
  %w[
    type
    card_id
    card_pan
    card_expiry
    transaction_date
    transaction_time
    utc_offset
    fleet_id_input
    odometer_input
    driver_name
    vehicle_registration
    invoice_currency_code
    invoice_currency_symbol
    transaction_currency_code
    transaction_currency_symbol
    transaction_net_amount
    transaction_tax
    transaction_gross_amount
    invoice_net_amount
    invoice_tax
    invoice_gross_amount
    purchased_in_country
    account_id
    account_number
    account_name
    account_short_name
    quantity
    fuel_product
    unit_price_in_transaction_currency
    unit_price_in_invoice_currency
    unit_discount_transaction_currency
    unit_discount_invoice_currency
    is_invoiced
    invoice_number
    invoice_date
    site_code
    site_name
    site_country
    card_group_name
    receipt_number
    product_code
    product_name
    product_group_id
    product_group_name
    del_co_exchange_rate
    col_co_exchange_rate
    is_shell_site
    network
    site_group_id
    site_group_name
    posting_date
    issuer_code
    purchased_in_country_code
    customer_country_code
    customer_country
    release_code
    card_group_id
    card_sequence_number
    check_digit
    fleet_id_description
    vat_rate
    vat_category
    vat_country
    effective_discount_in_trx_currency
    transaction_type
    pin_indicator
    vat_applicable
    net_invoice_indicator
    customer_currency_code
    customer_currency_symbol
    effective_unit_discount_in_customer_currency
    effective_discount_in_customer_currency
    va_ton_net_amount_in_customer_currency
    discount_type
    transaction_status
    sales_item_id
    payer_group
    payer_group_name
    refund_flag
    original_sales_item_id
    delco_name
    delco_code
    payer_number
    payer_name
    card_expiry_period
    authorisation_code
    transaction_id
    transaction_line
    allow_clearing
    crm_number
    dispute_status
    rebate_rate
    del_co_to_col_co_exchange_rate
    net_euro_amount
    euro_rebate_amount
    euro_vat_amount
    parent_customer_number
    parent_customer_name
    parent_customer_id
    incoming_site_number
    incoming_site_description
    incoming_currency_code
    incoming_product_code
    credit_debit_code
    correction_flag
    additional1
    additional2
    additional3
    additional4
    rebateon_net_amount_in_customer_currency
    rebateon_net_amount_in_transaction_currency
    network_code
    trn_identifier
    card_type
    delco_list_price_unit_net
    delco_retail_price_unit_net
    delco_retail_price_unit_gross
    delco_retail_value_total_net
    delco_retail_value_total_gross
    customer_retail_price_unit_gross
    customer_retail_value_total_gross
    customer_retail_value_total_net
    transaction_type_description
  ]
end

.optionalsObject

An array for optional fields



796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 796

def self.optionals
  %w[
    type
    card_id
    card_pan
    card_expiry
    transaction_date
    transaction_time
    utc_offset
    fleet_id_input
    odometer_input
    driver_name
    vehicle_registration
    invoice_currency_code
    invoice_currency_symbol
    transaction_currency_code
    transaction_currency_symbol
    transaction_net_amount
    transaction_tax
    transaction_gross_amount
    invoice_net_amount
    invoice_tax
    invoice_gross_amount
    purchased_in_country
    account_id
    account_number
    account_name
    account_short_name
    quantity
    fuel_product
    unit_price_in_transaction_currency
    unit_price_in_invoice_currency
    unit_discount_transaction_currency
    unit_discount_invoice_currency
    is_invoiced
    invoice_number
    invoice_date
    site_code
    site_name
    site_country
    location
    card_group_name
    receipt_number
    product_code
    product_name
    product_group_id
    product_group_name
    del_co_exchange_rate
    col_co_exchange_rate
    is_shell_site
    network
    site_group_id
    site_group_name
    posting_date
    issuer_code
    purchased_in_country_code
    customer_country_code
    customer_country
    release_code
    card_group_id
    card_sequence_number
    check_digit
    fleet_id_description
    vat_rate
    vat_category
    vat_country
    effective_discount_in_trx_currency
    transaction_type
    pin_indicator
    vat_applicable
    net_invoice_indicator
    customer_currency_code
    customer_currency_symbol
    effective_unit_discount_in_customer_currency
    effective_discount_in_customer_currency
    va_ton_net_amount_in_customer_currency
    discount_type
    transaction_status
    sales_item_id
    payer_group
    payer_group_name
    refund_flag
    original_sales_item_id
    delco_name
    delco_code
    payer_number
    payer_name
    card_expiry_period
    authorisation_code
    transaction_id
    transaction_line
    allow_clearing
    crm_number
    dispute_status
    rebate_rate
    del_co_to_col_co_exchange_rate
    net_euro_amount
    euro_rebate_amount
    euro_vat_amount
    parent_customer_number
    parent_customer_name
    parent_customer_id
    incoming_site_number
    incoming_site_description
    incoming_currency_code
    incoming_product_code
    credit_debit_code
    correction_flag
    additional1
    additional2
    additional3
    additional4
    rebateon_net_amount_in_customer_currency
    rebateon_net_amount_in_transaction_currency
    network_code
    trn_identifier
    card_type
    delco_list_price_unit_net
    delco_retail_price_unit_net
    delco_retail_price_unit_gross
    delco_retail_value_total_net
    delco_retail_value_total_gross
    customer_retail_price_unit_gross
    customer_retail_value_total_gross
    customer_retail_value_total_net
    transaction_type_description
    error
    request_id
  ]
end

.validate(value) ⇒ Object

Validates an instance of the object from a given value.

Parameters:



1661
1662
1663
1664
1665
1666
1667
# File 'lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb', line 1661

def self.validate(value)
  return true if value.instance_of? self

  return false unless value.instance_of? Hash

  true
end