data-and-reporting-sdk 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -16
  3. data/lib/shell_data_reporting_ap_is/controllers/base_controller.rb +9 -9
  4. data/lib/shell_data_reporting_ap_is/controllers/customer_controller.rb +210 -210
  5. data/lib/shell_data_reporting_ap_is/controllers/invoice_controller.rb +221 -221
  6. data/lib/shell_data_reporting_ap_is/controllers/o_auth_authorization_controller.rb +9 -9
  7. data/lib/shell_data_reporting_ap_is/controllers/transaction_controller.rb +354 -354
  8. data/lib/shell_data_reporting_ap_is/exceptions/default_error_exception.rb +15 -15
  9. data/lib/shell_data_reporting_ap_is/exceptions/error_object_exception.rb +15 -15
  10. data/lib/shell_data_reporting_ap_is/exceptions/error_user_access_error1_exception.rb +15 -15
  11. data/lib/shell_data_reporting_ap_is/exceptions/o_auth_provider_exception.rb +15 -15
  12. data/lib/shell_data_reporting_ap_is/http/auth/bearer_token.rb +54 -10
  13. data/lib/shell_data_reporting_ap_is/models/account_access.rb +3 -8
  14. data/lib/shell_data_reporting_ap_is/models/account_request.rb +17 -26
  15. data/lib/shell_data_reporting_ap_is/models/account_response.rb +2 -6
  16. data/lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb +29 -53
  17. data/lib/shell_data_reporting_ap_is/models/accounts.rb +1 -2
  18. data/lib/shell_data_reporting_ap_is/models/address.rb +4 -11
  19. data/lib/shell_data_reporting_ap_is/models/audit_request.rb +17 -25
  20. data/lib/shell_data_reporting_ap_is/models/audit_response.rb +2 -6
  21. data/lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb +50 -63
  22. data/lib/shell_data_reporting_ap_is/models/bank_account.rb +5 -13
  23. data/lib/shell_data_reporting_ap_is/models/base_model.rb +76 -28
  24. data/lib/shell_data_reporting_ap_is/models/bonus_configuration.rb +9 -18
  25. data/lib/shell_data_reporting_ap_is/models/bonus_history.rb +14 -29
  26. data/lib/shell_data_reporting_ap_is/models/card_day_time_restrictions.rb +3 -9
  27. data/lib/shell_data_reporting_ap_is/models/card_exceptions.rb +8 -19
  28. data/lib/shell_data_reporting_ap_is/models/card_group_request.rb +6 -12
  29. data/lib/shell_data_reporting_ap_is/models/card_group_response.rb +2 -6
  30. data/lib/shell_data_reporting_ap_is/models/card_group_response_card_groups_items.rb +10 -20
  31. data/lib/shell_data_reporting_ap_is/models/card_type_request.rb +3 -7
  32. data/lib/shell_data_reporting_ap_is/models/card_type_response.rb +1 -3
  33. data/lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb +15 -31
  34. data/lib/shell_data_reporting_ap_is/models/card_type_response_error.rb +1 -2
  35. data/lib/shell_data_reporting_ap_is/models/card_usage_restrictions.rb +5 -10
  36. data/lib/shell_data_reporting_ap_is/models/card_usage_summary_request.rb +3 -8
  37. data/lib/shell_data_reporting_ap_is/models/card_usage_summary_response.rb +1 -3
  38. data/lib/shell_data_reporting_ap_is/models/col_co_access.rb +2 -4
  39. data/lib/shell_data_reporting_ap_is/models/current_volume.rb +2 -5
  40. data/lib/shell_data_reporting_ap_is/models/customer_contract.rb +1 -2
  41. data/lib/shell_data_reporting_ap_is/models/customer_detail_request.rb +2 -5
  42. data/lib/shell_data_reporting_ap_is/models/customer_detail_response.rb +31 -45
  43. data/lib/shell_data_reporting_ap_is/models/customer_price_list_request.rb +5 -12
  44. data/lib/shell_data_reporting_ap_is/models/customer_price_list_response.rb +1 -3
  45. data/lib/shell_data_reporting_ap_is/models/default_error_fault.rb +1 -2
  46. data/lib/shell_data_reporting_ap_is/models/delivery_addresses.rb +7 -18
  47. data/lib/shell_data_reporting_ap_is/models/eid_access.rb +1 -2
  48. data/lib/shell_data_reporting_ap_is/models/eid_document.rb +11 -16
  49. data/lib/shell_data_reporting_ap_is/models/eid_document_response.rb +3 -8
  50. data/lib/shell_data_reporting_ap_is/models/eid_download_req.rb +2 -4
  51. data/lib/shell_data_reporting_ap_is/models/eid_search_req.rb +10 -15
  52. data/lib/shell_data_reporting_ap_is/models/eid_search_request.rb +2 -4
  53. data/lib/shell_data_reporting_ap_is/models/error_details.rb +1 -3
  54. data/lib/shell_data_reporting_ap_is/models/error_status.rb +11 -2
  55. data/lib/shell_data_reporting_ap_is/models/error_user_access_error.rb +1 -2
  56. data/lib/shell_data_reporting_ap_is/models/exception_product.rb +1 -2
  57. data/lib/shell_data_reporting_ap_is/models/exception_site_location.rb +1 -2
  58. data/lib/shell_data_reporting_ap_is/models/fee_item.rb +35 -71
  59. data/lib/shell_data_reporting_ap_is/models/fee_item_summary_all_of0.rb +5 -11
  60. data/lib/shell_data_reporting_ap_is/models/fee_rule_location.rb +4 -10
  61. data/lib/shell_data_reporting_ap_is/models/fee_rule_product.rb +2 -5
  62. data/lib/shell_data_reporting_ap_is/models/fee_rule_tier.rb +1 -3
  63. data/lib/shell_data_reporting_ap_is/models/fee_summary_response.rb +1 -3
  64. data/lib/shell_data_reporting_ap_is/models/fees_fee_rule_tiers.rb +3 -7
  65. data/lib/shell_data_reporting_ap_is/models/finance_currency.rb +1 -2
  66. data/lib/shell_data_reporting_ap_is/models/fleetmanagement_v1_user_loggedinuser_request.rb +104 -0
  67. data/lib/shell_data_reporting_ap_is/models/fuel_consumption_card.rb +1 -3
  68. data/lib/shell_data_reporting_ap_is/models/fuel_consumption_data.rb +9 -20
  69. data/lib/shell_data_reporting_ap_is/models/fuel_consumption_request.rb +7 -14
  70. data/lib/shell_data_reporting_ap_is/models/fuel_consumption_response.rb +1 -3
  71. data/lib/shell_data_reporting_ap_is/models/invoice_dates_data.rb +1 -2
  72. data/lib/shell_data_reporting_ap_is/models/invoice_dates_request_filters.rb +2 -6
  73. data/lib/shell_data_reporting_ap_is/models/invoice_dates_response_data.rb +1 -3
  74. data/lib/shell_data_reporting_ap_is/models/invoice_distribution_method.rb +2 -4
  75. data/lib/shell_data_reporting_ap_is/models/invoice_download_req.rb +2 -5
  76. data/lib/shell_data_reporting_ap_is/models/invoice_search_additional_document.rb +2 -4
  77. data/lib/shell_data_reporting_ap_is/models/invoice_search_details.rb +86 -107
  78. data/lib/shell_data_reporting_ap_is/models/invoice_search_request.rb +5 -7
  79. data/lib/shell_data_reporting_ap_is/models/invoice_search_request_filters.rb +21 -31
  80. data/lib/shell_data_reporting_ap_is/models/invoice_search_response.rb +2 -7
  81. data/lib/shell_data_reporting_ap_is/models/invoice_summary_request_filters.rb +21 -31
  82. data/lib/shell_data_reporting_ap_is/models/invoice_summary_response.rb +1 -3
  83. data/lib/shell_data_reporting_ap_is/models/invoices_summaries.rb +5 -10
  84. data/lib/shell_data_reporting_ap_is/models/last_statement_of_account.rb +39 -48
  85. data/lib/shell_data_reporting_ap_is/models/logged_in_user_request.rb +2 -4
  86. data/lib/shell_data_reporting_ap_is/models/logged_in_user_response.rb +12 -25
  87. data/lib/shell_data_reporting_ap_is/models/monthly_invoice_trend.rb +2 -5
  88. data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_request.rb +21 -32
  89. data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_request_accounts_items.rb +1 -3
  90. data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_response.rb +2 -6
  91. data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_response_transactions_items.rb +70 -122
  92. data/lib/shell_data_reporting_ap_is/models/o_auth_token.rb +2 -6
  93. data/lib/shell_data_reporting_ap_is/models/past_statement_of_accounts.rb +11 -22
  94. data/lib/shell_data_reporting_ap_is/models/payer_access.rb +3 -8
  95. data/lib/shell_data_reporting_ap_is/models/payer_details.rb +49 -92
  96. data/lib/shell_data_reporting_ap_is/models/payer_request.rb +9 -12
  97. data/lib/shell_data_reporting_ap_is/models/payer_response.rb +2 -6
  98. data/lib/shell_data_reporting_ap_is/models/payers.rb +2 -5
  99. data/lib/shell_data_reporting_ap_is/models/payments_since_last_soa.rb +8 -17
  100. data/lib/shell_data_reporting_ap_is/models/pin_advice_types.rb +5 -6
  101. data/lib/shell_data_reporting_ap_is/models/price_list.rb +25 -45
  102. data/lib/shell_data_reporting_ap_is/models/price_trans_summary_request.rb +28 -44
  103. data/lib/shell_data_reporting_ap_is/models/price_transaction_request.rb +41 -59
  104. data/lib/shell_data_reporting_ap_is/models/priced_request_data.rb +20 -46
  105. data/lib/shell_data_reporting_ap_is/models/priced_response_data.rb +91 -201
  106. data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_response.rb +1 -3
  107. data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_response_transactions_summary_items.rb +22 -28
  108. data/lib/shell_data_reporting_ap_is/models/priced_transaction_items_location_items.rb +11 -2
  109. data/lib/shell_data_reporting_ap_is/models/priced_transaction_request_v2.rb +1 -3
  110. data/lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb +91 -141
  111. data/lib/shell_data_reporting_ap_is/models/priced_transaction_response_v2.rb +2 -6
  112. data/lib/shell_data_reporting_ap_is/models/pricing_current_volume.rb +3 -6
  113. data/lib/shell_data_reporting_ap_is/models/pricing_history.rb +2 -5
  114. data/lib/shell_data_reporting_ap_is/models/purchase_categories.rb +1 -4
  115. data/lib/shell_data_reporting_ap_is/models/recent_transaction_req.rb +6 -14
  116. data/lib/shell_data_reporting_ap_is/models/recent_transaction_request.rb +1 -3
  117. data/lib/shell_data_reporting_ap_is/models/recent_transactions.rb +29 -60
  118. data/lib/shell_data_reporting_ap_is/models/recent_transactions_response.rb +2 -6
  119. data/lib/shell_data_reporting_ap_is/models/role.rb +3 -6
  120. data/lib/shell_data_reporting_ap_is/models/search_doc_req.rb +19 -27
  121. data/lib/shell_data_reporting_ap_is/models/search_documents_invoice.rb +9 -16
  122. data/lib/shell_data_reporting_ap_is/models/search_documents_request.rb +1 -3
  123. data/lib/shell_data_reporting_ap_is/models/search_documents_response.rb +3 -7
  124. data/lib/shell_data_reporting_ap_is/models/search_soa_req.rb +4 -11
  125. data/lib/shell_data_reporting_ap_is/models/search_statement_of_account.rb +11 -18
  126. data/lib/shell_data_reporting_ap_is/models/search_statement_of_account_request.rb +1 -3
  127. data/lib/shell_data_reporting_ap_is/models/search_statement_of_account_response.rb +2 -7
  128. data/lib/shell_data_reporting_ap_is/models/site_location.rb +11 -2
  129. data/lib/shell_data_reporting_ap_is/models/statement_of_account_request_filters.rb +2 -5
  130. data/lib/shell_data_reporting_ap_is/models/statement_of_account_resp.rb +1 -2
  131. data/lib/shell_data_reporting_ap_is/models/statement_of_account_response.rb +1 -3
  132. data/lib/shell_data_reporting_ap_is/models/tier.rb +8 -12
  133. data/lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb +47 -92
  134. data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_request.rb +12 -21
  135. data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_response.rb +2 -4
  136. data/lib/shell_data_reporting_ap_is/models/transaction_fees_request.rb +21 -33
  137. data/lib/shell_data_reporting_ap_is/models/transaction_fees_response.rb +2 -6
  138. data/lib/shell_data_reporting_ap_is/models/update_odometer.rb +1 -2
  139. data/lib/shell_data_reporting_ap_is/models/update_odometer_reference.rb +1 -2
  140. data/lib/shell_data_reporting_ap_is/models/update_odometer_request.rb +3 -8
  141. data/lib/shell_data_reporting_ap_is/models/update_odometer_response.rb +2 -4
  142. data/lib/shell_data_reporting_ap_is/models/usage_summary.rb +6 -14
  143. data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_request.rb +2 -5
  144. data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_response.rb +2 -4
  145. data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_request.rb +2 -5
  146. data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_response.rb +2 -5
  147. data/lib/shell_data_reporting_ap_is/utilities/file_wrapper.rb +9 -9
  148. data/lib/shell_data_reporting_ap_is/utilities/union_type_lookup.rb +35 -0
  149. data/lib/shell_data_reporting_ap_is.rb +3 -0
  150. data/test/controllers/controller_test_base.rb +0 -5
  151. data/test/controllers/test_invoice_controller.rb +1 -1
  152. data/test/controllers/test_transaction_controller.rb +83 -75
  153. metadata +12 -16
@@ -143,10 +143,10 @@ module ShellDataReportingApIs
143
143
  # Billing/Invoice frequency. The frequency in which the transactions will be
144
144
  # considered for invoicing in a bulling run
145
145
  # E.g.:
146
- # 1 Daily (all days)
147
- # 2 Daily (only working days)
148
- # 3 Weekly - Monday
149
- # 4 Weekly – Tuesday
146
+ # 1 Daily (all days)
147
+ # 2 Daily (only working days)
148
+ # 3 Weekly - Monday
149
+ # 4 Weekly – Tuesday
150
150
  # Etc.
151
151
  # @return [String]
152
152
  attr_accessor :billing_frequency_type
@@ -157,10 +157,10 @@ module ShellDataReportingApIs
157
157
  attr_accessor :billing_run_frequency_type_id
158
158
 
159
159
  # Frequency at which the billing process is triggered.E.g.:
160
- # 1 Daily (all days)
161
- # 2 Daily (only working days)
162
- # 3 Weekly - Monday
163
- # 4 Weekly – Tuesday
160
+ # 1 Daily (all days)
161
+ # 2 Daily (only working days)
162
+ # 3 Weekly - Monday
163
+ # 4 Weekly – Tuesday
164
164
  # Etc.
165
165
  # @return [String]
166
166
  attr_accessor :billing_run_frequnecy
@@ -480,13 +480,13 @@ module ShellDataReportingApIs
480
480
  # @return [String]
481
481
  attr_accessor :tolls_customer_id
482
482
 
483
- # String Colco country type id in e-TM system
483
+ # String Colco country type id in e-TM system
484
484
  # This field will have value only when ReturnTollsCustomerId is set to true
485
485
  # in the request else set to null or empty.
486
486
  # @return [String]
487
487
  attr_accessor :tolls_colco_country_type_id
488
488
 
489
- # String Colco country type id in e-TM system
489
+ # String Colco country type id in e-TM system
490
490
  # This field will have value only when ReturnTollsCustomerId is set to true
491
491
  # in the request else set to null or empty.
492
492
  # @return [Array[CustomerContract]]
@@ -816,111 +816,68 @@ module ShellDataReportingApIs
816
816
  ]
817
817
  end
818
818
 
819
- def initialize(col_co_id = SKIP,
820
- col_co_code = SKIP,
821
- country_code = SKIP,
822
- country = SKIP,
823
- payer_id = SKIP,
824
- payer_number = SKIP,
825
- payer_full_name = SKIP,
826
- payer_short_name = SKIP,
827
- payer_group_id = SKIP,
828
- amount_due = SKIP,
829
- amount_overdue = SKIP,
830
- amount_not_overdue = SKIP,
831
- outstanding_balance = SKIP,
832
- unallocated_payment = SKIP,
833
- soa_currency_code = SKIP,
834
- soa_currency_symbol = SKIP,
819
+ def initialize(col_co_id = SKIP, col_co_code = SKIP, country_code = SKIP,
820
+ country = SKIP, payer_id = SKIP, payer_number = SKIP,
821
+ payer_full_name = SKIP, payer_short_name = SKIP,
822
+ payer_group_id = SKIP, amount_due = SKIP,
823
+ amount_overdue = SKIP, amount_not_overdue = SKIP,
824
+ outstanding_balance = SKIP, unallocated_payment = SKIP,
825
+ soa_currency_code = SKIP, soa_currency_symbol = SKIP,
835
826
  soa_credit_limit_currency_code = SKIP,
836
827
  soa_credit_limit_currency_symbol = SKIP,
837
828
  last_payment_currency_code = SKIP,
838
829
  last_payment_currency_symbol = SKIP,
839
- last_payment_amount = SKIP,
840
- last_payment_date = SKIP,
841
- soa_last_payment_amount = SKIP,
842
- soa_last_payment_date = SKIP,
843
- currency_code = SKIP,
844
- currency_symbol = SKIP,
845
- col_co_country_code = SKIP,
846
- local_currency_code = SKIP,
830
+ last_payment_amount = SKIP, last_payment_date = SKIP,
831
+ soa_last_payment_amount = SKIP, soa_last_payment_date = SKIP,
832
+ currency_code = SKIP, currency_symbol = SKIP,
833
+ col_co_country_code = SKIP, local_currency_code = SKIP,
847
834
  local_currency_symbol = SKIP,
848
835
  local_currency_exchange_rate = SKIP,
849
836
  local_currency_exchange_rate_so_a = SKIP,
850
837
  billing_frequency_type_id = SKIP,
851
838
  billing_frequency_type = SKIP,
852
839
  billing_run_frequency_type_id = SKIP,
853
- billing_run_frequnecy = SKIP,
854
- day1_run = SKIP,
855
- day2_run = SKIP,
856
- day3_run = SKIP,
857
- day4_run = SKIP,
858
- invoice_distribution_methods = SKIP,
859
- output_type = SKIP,
860
- invoice_account_id = SKIP,
861
- invoice_account_number = SKIP,
862
- invoice_account_short_name = SKIP,
863
- best_of_indicator = false,
864
- is_international = false,
865
- total_accounts = SKIP,
866
- total_active_accounts = SKIP,
867
- total_cards = SKIP,
868
- total_active_cards = SKIP,
869
- total_blocked_cards = SKIP,
870
- total_cancelled_cards = SKIP,
871
- total_expired_cards = SKIP,
840
+ billing_run_frequnecy = SKIP, day1_run = SKIP,
841
+ day2_run = SKIP, day3_run = SKIP, day4_run = SKIP,
842
+ invoice_distribution_methods = SKIP, output_type = SKIP,
843
+ invoice_account_id = SKIP, invoice_account_number = SKIP,
844
+ invoice_account_short_name = SKIP, best_of_indicator = false,
845
+ is_international = false, total_accounts = SKIP,
846
+ total_active_accounts = SKIP, total_cards = SKIP,
847
+ total_active_cards = SKIP, total_blocked_cards = SKIP,
848
+ total_cancelled_cards = SKIP, total_expired_cards = SKIP,
872
849
  total_renewal_pending_cards = SKIP,
873
850
  total_replaced_cards = SKIP,
874
851
  total_temporary_block_cards_by_customer = SKIP,
875
852
  total_temporary_block_cards_by_shell = SKIP,
876
- total_new_cards = SKIP,
877
- total_fraud_cards = SKIP,
853
+ total_new_cards = SKIP, total_fraud_cards = SKIP,
878
854
  total_blocked_accounts = SKIP,
879
- total_cancelled_accounts = SKIP,
880
- payer_trading_name = SKIP,
881
- status = SKIP,
882
- billing_language = SKIP,
883
- legal_entity = SKIP,
884
- date_established = SKIP,
885
- customer_classification = SKIP,
886
- industry_class = SKIP,
887
- marketing_segmentation = SKIP,
888
- line_of_business = SKIP,
889
- print_credit_limit = false,
890
- card_group_type = SKIP,
891
- renew_cards = false,
892
- allow_select_pin = false,
893
- use_fleet_pin = SKIP,
894
- vat_reg_number = SKIP,
895
- vat_reg_number2 = SKIP,
896
- registration_number = SKIP,
897
- registration_number2 = SKIP,
898
- sales_ledger_balance = SKIP,
899
- exposure = SKIP,
900
- outstanding_debt = SKIP,
901
- available_credit = SKIP,
902
- band = SKIP,
903
- global_customer_reference_id = SKIP,
855
+ total_cancelled_accounts = SKIP, payer_trading_name = SKIP,
856
+ status = SKIP, billing_language = SKIP, legal_entity = SKIP,
857
+ date_established = SKIP, customer_classification = SKIP,
858
+ industry_class = SKIP, marketing_segmentation = SKIP,
859
+ line_of_business = SKIP, print_credit_limit = false,
860
+ card_group_type = SKIP, renew_cards = false,
861
+ allow_select_pin = false, use_fleet_pin = SKIP,
862
+ vat_reg_number = SKIP, vat_reg_number2 = SKIP,
863
+ registration_number = SKIP, registration_number2 = SKIP,
864
+ sales_ledger_balance = SKIP, exposure = SKIP,
865
+ outstanding_debt = SKIP, available_credit = SKIP,
866
+ band = SKIP, global_customer_reference_id = SKIP,
904
867
  credit_limit = SKIP,
905
868
  credit_limit_in_customer_currency = SKIP,
906
- billing_currency_code = SKIP,
907
- billing_currency_symbol = SKIP,
908
- payment_method = SKIP,
909
- payment_terms = SKIP,
869
+ billing_currency_code = SKIP, billing_currency_symbol = SKIP,
870
+ payment_method = SKIP, payment_terms = SKIP,
910
871
  temporary_credit_limit_increase = SKIP,
911
872
  temporary_credit_limit_increase_in_customer_currency = SKIP,
912
873
  temporary_credit_limit_expiry_date = SKIP,
913
- payer_bank_account = SKIP,
914
- card_delivery_address = SKIP,
915
- correspondance_address = SKIP,
916
- billing_address = SKIP,
874
+ payer_bank_account = SKIP, card_delivery_address = SKIP,
875
+ correspondance_address = SKIP, billing_address = SKIP,
917
876
  has_active_vol_based_pricing = SKIP,
918
877
  has_active_vol_based_bonus = SKIP,
919
878
  has_active_vol_based_association_bonus = SKIP,
920
- finance_currency = SKIP,
921
- tolls_customer_id = SKIP,
922
- tolls_colco_country_type_id = SKIP,
923
- contracts = SKIP)
879
+ finance_currency = SKIP, tolls_customer_id = SKIP,
880
+ tolls_colco_country_type_id = SKIP, contracts = SKIP)
924
881
  @col_co_id = col_co_id unless col_co_id == SKIP
925
882
  @col_co_code = col_co_code unless col_co_code == SKIP
926
883
  @country_code = country_code unless country_code == SKIP
@@ -12,10 +12,10 @@ module ShellDataReportingApIs
12
12
  # List of Payer entity.
13
13
  # Optional.
14
14
  # Note:
15
- # • Max number of payers allowed in the input is 10, if it exceeds in the
15
+ # • Max number of payers allowed in the input is 10, if it exceeds in the
16
16
  # input it will throw an error.
17
- # • This value is configurable. Initial configuration will be 1000 and will
18
- # change to 10 once SFH changes are integrated.
17
+ # • This value is configurable. Initial configuration will be 1000 and
18
+ # will change to 10 once SFH changes are integrated.
19
19
  # @return [Array[Payers]]
20
20
  attr_accessor :payers
21
21
 
@@ -41,9 +41,9 @@ module ShellDataReportingApIs
41
41
  # Default value 50
42
42
  # Return 250 rows only in the response if -1 is supplied as page size.
43
43
  # Note:
44
- # • Max page size is 250, if the user provided value is more than 250 then
45
- # it will throw error.
46
- # • This value is configurable.
44
+ # • Max page size is 250, if the user provided value is more than 250
45
+ # then it will throw error.
46
+ # • This value is configurable.
47
47
  # @return [Integer]
48
48
  attr_accessor :page_size
49
49
 
@@ -76,12 +76,9 @@ module ShellDataReportingApIs
76
76
  []
77
77
  end
78
78
 
79
- def initialize(payers = SKIP,
80
- return_basic_details_only = false,
81
- include_addresses = false,
82
- include_bonus_parameters = false,
83
- current_page = SKIP,
84
- page_size = SKIP)
79
+ def initialize(payers = SKIP, return_basic_details_only = false,
80
+ include_addresses = false, include_bonus_parameters = false,
81
+ current_page = SKIP, page_size = SKIP)
85
82
  @payers = payers unless payers == SKIP
86
83
  unless return_basic_details_only == SKIP
87
84
  @return_basic_details_only =
@@ -68,12 +68,8 @@ module ShellDataReportingApIs
68
68
  ]
69
69
  end
70
70
 
71
- def initialize(request_id = SKIP,
72
- payers = SKIP,
73
- current_page = SKIP,
74
- row_count = SKIP,
75
- total_pages = SKIP,
76
- error = SKIP)
71
+ def initialize(request_id = SKIP, payers = SKIP, current_page = SKIP,
72
+ row_count = SKIP, total_pages = SKIP, error = SKIP)
77
73
  @request_id = request_id unless request_id == SKIP
78
74
  @payers = payers unless payers == SKIP
79
75
  @current_page = current_page unless current_page == SKIP
@@ -71,11 +71,8 @@ module ShellDataReportingApIs
71
71
  ]
72
72
  end
73
73
 
74
- def initialize(col_co_id = SKIP,
75
- col_co_code = SKIP,
76
- payer_id = SKIP,
77
- payer_number = SKIP,
78
- payer_name = SKIP,
74
+ def initialize(col_co_id = SKIP, col_co_code = SKIP, payer_id = SKIP,
75
+ payer_number = SKIP, payer_name = SKIP,
79
76
  payer_group_id = SKIP)
80
77
  @col_co_id = col_co_id unless col_co_id == SKIP
81
78
  @col_co_code = col_co_code unless col_co_code == SKIP
@@ -194,26 +194,17 @@ module ShellDataReportingApIs
194
194
  ]
195
195
  end
196
196
 
197
- def initialize(account_id = SKIP,
198
- account_number = SKIP,
199
- account_short_name = SKIP,
200
- summary_document_id = SKIP,
201
- summary_document_number = SKIP,
202
- summary_document_date = SKIP,
197
+ def initialize(account_id = SKIP, account_number = SKIP,
198
+ account_short_name = SKIP, summary_document_id = SKIP,
199
+ summary_document_number = SKIP, summary_document_date = SKIP,
203
200
  summary_document_payment_due_date = SKIP,
204
201
  summary_document_total_value = SKIP,
205
202
  summary_document_total_vat = SKIP,
206
- summary_document_dd_amount = SKIP,
207
- payment_date = SKIP,
208
- payment_reference = SKIP,
209
- payment_currency_code = SKIP,
210
- payment_currency_symbol = SKIP,
211
- amount_paid = SKIP,
212
- balance = SKIP,
213
- true_payment = SKIP,
214
- prepaid_balance = SKIP,
215
- local_currency_code = SKIP,
216
- local_currency_symbol = SKIP,
203
+ summary_document_dd_amount = SKIP, payment_date = SKIP,
204
+ payment_reference = SKIP, payment_currency_code = SKIP,
205
+ payment_currency_symbol = SKIP, amount_paid = SKIP,
206
+ balance = SKIP, true_payment = SKIP, prepaid_balance = SKIP,
207
+ local_currency_code = SKIP, local_currency_symbol = SKIP,
217
208
  local_currency_exchange_rate = SKIP)
218
209
  @account_id = account_id unless account_id == SKIP
219
210
  @account_number = account_number unless account_number == SKIP
@@ -11,10 +11,10 @@ module ShellDataReportingApIs
11
11
 
12
12
  # Id of of PIN advice type.
13
13
  # Possible Values:
14
- # 1. Paper
15
- # 2. Email
16
- # 3. SMS
17
- # 4. None
14
+ # 1. Paper
15
+ # 2. Email
16
+ # 3. SMS
17
+ # 4. None
18
18
  # @return [Integer]
19
19
  attr_accessor :pin_advice_type_id
20
20
 
@@ -51,8 +51,7 @@ module ShellDataReportingApIs
51
51
  ]
52
52
  end
53
53
 
54
- def initialize(pin_advice_type_id = SKIP,
55
- is_card_order_option = SKIP,
54
+ def initialize(pin_advice_type_id = SKIP, is_card_order_option = SKIP,
56
55
  is_pin_reminder_option = SKIP)
57
56
  @pin_advice_type_id = pin_advice_type_id unless pin_advice_type_id == SKIP
58
57
  @is_card_order_option = is_card_order_option unless is_card_order_option == SKIP
@@ -92,12 +92,12 @@ module ShellDataReportingApIs
92
92
 
93
93
  # Price Type
94
94
  # Possible Values are:
95
- # • Country– Price rule defined at country whereas Price Rule DelcoId same
96
- # as ColcoId.
97
- # • TPNDelcoPrice – Price rule defined in the TPN whereas Price Rule DelcoId
98
- # is different from ColcoId.
99
- # • NetworkPrice – Price rule defined at Fuel Network level.
100
- # • Other – Price rule defined at either Site or SiteGroup level.
95
+ # • Country– Price rule defined at country whereas Price Rule DelcoId
96
+ # same as ColcoId.
97
+ # • TPNDelcoPrice – Price rule defined in the TPN whereas Price Rule
98
+ # DelcoId is different from ColcoId.
99
+ # • NetworkPrice – Price rule defined at Fuel Network level.
100
+ # • Other – Price rule defined at either Site or SiteGroup level.
101
101
  # @return [String]
102
102
  attr_accessor :price_type
103
103
 
@@ -136,9 +136,9 @@ module ShellDataReportingApIs
136
136
 
137
137
  # Company Name of the price rule DelCo.
138
138
  # E.g.:
139
- # • Pilipinas Shell Petroleum Corp
140
- # • Shell U.K. Oil Products Limited
141
- # • G & V SERVICE STATIONS NV
139
+ # • Pilipinas Shell Petroleum Corp
140
+ # • Shell U.K. Oil Products Limited
141
+ # • G & V SERVICE STATIONS NV
142
142
  # @return [String]
143
143
  attr_accessor :price_rule_delco_name
144
144
 
@@ -301,42 +301,22 @@ module ShellDataReportingApIs
301
301
  ]
302
302
  end
303
303
 
304
- def initialize(date = SKIP,
305
- day = SKIP,
306
- type = SKIP,
307
- price_list_id = SKIP,
308
- price_list_description = SKIP,
309
- price_rule_id = SKIP,
310
- price_rule_name = SKIP,
311
- del_co_id = SKIP,
312
- country_code = SKIP,
313
- country = SKIP,
314
- product_group_id = SKIP,
315
- product_group_name = SKIP,
316
- product_code = SKIP,
317
- product_id = SKIP,
318
- product_name = SKIP,
319
- price_per_unit = SKIP,
320
- currency_code = SKIP,
321
- currency_symbol = SKIP,
322
- price_type = SKIP,
323
- site_group_id = SKIP,
324
- site_group_name = SKIP,
325
- site_code = SKIP,
326
- site_id = SKIP,
327
- site_name = SKIP,
328
- fuel_network_id = SKIP,
329
- network_name = SKIP,
330
- price_rule_delco_id = SKIP,
331
- price_rule_delco_name = SKIP,
332
- price_rule_country = SKIP,
333
- price_rule_country_code = SKIP,
334
- price_rule_basis_id = SKIP,
335
- discount_value = SKIP,
336
- price_per_unit_after_discount = SKIP,
337
- vat_percentage = SKIP,
338
- price_rule_category_id = SKIP,
339
- tiers = SKIP)
304
+ def initialize(date = SKIP, day = SKIP, type = SKIP, price_list_id = SKIP,
305
+ price_list_description = SKIP, price_rule_id = SKIP,
306
+ price_rule_name = SKIP, del_co_id = SKIP,
307
+ country_code = SKIP, country = SKIP, product_group_id = SKIP,
308
+ product_group_name = SKIP, product_code = SKIP,
309
+ product_id = SKIP, product_name = SKIP,
310
+ price_per_unit = SKIP, currency_code = SKIP,
311
+ currency_symbol = SKIP, price_type = SKIP,
312
+ site_group_id = SKIP, site_group_name = SKIP,
313
+ site_code = SKIP, site_id = SKIP, site_name = SKIP,
314
+ fuel_network_id = SKIP, network_name = SKIP,
315
+ price_rule_delco_id = SKIP, price_rule_delco_name = SKIP,
316
+ price_rule_country = SKIP, price_rule_country_code = SKIP,
317
+ price_rule_basis_id = SKIP, discount_value = SKIP,
318
+ price_per_unit_after_discount = SKIP, vat_percentage = SKIP,
319
+ price_rule_category_id = SKIP, tiers = SKIP)
340
320
  @date = date unless date == SKIP
341
321
  @day = day unless day == SKIP
342
322
  @type = type unless type == SKIP
@@ -84,10 +84,10 @@ module ShellDataReportingApIs
84
84
 
85
85
  # Product Id
86
86
  # Example:
87
- # 21 Unleaded - High octane
88
- # 22 Unleaded - Medium octane
89
- # 23 Unleaded - Low octane
90
- # 24 Unleaded Environmental
87
+ # 21 Unleaded - High octane
88
+ # 22 Unleaded - Medium octane
89
+ # 23 Unleaded - Low octane
90
+ # 24 Unleaded Environmental
91
91
  # @return [Integer]
92
92
  attr_accessor :product_id
93
93
 
@@ -95,10 +95,10 @@ module ShellDataReportingApIs
95
95
  # Optional
96
96
  # Max Length: 8
97
97
  # Example:
98
- # 10 TMF Charges
99
- # 11 Tunnel/Bridges
100
- # 12 Motorway toll
101
- # 13 Ferries
98
+ # 10 TMF Charges
99
+ # 11 Tunnel/Bridges
100
+ # 12 Motorway toll
101
+ # 13 Ferries
102
102
  # @return [String]
103
103
  attr_accessor :product_code
104
104
 
@@ -133,9 +133,9 @@ module ShellDataReportingApIs
133
133
 
134
134
  # Transactions Period.
135
135
  # Possible values are:
136
- # 1. Last 7 Days
137
- # 2. Last 30 Days
138
- # 3. Last 90 Days
136
+ # 1. Last 7 Days
137
+ # 2. Last 30 Days
138
+ # 3. Last 90 Days
139
139
  # Optional - Refer introduction section of this operation for the priority
140
140
  # and sequence of different date and invoice number filters that are
141
141
  # conditionally applied.
@@ -144,10 +144,10 @@ module ShellDataReportingApIs
144
144
 
145
145
  # Site Code as configured in GFN
146
146
  # Example:
147
- # 050001 - CHARNOCK RICHARD NTHBOUND MWSA 0755
148
- # 050002 - CHARNOCK RICHARD STHBOUND MWSA 0755
149
- # 050005 - HARTSHEAD MOOR EASTBOUND MWSA 0761.
150
- # 050006 - HARTSHEAD MOOR WESTBOUND MWSA.
147
+ # 050001 - CHARNOCK RICHARD NTHBOUND MWSA 0755
148
+ # 050002 - CHARNOCK RICHARD STHBOUND MWSA 0755
149
+ # 050005 - HARTSHEAD MOOR EASTBOUND MWSA 0761.
150
+ # 050006 - HARTSHEAD MOOR WESTBOUND MWSA.
151
151
  # Note: If IncludeFees is true then this filter will be ignored
152
152
  # @return [String]
153
153
  attr_accessor :site_code
@@ -333,35 +333,19 @@ module ShellDataReportingApIs
333
333
  []
334
334
  end
335
335
 
336
- def initialize(col_co_id = SKIP,
337
- col_co_code = SKIP,
338
- payer_id = SKIP,
339
- payer_number = SKIP,
340
- accounts = SKIP,
341
- card_id = SKIP,
342
- card_pan = SKIP,
343
- driver_name = SKIP,
344
- vehicle_registration_number = SKIP,
345
- invoice_status = SKIP,
346
- product_id = SKIP,
347
- product_code = SKIP,
348
- purchased_in_country = SKIP,
349
- card_group_id = SKIP,
350
- from_date = SKIP,
351
- to_date = SKIP,
352
- period = SKIP,
353
- site_code = SKIP,
354
- site_group_id = SKIP,
355
- posting_date_from = SKIP,
356
- posting_date_to = SKIP,
357
- sales_item_id = SKIP,
358
- transaction_id = SKIP,
359
- invoice_date = SKIP,
360
- invoice_number = SKIP,
361
- valid_invoice_date_only = SKIP,
362
- invoice_from_date = SKIP,
363
- invoice_to_date = SKIP,
364
- fuel_only = SKIP,
336
+ def initialize(col_co_id = SKIP, col_co_code = SKIP, payer_id = SKIP,
337
+ payer_number = SKIP, accounts = SKIP, card_id = SKIP,
338
+ card_pan = SKIP, driver_name = SKIP,
339
+ vehicle_registration_number = SKIP, invoice_status = SKIP,
340
+ product_id = SKIP, product_code = SKIP,
341
+ purchased_in_country = SKIP, card_group_id = SKIP,
342
+ from_date = SKIP, to_date = SKIP, period = SKIP,
343
+ site_code = SKIP, site_group_id = SKIP,
344
+ posting_date_from = SKIP, posting_date_to = SKIP,
345
+ sales_item_id = SKIP, transaction_id = SKIP,
346
+ invoice_date = SKIP, invoice_number = SKIP,
347
+ valid_invoice_date_only = SKIP, invoice_from_date = SKIP,
348
+ invoice_to_date = SKIP, fuel_only = SKIP,
365
349
  include_fees = SKIP)
366
350
  @col_co_id = col_co_id unless col_co_id == SKIP
367
351
  @col_co_code = col_co_code unless col_co_code == SKIP