data-and-reporting-sdk 1.2.0 → 2.0.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 (220) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +66 -35
  4. data/lib/shell_data_reporting_ap_is/api_helper.rb +2 -2
  5. data/lib/shell_data_reporting_ap_is/client.rb +11 -12
  6. data/lib/shell_data_reporting_ap_is/configuration.rb +23 -25
  7. data/lib/shell_data_reporting_ap_is/controllers/base_controller.rb +3 -9
  8. data/lib/shell_data_reporting_ap_is/controllers/customer_controller.rb +251 -288
  9. data/lib/shell_data_reporting_ap_is/controllers/invoice_controller.rb +20 -20
  10. data/lib/shell_data_reporting_ap_is/controllers/o_auth_authorization_controller.rb +8 -8
  11. data/lib/shell_data_reporting_ap_is/controllers/transaction_controller.rb +204 -259
  12. data/lib/shell_data_reporting_ap_is/exceptions/api_exception.rb +13 -2
  13. data/lib/shell_data_reporting_ap_is/exceptions/error_object_exception.rb +20 -5
  14. data/lib/shell_data_reporting_ap_is/exceptions/o_auth_provider_exception.rb +21 -5
  15. data/lib/shell_data_reporting_ap_is/http/auth/{bearer_token.rb → o_auth2.rb} +28 -27
  16. data/lib/shell_data_reporting_ap_is/http/http_call_back.rb +2 -2
  17. data/lib/shell_data_reporting_ap_is/http/http_method_enum.rb +2 -2
  18. data/lib/shell_data_reporting_ap_is/http/http_request.rb +2 -2
  19. data/lib/shell_data_reporting_ap_is/http/http_response.rb +2 -2
  20. data/lib/shell_data_reporting_ap_is/http/proxy_settings.rb +13 -0
  21. data/lib/shell_data_reporting_ap_is/models/account_access.rb +19 -2
  22. data/lib/shell_data_reporting_ap_is/models/account_req.rb +84 -0
  23. data/lib/shell_data_reporting_ap_is/models/account_request.rb +29 -3
  24. data/lib/shell_data_reporting_ap_is/models/account_res.rb +158 -0
  25. data/lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb +81 -2
  26. data/lib/shell_data_reporting_ap_is/models/accounts.rb +15 -2
  27. data/lib/shell_data_reporting_ap_is/models/address.rb +23 -2
  28. data/lib/shell_data_reporting_ap_is/models/associated_account.rb +20 -2
  29. data/lib/shell_data_reporting_ap_is/models/audit_array_elements.rb +71 -0
  30. data/lib/shell_data_reporting_ap_is/models/audit_req.rb +84 -0
  31. data/lib/shell_data_reporting_ap_is/models/audit_request.rb +44 -35
  32. data/lib/shell_data_reporting_ap_is/models/audit_response.rb +98 -47
  33. data/lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb +73 -4
  34. data/lib/shell_data_reporting_ap_is/models/bank_account.rb +24 -2
  35. data/lib/shell_data_reporting_ap_is/models/base_model.rb +2 -2
  36. data/lib/shell_data_reporting_ap_is/models/bonus_configuration.rb +47 -2
  37. data/lib/shell_data_reporting_ap_is/models/bonus_history.rb +49 -2
  38. data/lib/shell_data_reporting_ap_is/models/card_day_time_restrictions.rb +19 -2
  39. data/lib/shell_data_reporting_ap_is/models/card_exceptions.rb +29 -2
  40. data/lib/shell_data_reporting_ap_is/models/card_group_req.rb +84 -0
  41. data/lib/shell_data_reporting_ap_is/models/card_group_request.rb +21 -27
  42. data/lib/shell_data_reporting_ap_is/models/card_group_res.rb +158 -0
  43. data/lib/shell_data_reporting_ap_is/models/card_group_response_card_groups_items.rb +36 -2
  44. data/lib/shell_data_reporting_ap_is/models/card_type_req.rb +62 -0
  45. data/lib/shell_data_reporting_ap_is/models/card_type_request.rb +21 -2
  46. data/lib/shell_data_reporting_ap_is/models/card_type_res.rb +91 -0
  47. data/lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb +55 -3
  48. data/lib/shell_data_reporting_ap_is/models/card_usage_restrictions.rb +40 -2
  49. data/lib/shell_data_reporting_ap_is/models/card_usage_summary_req.rb +62 -0
  50. data/lib/shell_data_reporting_ap_is/models/card_usage_summary_request.rb +21 -2
  51. data/lib/shell_data_reporting_ap_is/models/card_usage_summary_res.rb +116 -0
  52. data/lib/shell_data_reporting_ap_is/models/card_usage_summary_response.rb +16 -22
  53. data/lib/shell_data_reporting_ap_is/models/col_co_access.rb +20 -4
  54. data/lib/shell_data_reporting_ap_is/models/current_volume.rb +18 -2
  55. data/lib/shell_data_reporting_ap_is/models/customer_contract.rb +15 -2
  56. data/lib/shell_data_reporting_ap_is/models/customer_detail_request.rb +20 -4
  57. data/lib/shell_data_reporting_ap_is/models/customer_detail_response.rb +43 -27
  58. data/lib/shell_data_reporting_ap_is/models/customer_price_list_req.rb +62 -0
  59. data/lib/shell_data_reporting_ap_is/models/customer_price_list_request.rb +24 -2
  60. data/lib/shell_data_reporting_ap_is/models/customer_price_list_res.rb +91 -0
  61. data/lib/shell_data_reporting_ap_is/models/customer_price_list_response.rb +17 -26
  62. data/lib/shell_data_reporting_ap_is/models/customer_req.rb +62 -0
  63. data/lib/shell_data_reporting_ap_is/models/customer_res.rb +91 -0
  64. data/lib/shell_data_reporting_ap_is/models/delivery_addresses.rb +30 -2
  65. data/lib/shell_data_reporting_ap_is/models/eid_access.rb +17 -3
  66. data/lib/shell_data_reporting_ap_is/models/eid_document.rb +23 -2
  67. data/lib/shell_data_reporting_ap_is/models/eid_document_response.rb +19 -2
  68. data/lib/shell_data_reporting_ap_is/models/eid_download_req.rb +18 -2
  69. data/lib/shell_data_reporting_ap_is/models/eid_download_request.rb +14 -2
  70. data/lib/shell_data_reporting_ap_is/models/eid_search_req.rb +21 -2
  71. data/lib/shell_data_reporting_ap_is/models/eid_search_request.rb +15 -2
  72. data/lib/shell_data_reporting_ap_is/models/error_details.rb +16 -2
  73. data/lib/shell_data_reporting_ap_is/models/exception_product.rb +14 -2
  74. data/lib/shell_data_reporting_ap_is/models/exception_site_location.rb +14 -2
  75. data/lib/shell_data_reporting_ap_is/models/fee_item.rb +99 -2
  76. data/lib/shell_data_reporting_ap_is/models/fee_item_summary_all_of0.rb +29 -2
  77. data/lib/shell_data_reporting_ap_is/models/fee_rule_location.rb +21 -2
  78. data/lib/shell_data_reporting_ap_is/models/fee_rule_product.rb +18 -2
  79. data/lib/shell_data_reporting_ap_is/models/fee_rule_tier.rb +16 -2
  80. data/lib/shell_data_reporting_ap_is/models/fee_summary_response.rb +67 -34
  81. data/lib/shell_data_reporting_ap_is/models/fees_fee_rule_tiers.rb +20 -2
  82. data/lib/shell_data_reporting_ap_is/models/filters.rb +522 -0
  83. data/lib/shell_data_reporting_ap_is/models/{finance_currency.rb → finance_currency2.rb} +24 -9
  84. data/lib/shell_data_reporting_ap_is/models/fleetmanagement_v1_user_loggedinuser_request.rb +18 -2
  85. data/lib/shell_data_reporting_ap_is/models/fuel_consumption_card.rb +15 -2
  86. data/lib/shell_data_reporting_ap_is/models/fuel_consumption_data.rb +32 -2
  87. data/lib/shell_data_reporting_ap_is/models/fuel_consumption_req.rb +62 -0
  88. data/lib/shell_data_reporting_ap_is/models/fuel_consumption_request.rb +21 -2
  89. data/lib/shell_data_reporting_ap_is/models/fuel_consumption_response.rb +68 -29
  90. data/lib/shell_data_reporting_ap_is/models/invoice_dates_data.rb +15 -2
  91. data/lib/shell_data_reporting_ap_is/models/invoice_dates_request.rb +14 -2
  92. data/lib/shell_data_reporting_ap_is/models/invoice_dates_request_filters.rb +18 -2
  93. data/lib/shell_data_reporting_ap_is/models/invoice_dates_response_data.rb +15 -2
  94. data/lib/shell_data_reporting_ap_is/models/invoice_distribution_method.rb +17 -2
  95. data/lib/shell_data_reporting_ap_is/models/invoice_download_req.rb +18 -2
  96. data/lib/shell_data_reporting_ap_is/models/invoice_download_request.rb +14 -2
  97. data/lib/shell_data_reporting_ap_is/models/invoice_search_additional_document.rb +16 -2
  98. data/lib/shell_data_reporting_ap_is/models/invoice_search_details.rb +95 -2
  99. data/lib/shell_data_reporting_ap_is/models/invoice_search_request.rb +16 -2
  100. data/lib/shell_data_reporting_ap_is/models/invoice_search_request_filters.rb +32 -2
  101. data/lib/shell_data_reporting_ap_is/models/invoice_search_response.rb +18 -2
  102. data/lib/shell_data_reporting_ap_is/models/invoice_summary_details.rb +23 -2
  103. data/lib/shell_data_reporting_ap_is/models/invoice_summary_request.rb +14 -2
  104. data/lib/shell_data_reporting_ap_is/models/invoice_summary_request_filters.rb +32 -2
  105. data/lib/shell_data_reporting_ap_is/models/invoice_summary_response.rb +15 -2
  106. data/lib/shell_data_reporting_ap_is/models/invoices_summaries.rb +33 -2
  107. data/lib/shell_data_reporting_ap_is/models/last_statement_of_account.rb +47 -2
  108. data/lib/shell_data_reporting_ap_is/models/last_statement_of_account2.rb +457 -0
  109. data/lib/shell_data_reporting_ap_is/models/location.rb +74 -0
  110. data/lib/shell_data_reporting_ap_is/models/logged_in_user_req.rb +63 -0
  111. data/lib/shell_data_reporting_ap_is/models/logged_in_user_res.rb +91 -0
  112. data/lib/shell_data_reporting_ap_is/models/logged_in_user_response.rb +37 -26
  113. data/lib/shell_data_reporting_ap_is/models/monthly_invoice_trend.rb +19 -2
  114. data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_req.rb +84 -0
  115. data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_request.rb +32 -2
  116. data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_request_accounts_items.rb +16 -2
  117. data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_res.rb +158 -0
  118. data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_response.rb +16 -51
  119. data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_response_transactions_items.rb +167 -2
  120. data/lib/shell_data_reporting_ap_is/models/o_auth_provider_error_enum.rb +2 -2
  121. data/lib/shell_data_reporting_ap_is/models/o_auth_token.rb +2 -2
  122. data/lib/shell_data_reporting_ap_is/models/past_statement_of_accounts.rb +60 -2
  123. data/lib/shell_data_reporting_ap_is/models/payer_access.rb +21 -2
  124. data/lib/shell_data_reporting_ap_is/models/payer_details.rb +158 -6
  125. data/lib/shell_data_reporting_ap_is/models/payer_req.rb +84 -0
  126. data/lib/shell_data_reporting_ap_is/models/payer_request.rb +20 -29
  127. data/lib/shell_data_reporting_ap_is/models/payer_res.rb +158 -0
  128. data/lib/shell_data_reporting_ap_is/models/payers.rb +18 -2
  129. data/lib/shell_data_reporting_ap_is/models/payments_since_last_soa.rb +42 -2
  130. data/lib/shell_data_reporting_ap_is/models/pin_advice_types.rb +17 -2
  131. data/lib/shell_data_reporting_ap_is/models/price_list.rb +47 -2
  132. data/lib/shell_data_reporting_ap_is/models/price_trans_summary_req.rb +62 -0
  133. data/lib/shell_data_reporting_ap_is/models/price_trans_summary_request.rb +41 -2
  134. data/lib/shell_data_reporting_ap_is/models/price_transaction_req.rb +84 -0
  135. data/lib/shell_data_reporting_ap_is/models/price_transaction_request.rb +44 -2
  136. data/lib/shell_data_reporting_ap_is/models/priced_request_data.rb +78 -13
  137. data/lib/shell_data_reporting_ap_is/models/priced_response_data.rb +223 -2
  138. data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_resp.rb +116 -0
  139. data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_response_transactions_summary_items.rb +30 -2
  140. data/lib/shell_data_reporting_ap_is/models/priced_transaction_items_location_items.rb +14 -2
  141. data/lib/shell_data_reporting_ap_is/models/priced_transaction_req_v2_invoice_status_enum.rb +2 -2
  142. data/lib/shell_data_reporting_ap_is/models/priced_transaction_req_v2_period_enum.rb +2 -2
  143. data/lib/shell_data_reporting_ap_is/models/priced_transaction_req_v2_sort_order_enum.rb +2 -2
  144. data/lib/shell_data_reporting_ap_is/models/priced_transaction_request_v2.rb +18 -7
  145. data/lib/shell_data_reporting_ap_is/models/priced_transaction_res.rb +158 -0
  146. data/lib/shell_data_reporting_ap_is/models/priced_transaction_resp_v2_refund_flag_enum.rb +2 -2
  147. data/lib/shell_data_reporting_ap_is/models/priced_transaction_response.rb +14 -2
  148. data/lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb +169 -24
  149. data/lib/shell_data_reporting_ap_is/models/priced_transaction_response_v2.rb +17 -2
  150. data/lib/shell_data_reporting_ap_is/models/pricing_current_volume.rb +20 -2
  151. data/lib/shell_data_reporting_ap_is/models/pricing_history.rb +18 -2
  152. data/lib/shell_data_reporting_ap_is/models/purchase_categories.rb +16 -2
  153. data/lib/shell_data_reporting_ap_is/models/recent_transaction_req.rb +28 -2
  154. data/lib/shell_data_reporting_ap_is/models/recent_transaction_request.rb +15 -2
  155. data/lib/shell_data_reporting_ap_is/models/recent_transactions.rb +100 -2
  156. data/lib/shell_data_reporting_ap_is/models/recent_transactions_response.rb +17 -2
  157. data/lib/shell_data_reporting_ap_is/models/role.rb +19 -2
  158. data/lib/shell_data_reporting_ap_is/models/search_doc_req.rb +30 -2
  159. data/lib/shell_data_reporting_ap_is/models/search_documents_invoice.rb +26 -2
  160. data/lib/shell_data_reporting_ap_is/models/search_documents_request.rb +15 -2
  161. data/lib/shell_data_reporting_ap_is/models/search_documents_response.rb +19 -2
  162. data/lib/shell_data_reporting_ap_is/models/search_soa_req.rb +22 -2
  163. data/lib/shell_data_reporting_ap_is/models/search_statement_of_account.rb +29 -2
  164. data/lib/shell_data_reporting_ap_is/models/search_statement_of_account_request.rb +15 -2
  165. data/lib/shell_data_reporting_ap_is/models/search_statement_of_account_response.rb +18 -2
  166. data/lib/shell_data_reporting_ap_is/models/site_location.rb +14 -2
  167. data/lib/shell_data_reporting_ap_is/models/statement_of_account_request.rb +14 -2
  168. data/lib/shell_data_reporting_ap_is/models/statement_of_account_request_filters.rb +26 -2
  169. data/lib/shell_data_reporting_ap_is/models/statement_of_account_resp.rb +27 -9
  170. data/lib/shell_data_reporting_ap_is/models/statement_of_account_response.rb +15 -2
  171. data/lib/shell_data_reporting_ap_is/models/tier.rb +23 -2
  172. data/lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb +132 -5
  173. data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_req.rb +62 -0
  174. data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_request.rb +27 -2
  175. data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_res.rb +116 -0
  176. data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_response.rb +18 -23
  177. data/lib/shell_data_reporting_ap_is/models/transaction_fees_req.rb +84 -0
  178. data/lib/shell_data_reporting_ap_is/models/transaction_fees_request.rb +30 -24
  179. data/lib/shell_data_reporting_ap_is/models/transaction_fees_res.rb +158 -0
  180. data/lib/shell_data_reporting_ap_is/models/transaction_fees_summary_req.rb +62 -0
  181. data/lib/shell_data_reporting_ap_is/models/update_odometer.rb +16 -2
  182. data/lib/shell_data_reporting_ap_is/models/update_odometer_reference.rb +16 -2
  183. data/lib/shell_data_reporting_ap_is/models/update_odometer_request.rb +20 -2
  184. data/lib/shell_data_reporting_ap_is/models/update_odometer_resp.rb +116 -0
  185. data/lib/shell_data_reporting_ap_is/models/update_odometer_response.rb +18 -23
  186. data/lib/shell_data_reporting_ap_is/models/usage_summary.rb +25 -2
  187. data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_req.rb +62 -0
  188. data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_request.rb +19 -2
  189. data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_res.rb +116 -0
  190. data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_response.rb +19 -23
  191. data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_req.rb +62 -0
  192. data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_request.rb +17 -2
  193. data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_res.rb +91 -0
  194. data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_response.rb +40 -20
  195. data/lib/shell_data_reporting_ap_is/models/warning.rb +69 -0
  196. data/lib/shell_data_reporting_ap_is/utilities/date_time_helper.rb +2 -2
  197. data/lib/shell_data_reporting_ap_is/utilities/file_wrapper.rb +16 -4
  198. data/lib/shell_data_reporting_ap_is/utilities/union_type_lookup.rb +2 -2
  199. data/lib/shell_data_reporting_ap_is.rb +54 -29
  200. data/test/controllers/controller_test_base.rb +2 -2
  201. data/test/controllers/test_invoice_controller.rb +3 -12
  202. data/test/controllers/test_transaction_controller.rb +3 -5
  203. data/test/http_response_catcher.rb +3 -3
  204. metadata +50 -26
  205. data/lib/shell_data_reporting_ap_is/exceptions/default_error_exception.rb +0 -32
  206. data/lib/shell_data_reporting_ap_is/exceptions/error_user_access_error1_exception.rb +0 -32
  207. data/lib/shell_data_reporting_ap_is/http/auth/basic_auth.rb +0 -50
  208. data/lib/shell_data_reporting_ap_is/models/account_response.rb +0 -107
  209. data/lib/shell_data_reporting_ap_is/models/card_group_response.rb +0 -105
  210. data/lib/shell_data_reporting_ap_is/models/card_type_response.rb +0 -77
  211. data/lib/shell_data_reporting_ap_is/models/card_type_response_error.rb +0 -59
  212. data/lib/shell_data_reporting_ap_is/models/default_error_fault.rb +0 -59
  213. data/lib/shell_data_reporting_ap_is/models/default_error_fault_detail.rb +0 -50
  214. data/lib/shell_data_reporting_ap_is/models/error_status.rb +0 -69
  215. data/lib/shell_data_reporting_ap_is/models/error_user_access.rb +0 -50
  216. data/lib/shell_data_reporting_ap_is/models/error_user_access_error.rb +0 -59
  217. data/lib/shell_data_reporting_ap_is/models/logged_in_user_request.rb +0 -105
  218. data/lib/shell_data_reporting_ap_is/models/payer_response.rb +0 -111
  219. data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_response.rb +0 -77
  220. data/lib/shell_data_reporting_ap_is/models/transaction_fees_response.rb +0 -107
@@ -1,7 +1,7 @@
1
1
  # shell_data_reporting_ap_is
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ShellDataReportingApIs
7
7
  # EIDSearchRequest Model.
@@ -64,5 +64,18 @@ module ShellDataReportingApIs
64
64
  page,
65
65
  page_size)
66
66
  end
67
+
68
+ # Provides a human-readable string representation of the object.
69
+ def to_s
70
+ class_name = self.class.name.split('::').last
71
+ "<#{class_name} filters: #{@filters}, page: #{@page}, page_size: #{@page_size}>"
72
+ end
73
+
74
+ # Provides a debugging-friendly string with detailed object information.
75
+ def inspect
76
+ class_name = self.class.name.split('::').last
77
+ "<#{class_name} filters: #{@filters.inspect}, page: #{@page.inspect}, page_size:"\
78
+ " #{@page_size.inspect}>"
79
+ end
67
80
  end
68
81
  end
@@ -1,7 +1,7 @@
1
1
  # shell_data_reporting_ap_is
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ShellDataReportingApIs
7
7
  # ErrorDetails Model.
@@ -75,5 +75,19 @@ module ShellDataReportingApIs
75
75
  detail,
76
76
  additional_info)
77
77
  end
78
+
79
+ # Provides a human-readable string representation of the object.
80
+ def to_s
81
+ class_name = self.class.name.split('::').last
82
+ "<#{class_name} code: #{@code}, title: #{@title}, detail: #{@detail}, additional_info:"\
83
+ " #{@additional_info}>"
84
+ end
85
+
86
+ # Provides a debugging-friendly string with detailed object information.
87
+ def inspect
88
+ class_name = self.class.name.split('::').last
89
+ "<#{class_name} code: #{@code.inspect}, title: #{@title.inspect}, detail:"\
90
+ " #{@detail.inspect}, additional_info: #{@additional_info.inspect}>"
91
+ end
78
92
  end
79
93
  end
@@ -1,7 +1,7 @@
1
1
  # shell_data_reporting_ap_is
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ShellDataReportingApIs
7
7
  # ExceptionProduct Model.
@@ -60,5 +60,17 @@ module ShellDataReportingApIs
60
60
  ExceptionProduct.new(productid,
61
61
  product_code)
62
62
  end
63
+
64
+ # Provides a human-readable string representation of the object.
65
+ def to_s
66
+ class_name = self.class.name.split('::').last
67
+ "<#{class_name} productid: #{@productid}, product_code: #{@product_code}>"
68
+ end
69
+
70
+ # Provides a debugging-friendly string with detailed object information.
71
+ def inspect
72
+ class_name = self.class.name.split('::').last
73
+ "<#{class_name} productid: #{@productid.inspect}, product_code: #{@product_code.inspect}>"
74
+ end
63
75
  end
64
76
  end
@@ -1,7 +1,7 @@
1
1
  # shell_data_reporting_ap_is
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ShellDataReportingApIs
7
7
  # Geography Location entity for Site Location
@@ -58,5 +58,17 @@ module ShellDataReportingApIs
58
58
  ExceptionSiteLocation.new(lat,
59
59
  lng)
60
60
  end
61
+
62
+ # Provides a human-readable string representation of the object.
63
+ def to_s
64
+ class_name = self.class.name.split('::').last
65
+ "<#{class_name} lat: #{@lat}, lng: #{@lng}>"
66
+ end
67
+
68
+ # Provides a debugging-friendly string with detailed object information.
69
+ def inspect
70
+ class_name = self.class.name.split('::').last
71
+ "<#{class_name} lat: #{@lat.inspect}, lng: #{@lng.inspect}>"
72
+ end
61
73
  end
62
74
  end
@@ -1,7 +1,7 @@
1
1
  # shell_data_reporting_ap_is
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ShellDataReportingApIs
7
7
  # FeeItem Model.
@@ -937,5 +937,102 @@ module ShellDataReportingApIs
937
937
  emboss_text,
938
938
  vrn)
939
939
  end
940
+
941
+ # Provides a human-readable string representation of the object.
942
+ def to_s
943
+ class_name = self.class.name.split('::').last
944
+ "<#{class_name} fee_item_id: #{@fee_item_id}, account_id: #{@account_id}, account_number:"\
945
+ " #{@account_number}, account_short_name: #{@account_short_name}, invoice_account_id:"\
946
+ " #{@invoice_account_id}, invoice_account_number: #{@invoice_account_number},"\
947
+ " invoice_account_short_name: #{@invoice_account_short_name}, payer_id: #{@payer_id},"\
948
+ " payer_number: #{@payer_number}, payer_short_name: #{@payer_short_name}, card_id:"\
949
+ " #{@card_id}, pan: #{@pan}, card_group_id: #{@card_group_id}, card_group_name:"\
950
+ " #{@card_group_name}, fee_type_id: #{@fee_type_id}, fee_type: #{@fee_type}, fee_type_group:"\
951
+ " #{@fee_type_group}, fee_rule_id: #{@fee_rule_id}, fee_rule_description:"\
952
+ " #{@fee_rule_description}, fee_rule_tiers: #{@fee_rule_tiers}, fee_item_date:"\
953
+ " #{@fee_item_date}, fee_item_time: #{@fee_item_time}, is_manual: #{@is_manual},"\
954
+ " is_cancelled: #{@is_cancelled}, customer_currency_code: #{@customer_currency_code},"\
955
+ " customer_currency_symbol: #{@customer_currency_symbol}, product_id: #{@product_id},"\
956
+ " product_code: #{@product_code}, product_name: #{@product_name}, product_group_id:"\
957
+ " #{@product_group_id}, product_group_name: #{@product_group_name}, line_item_description:"\
958
+ " #{@line_item_description}, quantity: #{@quantity}, is_invoiced: #{@is_invoiced},"\
959
+ " vat_country_code: #{@vat_country_code}, vat_country_name: #{@vat_country_name},"\
960
+ " vat_percentage: #{@vat_percentage}, vat_category_id: #{@vat_category_id},"\
961
+ " vat_category_description: #{@vat_category_description}, legislative_region_id:"\
962
+ " #{@legislative_region_id}, legislative_region_name: #{@legislative_region_name},"\
963
+ " system_entry_date: #{@system_entry_date}, system_entry_time: #{@system_entry_time},"\
964
+ " col_co_net_amount: #{@col_co_net_amount}, col_co_vat_amount: #{@col_co_vat_amount},"\
965
+ " col_co_gross_amount: #{@col_co_gross_amount}, interim_invoice_id: #{@interim_invoice_id},"\
966
+ " interim_invoice_number: #{@interim_invoice_number}, invoice_id: #{@invoice_id},"\
967
+ " invoice_number: #{@invoice_number}, invoice_date: #{@invoice_date},"\
968
+ " customer_exchange_rate: #{@customer_exchange_rate}, invoice_net_amount:"\
969
+ " #{@invoice_net_amount}, invoice_gross_amount: #{@invoice_gross_amount},"\
970
+ " invoice_vat_amount: #{@invoice_vat_amount}, reverse_charge: #{@reverse_charge},"\
971
+ " original_fee_item_id: #{@original_fee_item_id}, original_currency_code:"\
972
+ " #{@original_currency_code}, original_currency_symbol: #{@original_currency_symbol},"\
973
+ " original_unit_price: #{@original_unit_price}, original_net_amount:"\
974
+ " #{@original_net_amount}, original_vat_amount: #{@original_vat_amount},"\
975
+ " original_gross_amount: #{@original_gross_amount}, original_exchange_rate:"\
976
+ " #{@original_exchange_rate}, original_legislative_region_id:"\
977
+ " #{@original_legislative_region_id}, original_legislative_region_name:"\
978
+ " #{@original_legislative_region_name}, frequency: #{@frequency},"\
979
+ " fee_item_card_level_breakup: #{@fee_item_card_level_breakup},"\
980
+ " original_fee_item_invoice_id: #{@original_fee_item_invoice_id},"\
981
+ " original_fee_item_invoice_number: #{@original_fee_item_invoice_number},"\
982
+ " original_fee_item_invoice_date: #{@original_fee_item_invoice_date}, driver_name:"\
983
+ " #{@driver_name}, emboss_text: #{@emboss_text}, vrn: #{@vrn}>"
984
+ end
985
+
986
+ # Provides a debugging-friendly string with detailed object information.
987
+ def inspect
988
+ class_name = self.class.name.split('::').last
989
+ "<#{class_name} fee_item_id: #{@fee_item_id.inspect}, account_id: #{@account_id.inspect},"\
990
+ " account_number: #{@account_number.inspect}, account_short_name:"\
991
+ " #{@account_short_name.inspect}, invoice_account_id: #{@invoice_account_id.inspect},"\
992
+ " invoice_account_number: #{@invoice_account_number.inspect}, invoice_account_short_name:"\
993
+ " #{@invoice_account_short_name.inspect}, payer_id: #{@payer_id.inspect}, payer_number:"\
994
+ " #{@payer_number.inspect}, payer_short_name: #{@payer_short_name.inspect}, card_id:"\
995
+ " #{@card_id.inspect}, pan: #{@pan.inspect}, card_group_id: #{@card_group_id.inspect},"\
996
+ " card_group_name: #{@card_group_name.inspect}, fee_type_id: #{@fee_type_id.inspect},"\
997
+ " fee_type: #{@fee_type.inspect}, fee_type_group: #{@fee_type_group.inspect}, fee_rule_id:"\
998
+ " #{@fee_rule_id.inspect}, fee_rule_description: #{@fee_rule_description.inspect},"\
999
+ " fee_rule_tiers: #{@fee_rule_tiers.inspect}, fee_item_date: #{@fee_item_date.inspect},"\
1000
+ " fee_item_time: #{@fee_item_time.inspect}, is_manual: #{@is_manual.inspect}, is_cancelled:"\
1001
+ " #{@is_cancelled.inspect}, customer_currency_code: #{@customer_currency_code.inspect},"\
1002
+ " customer_currency_symbol: #{@customer_currency_symbol.inspect}, product_id:"\
1003
+ " #{@product_id.inspect}, product_code: #{@product_code.inspect}, product_name:"\
1004
+ " #{@product_name.inspect}, product_group_id: #{@product_group_id.inspect},"\
1005
+ " product_group_name: #{@product_group_name.inspect}, line_item_description:"\
1006
+ " #{@line_item_description.inspect}, quantity: #{@quantity.inspect}, is_invoiced:"\
1007
+ " #{@is_invoiced.inspect}, vat_country_code: #{@vat_country_code.inspect}, vat_country_name:"\
1008
+ " #{@vat_country_name.inspect}, vat_percentage: #{@vat_percentage.inspect}, vat_category_id:"\
1009
+ " #{@vat_category_id.inspect}, vat_category_description:"\
1010
+ " #{@vat_category_description.inspect}, legislative_region_id:"\
1011
+ " #{@legislative_region_id.inspect}, legislative_region_name:"\
1012
+ " #{@legislative_region_name.inspect}, system_entry_date: #{@system_entry_date.inspect},"\
1013
+ " system_entry_time: #{@system_entry_time.inspect}, col_co_net_amount:"\
1014
+ " #{@col_co_net_amount.inspect}, col_co_vat_amount: #{@col_co_vat_amount.inspect},"\
1015
+ " col_co_gross_amount: #{@col_co_gross_amount.inspect}, interim_invoice_id:"\
1016
+ " #{@interim_invoice_id.inspect}, interim_invoice_number:"\
1017
+ " #{@interim_invoice_number.inspect}, invoice_id: #{@invoice_id.inspect}, invoice_number:"\
1018
+ " #{@invoice_number.inspect}, invoice_date: #{@invoice_date.inspect},"\
1019
+ " customer_exchange_rate: #{@customer_exchange_rate.inspect}, invoice_net_amount:"\
1020
+ " #{@invoice_net_amount.inspect}, invoice_gross_amount: #{@invoice_gross_amount.inspect},"\
1021
+ " invoice_vat_amount: #{@invoice_vat_amount.inspect}, reverse_charge:"\
1022
+ " #{@reverse_charge.inspect}, original_fee_item_id: #{@original_fee_item_id.inspect},"\
1023
+ " original_currency_code: #{@original_currency_code.inspect}, original_currency_symbol:"\
1024
+ " #{@original_currency_symbol.inspect}, original_unit_price:"\
1025
+ " #{@original_unit_price.inspect}, original_net_amount: #{@original_net_amount.inspect},"\
1026
+ " original_vat_amount: #{@original_vat_amount.inspect}, original_gross_amount:"\
1027
+ " #{@original_gross_amount.inspect}, original_exchange_rate:"\
1028
+ " #{@original_exchange_rate.inspect}, original_legislative_region_id:"\
1029
+ " #{@original_legislative_region_id.inspect}, original_legislative_region_name:"\
1030
+ " #{@original_legislative_region_name.inspect}, frequency: #{@frequency.inspect},"\
1031
+ " fee_item_card_level_breakup: #{@fee_item_card_level_breakup.inspect},"\
1032
+ " original_fee_item_invoice_id: #{@original_fee_item_invoice_id.inspect},"\
1033
+ " original_fee_item_invoice_number: #{@original_fee_item_invoice_number.inspect},"\
1034
+ " original_fee_item_invoice_date: #{@original_fee_item_invoice_date.inspect}, driver_name:"\
1035
+ " #{@driver_name.inspect}, emboss_text: #{@emboss_text.inspect}, vrn: #{@vrn.inspect}>"
1036
+ end
940
1037
  end
941
1038
  end
@@ -1,7 +1,7 @@
1
1
  # shell_data_reporting_ap_is
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ShellDataReportingApIs
7
7
  # FeeItemSummaryAllOf0 Model.
@@ -184,5 +184,32 @@ module ShellDataReportingApIs
184
184
  invoice_currency_code,
185
185
  invoice_currency_symbol)
186
186
  end
187
+
188
+ # Provides a human-readable string representation of the object.
189
+ def to_s
190
+ class_name = self.class.name.split('::').last
191
+ "<#{class_name} fee_type_group: #{@fee_type_group}, fee_type_id: #{@fee_type_id},"\
192
+ " product_id: #{@product_id}, product_code: #{@product_code}, product_name:"\
193
+ " #{@product_name}, product_group_id: #{@product_group_id}, product_group_name:"\
194
+ " #{@product_group_name}, total_quantity: #{@total_quantity}, total_invoice_net_amount:"\
195
+ " #{@total_invoice_net_amount}, total_invoice_gross_amount: #{@total_invoice_gross_amount},"\
196
+ " total_invoice_vat_amount: #{@total_invoice_vat_amount}, invoice_currency_code:"\
197
+ " #{@invoice_currency_code}, invoice_currency_symbol: #{@invoice_currency_symbol}>"
198
+ end
199
+
200
+ # Provides a debugging-friendly string with detailed object information.
201
+ def inspect
202
+ class_name = self.class.name.split('::').last
203
+ "<#{class_name} fee_type_group: #{@fee_type_group.inspect}, fee_type_id:"\
204
+ " #{@fee_type_id.inspect}, product_id: #{@product_id.inspect}, product_code:"\
205
+ " #{@product_code.inspect}, product_name: #{@product_name.inspect}, product_group_id:"\
206
+ " #{@product_group_id.inspect}, product_group_name: #{@product_group_name.inspect},"\
207
+ " total_quantity: #{@total_quantity.inspect}, total_invoice_net_amount:"\
208
+ " #{@total_invoice_net_amount.inspect}, total_invoice_gross_amount:"\
209
+ " #{@total_invoice_gross_amount.inspect}, total_invoice_vat_amount:"\
210
+ " #{@total_invoice_vat_amount.inspect}, invoice_currency_code:"\
211
+ " #{@invoice_currency_code.inspect}, invoice_currency_symbol:"\
212
+ " #{@invoice_currency_symbol.inspect}>"
213
+ end
187
214
  end
188
215
  end
@@ -1,7 +1,7 @@
1
1
  # shell_data_reporting_ap_is
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ShellDataReportingApIs
7
7
  # FeeRuleLocation Model.
@@ -143,5 +143,24 @@ module ShellDataReportingApIs
143
143
  site_id,
144
144
  site_name)
145
145
  end
146
+
147
+ # Provides a human-readable string representation of the object.
148
+ def to_s
149
+ class_name = self.class.name.split('::').last
150
+ "<#{class_name} delco_id: #{@delco_id}, country: #{@country}, country_code:"\
151
+ " #{@country_code}, fuel_network_id: #{@fuel_network_id}, network_name: #{@network_name},"\
152
+ " site_group_id: #{@site_group_id}, site_group_name: #{@site_group_name}, site_code:"\
153
+ " #{@site_code}, site_id: #{@site_id}, site_name: #{@site_name}>"
154
+ end
155
+
156
+ # Provides a debugging-friendly string with detailed object information.
157
+ def inspect
158
+ class_name = self.class.name.split('::').last
159
+ "<#{class_name} delco_id: #{@delco_id.inspect}, country: #{@country.inspect}, country_code:"\
160
+ " #{@country_code.inspect}, fuel_network_id: #{@fuel_network_id.inspect}, network_name:"\
161
+ " #{@network_name.inspect}, site_group_id: #{@site_group_id.inspect}, site_group_name:"\
162
+ " #{@site_group_name.inspect}, site_code: #{@site_code.inspect}, site_id:"\
163
+ " #{@site_id.inspect}, site_name: #{@site_name.inspect}>"
164
+ end
146
165
  end
147
166
  end
@@ -1,7 +1,7 @@
1
1
  # shell_data_reporting_ap_is
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ShellDataReportingApIs
7
7
  # FeeRuleProduct Model.
@@ -91,5 +91,21 @@ module ShellDataReportingApIs
91
91
  product_id,
92
92
  product_name)
93
93
  end
94
+
95
+ # Provides a human-readable string representation of the object.
96
+ def to_s
97
+ class_name = self.class.name.split('::').last
98
+ "<#{class_name} product_group_id: #{@product_group_id}, product_group_name:"\
99
+ " #{@product_group_name}, product_code: #{@product_code}, product_id: #{@product_id},"\
100
+ " product_name: #{@product_name}>"
101
+ end
102
+
103
+ # Provides a debugging-friendly string with detailed object information.
104
+ def inspect
105
+ class_name = self.class.name.split('::').last
106
+ "<#{class_name} product_group_id: #{@product_group_id.inspect}, product_group_name:"\
107
+ " #{@product_group_name.inspect}, product_code: #{@product_code.inspect}, product_id:"\
108
+ " #{@product_id.inspect}, product_name: #{@product_name.inspect}>"
109
+ end
94
110
  end
95
111
  end
@@ -1,7 +1,7 @@
1
1
  # shell_data_reporting_ap_is
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ShellDataReportingApIs
7
7
  # FeeRuleTier Model.
@@ -68,5 +68,19 @@ module ShellDataReportingApIs
68
68
  value,
69
69
  tier_maximum)
70
70
  end
71
+
72
+ # Provides a human-readable string representation of the object.
73
+ def to_s
74
+ class_name = self.class.name.split('::').last
75
+ "<#{class_name} tier_minimum: #{@tier_minimum}, value: #{@value}, tier_maximum:"\
76
+ " #{@tier_maximum}>"
77
+ end
78
+
79
+ # Provides a debugging-friendly string with detailed object information.
80
+ def inspect
81
+ class_name = self.class.name.split('::').last
82
+ "<#{class_name} tier_minimum: #{@tier_minimum.inspect}, value: #{@value.inspect},"\
83
+ " tier_maximum: #{@tier_maximum.inspect}>"
84
+ end
71
85
  end
72
86
  end
@@ -1,7 +1,7 @@
1
1
  # shell_data_reporting_ap_is
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ShellDataReportingApIs
7
7
  # FeeSummaryResponse Model.
@@ -9,39 +9,45 @@ module ShellDataReportingApIs
9
9
  SKIP = Object.new
10
10
  private_constant :SKIP
11
11
 
12
- # TODO: Write general description for this method
13
- # @return [Array[FeeItemSummaryAllOf0]]
14
- attr_accessor :fee_items_summary
15
-
16
- # A unique request id in GUID format. The value is written to the Shell API
17
- # Platform audit log for end to end traceability of a request. If a value is
18
- # not provided by an API client, then a GUID is automatically populated by
19
- # the Shell API Platform and returned in the API response.
12
+ # Unique identifier for the request. This will be played back in the
13
+ # response from the request.
20
14
  # @return [String]
21
15
  attr_accessor :request_id
22
16
 
23
- # A unique request id in GUID format. The value is written to the Shell API
24
- # Platform audit log for end to end traceability of a request. If a value is
25
- # not provided by an API client, then a GUID is automatically populated by
26
- # the Shell API Platform and returned in the API response.
27
- # @return [ErrorStatus]
28
- attr_accessor :error
17
+ # Status of the request
18
+ # @return [String]
19
+ attr_accessor :status
20
+
21
+ # Status of the request
22
+ # @return [Array[FeeItemSummaryAllOf0]]
23
+ attr_accessor :data
24
+
25
+ # A list of Warning entity.
26
+ # This entity will hold the details of the scheduled System Outages of any
27
+ # dependent applications of this service.
28
+ # Note: If there is no scheduled outage information available, in the
29
+ # configuration in AMS, for this service, this parameter won’t be present in
30
+ # output.
31
+ # @return [Array[Warning]]
32
+ attr_accessor :warnings
29
33
 
30
34
  # A mapping from model property names to API property names.
31
35
  def self.names
32
36
  @_hash = {} if @_hash.nil?
33
- @_hash['fee_items_summary'] = 'FeeItemsSummary'
34
37
  @_hash['request_id'] = 'RequestId'
35
- @_hash['error'] = 'Error'
38
+ @_hash['status'] = 'Status'
39
+ @_hash['data'] = 'Data'
40
+ @_hash['warnings'] = 'Warnings'
36
41
  @_hash
37
42
  end
38
43
 
39
44
  # An array for optional fields
40
45
  def self.optionals
41
46
  %w[
42
- fee_items_summary
43
47
  request_id
44
- error
48
+ status
49
+ data
50
+ warnings
45
51
  ]
46
52
  end
47
53
 
@@ -50,10 +56,12 @@ module ShellDataReportingApIs
50
56
  []
51
57
  end
52
58
 
53
- def initialize(fee_items_summary = SKIP, request_id = SKIP, error = SKIP)
54
- @fee_items_summary = fee_items_summary unless fee_items_summary == SKIP
59
+ def initialize(request_id = SKIP, status = SKIP, data = SKIP,
60
+ warnings = SKIP)
55
61
  @request_id = request_id unless request_id == SKIP
56
- @error = error unless error == SKIP
62
+ @status = status unless status == SKIP
63
+ @data = data unless data == SKIP
64
+ @warnings = warnings unless warnings == SKIP
57
65
  end
58
66
 
59
67
  # Creates an instance of the object from a hash.
@@ -61,23 +69,48 @@ module ShellDataReportingApIs
61
69
  return nil unless hash
62
70
 
63
71
  # Extract variables from the hash.
72
+ request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP
73
+ status = hash.key?('Status') ? hash['Status'] : SKIP
64
74
  # Parameter is an array, so we need to iterate through it
65
- fee_items_summary = nil
66
- unless hash['FeeItemsSummary'].nil?
67
- fee_items_summary = []
68
- hash['FeeItemsSummary'].each do |structure|
69
- fee_items_summary << (FeeItemSummaryAllOf0.from_hash(structure) if structure)
75
+ data = nil
76
+ unless hash['Data'].nil?
77
+ data = []
78
+ hash['Data'].each do |structure|
79
+ data << (FeeItemSummaryAllOf0.from_hash(structure) if structure)
70
80
  end
71
81
  end
72
82
 
73
- fee_items_summary = SKIP unless hash.key?('FeeItemsSummary')
74
- request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP
75
- error = ErrorStatus.from_hash(hash['Error']) if hash['Error']
83
+ data = SKIP unless hash.key?('Data')
84
+ # Parameter is an array, so we need to iterate through it
85
+ warnings = nil
86
+ unless hash['Warnings'].nil?
87
+ warnings = []
88
+ hash['Warnings'].each do |structure|
89
+ warnings << (Warning.from_hash(structure) if structure)
90
+ end
91
+ end
92
+
93
+ warnings = SKIP unless hash.key?('Warnings')
76
94
 
77
95
  # Create object from extracted values.
78
- FeeSummaryResponse.new(fee_items_summary,
79
- request_id,
80
- error)
96
+ FeeSummaryResponse.new(request_id,
97
+ status,
98
+ data,
99
+ warnings)
100
+ end
101
+
102
+ # Provides a human-readable string representation of the object.
103
+ def to_s
104
+ class_name = self.class.name.split('::').last
105
+ "<#{class_name} request_id: #{@request_id}, status: #{@status}, data: #{@data}, warnings:"\
106
+ " #{@warnings}>"
107
+ end
108
+
109
+ # Provides a debugging-friendly string with detailed object information.
110
+ def inspect
111
+ class_name = self.class.name.split('::').last
112
+ "<#{class_name} request_id: #{@request_id.inspect}, status: #{@status.inspect}, data:"\
113
+ " #{@data.inspect}, warnings: #{@warnings.inspect}>"
81
114
  end
82
115
  end
83
116
  end
@@ -1,7 +1,7 @@
1
1
  # shell_data_reporting_ap_is
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ShellDataReportingApIs
7
7
  # FeesFeeRuleTiers Model.
@@ -116,5 +116,23 @@ module ShellDataReportingApIs
116
116
  fee_rule_basis_id,
117
117
  fee_rule_basis_description)
118
118
  end
119
+
120
+ # Provides a human-readable string representation of the object.
121
+ def to_s
122
+ class_name = self.class.name.split('::').last
123
+ "<#{class_name} tier_min: #{@tier_min}, tier_max: #{@tier_max}, date_effective:"\
124
+ " #{@date_effective}, date_terminated: #{@date_terminated}, tier_value: #{@tier_value},"\
125
+ " fee_rule_basis_id: #{@fee_rule_basis_id}, fee_rule_basis_description:"\
126
+ " #{@fee_rule_basis_description}>"
127
+ end
128
+
129
+ # Provides a debugging-friendly string with detailed object information.
130
+ def inspect
131
+ class_name = self.class.name.split('::').last
132
+ "<#{class_name} tier_min: #{@tier_min.inspect}, tier_max: #{@tier_max.inspect},"\
133
+ " date_effective: #{@date_effective.inspect}, date_terminated: #{@date_terminated.inspect},"\
134
+ " tier_value: #{@tier_value.inspect}, fee_rule_basis_id: #{@fee_rule_basis_id.inspect},"\
135
+ " fee_rule_basis_description: #{@fee_rule_basis_description.inspect}>"
136
+ end
119
137
  end
120
138
  end