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
@@ -35,9 +35,9 @@ module ShellDataReportingApIs
35
35
 
36
36
  # Document type
37
37
  # String containing one of the following values:
38
- # • NAT (National)
39
- # • INT (International)
40
- # • SOA (Statement of Account)
38
+ # • NAT (National)
39
+ # • INT (International)
40
+ # • SOA (Statement of Account)
41
41
  # @return [String]
42
42
  attr_accessor :document_type
43
43
 
@@ -132,19 +132,12 @@ module ShellDataReportingApIs
132
132
  ]
133
133
  end
134
134
 
135
- def initialize(document_reference = SKIP,
136
- invoice_number = SKIP,
137
- payer_name = SKIP,
138
- account_number = SKIP,
139
- account_name = SKIP,
140
- document_type = SKIP,
141
- gross_amount = SKIP,
142
- net_amount = SKIP,
143
- tax_amount = SKIP,
144
- currency_code = SKIP,
145
- invoice_status = SKIP,
146
- invoice_date = SKIP,
147
- due_date = SKIP,
135
+ def initialize(document_reference = SKIP, invoice_number = SKIP,
136
+ payer_name = SKIP, account_number = SKIP,
137
+ account_name = SKIP, document_type = SKIP,
138
+ gross_amount = SKIP, net_amount = SKIP, tax_amount = SKIP,
139
+ currency_code = SKIP, invoice_status = SKIP,
140
+ invoice_date = SKIP, due_date = SKIP,
148
141
  vat_country_iso_code = SKIP)
149
142
  @document_reference = document_reference unless document_reference == SKIP
150
143
  @invoice_number = invoice_number unless invoice_number == SKIP
@@ -44,9 +44,7 @@ module ShellDataReportingApIs
44
44
  []
45
45
  end
46
46
 
47
- def initialize(filters = SKIP,
48
- page = SKIP,
49
- page_size = SKIP)
47
+ def initialize(filters = SKIP, page = SKIP, page_size = SKIP)
50
48
  @filters = filters unless filters == SKIP
51
49
  @page = page unless page == SKIP
52
50
  @page_size = page_size unless page_size == SKIP
@@ -70,13 +70,9 @@ module ShellDataReportingApIs
70
70
  []
71
71
  end
72
72
 
73
- def initialize(request_id = SKIP,
74
- status = SKIP,
75
- data = SKIP,
76
- total_records = SKIP,
77
- total_records_on_page = SKIP,
78
- is_first_page = SKIP,
79
- is_last_page = SKIP)
73
+ def initialize(request_id = SKIP, status = SKIP, data = SKIP,
74
+ total_records = SKIP, total_records_on_page = SKIP,
75
+ is_first_page = SKIP, is_last_page = SKIP)
80
76
  @request_id = request_id unless request_id == SKIP
81
77
  @status = status unless status == SKIP
82
78
  @data = data unless data == SKIP
@@ -139,17 +139,10 @@ module ShellDataReportingApIs
139
139
  ]
140
140
  end
141
141
 
142
- def initialize(col_co_code = SKIP,
143
- payer_number = SKIP,
144
- invoice_number = SKIP,
145
- from_date = SKIP,
146
- to_date = SKIP,
147
- period = SKIP,
148
- invoice_date = SKIP,
149
- invoice_status = SKIP,
150
- sort_by = SKIP,
151
- col_co_id = SKIP,
152
- payer_id = SKIP)
142
+ def initialize(col_co_code = SKIP, payer_number = SKIP,
143
+ invoice_number = SKIP, from_date = SKIP, to_date = SKIP,
144
+ period = SKIP, invoice_date = SKIP, invoice_status = SKIP,
145
+ sort_by = SKIP, col_co_id = SKIP, payer_id = SKIP)
153
146
  @col_co_code = col_co_code unless col_co_code == SKIP
154
147
  @payer_number = payer_number unless payer_number == SKIP
155
148
  @invoice_number = invoice_number unless invoice_number == SKIP
@@ -49,9 +49,9 @@ module ShellDataReportingApIs
49
49
 
50
50
  # Due date for payment. Format: yyyyMMdd
51
51
  # Note:
52
- # • Clients to convert this to appropriate DateTime type.
53
- # • SoA due date is considered as the latest due date of the invoices within
54
- # the SoA
52
+ # • Clients to convert this to appropriate DateTime type.
53
+ # • SoA due date is considered as the latest due date of the invoices
54
+ # within the SoA
55
55
  # @return [String]
56
56
  attr_accessor :due_date
57
57
 
@@ -62,10 +62,10 @@ module ShellDataReportingApIs
62
62
  attr_accessor :invoiced_on_behalf_of
63
63
 
64
64
  # Status of the document. Valid values –
65
- # 1. Paid – Fully paid all Invoices with in the SOA.
66
- # 2. Overdue – At least one invoice payment due date is less than current
65
+ # 1. Paid – Fully paid all Invoices with in the SOA.
66
+ # 2. Overdue – At least one invoice payment due date is less than current
67
67
  # date with in the SOA.
68
- # 3. Due – At least one invoice is due for payment and is within the due
68
+ # 3. Due – At least one invoice is due for payment and is within the due
69
69
  # date. There is no invoice overdue for payment.
70
70
  # @return [String]
71
71
  attr_accessor :status
@@ -138,18 +138,11 @@ module ShellDataReportingApIs
138
138
  ]
139
139
  end
140
140
 
141
- def initialize(statement_of_account_id = SKIP,
142
- so_a_reference_number = SKIP,
143
- statement_date = SKIP,
144
- payer_id = SKIP,
145
- payer_number = SKIP,
146
- amount_due = SKIP,
147
- amount_overdue = SKIP,
148
- currency_code = SKIP,
149
- currency_symbol = SKIP,
150
- due_date = SKIP,
151
- invoiced_on_behalf_of = SKIP,
152
- status = SKIP,
141
+ def initialize(statement_of_account_id = SKIP, so_a_reference_number = SKIP,
142
+ statement_date = SKIP, payer_id = SKIP, payer_number = SKIP,
143
+ amount_due = SKIP, amount_overdue = SKIP,
144
+ currency_code = SKIP, currency_symbol = SKIP,
145
+ due_date = SKIP, invoiced_on_behalf_of = SKIP, status = SKIP,
153
146
  gross_amount_customer_currency = SKIP,
154
147
  document_reference_number = SKIP)
155
148
  @statement_of_account_id = statement_of_account_id unless statement_of_account_id == SKIP
@@ -44,9 +44,7 @@ module ShellDataReportingApIs
44
44
  []
45
45
  end
46
46
 
47
- def initialize(filters = SKIP,
48
- page = SKIP,
49
- page_size = SKIP)
47
+ def initialize(filters = SKIP, page = SKIP, page_size = SKIP)
50
48
  @filters = filters unless filters == SKIP
51
49
  @page = page unless page == SKIP
52
50
  @page_size = page_size unless page_size == SKIP
@@ -69,13 +69,8 @@ module ShellDataReportingApIs
69
69
  []
70
70
  end
71
71
 
72
- def initialize(request_id = SKIP,
73
- status = SKIP,
74
- data = SKIP,
75
- page = SKIP,
76
- total_records = SKIP,
77
- total_pages = SKIP,
78
- page_size = SKIP)
72
+ def initialize(request_id = SKIP, status = SKIP, data = SKIP, page = SKIP,
73
+ total_records = SKIP, total_pages = SKIP, page_size = SKIP)
79
74
  @request_id = request_id unless request_id == SKIP
80
75
  @status = status unless status == SKIP
81
76
  @data = data unless data == SKIP
@@ -45,8 +45,7 @@ module ShellDataReportingApIs
45
45
  ]
46
46
  end
47
47
 
48
- def initialize(latitude = SKIP,
49
- longitude = SKIP)
48
+ def initialize(latitude = SKIP, longitude = SKIP)
50
49
  @latitude = latitude unless latitude == SKIP
51
50
  @longitude = longitude unless longitude == SKIP
52
51
  end
@@ -63,5 +62,15 @@ module ShellDataReportingApIs
63
62
  SiteLocation.new(latitude,
64
63
  longitude)
65
64
  end
65
+
66
+ # Validates an instance of the object from a given value.
67
+ # @param [SiteLocation | Hash] The value against the validation is performed.
68
+ def self.validate(value)
69
+ return true if value.instance_of? self
70
+
71
+ return false unless value.instance_of? Hash
72
+
73
+ true
74
+ end
66
75
  end
67
76
  end
@@ -117,15 +117,12 @@ module ShellDataReportingApIs
117
117
  ]
118
118
  end
119
119
 
120
- def initialize(col_co_code = SKIP,
121
- payer_id = SKIP,
122
- payer_number = SKIP,
120
+ def initialize(col_co_code = SKIP, payer_id = SKIP, payer_number = SKIP,
123
121
  include_monthly_invoice_trend = SKIP,
124
122
  include_past_statement_of_accounts = SKIP,
125
123
  due_or_over_due_soa_documents_only = SKIP,
126
124
  number_of_soa_documents = SKIP,
127
- include_account_invoices_summary = SKIP,
128
- col_co_id = SKIP,
125
+ include_account_invoices_summary = SKIP, col_co_id = SKIP,
129
126
  accounts = SKIP)
130
127
  @col_co_code = col_co_code unless col_co_code == SKIP
131
128
  @payer_id = payer_id unless payer_id == SKIP
@@ -63,8 +63,7 @@ module ShellDataReportingApIs
63
63
  def initialize(last_statement_of_account = SKIP,
64
64
  monthly_invoice_trend = SKIP,
65
65
  past_statement_of_accounts = SKIP,
66
- payments_since_last_soa = SKIP,
67
- invoices_summaries = SKIP)
66
+ payments_since_last_soa = SKIP, invoices_summaries = SKIP)
68
67
  unless last_statement_of_account == SKIP
69
68
  @last_statement_of_account =
70
69
  last_statement_of_account
@@ -45,9 +45,7 @@ module ShellDataReportingApIs
45
45
  []
46
46
  end
47
47
 
48
- def initialize(request_id = SKIP,
49
- status = SKIP,
50
- data = SKIP)
48
+ def initialize(request_id = SKIP, status = SKIP, data = SKIP)
51
49
  @request_id = request_id unless request_id == SKIP
52
50
  @status = status unless status == SKIP
53
51
  @data = data unless data == SKIP
@@ -35,10 +35,10 @@ module ShellDataReportingApIs
35
35
 
36
36
  # Tiered pricing group period.
37
37
  # Possible Values
38
- # 1. Monthly
39
- # 2. Quarterly
40
- # 3. Semi Annually
41
- # 4. Annual
38
+ # 1. Monthly
39
+ # 2. Quarterly
40
+ # 3. Semi Annually
41
+ # 4. Annual
42
42
  # @return [String]
43
43
  attr_accessor :tiered_pricing_group_period
44
44
 
@@ -103,15 +103,11 @@ module ShellDataReportingApIs
103
103
  ]
104
104
  end
105
105
 
106
- def initialize(tier_price_list_id = SKIP,
107
- price_list_description = SKIP,
108
- tier_min = SKIP,
109
- tier_max = SKIP,
106
+ def initialize(tier_price_list_id = SKIP, price_list_description = SKIP,
107
+ tier_min = SKIP, tier_max = SKIP,
110
108
  tiered_pricing_group_name = SKIP,
111
- tiered_pricing_group_period = SKIP,
112
- discount_value = SKIP,
113
- price_per_unit = SKIP,
114
- price_per_unit_after_discount = SKIP)
109
+ tiered_pricing_group_period = SKIP, discount_value = SKIP,
110
+ price_per_unit = SKIP, price_per_unit_after_discount = SKIP)
115
111
  @tier_price_list_id = tier_price_list_id unless tier_price_list_id == SKIP
116
112
  @price_list_description = price_list_description unless price_list_description == SKIP
117
113
  @tier_min = tier_min unless tier_min == SKIP
@@ -398,13 +398,13 @@ module ShellDataReportingApIs
398
398
  attr_accessor :crm_number
399
399
 
400
400
  # Sales Item Dispute Status if disputed
401
- # 0 No Dispute
402
- # 1 In Dispute
403
- # 2 Re-Instated
404
- # 3 Adjusted
405
- # 4 Written Off by Colco
406
- # 5 Written Off by Delco
407
- # 6 Charged Back to Site
401
+ # 0 No Dispute
402
+ # 1 In Dispute
403
+ # 2 Re-Instated
404
+ # 3 Adjusted
405
+ # 4 Written Off by Colco
406
+ # 5 Written Off by Delco
407
+ # 6 Charged Back to Site
408
408
  # @return [String]
409
409
  attr_accessor :dispute_status
410
410
 
@@ -764,106 +764,61 @@ module ShellDataReportingApIs
764
764
  ]
765
765
  end
766
766
 
767
- def initialize(sales_item_id = SKIP,
768
- card_id = SKIP,
769
- product_id = SKIP,
770
- transaction_guid = SKIP,
771
- transaction_date = SKIP,
772
- customer_invoice_value_total_gross = SKIP,
773
- card_pan = SKIP,
774
- card_expiry = SKIP,
775
- transaction_time = SKIP,
776
- utc_offset = SKIP,
777
- fleet_id_input = SKIP,
778
- odometer_input = SKIP,
779
- driver_name = SKIP,
780
- vehicle_registration = SKIP,
781
- invoice_currency_code = SKIP,
767
+ def initialize(sales_item_id = SKIP, card_id = SKIP, product_id = SKIP,
768
+ transaction_guid = SKIP, transaction_date = SKIP,
769
+ customer_invoice_value_total_gross = SKIP, card_pan = SKIP,
770
+ card_expiry = SKIP, transaction_time = SKIP,
771
+ utc_offset = SKIP, fleet_id_input = SKIP,
772
+ odometer_input = SKIP, driver_name = SKIP,
773
+ vehicle_registration = SKIP, invoice_currency_code = SKIP,
782
774
  invoice_currency_symbol = SKIP,
783
775
  transaction_currency_code = SKIP,
784
776
  transaction_currency_symbol = SKIP,
785
- transaction_net_amount = SKIP,
786
- transaction_tax = SKIP,
787
- transaction_gross_amount = SKIP,
788
- invoice_net_amount = SKIP,
789
- invoice_tax = SKIP,
790
- invoice_gross_amount = SKIP,
791
- purchased_in_country = SKIP,
792
- account_id = SKIP,
793
- account_number = SKIP,
794
- account_name = SKIP,
795
- account_short_name = SKIP,
796
- quantity = SKIP,
777
+ transaction_net_amount = SKIP, transaction_tax = SKIP,
778
+ transaction_gross_amount = SKIP, invoice_net_amount = SKIP,
779
+ invoice_tax = SKIP, invoice_gross_amount = SKIP,
780
+ purchased_in_country = SKIP, account_id = SKIP,
781
+ account_number = SKIP, account_name = SKIP,
782
+ account_short_name = SKIP, quantity = SKIP,
797
783
  fuel_product = SKIP,
798
784
  unit_price_in_transaction_currency = SKIP,
799
785
  unit_price_in_invoice_currency = SKIP,
800
786
  unit_discount_transaction_currency = SKIP,
801
- unit_discount_invoice_currency = SKIP,
802
- is_invoiced = SKIP,
803
- invoice_number = SKIP,
804
- invoice_date = SKIP,
805
- site_code = SKIP,
806
- site_name = SKIP,
807
- site_country = SKIP,
808
- location = SKIP,
809
- card_group_name = SKIP,
810
- receipt_number = SKIP,
811
- product_code = SKIP,
812
- product_name = SKIP,
813
- product_group_id = SKIP,
814
- product_group_name = SKIP,
815
- del_co_exchange_rate = SKIP,
816
- col_co_exchange_rate = SKIP,
817
- is_shell_site = SKIP,
818
- network = SKIP,
819
- site_group_id = SKIP,
820
- site_group_name = SKIP,
821
- posting_date = SKIP,
822
- issuer_code = SKIP,
823
- purchased_in_country_code = SKIP,
824
- customer_country_code = SKIP,
825
- customer_country = SKIP,
826
- release_code = SKIP,
827
- card_group_id = SKIP,
828
- card_sequence_number = SKIP,
829
- check_digit = SKIP,
830
- fleet_id_description = SKIP,
831
- vat_rate = SKIP,
787
+ unit_discount_invoice_currency = SKIP, is_invoiced = SKIP,
788
+ invoice_number = SKIP, invoice_date = SKIP, site_code = SKIP,
789
+ site_name = SKIP, site_country = SKIP, location = SKIP,
790
+ card_group_name = SKIP, receipt_number = SKIP,
791
+ product_code = SKIP, product_name = SKIP,
792
+ product_group_id = SKIP, product_group_name = SKIP,
793
+ del_co_exchange_rate = SKIP, col_co_exchange_rate = SKIP,
794
+ is_shell_site = SKIP, network = SKIP, site_group_id = SKIP,
795
+ site_group_name = SKIP, posting_date = SKIP,
796
+ issuer_code = SKIP, purchased_in_country_code = SKIP,
797
+ customer_country_code = SKIP, customer_country = SKIP,
798
+ release_code = SKIP, card_group_id = SKIP,
799
+ card_sequence_number = SKIP, check_digit = SKIP,
800
+ fleet_id_description = SKIP, vat_rate = SKIP,
832
801
  vat_category = SKIP,
833
802
  effective_discount_in_trx_currency = SKIP,
834
- transaction_type = SKIP,
835
- pin_indicator = SKIP,
836
- vat_applicable = SKIP,
837
- net_invoice_indicator = SKIP,
803
+ transaction_type = SKIP, pin_indicator = SKIP,
804
+ vat_applicable = SKIP, net_invoice_indicator = SKIP,
838
805
  customer_currency_code = SKIP,
839
806
  customer_currency_symbol = SKIP,
840
807
  effective_unit_discount_in_customer_currency = SKIP,
841
808
  effective_discount_in_customer_currency = SKIP,
842
809
  va_ton_net_amount_in_customer_currency = SKIP,
843
- discount_type = SKIP,
844
- transaction_status = SKIP,
845
- payer_group = SKIP,
846
- refund_flag = SKIP,
847
- original_sales_item_id = SKIP,
848
- delco_name = SKIP,
849
- delco_code = SKIP,
850
- payer_number = SKIP,
851
- payer_name = SKIP,
852
- card_expiry_period = SKIP,
853
- authorisation_code = SKIP,
854
- transaction_id = SKIP,
855
- transaction_line = SKIP,
856
- allow_clearing = SKIP,
857
- crm_number = SKIP,
858
- dispute_status = SKIP,
859
- rebate_rate = SKIP,
810
+ discount_type = SKIP, transaction_status = SKIP,
811
+ payer_group = SKIP, refund_flag = SKIP,
812
+ original_sales_item_id = SKIP, delco_name = SKIP,
813
+ delco_code = SKIP, payer_number = SKIP, payer_name = SKIP,
814
+ card_expiry_period = SKIP, authorisation_code = SKIP,
815
+ transaction_id = SKIP, transaction_line = SKIP,
816
+ allow_clearing = SKIP, crm_number = SKIP,
817
+ dispute_status = SKIP, rebate_rate = SKIP,
860
818
  del_co_to_col_co_exchange_rate = SKIP,
861
- net_euro_amount = SKIP,
862
- euro_rebate_amount = SKIP,
863
- euro_vat_amount = SKIP,
864
- parent_customer_number = SKIP,
865
- va_ton_net_amount = SKIP,
866
- vat_country = SKIP)
819
+ net_euro_amount = SKIP, euro_rebate_amount = SKIP,
820
+ euro_vat_amount = SKIP, parent_customer_number = SKIP,
821
+ va_ton_net_amount = SKIP, vat_country = SKIP)
867
822
  @sales_item_id = sales_item_id unless sales_item_id == SKIP
868
823
  @card_id = card_id unless card_id == SKIP
869
824
  @product_id = product_id unless product_id == SKIP
@@ -90,18 +90,18 @@ module ShellDataReportingApIs
90
90
  # value or usage to be identified in the given transactions date range. It
91
91
  # is only applied when the Output Type is specified as "Cards".
92
92
  # Mandatory when Output Type is Cards
93
- # 1. Month
94
- # 2. Week
95
- # 3. Day
96
- # 4. Date Range
93
+ # 1. Month
94
+ # 2. Week
95
+ # 3. Day
96
+ # 4. Date Range
97
97
  # @return [Integer]
98
98
  attr_accessor :exception_period
99
99
 
100
100
  # Output Type for Exceptions.
101
101
  # Mandatory.
102
102
  # Possible values:
103
- # 1. Transactions
104
- # 2. Cards
103
+ # 1. Transactions
104
+ # 2. Cards
105
105
  # @return [Integer]
106
106
  attr_accessor :output_type
107
107
 
@@ -172,21 +172,12 @@ module ShellDataReportingApIs
172
172
  []
173
173
  end
174
174
 
175
- def initialize(transactions_from_date = nil,
176
- transactions_to_date = nil,
177
- condition = nil,
178
- output_type = nil,
179
- col_co_id = SKIP,
180
- col_co_code = SKIP,
181
- payer_id = SKIP,
182
- payer_number = SKIP,
183
- accounts = SKIP,
184
- value = SKIP,
185
- products = SKIP,
186
- exception_period = SKIP,
187
- fuel_only = SKIP,
188
- site_group_ids = SKIP,
189
- use_field_id = SKIP)
175
+ def initialize(transactions_from_date = nil, transactions_to_date = nil,
176
+ condition = nil, output_type = nil, col_co_id = SKIP,
177
+ col_co_code = SKIP, payer_id = SKIP, payer_number = SKIP,
178
+ accounts = SKIP, value = SKIP, products = SKIP,
179
+ exception_period = SKIP, fuel_only = SKIP,
180
+ site_group_ids = SKIP, use_field_id = SKIP)
190
181
  @col_co_id = col_co_id unless col_co_id == SKIP
191
182
  @col_co_code = col_co_code unless col_co_code == SKIP
192
183
  @payer_id = payer_id unless payer_id == SKIP
@@ -52,10 +52,8 @@ module ShellDataReportingApIs
52
52
  ]
53
53
  end
54
54
 
55
- def initialize(card_exceptions = SKIP,
56
- transaction_exceptions = SKIP,
57
- error = SKIP,
58
- request_id = SKIP)
55
+ def initialize(card_exceptions = SKIP, transaction_exceptions = SKIP,
56
+ error = SKIP, request_id = SKIP)
59
57
  @card_exceptions = card_exceptions unless card_exceptions == SKIP
60
58
  @transaction_exceptions = transaction_exceptions unless transaction_exceptions == SKIP
61
59
  @error = error unless error == SKIP
@@ -106,10 +106,10 @@ module ShellDataReportingApIs
106
106
 
107
107
  # Fee items Period. This is ignored when FromDate/Todate is supplied on the
108
108
  # request.
109
- # 1. Last 7 Days
110
- # 2. Last 30 Days
111
- # 3. Last 90 Days
112
- # 4. Last 180 Days
109
+ # 1. Last 7 Days
110
+ # 2. Last 30 Days
111
+ # 3. Last 90 Days
112
+ # 4. Last 180 Days
113
113
  # Example : Pass 1 for Last 7 days fee items
114
114
  # @return [Integer]
115
115
  attr_accessor :period
@@ -121,11 +121,11 @@ module ShellDataReportingApIs
121
121
  # Product Id
122
122
  # Optional
123
123
  # Example: Sample list of product ids and description.
124
- # 100 Service fee
125
- # 102 Invoice production fee
126
- # 103 Account fee
127
- # 104 Transaction fee
128
- # 105 Card membership fee
124
+ # 100 Service fee
125
+ # 102 Invoice production fee
126
+ # 103 Account fee
127
+ # 104 Transaction fee
128
+ # 105 Card membership fee
129
129
  # @return [Integer]
130
130
  attr_accessor :product_id
131
131
 
@@ -149,10 +149,10 @@ module ShellDataReportingApIs
149
149
  attr_accessor :line_item_description
150
150
 
151
151
  # Allowed Sorting Options:
152
- # • FeeDateAscending
153
- # • FeeDateDescending
154
- # • NetAmountAscending
155
- # • NetAmountDescending
152
+ # • FeeDateAscending
153
+ # • FeeDateDescending
154
+ # • NetAmountAscending
155
+ # • NetAmountDescending
156
156
  # Optional.
157
157
  # Default: 1
158
158
  # @return [String]
@@ -243,26 +243,14 @@ module ShellDataReportingApIs
243
243
  ]
244
244
  end
245
245
 
246
- def initialize(col_co_id = SKIP,
247
- col_co_code = SKIP,
248
- payer_id = SKIP,
249
- payer_number = SKIP,
250
- accounts = SKIP,
251
- card_id = SKIP,
252
- card_pan = SKIP,
253
- invoice_status = SKIP,
254
- fee_type_group = SKIP,
255
- fee_type_id = SKIP,
256
- from_date = SKIP,
257
- to_date = SKIP,
258
- period = SKIP,
259
- include_cancelled_items = SKIP,
260
- product_id = SKIP,
261
- product_code = SKIP,
262
- line_item_description = SKIP,
263
- sort_order = SKIP,
264
- current_page = SKIP,
265
- page_size = SKIP)
246
+ def initialize(col_co_id = SKIP, col_co_code = SKIP, payer_id = SKIP,
247
+ payer_number = SKIP, accounts = SKIP, card_id = SKIP,
248
+ card_pan = SKIP, invoice_status = SKIP,
249
+ fee_type_group = SKIP, fee_type_id = SKIP, from_date = SKIP,
250
+ to_date = SKIP, period = SKIP,
251
+ include_cancelled_items = SKIP, product_id = SKIP,
252
+ product_code = SKIP, line_item_description = SKIP,
253
+ sort_order = SKIP, current_page = SKIP, page_size = SKIP)
266
254
  @col_co_id = col_co_id unless col_co_id == SKIP
267
255
  @col_co_code = col_co_code unless col_co_code == SKIP
268
256
  @payer_id = payer_id unless payer_id == SKIP
@@ -64,12 +64,8 @@ module ShellDataReportingApIs
64
64
  []
65
65
  end
66
66
 
67
- def initialize(fee_items = SKIP,
68
- current_page = SKIP,
69
- row_count = SKIP,
70
- total_pages = SKIP,
71
- error = SKIP,
72
- request_id = SKIP)
67
+ def initialize(fee_items = SKIP, current_page = SKIP, row_count = SKIP,
68
+ total_pages = SKIP, error = SKIP, request_id = SKIP)
73
69
  @fee_items = fee_items unless fee_items == SKIP
74
70
  @current_page = current_page unless current_page == SKIP
75
71
  @row_count = row_count unless row_count == SKIP
@@ -39,8 +39,7 @@ module ShellDataReportingApIs
39
39
  ]
40
40
  end
41
41
 
42
- def initialize(sales_item_id = nil,
43
- new_odometer_value = nil)
42
+ def initialize(sales_item_id = nil, new_odometer_value = nil)
44
43
  @sales_item_id = sales_item_id
45
44
  @new_odometer_value = new_odometer_value
46
45
  end
@@ -41,8 +41,7 @@ module ShellDataReportingApIs
41
41
  ]
42
42
  end
43
43
 
44
- def initialize(sales_item_id = SKIP,
45
- update_odometer_reference_id = SKIP)
44
+ def initialize(sales_item_id = SKIP, update_odometer_reference_id = SKIP)
46
45
  @sales_item_id = sales_item_id unless sales_item_id == SKIP
47
46
  unless update_odometer_reference_id == SKIP
48
47
  @update_odometer_reference_id =
@@ -91,14 +91,9 @@ module ShellDataReportingApIs
91
91
  []
92
92
  end
93
93
 
94
- def initialize(col_co_id = SKIP,
95
- col_co_code = SKIP,
96
- payer_id = SKIP,
97
- account_id = SKIP,
98
- account_number = SKIP,
99
- update_odometers = SKIP,
100
- notify_caller = SKIP,
101
- caller = SKIP)
94
+ def initialize(col_co_id = SKIP, col_co_code = SKIP, payer_id = SKIP,
95
+ account_id = SKIP, account_number = SKIP,
96
+ update_odometers = SKIP, notify_caller = SKIP, caller = SKIP)
102
97
  @col_co_id = col_co_id unless col_co_id == SKIP
103
98
  @col_co_code = col_co_code unless col_co_code == SKIP
104
99
  @payer_id = payer_id unless payer_id == SKIP