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
Methods inherited from BaseModel
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.
415 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 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 415 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
289 290 291 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 289 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
136 137 138 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 136 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.
267 268 269 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 267 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
275 276 277 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 275 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
220 221 222 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 220 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
249 250 251 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 249 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.
229 230 231 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 229 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
259 260 261 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 259 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
295 296 297 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 295 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: 1. Last 7 Days 2. Last 30 Days 3. 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.
161 162 163 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 161 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
188 189 190 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 188 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
198 199 200 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 198 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
204 205 206 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 204 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
171 172 173 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 171 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
178 179 180 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 178 def site_group_id @site_group_id end |
#sort_order ⇒ String
Allowed Sorting Options: 1. TransactionDateAscending 2. TransactionDateDescending 3. GrossAmountDescending 4. GrossAmountAscending 5. DriverNameAscending (If Driver Name is null then VRN value will be considered) 6. DriverNameDescending (If Driver Name is null then VRN value will be considered) 7. VRNAscending (If VRN is null then Driver Name value will be considered) 8. VRNDescending (If VRN is null then Driver Name value will be considered) 9. NetAmountAscending 10. NetAmountDescensding Example value to be passed: “1,3”
130 131 132 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 130 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
150 151 152 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 150 def to_date @to_date end |
#transaction_id ⇒ String
Unique Transaction Id Optional Note: If IncludeFees is true then this filter will be ignored
210 211 212 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 210 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.
285 286 287 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 285 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.
238 239 240 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 238 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.
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 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 489 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.
298 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 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 298 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
378 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 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 378 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
338 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 |
# File 'lib/shell_data_reporting_ap_is/models/price_transaction_request.rb', line 338 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 |