Class: ShellDataReportingApIs::TransactionExceptions
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- ShellDataReportingApIs::TransactionExceptions
- Defined in:
- lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb
Overview
TransactionExceptions Model.
Instance Attribute Summary collapse
-
#account_id ⇒ Integer
Account Id.
-
#account_name ⇒ String
Account Name.
-
#account_number ⇒ String
Account Number.
-
#account_short_name ⇒ String
Account Short Name.
-
#allow_clearing ⇒ String
Is the Sales Item allowed for clearing? i.e.
-
#authorisation_code ⇒ String
Authorisation code of the transaction.
-
#card_expiry ⇒ String
Card Expiry Date Format: yyyyMMdd.
-
#card_expiry_period ⇒ String
Year/Month of the Card Expiry captured on the transaction.
-
#card_group_id ⇒ String
Card group ID.
-
#card_group_name ⇒ String
Card Group Name.
-
#card_id ⇒ Integer
Unique Card Identifier.
-
#card_pan ⇒ String
Card PAN number Returns masked PAN number when masking is enabled at the Microservices configuration (Mask all digits except the last 6 digits of the PAN).
-
#card_sequence_number ⇒ String
3 digits, Card sequence number and Check digit (Digit 16,17 and 18 on the card pan).
-
#check_digit ⇒ String
Check digit, Last number of the card pan.
-
#col_co_exchange_rate ⇒ Float
ColCo Exchange Rate (Customer exchange rate).
-
#crm_number ⇒ String
CRM Case number if the sales item is in dispute.
-
#customer_country ⇒ String
Name of the Customer Country.
-
#customer_country_code ⇒ String
ISO code of the Customer Country.
-
#customer_currency_code ⇒ String
Customer currency code.
-
#customer_currency_symbol ⇒ String
Customer currency Symbol.
-
#customer_invoice_value_total_gross ⇒ Float
Total Gross Amount for the Invoice Customer.
-
#del_co_exchange_rate ⇒ Float
DelCo Exchange Rate (Site exchange rate).
-
#del_co_to_col_co_exchange_rate ⇒ Float
Exchange rate from transaction currency to customer currency.
-
#delco_code ⇒ String
Delco Code.
-
#delco_name ⇒ String
Delco Name.
-
#discount_type ⇒ String
Discount Type Example: 1-None 2-Pence per unit 3-Percentage.
-
#dispute_status ⇒ String
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.
-
#driver_name ⇒ String
Driver Name embossed on the card.
-
#effective_discount_in_customer_currency ⇒ Float
Effective Discount.
-
#effective_discount_in_trx_currency ⇒ String
Effective Discount (excluding VAT, in transaction currency) 4 digits.
-
#effective_unit_discount_in_customer_currency ⇒ Float
Effective Unit Discount.
-
#euro_rebate_amount ⇒ Float
Euro rebate amount.
-
#euro_vat_amount ⇒ Float
Euro VAT amount.
-
#fleet_id_description ⇒ String
FleetId/CRN description in Card Platform configured at the account level.
-
#fleet_id_input ⇒ String
Fleet Id Input as entered by the drivers at the time of transaction.
-
#fuel_product ⇒ TrueClass | FalseClass
True if the product on transaction is listed as a fuel product else return false.
-
#invoice_currency_code ⇒ String
ISO currency code (Example: GBP).
-
#invoice_currency_symbol ⇒ String
Currency symbol of the Invoice Currency Code (i.e. £, $, etc.,).
-
#invoice_date ⇒ String
Invoice Date Format: yyyyMMdd HH:mm:ss.
-
#invoice_gross_amount ⇒ Float
Invoice Gross Amount.
-
#invoice_net_amount ⇒ Float
Invoiced Net Amount.
-
#invoice_number ⇒ String
Invoice Number if invoiced.
-
#invoice_tax ⇒ Float
Invoiced Tax Amount.
-
#is_invoiced ⇒ TrueClass | FalseClass
True when the transaction is already invoice, else return False.
-
#is_shell_site ⇒ TrueClass | FalseClass
True when transaction occurred at a Shell site else return False.
-
#issuer_code ⇒ String
First digits of the Card PAN 7002 = Fleet 7077 = CRT.
-
#location ⇒ Location
Site Country.
-
#net_euro_amount ⇒ Float
Net euro amount.
-
#net_invoice_indicator ⇒ String
Net Invoice Indicator, Will the customer receive an invoice without VAT? Example: “Y” or “N”.
-
#network ⇒ String
Network as configured.
-
#odometer_input ⇒ Integer
Odometer Input as entered by the drivers at the time of transaction.
-
#original_sales_item_id ⇒ Float
Shows Sales Item Id of the original item that was refunded.
-
#parent_customer_number ⇒ String
Parent customer number.
-
#payer_group ⇒ String
Payer Group applicable for the Large Customer NL+8 digit code.
-
#payer_name ⇒ String
Payer name.
-
#payer_number ⇒ String
Payer number.
-
#pin_indicator ⇒ String
Pin Indicator (Indicates whether PIN used or not used at the time of transaction).
-
#posting_date ⇒ String
Site GroupName.
-
#product_code ⇒ String
Product Code.
-
#product_group_id ⇒ Integer
Product Group Id.
-
#product_group_name ⇒ String
Product Group Name.
-
#product_id ⇒ Integer
Product Id.
-
#product_name ⇒ String
Product Name.
-
#purchased_in_country ⇒ String
Country of Purchase (Ex: France, Germany, etc.,).
-
#purchased_in_country_code ⇒ String
ISO code of the country where the transaction took place.
-
#quantity ⇒ Float
Quantity/Volume.
-
#rebate_rate ⇒ Float
Unit discount in customer currency.
-
#receipt_number ⇒ String
Receipt Number.
-
#refund_flag ⇒ String
Refund Flag “N” for Not Refunded and “Y” for Refunded.
-
#release_code ⇒ String
Release code, 7th Digit of the Card PAN.
-
#sales_item_id ⇒ Float
Unique Sales Item Identifier.
-
#site_code ⇒ String
Site Code.
-
#site_country ⇒ String
Site Country.
-
#site_group_id ⇒ Integer
Site Group Id.
-
#site_group_name ⇒ String
Site GroupName.
-
#site_name ⇒ String
Site Name.
-
#transaction_currency_code ⇒ String
ISO currency code.
-
#transaction_currency_symbol ⇒ String
Currency symbol of the Transaction Currency Code (i.e. £, $, etc.,).
-
#transaction_date ⇒ String
Local Transaction Date of where the transaction took place Format: yyyyMMdd.
-
#transaction_gross_amount ⇒ Float
Gross Amount.
-
#transaction_guid ⇒ String
Transaction Unique Identifier.
-
#transaction_id ⇒ String
Unique id of the transaction that may include one or more salesitems.
-
#transaction_line ⇒ String
Transaction line item number.
-
#transaction_net_amount ⇒ Float
Net Amount.
-
#transaction_status ⇒ String
Transaction status “U” or “I” “U” stands for Uninvoiced “I” stands for Invoiced.
-
#transaction_tax ⇒ Float
Tax Amount.
-
#transaction_time ⇒ String
Local Transaction Time of where the transaction took place Format: HH:mm:ss (24 hours format).
-
#transaction_type ⇒ String
Transaction Type.
-
#unit_discount_invoice_currency ⇒ Float
Unit Discount in invoice currency.
-
#unit_discount_transaction_currency ⇒ Float
Unit Discount in transaction currency.
-
#unit_price_in_invoice_currency ⇒ Float
Product Unit Price in invoice currency.
-
#unit_price_in_transaction_currency ⇒ Float
Product Unit Price in transaction currency.
-
#utc_offset ⇒ String
UTC Offset extracted from GFN Sales Date time.
-
#va_ton_net_amount ⇒ Float
VAT on Net Amount (in transaction currency) 2 decimals.
-
#va_ton_net_amount_in_customer_currency ⇒ Float
VAT on Net Amount.
-
#vat_applicable ⇒ String
Is VAT Applicable for this transaction “Y” or “N”.
-
#vat_category ⇒ String
VAT Category Id-Description 1-Zero Rated 2-A1 PH-O 12% Sales Domestic 3-VAT exempt.
-
#vat_country ⇒ String
VAT Country.
-
#vat_rate ⇒ Float
VAT Percentage.
-
#vehicle_registration ⇒ String
Vehicle Registration Number embossed on the card.
Class Method Summary collapse
-
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
-
.names ⇒ Object
A mapping from model property names to API property names.
-
.nullables ⇒ Object
An array for nullable fields.
-
.optionals ⇒ Object
An array for optional fields.
Instance Method Summary collapse
Methods inherited from BaseModel
Constructor Details
#initialize(sales_item_id = SKIP, card_id = SKIP, product_id = SKIP, transaction_guid = SKIP, transaction_date = SKIP, customer_invoice_value_total_gross = SKIP, card_pan = SKIP, card_expiry = 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, 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, payer_group = 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, va_ton_net_amount = SKIP, vat_country = SKIP) ⇒ TransactionExceptions
Returns a new instance of TransactionExceptions.
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 794 795 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 926 927 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 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 767 def initialize(sales_item_id = SKIP, card_id = SKIP, product_id = SKIP, transaction_guid = SKIP, transaction_date = SKIP, customer_invoice_value_total_gross = SKIP, card_pan = SKIP, card_expiry = 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, 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, payer_group = 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, = 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, va_ton_net_amount = SKIP, vat_country = SKIP) @sales_item_id = sales_item_id unless sales_item_id == SKIP @card_id = card_id unless card_id == SKIP @product_id = product_id unless product_id == SKIP @transaction_guid = transaction_guid unless transaction_guid == SKIP @transaction_date = transaction_date unless transaction_date == SKIP unless customer_invoice_value_total_gross == SKIP @customer_invoice_value_total_gross = customer_invoice_value_total_gross end @card_pan = card_pan unless card_pan == SKIP @card_expiry = card_expiry unless card_expiry == 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 = account_id unless account_id == SKIP @account_number = account_number unless account_number == SKIP @account_name = account_name unless account_name == SKIP @account_short_name = account_short_name unless account_short_name == 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 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 @payer_group = payer_group unless payer_group == 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 = unless == 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 @va_ton_net_amount = va_ton_net_amount unless va_ton_net_amount == SKIP @vat_country = vat_country unless vat_country == SKIP end |
Instance Attribute Details
#account_id ⇒ Integer
Account Id
121 122 123 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 121 def account_id @account_id end |
#account_name ⇒ String
Account Name
129 130 131 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 129 def account_name @account_name end |
#account_number ⇒ String
Account Number
125 126 127 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 125 def account_number @account_number end |
#account_short_name ⇒ String
Account Short Name
133 134 135 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 133 def account_short_name @account_short_name end |
#allow_clearing ⇒ String
Is the Sales Item allowed for clearing? i.e. not written off Example: “Y” or “N”
394 395 396 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 394 def allow_clearing @allow_clearing end |
#authorisation_code ⇒ String
Authorisation code of the transaction
381 382 383 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 381 def @authorisation_code end |
#card_expiry ⇒ String
Card Expiry Date Format: yyyyMMdd
46 47 48 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 46 def card_expiry @card_expiry end |
#card_expiry_period ⇒ String
Year/Month of the Card Expiry captured on the transaction
377 378 379 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 377 def card_expiry_period @card_expiry_period end |
#card_group_id ⇒ String
Card group ID
265 266 267 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 265 def card_group_id @card_group_id end |
#card_group_name ⇒ String
Card Group Name
191 192 193 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 191 def card_group_name @card_group_name end |
#card_id ⇒ Integer
Unique Card Identifier
18 19 20 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 18 def card_id @card_id end |
#card_pan ⇒ String
Card PAN number Returns masked PAN number when masking is enabled at the Microservices configuration (Mask all digits except the last 6 digits of the PAN)
41 42 43 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 41 def card_pan @card_pan end |
#card_sequence_number ⇒ String
3 digits, Card sequence number and Check digit (Digit 16,17 and 18 on the card pan)
270 271 272 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 270 def card_sequence_number @card_sequence_number end |
#check_digit ⇒ String
Check digit, Last number of the card pan
274 275 276 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 274 def check_digit @check_digit end |
#col_co_exchange_rate ⇒ Float
ColCo Exchange Rate (Customer exchange rate)
219 220 221 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 219 def col_co_exchange_rate @col_co_exchange_rate end |
#crm_number ⇒ String
CRM Case number if the sales item is in dispute
398 399 400 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 398 def crm_number @crm_number end |
#customer_country ⇒ String
Name of the Customer Country
257 258 259 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 257 def customer_country @customer_country end |
#customer_country_code ⇒ String
ISO code of the Customer Country
253 254 255 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 253 def customer_country_code @customer_country_code end |
#customer_currency_code ⇒ String
Customer currency code
316 317 318 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 316 def customer_currency_code @customer_currency_code end |
#customer_currency_symbol ⇒ String
Customer currency Symbol
320 321 322 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 320 def customer_currency_symbol @customer_currency_symbol end |
#customer_invoice_value_total_gross ⇒ Float
Total Gross Amount for the Invoice Customer
35 36 37 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 35 def customer_invoice_value_total_gross @customer_invoice_value_total_gross end |
#del_co_exchange_rate ⇒ Float
DelCo Exchange Rate (Site exchange rate)
215 216 217 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 215 def del_co_exchange_rate @del_co_exchange_rate end |
#del_co_to_col_co_exchange_rate ⇒ Float
Exchange rate from transaction currency to customer currency.
417 418 419 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 417 def del_co_to_col_co_exchange_rate @del_co_to_col_co_exchange_rate end |
#delco_code ⇒ String
Delco Code
365 366 367 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 365 def delco_code @delco_code end |
#delco_name ⇒ String
Delco Name
361 362 363 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 361 def delco_name @delco_name end |
#discount_type ⇒ String
Discount Type Example: 1-None 2-Pence per unit 3-Percentage
339 340 341 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 339 def discount_type @discount_type end |
#dispute_status ⇒ String
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
409 410 411 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 409 def dispute_status @dispute_status end |
#driver_name ⇒ String
Driver Name embossed on the card
69 70 71 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 69 def driver_name @driver_name end |
#effective_discount_in_customer_currency ⇒ Float
Effective Discount
328 329 330 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 328 def effective_discount_in_customer_currency @effective_discount_in_customer_currency end |
#effective_discount_in_trx_currency ⇒ String
Effective Discount (excluding VAT, in transaction currency) 4 digits
293 294 295 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 293 def effective_discount_in_trx_currency @effective_discount_in_trx_currency end |
#effective_unit_discount_in_customer_currency ⇒ Float
Effective Unit Discount
324 325 326 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 324 def effective_unit_discount_in_customer_currency @effective_unit_discount_in_customer_currency end |
#euro_rebate_amount ⇒ Float
Euro rebate amount.
425 426 427 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 425 def euro_rebate_amount @euro_rebate_amount end |
#euro_vat_amount ⇒ Float
Euro VAT amount.
429 430 431 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 429 def euro_vat_amount @euro_vat_amount end |
#fleet_id_description ⇒ String
FleetId/CRN description in Card Platform configured at the account level
278 279 280 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 278 def fleet_id_description @fleet_id_description end |
#fleet_id_input ⇒ String
Fleet Id Input as entered by the drivers at the time of transaction
61 62 63 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 61 def fleet_id_input @fleet_id_input end |
#fuel_product ⇒ TrueClass | FalseClass
True if the product on transaction is listed as a fuel product else return false
142 143 144 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 142 def fuel_product @fuel_product end |
#invoice_currency_code ⇒ String
ISO currency code (Example: GBP)
77 78 79 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 77 def invoice_currency_code @invoice_currency_code end |
#invoice_currency_symbol ⇒ String
Currency symbol of the Invoice Currency Code (i.e. £, $, etc.,)
81 82 83 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 81 def invoice_currency_symbol @invoice_currency_symbol end |
#invoice_date ⇒ String
Invoice Date Format: yyyyMMdd HH:mm:ss
171 172 173 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 171 def invoice_date @invoice_date end |
#invoice_gross_amount ⇒ Float
Invoice Gross Amount
113 114 115 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 113 def invoice_gross_amount @invoice_gross_amount end |
#invoice_net_amount ⇒ Float
Invoiced Net Amount
105 106 107 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 105 def invoice_net_amount @invoice_net_amount end |
#invoice_number ⇒ String
Invoice Number if invoiced
166 167 168 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 166 def invoice_number @invoice_number end |
#invoice_tax ⇒ Float
Invoiced Tax Amount
109 110 111 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 109 def invoice_tax @invoice_tax end |
#is_invoiced ⇒ TrueClass | FalseClass
True when the transaction is already invoice, else return False
162 163 164 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 162 def is_invoiced @is_invoiced end |
#is_shell_site ⇒ TrueClass | FalseClass
True when transaction occurred at a Shell site else return False
223 224 225 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 223 def is_shell_site @is_shell_site end |
#issuer_code ⇒ String
First digits of the Card PAN 7002 = Fleet
7077 = CRT
245 246 247 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 245 def issuer_code @issuer_code end |
#location ⇒ Location
Site Country
187 188 189 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 187 def location @location end |
#net_euro_amount ⇒ Float
Net euro amount.
421 422 423 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 421 def net_euro_amount @net_euro_amount end |
#net_invoice_indicator ⇒ String
Net Invoice Indicator, Will the customer receive an invoice without VAT? Example: “Y” or “N”
312 313 314 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 312 def net_invoice_indicator @net_invoice_indicator end |
#network ⇒ String
Network as configured
227 228 229 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 227 def network @network end |
#odometer_input ⇒ Integer
Odometer Input as entered by the drivers at the time of transaction
65 66 67 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 65 def odometer_input @odometer_input end |
#original_sales_item_id ⇒ Float
Shows Sales Item Id of the original item that was refunded
357 358 359 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 357 def original_sales_item_id @original_sales_item_id end |
#parent_customer_number ⇒ String
Parent customer number
433 434 435 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 433 def parent_customer_number @parent_customer_number end |
#payer_group ⇒ String
Payer Group applicable for the Large Customer NL+8 digit code
349 350 351 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 349 def payer_group @payer_group end |
#payer_name ⇒ String
Payer name
373 374 375 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 373 def payer_name @payer_name end |
#payer_number ⇒ String
Payer number
369 370 371 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 369 def payer_number @payer_number end |
#pin_indicator ⇒ String
Pin Indicator (Indicates whether PIN used or not used at the time of transaction)
302 303 304 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 302 def pin_indicator @pin_indicator end |
#posting_date ⇒ String
Site GroupName
239 240 241 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 239 def posting_date @posting_date end |
#product_code ⇒ String
Product Code
199 200 201 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 199 def product_code @product_code end |
#product_group_id ⇒ Integer
Product Group Id
207 208 209 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 207 def product_group_id @product_group_id end |
#product_group_name ⇒ String
Product Group Name
211 212 213 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 211 def product_group_name @product_group_name end |
#product_id ⇒ Integer
Product Id
22 23 24 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 22 def product_id @product_id end |
#product_name ⇒ String
Product Name
203 204 205 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 203 def product_name @product_name end |
#purchased_in_country ⇒ String
Country of Purchase (Ex: France, Germany, etc.,)
117 118 119 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 117 def purchased_in_country @purchased_in_country end |
#purchased_in_country_code ⇒ String
ISO code of the country where the transaction took place
249 250 251 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 249 def purchased_in_country_code @purchased_in_country_code end |
#quantity ⇒ Float
Quantity/Volume
137 138 139 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 137 def quantity @quantity end |
#rebate_rate ⇒ Float
Unit discount in customer currency
413 414 415 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 413 def rebate_rate @rebate_rate end |
#receipt_number ⇒ String
Receipt Number
195 196 197 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 195 def receipt_number @receipt_number end |
#refund_flag ⇒ String
Refund Flag “N” for Not Refunded and “Y” for Refunded.
353 354 355 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 353 def refund_flag @refund_flag end |
#release_code ⇒ String
Release code, 7th Digit of the Card PAN
261 262 263 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 261 def release_code @release_code end |
#sales_item_id ⇒ Float
Unique Sales Item Identifier
14 15 16 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 14 def sales_item_id @sales_item_id end |
#site_code ⇒ String
Site Code
175 176 177 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 175 def site_code @site_code end |
#site_country ⇒ String
Site Country
183 184 185 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 183 def site_country @site_country end |
#site_group_id ⇒ Integer
Site Group Id
231 232 233 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 231 def site_group_id @site_group_id end |
#site_group_name ⇒ String
Site GroupName
235 236 237 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 235 def site_group_name @site_group_name end |
#site_name ⇒ String
Site Name
179 180 181 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 179 def site_name @site_name end |
#transaction_currency_code ⇒ String
ISO currency code
85 86 87 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 85 def transaction_currency_code @transaction_currency_code end |
#transaction_currency_symbol ⇒ String
Currency symbol of the Transaction Currency Code (i.e. £, $, etc.,)
89 90 91 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 89 def transaction_currency_symbol @transaction_currency_symbol end |
#transaction_date ⇒ String
Local Transaction Date of where the transaction took place Format: yyyyMMdd
31 32 33 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 31 def transaction_date @transaction_date end |
#transaction_gross_amount ⇒ Float
Gross Amount
101 102 103 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 101 def transaction_gross_amount @transaction_gross_amount end |
#transaction_guid ⇒ String
Transaction Unique Identifier
26 27 28 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 26 def transaction_guid @transaction_guid end |
#transaction_id ⇒ String
Unique id of the transaction that may include one or more salesitems
385 386 387 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 385 def transaction_id @transaction_id end |
#transaction_line ⇒ String
Transaction line item number
389 390 391 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 389 def transaction_line @transaction_line end |
#transaction_net_amount ⇒ Float
Net Amount
93 94 95 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 93 def transaction_net_amount @transaction_net_amount end |
#transaction_status ⇒ String
Transaction status “U” or “I” “U” stands for Uninvoiced “I” stands for Invoiced
345 346 347 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 345 def transaction_status @transaction_status end |
#transaction_tax ⇒ Float
Tax Amount
97 98 99 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 97 def transaction_tax @transaction_tax end |
#transaction_time ⇒ String
Local Transaction Time of where the transaction took place Format: HH:mm:ss (24 hours format)
51 52 53 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 51 def transaction_time @transaction_time end |
#transaction_type ⇒ String
Transaction Type
297 298 299 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 297 def transaction_type @transaction_type end |
#unit_discount_invoice_currency ⇒ Float
Unit Discount in invoice currency
158 159 160 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 158 def unit_discount_invoice_currency @unit_discount_invoice_currency end |
#unit_discount_transaction_currency ⇒ Float
Unit Discount in transaction currency
154 155 156 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 154 def unit_discount_transaction_currency @unit_discount_transaction_currency end |
#unit_price_in_invoice_currency ⇒ Float
Product Unit Price in invoice currency
150 151 152 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 150 def unit_price_in_invoice_currency @unit_price_in_invoice_currency end |
#unit_price_in_transaction_currency ⇒ Float
Product Unit Price in transaction currency
146 147 148 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 146 def unit_price_in_transaction_currency @unit_price_in_transaction_currency end |
#utc_offset ⇒ String
UTC Offset extracted from GFN Sales Date time. Note: This may not be accurate for all TPN transactions Format: +/-HH:mm:ss (24 hours format)
57 58 59 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 57 def utc_offset @utc_offset end |
#va_ton_net_amount ⇒ Float
VAT on Net Amount (in transaction currency) 2 decimals
437 438 439 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 437 def va_ton_net_amount @va_ton_net_amount end |
#va_ton_net_amount_in_customer_currency ⇒ Float
VAT on Net Amount
332 333 334 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 332 def va_ton_net_amount_in_customer_currency @va_ton_net_amount_in_customer_currency end |
#vat_applicable ⇒ String
Is VAT Applicable for this transaction “Y” or “N”
307 308 309 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 307 def vat_applicable @vat_applicable end |
#vat_category ⇒ String
VAT Category Id-Description 1-Zero Rated 2-A1 PH-O 12% Sales Domestic 3-VAT exempt
289 290 291 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 289 def vat_category @vat_category end |
#vat_country ⇒ String
VAT Country
441 442 443 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 441 def vat_country @vat_country end |
#vat_rate ⇒ Float
VAT Percentage
282 283 284 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 282 def vat_rate @vat_rate end |
#vehicle_registration ⇒ String
Vehicle Registration Number embossed on the card
73 74 75 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 73 def vehicle_registration @vehicle_registration end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
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 1055 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 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 964 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. sales_item_id = hash.key?('SalesItemId') ? hash['SalesItemId'] : SKIP card_id = hash.key?('CardId') ? hash['CardId'] : SKIP product_id = hash.key?('ProductId') ? hash['ProductId'] : SKIP transaction_guid = hash.key?('TransactionGUID') ? hash['TransactionGUID'] : SKIP transaction_date = hash.key?('TransactionDate') ? hash['TransactionDate'] : SKIP customer_invoice_value_total_gross = hash.key?('CustomerInvoiceValueTotalGross') ? hash['CustomerInvoiceValueTotalGross'] : SKIP card_pan = hash.key?('CardPAN') ? hash['CardPAN'] : SKIP card_expiry = hash.key?('CardExpiry') ? hash['CardExpiry'] : 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 account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP account_name = hash.key?('AccountName') ? hash['AccountName'] : SKIP account_short_name = 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 = Location.from_hash(hash['Location']) if hash['Location'] 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 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 payer_group = hash.key?('PayerGroup') ? hash['PayerGroup'] : 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 = 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 va_ton_net_amount = hash.key?('VATonNetAmount') ? hash['VATonNetAmount'] : SKIP vat_country = hash.key?('VATCountry') ? hash['VATCountry'] : SKIP # Create object from extracted values. TransactionExceptions.new(sales_item_id, card_id, product_id, transaction_guid, transaction_date, customer_invoice_value_total_gross, card_pan, card_expiry, 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, 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, payer_group, refund_flag, original_sales_item_id, delco_name, delco_code, payer_number, payer_name, card_expiry_period, , 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, va_ton_net_amount, vat_country) end |
.names ⇒ Object
A mapping from model property names to API property names.
444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 444 def self.names @_hash = {} if @_hash.nil? @_hash['sales_item_id'] = 'SalesItemId' @_hash['card_id'] = 'CardId' @_hash['product_id'] = 'ProductId' @_hash['transaction_guid'] = 'TransactionGUID' @_hash['transaction_date'] = 'TransactionDate' @_hash['customer_invoice_value_total_gross'] = 'CustomerInvoiceValueTotalGross' @_hash['card_pan'] = 'CardPAN' @_hash['card_expiry'] = 'CardExpiry' @_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['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['payer_group'] = 'PayerGroup' @_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['va_ton_net_amount'] = 'VATonNetAmount' @_hash['vat_country'] = 'VATCountry' @_hash end |
.nullables ⇒ Object
An array for nullable fields
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 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 663 def self.nullables %w[ sales_item_id card_id product_id transaction_guid transaction_date customer_invoice_value_total_gross card_pan card_expiry 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 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 payer_group 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 va_ton_net_amount vat_country ] end |
.optionals ⇒ Object
An array for optional fields
557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 |
# File 'lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb', line 557 def self.optionals %w[ sales_item_id card_id product_id transaction_guid transaction_date customer_invoice_value_total_gross card_pan card_expiry 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 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 payer_group 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 va_ton_net_amount vat_country ] end |