Class: ShellDataReportingApIs::PriceTransactionRequest
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- ShellDataReportingApIs::PriceTransactionRequest
- Defined in:
- lib/shell_data_reporting_ap_is/models/price_transaction_request.rb
Overview
PriceTransactionRequest Model.
Instance Attribute Summary collapse
-
#accounts ⇒ Accounts
Payer Number (Ex: GB000000123) of the selected payer.
-
#card_group_id ⇒ Integer
Card Group Id in GFN.
-
#card_id ⇒ Integer
Card Id (i.e. Unique Card Id in GFN) Optional When both Card Id and Card PAN are not present on request, the response will have transactions of all cards under the selected payer or account.
-
#card_pan ⇒ String
Full Card PAN Optional When both Card Id and Card PAN are not present on request, the response will have transactions of all cards under the selected payer or account.
-
#col_co_code ⇒ Integer
Collecting Company Code of the selected payer.
-
#col_co_id ⇒ Integer
Collecting Company Id of the selected payer.
-
#current_page ⇒ Integer
Current Page Number.
-
#driver_name ⇒ String
Driver Name (of Card record) Optional Minimum of 4 characters should be provided else not considered Transactions of the card having the entered value at any part of the Driver Name will be returned.
-
#from_date ⇒ String
Transactions from Date/Time.
-
#fuel_only ⇒ TrueClass | FalseClass
True/False Optional Default value: False.
-
#include_fees ⇒ TrueClass | FalseClass
True/False Optional Default value: False When passed as ‘True’ then ignore few filters, all sales items along with fees included on the same response.
-
#invoice_date ⇒ String
Invoice Date.
-
#invoice_from_date ⇒ String
Start date for transaction search by invoice date.
-
#invoice_number ⇒ String
Invoice Number.
-
#invoice_status ⇒ String
Invoice status of the transactions.
-
#invoice_to_date ⇒ String
End date for transaction search by invoice date.
-
#page_size ⇒ Integer
Page Size – Number of records to show on a page Optional Default value 50.
-
#payer_id ⇒ Integer
Payer Id of the selected payer.
-
#payer_number ⇒ String
Payer Number (Ex: GB000000123) of the selected payer.
-
#period ⇒ Integer
Transactions Period.
-
#posting_date_from ⇒ String
Transaction Posting Date/time in the Cards Platform - From Date/time.
-
#posting_date_to ⇒ String
Transaction Posting Date/time in the Cards Platform – To Date/time.
-
#product_code ⇒ String
Product Code – Global as per GFN configuration Optional Max Length: 8 Example: 10 TMF Charges 11 Tunnel/Bridges 12 Motorway toll 13 Ferries.
-
#product_id ⇒ Integer
Product Id Example: 21 Unleaded - High octane 22 Unleaded - Medium octane 23 Unleaded - Low octane 24 Unleaded Environmental.
-
#purchased_in_country ⇒ String
ISO Country Code (ex: UK, FR) Note: If IncludeFees is true then this filter will be ignored.
-
#sales_item_id ⇒ String
Unique SalesItemId (Either Billed on Unbilled) Optional Note: If IncludeFees is true then this filter will be ignored.
-
#site_code ⇒ String
Site Code as configured in GFN Example: 050001 - CHARNOCK RICHARD NTHBOUND MWSA 0755 050002 - CHARNOCK RICHARD STHBOUND MWSA 0755 050005 - HARTSHEAD MOOR EASTBOUND MWSA 0761.
-
#site_group_id ⇒ Integer
Site Group Id in GFN Optional Example: 202 Note: If IncludeFees is true then this filter will be ignored.
-
#sort_order ⇒ String
Allowed Sorting Options: 1.
-
#to_date ⇒ String
Transactions to Date/Time.
-
#transaction_id ⇒ String
Unique Transaction Id Optional Note: If IncludeFees is true then this filter will be ignored.
-
#use_field_id ⇒ TrueClass | FalseClass
True/False Optional Default value – False.
-
#valid_invoice_date_only ⇒ TrueClass | FalseClass
True/False Optional Default value: True.
-
#vehicle_registration_number ⇒ String
Vehicle Registration (of Card record) Optional Minimum of 4 characters should be provided else not considered Transactions of the card having the entered value at any part of the VRN will be returned.
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
-
#initialize(col_co_id = SKIP, col_co_code = SKIP, payer_id = SKIP, payer_number = SKIP, accounts = SKIP, card_id = SKIP, card_pan = SKIP, driver_name = SKIP, vehicle_registration_number = SKIP, invoice_status = SKIP, product_id = SKIP, product_code = SKIP, purchased_in_country = SKIP, card_group_id = SKIP, sort_order = SKIP, from_date = SKIP, to_date = SKIP, period = SKIP, site_code = SKIP, site_group_id = SKIP, posting_date_from = SKIP, posting_date_to = SKIP, sales_item_id = SKIP, transaction_id = SKIP, invoice_date = SKIP, invoice_number = SKIP, valid_invoice_date_only = SKIP, invoice_from_date = SKIP, invoice_to_date = SKIP, fuel_only = SKIP, include_fees = SKIP, use_field_id = SKIP, current_page = SKIP, page_size = SKIP) ⇒ PriceTransactionRequest
constructor
A new instance of PriceTransactionRequest.
-
#inspect ⇒ Object
Provides a debugging-friendly string with detailed object information.
-
#to_s ⇒ Object
Provides a human-readable string representation of the object.
Methods inherited from BaseModel
#check_for_conflict, #process_additional_properties, #process_array, #process_basic_value, #process_hash, #to_hash, #to_json
Constructor Details
#initialize(col_co_id = SKIP, col_co_code = SKIP, payer_id = SKIP, payer_number = SKIP, accounts = SKIP, card_id = SKIP, card_pan = SKIP, driver_name = SKIP, vehicle_registration_number = SKIP, invoice_status = SKIP, product_id = SKIP, product_code = SKIP, purchased_in_country = SKIP, card_group_id = SKIP, sort_order = SKIP, from_date = SKIP, to_date = SKIP, period = SKIP, site_code = SKIP, site_group_id = SKIP, posting_date_from = SKIP, posting_date_to = SKIP, sales_item_id = SKIP, transaction_id = SKIP, invoice_date = SKIP, invoice_number = SKIP, valid_invoice_date_only = SKIP, invoice_from_date = SKIP, invoice_to_date = SKIP, fuel_only = SKIP, include_fees = SKIP, use_field_id = SKIP, current_page = SKIP, page_size = SKIP) ⇒ PriceTransactionRequest
Returns a new instance of PriceTransactionRequest.
416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 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 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 416 def initialize(col_co_id = SKIP, col_co_code = SKIP, payer_id = SKIP, payer_number = SKIP, accounts = SKIP, card_id = SKIP, card_pan = SKIP, driver_name = SKIP, vehicle_registration_number = SKIP, invoice_status = SKIP, product_id = SKIP, product_code = SKIP, purchased_in_country = SKIP, card_group_id = SKIP, sort_order = SKIP, from_date = SKIP, to_date = SKIP, period = SKIP, site_code = SKIP, site_group_id = SKIP, posting_date_from = SKIP, posting_date_to = SKIP, sales_item_id = SKIP, transaction_id = SKIP, invoice_date = SKIP, invoice_number = SKIP, valid_invoice_date_only = SKIP, invoice_from_date = SKIP, invoice_to_date = SKIP, fuel_only = SKIP, include_fees = SKIP, use_field_id = SKIP, current_page = SKIP, page_size = SKIP) @col_co_id = col_co_id unless col_co_id == SKIP @col_co_code = col_co_code unless col_co_code == SKIP @payer_id = payer_id unless payer_id == SKIP @payer_number = payer_number unless payer_number == SKIP @accounts = accounts unless accounts == SKIP @card_id = card_id unless card_id == SKIP @card_pan = card_pan unless card_pan == SKIP @driver_name = driver_name unless driver_name == SKIP unless vehicle_registration_number == SKIP @vehicle_registration_number = vehicle_registration_number end @invoice_status = invoice_status unless invoice_status == SKIP @product_id = product_id unless product_id == SKIP @product_code = product_code unless product_code == SKIP @purchased_in_country = purchased_in_country unless purchased_in_country == SKIP @card_group_id = card_group_id unless card_group_id == SKIP @sort_order = sort_order unless sort_order == SKIP @from_date = from_date unless from_date == SKIP @to_date = to_date unless to_date == SKIP @period = period unless period == SKIP @site_code = site_code unless site_code == SKIP @site_group_id = site_group_id unless site_group_id == SKIP @posting_date_from = posting_date_from unless posting_date_from == SKIP @posting_date_to = posting_date_to unless posting_date_to == SKIP @sales_item_id = sales_item_id unless sales_item_id == SKIP @transaction_id = transaction_id unless transaction_id == SKIP @invoice_date = invoice_date unless invoice_date == SKIP @invoice_number = invoice_number unless invoice_number == SKIP @valid_invoice_date_only = valid_invoice_date_only unless valid_invoice_date_only == SKIP @invoice_from_date = invoice_from_date unless invoice_from_date == SKIP @invoice_to_date = invoice_to_date unless invoice_to_date == SKIP @fuel_only = fuel_only unless fuel_only == SKIP @include_fees = include_fees unless include_fees == SKIP @use_field_id = use_field_id unless use_field_id == SKIP @current_page = current_page unless current_page == SKIP @page_size = page_size unless page_size == SKIP end |
Instance Attribute Details
#accounts ⇒ Accounts
Payer Number (Ex: GB000000123) of the selected payer. Optional if PayerId is passed else Mandatory Example: GB000000123
44 45 46 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 44 def accounts @accounts end |
#card_group_id ⇒ Integer
Card Group Id in GFN
112 113 114 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 112 def card_group_id @card_group_id end |
#card_id ⇒ Integer
Card Id (i.e. Unique Card Id in GFN) Optional When both Card Id and Card PAN are not present on request, the response will have transactions of all cards under the selected payer or account
51 52 53 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 51 def card_id @card_id end |
#card_pan ⇒ String
Full Card PAN Optional When both Card Id and Card PAN are not present on request, the response will have transactions of all cards under the selected payer or account.
58 59 60 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 58 def card_pan @card_pan end |
#col_co_code ⇒ Integer
Collecting Company Code of the selected payer. Mandatory for serviced OUs such as Romania, Latvia, Lithuania, Estonia, Ukraine etc. It is optional for other countries if ColCoID is provided. Example: 86 for Philippines 5 for UK
27 28 29 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 27 def col_co_code @col_co_code end |
#col_co_id ⇒ Integer
Collecting Company Id of the selected payer. Optional if ColCoCode is passed else Mandatory. Example: 1 for Philippines 5 for UK
18 19 20 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 18 def col_co_id @col_co_id end |
#current_page ⇒ Integer
Current Page Number
290 291 292 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 290 def current_page @current_page end |
#driver_name ⇒ String
Driver Name (of Card record) Optional Minimum of 4 characters should be provided else not considered Transactions of the card having the entered value at any part of the Driver Name will be returned
66 67 68 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 66 def driver_name @driver_name end |
#from_date ⇒ String
Transactions from Date/Time. Optional – When provided, it should be with in last 24 months. Format: yyyyMMdd
137 138 139 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 137 def from_date @from_date end |
#fuel_only ⇒ TrueClass | FalseClass
True/False Optional Default value: False. When passed as ‘True’ Only returned records with Fuel transactions. When passed as ‘False’ the above condition will not be checked.
268 269 270 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 268 def fuel_only @fuel_only end |
#include_fees ⇒ TrueClass | FalseClass
True/False Optional Default value: False When passed as ‘True’ then ignore few filters, all sales items along with fees included on the same response
276 277 278 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 276 def include_fees @include_fees end |
#invoice_date ⇒ String
Invoice Date. Optional Note: 1) If value is not blank then the system will ignore the InvoiceStatus parameter and it will return all the billed transactions for the given invoice date. Format: yyyyMMdd
221 222 223 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 221 def invoice_date @invoice_date end |
#invoice_from_date ⇒ String
Start date for transaction search by invoice date. Optional Note: 1) Value should be with in last 24 months (if provided). 2) Maximum of 90(Configurable) day’s duration allowed per search. 3) When provided, InvoiceFromDate has to be less than or equal to InvoiceToDate. Format: yyyyMMdd
250 251 252 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 250 def invoice_from_date @invoice_from_date end |
#invoice_number ⇒ String
Invoice Number. Optional Note: 1) If value is not blank then the system will ignore the InvoiceStatus parameter and it will return all the billed transactions for the given invoice date.
230 231 232 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 230 def invoice_number @invoice_number end |
#invoice_status ⇒ String
Invoice status of the transactions. Mandatory Possible options: I - Invoiced U – Un-Invoiced A – All
83 84 85 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 83 def invoice_status @invoice_status end |
#invoice_to_date ⇒ String
End date for transaction search by invoice date. Optional Note: 1) When InvoiceFromDate is provided and InvoiceToDate is null, then InvoiceToDate will be calculated as (InvoiceFromDate + 90 days) or (CurrentDate) whichever is lesser. Format: yyyyMMdd
260 261 262 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 260 def invoice_to_date @invoice_to_date end |
#page_size ⇒ Integer
Page Size – Number of records to show on a page Optional Default value 50
296 297 298 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 296 def page_size @page_size end |
#payer_id ⇒ Integer
Payer Id of the selected payer. Optional if PayerNumber is passed else Mandatory
32 33 34 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 32 def payer_id @payer_id end |
#payer_number ⇒ String
Payer Number (Ex: GB000000123) of the selected payer. Optional if PayerId is passed else Mandatory Example: GB000000123
38 39 40 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 38 def payer_number @payer_number end |
#period ⇒ Integer
Transactions Period. Possible values are:
-
Last 7 Days
-
Last 30 Days
-
Last 90 Days
Optional - Refer introduction section of this operation for the priority and sequence of different date and invoice number filters that are conditionally applied.
162 163 164 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 162 def period @period end |
#posting_date_from ⇒ String
Transaction Posting Date/time in the Cards Platform - From Date/time. Note: 1) When the value of both PostingDateFrom and PostingDateTo are present in the request then the value of PostingDateFrom must be less than PostingDateTo. 2) If IncludeFees is true then this filter will be ignored Format: yyyyMMdd HH:mm:ss
189 190 191 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 189 def posting_date_from @posting_date_from end |
#posting_date_to ⇒ String
Transaction Posting Date/time in the Cards Platform – To Date/time. Note: 1) If IncludeFees is true then this filter will be ignored. 2) When the value of both PostingDateFrom and PostingDateTo are present in the request then the value of PostingDateFrom must be less than PostingDateTo. Format: yyyyMMdd HH:mm:ss
199 200 201 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 199 def posting_date_to @posting_date_to end |
#product_code ⇒ String
Product Code – Global as per GFN configuration Optional Max Length: 8 Example: 10 TMF Charges 11 Tunnel/Bridges 12 Motorway toll 13 Ferries
103 104 105 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 103 def product_code @product_code end |
#product_id ⇒ Integer
Product Id Example: 21 Unleaded - High octane 22 Unleaded - Medium octane 23 Unleaded - Low octane 24 Unleaded Environmental
92 93 94 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 92 def product_id @product_id end |
#purchased_in_country ⇒ String
ISO Country Code (ex: UK, FR) Note: If IncludeFees is true then this filter will be ignored
108 109 110 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 108 def purchased_in_country @purchased_in_country end |
#sales_item_id ⇒ String
Unique SalesItemId (Either Billed on Unbilled) Optional Note: If IncludeFees is true then this filter will be ignored
205 206 207 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 205 def sales_item_id @sales_item_id end |
#site_code ⇒ String
Site Code as configured in GFN Example: 050001 - CHARNOCK RICHARD NTHBOUND MWSA 0755 050002 - CHARNOCK RICHARD STHBOUND MWSA 0755 050005 - HARTSHEAD MOOR EASTBOUND MWSA 0761. 050006 - HARTSHEAD MOOR WESTBOUND MWSA. Note: If IncludeFees is true then this filter will be ignored
172 173 174 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 172 def site_code @site_code end |
#site_group_id ⇒ Integer
Site Group Id in GFN Optional Example: 202 Note: If IncludeFees is true then this filter will be ignored
179 180 181 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 179 def site_group_id @site_group_id end |
#sort_order ⇒ String
Allowed Sorting Options:
-
TransactionDateAscending
-
TransactionDateDescending
-
GrossAmountDescending
-
GrossAmountAscending
-
DriverNameAscending (If Driver Name is null then VRN value will be
considered)
-
DriverNameDescending (If Driver Name is null then VRN value will be
considered)
-
VRNAscending (If VRN is null then Driver Name value will be
considered)
-
VRNDescending (If VRN is null then Driver Name value will be
considered)
-
NetAmountAscending
-
NetAmountDescensding
Example value to be passed: “1,3”
131 132 133 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 131 def sort_order @sort_order end |
#to_date ⇒ String
Transactions to Date/Time. Optional- Refer introduction section of this operation for the priority and sequence of different date and invoice number filters that are conditionally applied. Note: 1) When the value is blank and FromDate is provided on the input, all transactions took place 210(Configurable) days after the given FromDate is returned. 2) Difference between FromDate and ToDate cannot be more than 210 (Configurable) days. Format: yyyyMMdd
151 152 153 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 151 def to_date @to_date end |
#transaction_id ⇒ String
Unique Transaction Id Optional Note: If IncludeFees is true then this filter will be ignored
211 212 213 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 211 def transaction_id @transaction_id end |
#use_field_id ⇒ TrueClass | FalseClass
True/False Optional Default value – False. When set to True, the property names in the output will be replaced by Field IDs. This will reduce the output payload size significantly for large data sets and help faster transmission of data over networks.
286 287 288 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 286 def use_field_id @use_field_id end |
#valid_invoice_date_only ⇒ TrueClass | FalseClass
True/False Optional Default value: True. When passed as ‘True’ the transactions records with report date not equal to 9999-12-30 will be returned. When passed as ‘False’ the above condition will not be checked.
239 240 241 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 239 def valid_invoice_date_only @valid_invoice_date_only end |
#vehicle_registration_number ⇒ String
Vehicle Registration (of Card record) Optional Minimum of 4 characters should be provided else not considered Transactions of the card having the entered value at any part of the VRN will be returned
74 75 76 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 74 def vehicle_registration_number @vehicle_registration_number end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
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 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 471 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP accounts = Accounts.from_hash(hash['Accounts']) if hash['Accounts'] card_id = hash.key?('CardId') ? hash['CardId'] : SKIP card_pan = hash.key?('CardPAN') ? hash['CardPAN'] : SKIP driver_name = hash.key?('DriverName') ? hash['DriverName'] : SKIP vehicle_registration_number = hash.key?('VehicleRegistrationNumber') ? hash['VehicleRegistrationNumber'] : SKIP invoice_status = hash.key?('InvoiceStatus') ? hash['InvoiceStatus'] : SKIP product_id = hash.key?('ProductId') ? hash['ProductId'] : SKIP product_code = hash.key?('ProductCode') ? hash['ProductCode'] : SKIP purchased_in_country = hash.key?('PurchasedInCountry') ? hash['PurchasedInCountry'] : SKIP card_group_id = hash.key?('CardGroupId') ? hash['CardGroupId'] : SKIP sort_order = hash.key?('SortOrder') ? hash['SortOrder'] : SKIP from_date = hash.key?('FromDate') ? hash['FromDate'] : SKIP to_date = hash.key?('ToDate') ? hash['ToDate'] : SKIP period = hash.key?('Period') ? hash['Period'] : SKIP site_code = hash.key?('SiteCode') ? hash['SiteCode'] : SKIP site_group_id = hash.key?('SiteGroupId') ? hash['SiteGroupId'] : SKIP posting_date_from = hash.key?('PostingDateFrom') ? hash['PostingDateFrom'] : SKIP posting_date_to = hash.key?('PostingDateTo') ? hash['PostingDateTo'] : SKIP sales_item_id = hash.key?('SalesItemId') ? hash['SalesItemId'] : SKIP transaction_id = hash.key?('TransactionId') ? hash['TransactionId'] : SKIP invoice_date = hash.key?('InvoiceDate') ? hash['InvoiceDate'] : SKIP invoice_number = hash.key?('InvoiceNumber') ? hash['InvoiceNumber'] : SKIP valid_invoice_date_only = hash.key?('ValidInvoiceDateOnly') ? hash['ValidInvoiceDateOnly'] : SKIP invoice_from_date = hash.key?('InvoiceFromDate') ? hash['InvoiceFromDate'] : SKIP invoice_to_date = hash.key?('InvoiceToDate') ? hash['InvoiceToDate'] : SKIP fuel_only = hash.key?('FuelOnly') ? hash['FuelOnly'] : SKIP include_fees = hash.key?('IncludeFees') ? hash['IncludeFees'] : SKIP use_field_id = hash.key?('UseFieldId') ? hash['UseFieldId'] : SKIP current_page = hash.key?('CurrentPage') ? hash['CurrentPage'] : SKIP page_size = hash.key?('PageSize') ? hash['PageSize'] : SKIP # Create object from extracted values. PriceTransactionRequest.new(col_co_id, col_co_code, payer_id, payer_number, accounts, card_id, card_pan, driver_name, vehicle_registration_number, invoice_status, product_id, product_code, purchased_in_country, card_group_id, sort_order, from_date, to_date, period, site_code, site_group_id, posting_date_from, posting_date_to, sales_item_id, transaction_id, invoice_date, invoice_number, valid_invoice_date_only, invoice_from_date, invoice_to_date, fuel_only, include_fees, use_field_id, current_page, page_size) end |
.names ⇒ Object
A mapping from model property names to API property names.
299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 299 def self.names @_hash = {} if @_hash.nil? @_hash['col_co_id'] = 'ColCoId' @_hash['col_co_code'] = 'ColCoCode' @_hash['payer_id'] = 'PayerId' @_hash['payer_number'] = 'PayerNumber' @_hash['accounts'] = 'Accounts' @_hash['card_id'] = 'CardId' @_hash['card_pan'] = 'CardPAN' @_hash['driver_name'] = 'DriverName' @_hash['vehicle_registration_number'] = 'VehicleRegistrationNumber' @_hash['invoice_status'] = 'InvoiceStatus' @_hash['product_id'] = 'ProductId' @_hash['product_code'] = 'ProductCode' @_hash['purchased_in_country'] = 'PurchasedInCountry' @_hash['card_group_id'] = 'CardGroupId' @_hash['sort_order'] = 'SortOrder' @_hash['from_date'] = 'FromDate' @_hash['to_date'] = 'ToDate' @_hash['period'] = 'Period' @_hash['site_code'] = 'SiteCode' @_hash['site_group_id'] = 'SiteGroupId' @_hash['posting_date_from'] = 'PostingDateFrom' @_hash['posting_date_to'] = 'PostingDateTo' @_hash['sales_item_id'] = 'SalesItemId' @_hash['transaction_id'] = 'TransactionId' @_hash['invoice_date'] = 'InvoiceDate' @_hash['invoice_number'] = 'InvoiceNumber' @_hash['valid_invoice_date_only'] = 'ValidInvoiceDateOnly' @_hash['invoice_from_date'] = 'InvoiceFromDate' @_hash['invoice_to_date'] = 'InvoiceToDate' @_hash['fuel_only'] = 'FuelOnly' @_hash['include_fees'] = 'IncludeFees' @_hash['use_field_id'] = 'UseFieldId' @_hash['current_page'] = 'CurrentPage' @_hash['page_size'] = 'PageSize' @_hash end |
.nullables ⇒ Object
An array for nullable fields
379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 379 def self.nullables %w[ col_co_id col_co_code payer_id payer_number card_id card_pan driver_name vehicle_registration_number invoice_status product_id product_code purchased_in_country card_group_id sort_order from_date to_date period site_code site_group_id posting_date_from posting_date_to sales_item_id transaction_id invoice_date invoice_number valid_invoice_date_only invoice_from_date invoice_to_date fuel_only include_fees use_field_id current_page ] end |
.optionals ⇒ Object
An array for optional fields
339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 339 def self.optionals %w[ col_co_id col_co_code payer_id payer_number accounts card_id card_pan driver_name vehicle_registration_number invoice_status product_id product_code purchased_in_country card_group_id sort_order from_date to_date period site_code site_group_id posting_date_from posting_date_to sales_item_id transaction_id invoice_date invoice_number valid_invoice_date_only invoice_from_date invoice_to_date fuel_only include_fees use_field_id current_page page_size ] end |
Instance Method Details
#inspect ⇒ Object
Provides a debugging-friendly string with detailed object information.
574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 574 def inspect class_name = self.class.name.split('::').last "<#{class_name} col_co_id: #{@col_co_id.inspect}, col_co_code: #{@col_co_code.inspect},"\ " payer_id: #{@payer_id.inspect}, payer_number: #{@payer_number.inspect}, accounts:"\ " #{@accounts.inspect}, card_id: #{@card_id.inspect}, card_pan: #{@card_pan.inspect},"\ " driver_name: #{@driver_name.inspect}, vehicle_registration_number:"\ " #{@vehicle_registration_number.inspect}, invoice_status: #{@invoice_status.inspect},"\ " product_id: #{@product_id.inspect}, product_code: #{@product_code.inspect},"\ " purchased_in_country: #{@purchased_in_country.inspect}, card_group_id:"\ " #{@card_group_id.inspect}, sort_order: #{@sort_order.inspect}, from_date:"\ " #{@from_date.inspect}, to_date: #{@to_date.inspect}, period: #{@period.inspect},"\ " site_code: #{@site_code.inspect}, site_group_id: #{@site_group_id.inspect},"\ " posting_date_from: #{@posting_date_from.inspect}, posting_date_to:"\ " #{@posting_date_to.inspect}, sales_item_id: #{@sales_item_id.inspect}, transaction_id:"\ " #{@transaction_id.inspect}, invoice_date: #{@invoice_date.inspect}, invoice_number:"\ " #{@invoice_number.inspect}, valid_invoice_date_only: #{@valid_invoice_date_only.inspect},"\ " invoice_from_date: #{@invoice_from_date.inspect}, invoice_to_date:"\ " #{@invoice_to_date.inspect}, fuel_only: #{@fuel_only.inspect}, include_fees:"\ " #{@include_fees.inspect}, use_field_id: #{@use_field_id.inspect}, current_page:"\ " #{@current_page.inspect}, page_size: #{@page_size.inspect}>" end |
#to_s ⇒ Object
Provides a human-readable string representation of the object.
555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 555 def to_s class_name = self.class.name.split('::').last "<#{class_name} col_co_id: #{@col_co_id}, col_co_code: #{@col_co_code}, payer_id:"\ " #{@payer_id}, payer_number: #{@payer_number}, accounts: #{@accounts}, card_id:"\ " #{@card_id}, card_pan: #{@card_pan}, driver_name: #{@driver_name},"\ " vehicle_registration_number: #{@vehicle_registration_number}, invoice_status:"\ " #{@invoice_status}, product_id: #{@product_id}, product_code: #{@product_code},"\ " purchased_in_country: #{@purchased_in_country}, card_group_id: #{@card_group_id},"\ " sort_order: #{@sort_order}, from_date: #{@from_date}, to_date: #{@to_date}, period:"\ " #{@period}, site_code: #{@site_code}, site_group_id: #{@site_group_id}, posting_date_from:"\ " #{@posting_date_from}, posting_date_to: #{@posting_date_to}, sales_item_id:"\ " #{@sales_item_id}, transaction_id: #{@transaction_id}, invoice_date: #{@invoice_date},"\ " invoice_number: #{@invoice_number}, valid_invoice_date_only: #{@valid_invoice_date_only},"\ " invoice_from_date: #{@invoice_from_date}, invoice_to_date: #{@invoice_to_date}, fuel_only:"\ " #{@fuel_only}, include_fees: #{@include_fees}, use_field_id: #{@use_field_id},"\ " current_page: #{@current_page}, page_size: #{@page_size}>" end |