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
@@ -152,15 +152,15 @@ module ShellDataReportingApIs
152
152
 
153
153
  # Product Group Id
154
154
  # Example: Sample list
155
- # 22 Card related fees
156
- # 23 Monetary Adjustment
155
+ # 22 Card related fees
156
+ # 23 Monetary Adjustment
157
157
  # @return [Integer]
158
158
  attr_accessor :product_group_id
159
159
 
160
160
  # Product Group Name
161
161
  # Example: Sample list
162
- # 22 Card related fees
163
- # 23 Monetary Adjustment
162
+ # 22 Card related fees
163
+ # 23 Monetary Adjustment
164
164
  # @return [String]
165
165
  attr_accessor :product_group_name
166
166
 
@@ -594,80 +594,44 @@ module ShellDataReportingApIs
594
594
  ]
595
595
  end
596
596
 
597
- def initialize(fee_item_id = SKIP,
598
- account_id = SKIP,
599
- account_number = SKIP,
600
- account_short_name = SKIP,
601
- invoice_account_id = SKIP,
597
+ def initialize(fee_item_id = SKIP, account_id = SKIP, account_number = SKIP,
598
+ account_short_name = SKIP, invoice_account_id = SKIP,
602
599
  invoice_account_number = SKIP,
603
- invoice_account_short_name = SKIP,
604
- payer_id = SKIP,
605
- payer_number = SKIP,
606
- payer_short_name = SKIP,
607
- card_id = SKIP,
608
- pan = SKIP,
609
- card_group_id = SKIP,
610
- card_group_name = SKIP,
611
- fee_type_id = SKIP,
612
- fee_type = SKIP,
613
- fee_type_group = SKIP,
614
- fee_rule_id = SKIP,
615
- fee_rule_description = SKIP,
616
- fee_rule_tiers = SKIP,
617
- fee_item_date = SKIP,
618
- fee_item_time = SKIP,
619
- is_manual = SKIP,
620
- is_cancelled = SKIP,
600
+ invoice_account_short_name = SKIP, payer_id = SKIP,
601
+ payer_number = SKIP, payer_short_name = SKIP, card_id = SKIP,
602
+ pan = SKIP, card_group_id = SKIP, card_group_name = SKIP,
603
+ fee_type_id = SKIP, fee_type = SKIP, fee_type_group = SKIP,
604
+ fee_rule_id = SKIP, fee_rule_description = SKIP,
605
+ fee_rule_tiers = SKIP, fee_item_date = SKIP,
606
+ fee_item_time = SKIP, is_manual = SKIP, is_cancelled = SKIP,
621
607
  customer_currency_code = SKIP,
622
- customer_currency_symbol = SKIP,
623
- product_id = SKIP,
624
- product_code = SKIP,
625
- product_name = SKIP,
626
- product_group_id = SKIP,
627
- product_group_name = SKIP,
628
- line_item_description = SKIP,
629
- quantity = SKIP,
630
- is_invoiced = SKIP,
631
- vat_country_code = SKIP,
632
- vat_country_name = SKIP,
633
- vat_percentage = SKIP,
634
- vat_category_id = SKIP,
635
- vat_category_description = SKIP,
636
- legislative_region_id = SKIP,
637
- legislative_region_name = SKIP,
638
- system_entry_date = SKIP,
639
- system_entry_time = SKIP,
640
- col_co_net_amount = SKIP,
641
- col_co_vat_amount = SKIP,
642
- col_co_gross_amount = SKIP,
643
- interim_invoice_id = SKIP,
644
- interim_invoice_number = SKIP,
645
- invoice_id = SKIP,
646
- invoice_number = SKIP,
647
- invoice_date = SKIP,
648
- customer_exchange_rate = SKIP,
649
- invoice_net_amount = SKIP,
650
- invoice_gross_amount = SKIP,
651
- invoice_vat_amount = SKIP,
652
- reverse_charge = SKIP,
653
- original_fee_item_id = SKIP,
608
+ customer_currency_symbol = SKIP, product_id = SKIP,
609
+ product_code = SKIP, product_name = SKIP,
610
+ product_group_id = SKIP, product_group_name = SKIP,
611
+ line_item_description = SKIP, quantity = SKIP,
612
+ is_invoiced = SKIP, vat_country_code = SKIP,
613
+ vat_country_name = SKIP, vat_percentage = SKIP,
614
+ vat_category_id = SKIP, vat_category_description = SKIP,
615
+ legislative_region_id = SKIP, legislative_region_name = SKIP,
616
+ system_entry_date = SKIP, system_entry_time = SKIP,
617
+ col_co_net_amount = SKIP, col_co_vat_amount = SKIP,
618
+ col_co_gross_amount = SKIP, interim_invoice_id = SKIP,
619
+ interim_invoice_number = SKIP, invoice_id = SKIP,
620
+ invoice_number = SKIP, invoice_date = SKIP,
621
+ customer_exchange_rate = SKIP, invoice_net_amount = SKIP,
622
+ invoice_gross_amount = SKIP, invoice_vat_amount = SKIP,
623
+ reverse_charge = SKIP, original_fee_item_id = SKIP,
654
624
  original_currency_code = SKIP,
655
- original_currency_symbol = SKIP,
656
- original_unit_price = SKIP,
657
- original_net_amount = SKIP,
658
- original_vat_amount = SKIP,
659
- original_gross_amount = SKIP,
660
- original_exchange_rate = SKIP,
625
+ original_currency_symbol = SKIP, original_unit_price = SKIP,
626
+ original_net_amount = SKIP, original_vat_amount = SKIP,
627
+ original_gross_amount = SKIP, original_exchange_rate = SKIP,
661
628
  original_legislative_region_id = SKIP,
662
- original_legislative_region_name = SKIP,
663
- frequency = SKIP,
629
+ original_legislative_region_name = SKIP, frequency = SKIP,
664
630
  fee_item_card_level_breakup = SKIP,
665
631
  original_fee_item_invoice_id = SKIP,
666
632
  original_fee_item_invoice_number = SKIP,
667
- original_fee_item_invoice_date = SKIP,
668
- driver_name = SKIP,
669
- emboss_text = SKIP,
670
- vrn = SKIP)
633
+ original_fee_item_invoice_date = SKIP, driver_name = SKIP,
634
+ emboss_text = SKIP, vrn = SKIP)
671
635
  @fee_item_id = fee_item_id unless fee_item_id == SKIP
672
636
  @account_id = account_id unless account_id == SKIP
673
637
  @account_number = account_number unless account_number == SKIP
@@ -118,19 +118,13 @@ module ShellDataReportingApIs
118
118
  ]
119
119
  end
120
120
 
121
- def initialize(fee_type_group = SKIP,
122
- fee_type_id = SKIP,
123
- product_id = SKIP,
124
- product_code = SKIP,
125
- product_name = SKIP,
126
- product_group_id = SKIP,
127
- product_group_name = SKIP,
128
- total_quantity = SKIP,
129
- total_invoice_net_amount = SKIP,
121
+ def initialize(fee_type_group = SKIP, fee_type_id = SKIP, product_id = SKIP,
122
+ product_code = SKIP, product_name = SKIP,
123
+ product_group_id = SKIP, product_group_name = SKIP,
124
+ total_quantity = SKIP, total_invoice_net_amount = SKIP,
130
125
  total_invoice_gross_amount = SKIP,
131
126
  total_invoice_vat_amount = SKIP,
132
- invoice_currency_code = SKIP,
133
- invoice_currency_symbol = SKIP)
127
+ invoice_currency_code = SKIP, invoice_currency_symbol = SKIP)
134
128
  @fee_type_group = fee_type_group unless fee_type_group == SKIP
135
129
  @fee_type_id = fee_type_id unless fee_type_id == SKIP
136
130
  @product_id = product_id unless product_id == SKIP
@@ -97,16 +97,10 @@ module ShellDataReportingApIs
97
97
  ]
98
98
  end
99
99
 
100
- def initialize(delco_id = SKIP,
101
- country = SKIP,
102
- country_code = SKIP,
103
- fuel_network_id = SKIP,
104
- network_name = SKIP,
105
- site_group_id = SKIP,
106
- site_group_name = SKIP,
107
- site_code = SKIP,
108
- site_id = SKIP,
109
- site_name = SKIP)
100
+ def initialize(delco_id = SKIP, country = SKIP, country_code = SKIP,
101
+ fuel_network_id = SKIP, network_name = SKIP,
102
+ site_group_id = SKIP, site_group_name = SKIP,
103
+ site_code = SKIP, site_id = SKIP, site_name = SKIP)
110
104
  @delco_id = delco_id unless delco_id == SKIP
111
105
  @country = country unless country == SKIP
112
106
  @country_code = country_code unless country_code == SKIP
@@ -62,11 +62,8 @@ module ShellDataReportingApIs
62
62
  ]
63
63
  end
64
64
 
65
- def initialize(product_group_id = SKIP,
66
- product_group_name = SKIP,
67
- product_code = SKIP,
68
- product_id = SKIP,
69
- product_name = SKIP)
65
+ def initialize(product_group_id = SKIP, product_group_name = SKIP,
66
+ product_code = SKIP, product_id = SKIP, product_name = SKIP)
70
67
  @product_group_id = product_group_id unless product_group_id == SKIP
71
68
  @product_group_name = product_group_name unless product_group_name == SKIP
72
69
  @product_code = product_code unless product_code == SKIP
@@ -48,9 +48,7 @@ module ShellDataReportingApIs
48
48
  ]
49
49
  end
50
50
 
51
- def initialize(tier_minimum = SKIP,
52
- value = SKIP,
53
- tier_maximum = SKIP)
51
+ def initialize(tier_minimum = SKIP, value = SKIP, tier_maximum = SKIP)
54
52
  @tier_minimum = tier_minimum unless tier_minimum == SKIP
55
53
  @value = value unless value == SKIP
56
54
  @tier_maximum = tier_maximum unless tier_maximum == SKIP
@@ -50,9 +50,7 @@ module ShellDataReportingApIs
50
50
  []
51
51
  end
52
52
 
53
- def initialize(fee_items_summary = SKIP,
54
- request_id = SKIP,
55
- error = SKIP)
53
+ def initialize(fee_items_summary = SKIP, request_id = SKIP, error = SKIP)
56
54
  @fee_items_summary = fee_items_summary unless fee_items_summary == SKIP
57
55
  @request_id = request_id unless request_id == SKIP
58
56
  @error = error unless error == SKIP
@@ -76,13 +76,9 @@ module ShellDataReportingApIs
76
76
  ]
77
77
  end
78
78
 
79
- def initialize(tier_min = SKIP,
80
- tier_max = SKIP,
81
- date_effective = SKIP,
82
- date_terminated = SKIP,
83
- tier_value = SKIP,
84
- fee_rule_basis_id = SKIP,
85
- fee_rule_basis_description = SKIP)
79
+ def initialize(tier_min = SKIP, tier_max = SKIP, date_effective = SKIP,
80
+ date_terminated = SKIP, tier_value = SKIP,
81
+ fee_rule_basis_id = SKIP, fee_rule_basis_description = SKIP)
86
82
  @tier_min = tier_min unless tier_min == SKIP
87
83
  @tier_max = tier_max unless tier_max == SKIP
88
84
  @date_effective = date_effective unless date_effective == SKIP
@@ -62,8 +62,7 @@ module ShellDataReportingApIs
62
62
  ]
63
63
  end
64
64
 
65
- def initialize(currency_code = SKIP,
66
- currency_symbol = SKIP,
65
+ def initialize(currency_code = SKIP, currency_symbol = SKIP,
67
66
  invoice_exchange_rate = SKIP,
68
67
  credit_limit_exchange_rate = SKIP)
69
68
  @currency_code = currency_code unless currency_code == SKIP
@@ -0,0 +1,104 @@
1
+ # shell_data_reporting_ap_is
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module ShellDataReportingApIs
7
+ # FleetmanagementV1UserLoggedinuserRequest Model.
8
+ class FleetmanagementV1UserLoggedinuserRequest < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # True/False. The output will include the payer group information only when
13
+ # true is passed.
14
+ # @return [TrueClass | FalseClass]
15
+ attr_accessor :include_payer_group
16
+
17
+ # True/False. The output will include the EID (Electronic Invoice data)
18
+ # information only when true is passed..
19
+ # @return [TrueClass | FalseClass]
20
+ attr_accessor :include_eid_details
21
+
22
+ # Name of the API on which user access needs to be validated
23
+ # Optional.
24
+ # @return [String]
25
+ attr_accessor :requested_api_name
26
+
27
+ # Payer id of the customer.</br>
28
+ # Optional.</br>
29
+ # This input is a search criterion.</br>
30
+ # Note: If PayerId or PayerNumber is provided in the input, the given payer
31
+ # will be available in the output if the user has access to the given payer.
32
+ # @return [Integer]
33
+ attr_accessor :payer_id
34
+
35
+ # PayerNumber of the customer.</br>
36
+ # Optional</br>
37
+ # This input is a search criterion.</br>
38
+ # Note: If Payerid or PayerNumber is provided in the input, the given payer
39
+ # will be available in the output if the user has access to the given payer.
40
+ # @return [String]
41
+ attr_accessor :payer_number
42
+
43
+ # A mapping from model property names to API property names.
44
+ def self.names
45
+ @_hash = {} if @_hash.nil?
46
+ @_hash['include_payer_group'] = 'IncludePayerGroup'
47
+ @_hash['include_eid_details'] = 'IncludeEIDDetails'
48
+ @_hash['requested_api_name'] = 'RequestedAPIName'
49
+ @_hash['payer_id'] = 'PayerId'
50
+ @_hash['payer_number'] = 'PayerNumber'
51
+ @_hash
52
+ end
53
+
54
+ # An array for optional fields
55
+ def self.optionals
56
+ %w[
57
+ include_payer_group
58
+ include_eid_details
59
+ requested_api_name
60
+ payer_id
61
+ payer_number
62
+ ]
63
+ end
64
+
65
+ # An array for nullable fields
66
+ def self.nullables
67
+ %w[
68
+ requested_api_name
69
+ payer_id
70
+ payer_number
71
+ ]
72
+ end
73
+
74
+ def initialize(include_payer_group = false, include_eid_details = false,
75
+ requested_api_name = SKIP, payer_id = SKIP,
76
+ payer_number = SKIP)
77
+ @include_payer_group = include_payer_group unless include_payer_group == SKIP
78
+ @include_eid_details = include_eid_details unless include_eid_details == SKIP
79
+ @requested_api_name = requested_api_name unless requested_api_name == SKIP
80
+ @payer_id = payer_id unless payer_id == SKIP
81
+ @payer_number = payer_number unless payer_number == SKIP
82
+ end
83
+
84
+ # Creates an instance of the object from a hash.
85
+ def self.from_hash(hash)
86
+ return nil unless hash
87
+
88
+ # Extract variables from the hash.
89
+ include_payer_group = hash['IncludePayerGroup'] ||= false
90
+ include_eid_details = hash['IncludeEIDDetails'] ||= false
91
+ requested_api_name =
92
+ hash.key?('RequestedAPIName') ? hash['RequestedAPIName'] : SKIP
93
+ payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
94
+ payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
95
+
96
+ # Create object from extracted values.
97
+ FleetmanagementV1UserLoggedinuserRequest.new(include_payer_group,
98
+ include_eid_details,
99
+ requested_api_name,
100
+ payer_id,
101
+ payer_number)
102
+ end
103
+ end
104
+ end
@@ -47,9 +47,7 @@ module ShellDataReportingApIs
47
47
  []
48
48
  end
49
49
 
50
- def initialize(card_id = SKIP,
51
- pan = SKIP,
52
- expiry_date = SKIP)
50
+ def initialize(card_id = SKIP, pan = SKIP, expiry_date = SKIP)
53
51
  @card_id = card_id unless card_id == SKIP
54
52
  @pan = pan unless pan == SKIP
55
53
  @expiry_date = expiry_date unless expiry_date == SKIP
@@ -167,26 +167,15 @@ module ShellDataReportingApIs
167
167
  ]
168
168
  end
169
169
 
170
- def initialize(account_name = SKIP,
171
- account_number = SKIP,
172
- payer_name = SKIP,
173
- payer_number = SKIP,
174
- card_number = SKIP,
175
- card_group_id = SKIP,
176
- card_group_name = SKIP,
177
- driver_name = SKIP,
178
- license_number = SKIP,
179
- initial_odometer = SKIP,
180
- last_odometer = SKIP,
181
- distance = SKIP,
182
- fuel_consumption = SKIP,
183
- fuel_net_amount = SKIP,
184
- discount = SKIP,
185
- fuel_tax = SKIP,
186
- fuel_volume = SKIP,
187
- gross_non_fuel_expenses = SKIP,
188
- co2_produced = SKIP,
189
- transaction_count = SKIP)
170
+ def initialize(account_name = SKIP, account_number = SKIP,
171
+ payer_name = SKIP, payer_number = SKIP, card_number = SKIP,
172
+ card_group_id = SKIP, card_group_name = SKIP,
173
+ driver_name = SKIP, license_number = SKIP,
174
+ initial_odometer = SKIP, last_odometer = SKIP,
175
+ distance = SKIP, fuel_consumption = SKIP,
176
+ fuel_net_amount = SKIP, discount = SKIP, fuel_tax = SKIP,
177
+ fuel_volume = SKIP, gross_non_fuel_expenses = SKIP,
178
+ co2_produced = SKIP, transaction_count = SKIP)
190
179
  @account_name = account_name unless account_name == SKIP
191
180
  @account_number = account_number unless account_number == SKIP
192
181
  @payer_name = payer_name unless payer_name == SKIP
@@ -73,9 +73,9 @@ module ShellDataReportingApIs
73
73
  # Transactions Period. This is ignored when FromDate is supplied on the
74
74
  # request
75
75
  # Allowed values :
76
- # 1. Last 7 Days
77
- # 2. Last 30 Days
78
- # 3. Last 90 Days
76
+ # 1. Last 7 Days
77
+ # 2. Last 30 Days
78
+ # 3. Last 90 Days
79
79
  # Optional - When FromDate/ToDate and Period are not provided, ‘Last 7 Days’
80
80
  # value is considered as default Period.
81
81
  # @return [Integer]
@@ -120,17 +120,10 @@ module ShellDataReportingApIs
120
120
  []
121
121
  end
122
122
 
123
- def initialize(col_co_id = SKIP,
124
- col_co_code = SKIP,
125
- payer_id = SKIP,
126
- payer_number = SKIP,
127
- accounts = SKIP,
128
- card_group_id = SKIP,
129
- card_group_name = SKIP,
130
- cards = SKIP,
131
- from_date = SKIP,
132
- to_date = SKIP,
133
- period = SKIP)
123
+ def initialize(col_co_id = SKIP, col_co_code = SKIP, payer_id = SKIP,
124
+ payer_number = SKIP, accounts = SKIP, card_group_id = SKIP,
125
+ card_group_name = SKIP, cards = SKIP, from_date = SKIP,
126
+ to_date = SKIP, period = SKIP)
134
127
  @col_co_id = col_co_id unless col_co_id == SKIP
135
128
  @col_co_code = col_co_code unless col_co_code == SKIP
136
129
  @payer_id = payer_id unless payer_id == SKIP
@@ -44,9 +44,7 @@ module ShellDataReportingApIs
44
44
  []
45
45
  end
46
46
 
47
- def initialize(fuel_consumption = SKIP,
48
- error = SKIP,
49
- request_id = SKIP)
47
+ def initialize(fuel_consumption = SKIP, error = SKIP, request_id = SKIP)
50
48
  @fuel_consumption = fuel_consumption unless fuel_consumption == SKIP
51
49
  @error = error unless error == SKIP
52
50
  @request_id = request_id unless request_id == SKIP
@@ -39,8 +39,7 @@ module ShellDataReportingApIs
39
39
  []
40
40
  end
41
41
 
42
- def initialize(invoice_numbers = SKIP,
43
- invoice_dates = SKIP)
42
+ def initialize(invoice_numbers = SKIP, invoice_dates = SKIP)
44
43
  @invoice_numbers = invoice_numbers unless invoice_numbers == SKIP
45
44
  @invoice_dates = invoice_dates unless invoice_dates == SKIP
46
45
  end
@@ -95,12 +95,8 @@ module ShellDataReportingApIs
95
95
  ]
96
96
  end
97
97
 
98
- def initialize(col_co_code = SKIP,
99
- col_co_id = SKIP,
100
- payer_id = SKIP,
101
- payer_number = SKIP,
102
- from_date = SKIP,
103
- to_date = SKIP,
98
+ def initialize(col_co_code = SKIP, col_co_id = SKIP, payer_id = SKIP,
99
+ payer_number = SKIP, from_date = SKIP, to_date = SKIP,
104
100
  accounts = SKIP)
105
101
  @col_co_code = col_co_code unless col_co_code == SKIP
106
102
  @col_co_id = col_co_id unless col_co_id == SKIP
@@ -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
@@ -68,10 +68,8 @@ module ShellDataReportingApIs
68
68
  ]
69
69
  end
70
70
 
71
- def initialize(is_primary = true,
72
- frequency_type = SKIP,
73
- distribution_method = SKIP,
74
- output_type = SKIP)
71
+ def initialize(is_primary = true, frequency_type = SKIP,
72
+ distribution_method = SKIP, output_type = SKIP)
75
73
  @is_primary = is_primary unless is_primary == SKIP
76
74
  @frequency_type = frequency_type unless frequency_type == SKIP
77
75
  @distribution_method = distribution_method unless distribution_method == SKIP
@@ -63,11 +63,8 @@ module ShellDataReportingApIs
63
63
  ]
64
64
  end
65
65
 
66
- def initialize(col_co_code = nil,
67
- payer_number = nil,
68
- account_number = SKIP,
69
- document_reference = SKIP,
70
- invoice_or_soa_number = SKIP)
66
+ def initialize(col_co_code = nil, payer_number = nil, account_number = SKIP,
67
+ document_reference = SKIP, invoice_or_soa_number = SKIP)
71
68
  @col_co_code = col_co_code
72
69
  @payer_number = payer_number
73
70
  @account_number = account_number unless account_number == SKIP
@@ -19,7 +19,7 @@ module ShellDataReportingApIs
19
19
  # Type of the additional document.
20
20
  # Mandatory
21
21
  # Possible values:
22
- # • KSeF - Applicable for Poland market.
22
+ # • KSeF - Applicable for Poland market.
23
23
  # @return [String]
24
24
  attr_accessor :type
25
25
 
@@ -54,9 +54,7 @@ module ShellDataReportingApIs
54
54
  ]
55
55
  end
56
56
 
57
- def initialize(reference = SKIP,
58
- type = SKIP,
59
- is_applicable = SKIP)
57
+ def initialize(reference = SKIP, type = SKIP, is_applicable = SKIP)
60
58
  @reference = reference unless reference == SKIP
61
59
  @type = type unless type == SKIP
62
60
  @is_applicable = is_applicable unless is_applicable == SKIP