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
  # AccountResponseAccountsItems Model.
@@ -722,5 +722,84 @@ module ShellDataReportingApIs
722
722
  contracts,
723
723
  is_consortium_member)
724
724
  end
725
+
726
+ # Provides a human-readable string representation of the object.
727
+ def to_s
728
+ class_name = self.class.name.split('::').last
729
+ "<#{class_name} account_full_name: #{@account_full_name}, account_id: #{@account_id},"\
730
+ " account_number: #{@account_number}, account_short_name: #{@account_short_name},"\
731
+ " best_of_indicator: #{@best_of_indicator}, billing_frequency_type:"\
732
+ " #{@billing_frequency_type}, billing_frequency_type_id: #{@billing_frequency_type_id},"\
733
+ " billing_run_frequency: #{@billing_run_frequency}, billing_run_frequency_type_id:"\
734
+ " #{@billing_run_frequency_type_id}, col_co_country_code: #{@col_co_country_code},"\
735
+ " currency_code: #{@currency_code}, currency_symbol: #{@currency_symbol}, day1_run:"\
736
+ " #{@day1_run}, day2_run: #{@day2_run}, day3_run: #{@day3_run}, day4_run: #{@day4_run},"\
737
+ " frequency_type: #{@frequency_type}, gross_amount: #{@gross_amount},"\
738
+ " international_pos_language_code: #{@international_pos_language_code},"\
739
+ " international_pos_language_id: #{@international_pos_language_id}, invoice_account_id:"\
740
+ " #{@invoice_account_id}, invoice_account_number: #{@invoice_account_number},"\
741
+ " invoice_account_short_name: #{@invoice_account_short_name}, invoice_distribution_methods:"\
742
+ " #{@invoice_distribution_methods}, is_international: #{@is_international},"\
743
+ " is_invoice_point: #{@is_invoice_point}, last_modified_date: #{@last_modified_date},"\
744
+ " local_currency_code: #{@local_currency_code}, local_currency_symbol:"\
745
+ " #{@local_currency_symbol}, local_pos_language_code: #{@local_pos_language_code},"\
746
+ " local_pos_language_id: #{@local_pos_language_id}, net_amount: #{@net_amount},"\
747
+ " outstanding_balance: #{@outstanding_balance}, paid_amount: #{@paid_amount}, status:"\
748
+ " #{@status}, status_reason: #{@status_reason}, total_active_card_groups:"\
749
+ " #{@total_active_card_groups}, total_active_cards: #{@total_active_cards},"\
750
+ " total_blocked_cards: #{@total_blocked_cards}, total_cancelled_cards:"\
751
+ " #{@total_cancelled_cards}, total_cards: #{@total_cards}, total_expired_cards:"\
752
+ " #{@total_expired_cards}, total_fraud_cards: #{@total_fraud_cards}, total_new_cards:"\
753
+ " #{@total_new_cards}, total_renewal_pending_cards: #{@total_renewal_pending_cards},"\
754
+ " total_replaced_cards: #{@total_replaced_cards}, total_temporary_block_cards_by_customer:"\
755
+ " #{@total_temporary_block_cards_by_customer}, total_temporary_block_cards_by_shell:"\
756
+ " #{@total_temporary_block_cards_by_shell}, vat_amount: #{@vat_amount}, is_partner_card:"\
757
+ " #{@is_partner_card}, tolls_customer_id: #{@tolls_customer_id},"\
758
+ " tolls_colco_country_type_id: #{@tolls_colco_country_type_id}, contracts: #{@contracts},"\
759
+ " is_consortium_member: #{@is_consortium_member}>"
760
+ end
761
+
762
+ # Provides a debugging-friendly string with detailed object information.
763
+ def inspect
764
+ class_name = self.class.name.split('::').last
765
+ "<#{class_name} account_full_name: #{@account_full_name.inspect}, account_id:"\
766
+ " #{@account_id.inspect}, account_number: #{@account_number.inspect}, account_short_name:"\
767
+ " #{@account_short_name.inspect}, best_of_indicator: #{@best_of_indicator.inspect},"\
768
+ " billing_frequency_type: #{@billing_frequency_type.inspect}, billing_frequency_type_id:"\
769
+ " #{@billing_frequency_type_id.inspect}, billing_run_frequency:"\
770
+ " #{@billing_run_frequency.inspect}, billing_run_frequency_type_id:"\
771
+ " #{@billing_run_frequency_type_id.inspect}, col_co_country_code:"\
772
+ " #{@col_co_country_code.inspect}, currency_code: #{@currency_code.inspect},"\
773
+ " currency_symbol: #{@currency_symbol.inspect}, day1_run: #{@day1_run.inspect}, day2_run:"\
774
+ " #{@day2_run.inspect}, day3_run: #{@day3_run.inspect}, day4_run: #{@day4_run.inspect},"\
775
+ " frequency_type: #{@frequency_type.inspect}, gross_amount: #{@gross_amount.inspect},"\
776
+ " international_pos_language_code: #{@international_pos_language_code.inspect},"\
777
+ " international_pos_language_id: #{@international_pos_language_id.inspect},"\
778
+ " invoice_account_id: #{@invoice_account_id.inspect}, invoice_account_number:"\
779
+ " #{@invoice_account_number.inspect}, invoice_account_short_name:"\
780
+ " #{@invoice_account_short_name.inspect}, invoice_distribution_methods:"\
781
+ " #{@invoice_distribution_methods.inspect}, is_international: #{@is_international.inspect},"\
782
+ " is_invoice_point: #{@is_invoice_point.inspect}, last_modified_date:"\
783
+ " #{@last_modified_date.inspect}, local_currency_code: #{@local_currency_code.inspect},"\
784
+ " local_currency_symbol: #{@local_currency_symbol.inspect}, local_pos_language_code:"\
785
+ " #{@local_pos_language_code.inspect}, local_pos_language_id:"\
786
+ " #{@local_pos_language_id.inspect}, net_amount: #{@net_amount.inspect},"\
787
+ " outstanding_balance: #{@outstanding_balance.inspect}, paid_amount:"\
788
+ " #{@paid_amount.inspect}, status: #{@status.inspect}, status_reason:"\
789
+ " #{@status_reason.inspect}, total_active_card_groups: #{@total_active_card_groups.inspect},"\
790
+ " total_active_cards: #{@total_active_cards.inspect}, total_blocked_cards:"\
791
+ " #{@total_blocked_cards.inspect}, total_cancelled_cards: #{@total_cancelled_cards.inspect},"\
792
+ " total_cards: #{@total_cards.inspect}, total_expired_cards:"\
793
+ " #{@total_expired_cards.inspect}, total_fraud_cards: #{@total_fraud_cards.inspect},"\
794
+ " total_new_cards: #{@total_new_cards.inspect}, total_renewal_pending_cards:"\
795
+ " #{@total_renewal_pending_cards.inspect}, total_replaced_cards:"\
796
+ " #{@total_replaced_cards.inspect}, total_temporary_block_cards_by_customer:"\
797
+ " #{@total_temporary_block_cards_by_customer.inspect}, total_temporary_block_cards_by_shell:"\
798
+ " #{@total_temporary_block_cards_by_shell.inspect}, vat_amount: #{@vat_amount.inspect},"\
799
+ " is_partner_card: #{@is_partner_card.inspect}, tolls_customer_id:"\
800
+ " #{@tolls_customer_id.inspect}, tolls_colco_country_type_id:"\
801
+ " #{@tolls_colco_country_type_id.inspect}, contracts: #{@contracts.inspect},"\
802
+ " is_consortium_member: #{@is_consortium_member.inspect}>"
803
+ end
725
804
  end
726
805
  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
  # Accounts Model.
@@ -60,5 +60,18 @@ module ShellDataReportingApIs
60
60
  Accounts.new(account_id,
61
61
  account_number)
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} account_id: #{@account_id}, account_number: #{@account_number}>"
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} account_id: #{@account_id.inspect}, account_number:"\
74
+ " #{@account_number.inspect}>"
75
+ end
63
76
  end
64
77
  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
  # Address Model.
@@ -163,5 +163,26 @@ module ShellDataReportingApIs
163
163
  email_address,
164
164
  fax)
165
165
  end
166
+
167
+ # Provides a human-readable string representation of the object.
168
+ def to_s
169
+ class_name = self.class.name.split('::').last
170
+ "<#{class_name} address_id: #{@address_id}, address_line1: #{@address_line1},"\
171
+ " address_line2: #{@address_line2}, address_line3: #{@address_line3}, zip_code:"\
172
+ " #{@zip_code}, city: #{@city}, region_id: #{@region_id}, country_iso_code:"\
173
+ " #{@country_iso_code}, country: #{@country}, telephone: #{@telephone}, email_address:"\
174
+ " #{@email_address}, fax: #{@fax}>"
175
+ end
176
+
177
+ # Provides a debugging-friendly string with detailed object information.
178
+ def inspect
179
+ class_name = self.class.name.split('::').last
180
+ "<#{class_name} address_id: #{@address_id.inspect}, address_line1:"\
181
+ " #{@address_line1.inspect}, address_line2: #{@address_line2.inspect}, address_line3:"\
182
+ " #{@address_line3.inspect}, zip_code: #{@zip_code.inspect}, city: #{@city.inspect},"\
183
+ " region_id: #{@region_id.inspect}, country_iso_code: #{@country_iso_code.inspect}, country:"\
184
+ " #{@country.inspect}, telephone: #{@telephone.inspect}, email_address:"\
185
+ " #{@email_address.inspect}, fax: #{@fax.inspect}>"
186
+ end
166
187
  end
167
188
  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
  # AssociatedAccount Model.
@@ -94,5 +94,23 @@ module ShellDataReportingApIs
94
94
  associated_account_short_name,
95
95
  associated_account_full_name)
96
96
  end
97
+
98
+ # Provides a human-readable string representation of the object.
99
+ def to_s
100
+ class_name = self.class.name.split('::').last
101
+ "<#{class_name} associated_account_id: #{@associated_account_id},"\
102
+ " associated_account_number: #{@associated_account_number}, associated_account_short_name:"\
103
+ " #{@associated_account_short_name}, associated_account_full_name:"\
104
+ " #{@associated_account_full_name}>"
105
+ end
106
+
107
+ # Provides a debugging-friendly string with detailed object information.
108
+ def inspect
109
+ class_name = self.class.name.split('::').last
110
+ "<#{class_name} associated_account_id: #{@associated_account_id.inspect},"\
111
+ " associated_account_number: #{@associated_account_number.inspect},"\
112
+ " associated_account_short_name: #{@associated_account_short_name.inspect},"\
113
+ " associated_account_full_name: #{@associated_account_full_name.inspect}>"
114
+ end
97
115
  end
98
116
  end
@@ -0,0 +1,71 @@
1
+ # shell_data_reporting_ap_is
2
+ #
3
+ # This file was automatically generated by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module ShellDataReportingApIs
7
+ # AuditArrayElements Model.
8
+ class AuditArrayElements < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [Array[AuditResponseAuditsItems]]
14
+ attr_accessor :audits
15
+
16
+ # A mapping from model property names to API property names.
17
+ def self.names
18
+ @_hash = {} if @_hash.nil?
19
+ @_hash['audits'] = 'Audits'
20
+ @_hash
21
+ end
22
+
23
+ # An array for optional fields
24
+ def self.optionals
25
+ %w[
26
+ audits
27
+ ]
28
+ end
29
+
30
+ # An array for nullable fields
31
+ def self.nullables
32
+ []
33
+ end
34
+
35
+ def initialize(audits = SKIP)
36
+ @audits = audits unless audits == SKIP
37
+ end
38
+
39
+ # Creates an instance of the object from a hash.
40
+ def self.from_hash(hash)
41
+ return nil unless hash
42
+
43
+ # Extract variables from the hash.
44
+ # Parameter is an array, so we need to iterate through it
45
+ audits = nil
46
+ unless hash['Audits'].nil?
47
+ audits = []
48
+ hash['Audits'].each do |structure|
49
+ audits << (AuditResponseAuditsItems.from_hash(structure) if structure)
50
+ end
51
+ end
52
+
53
+ audits = SKIP unless hash.key?('Audits')
54
+
55
+ # Create object from extracted values.
56
+ AuditArrayElements.new(audits)
57
+ end
58
+
59
+ # Provides a human-readable string representation of the object.
60
+ def to_s
61
+ class_name = self.class.name.split('::').last
62
+ "<#{class_name} audits: #{@audits}>"
63
+ end
64
+
65
+ # Provides a debugging-friendly string with detailed object information.
66
+ def inspect
67
+ class_name = self.class.name.split('::').last
68
+ "<#{class_name} audits: #{@audits.inspect}>"
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,84 @@
1
+ # shell_data_reporting_ap_is
2
+ #
3
+ # This file was automatically generated by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module ShellDataReportingApIs
7
+ # AuditReq Model.
8
+ class AuditReq < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [AuditRequest]
14
+ attr_accessor :filters
15
+
16
+ # Page Number (as shown to the users)
17
+ # @return [Integer]
18
+ attr_accessor :page
19
+
20
+ # Page Size – Number of records to show on a page.
21
+ # @return [Integer]
22
+ attr_accessor :page_size
23
+
24
+ # A mapping from model property names to API property names.
25
+ def self.names
26
+ @_hash = {} if @_hash.nil?
27
+ @_hash['filters'] = 'Filters'
28
+ @_hash['page'] = 'Page'
29
+ @_hash['page_size'] = 'PageSize'
30
+ @_hash
31
+ end
32
+
33
+ # An array for optional fields
34
+ def self.optionals
35
+ %w[
36
+ filters
37
+ page
38
+ page_size
39
+ ]
40
+ end
41
+
42
+ # An array for nullable fields
43
+ def self.nullables
44
+ %w[
45
+ page
46
+ page_size
47
+ ]
48
+ end
49
+
50
+ def initialize(filters = SKIP, page = 1, page_size = 50)
51
+ @filters = filters unless filters == SKIP
52
+ @page = page unless page == SKIP
53
+ @page_size = page_size unless page_size == SKIP
54
+ end
55
+
56
+ # Creates an instance of the object from a hash.
57
+ def self.from_hash(hash)
58
+ return nil unless hash
59
+
60
+ # Extract variables from the hash.
61
+ filters = AuditRequest.from_hash(hash['Filters']) if hash['Filters']
62
+ page = hash['Page'] ||= 1
63
+ page_size = hash['PageSize'] ||= 50
64
+
65
+ # Create object from extracted values.
66
+ AuditReq.new(filters,
67
+ page,
68
+ page_size)
69
+ end
70
+
71
+ # Provides a human-readable string representation of the object.
72
+ def to_s
73
+ class_name = self.class.name.split('::').last
74
+ "<#{class_name} filters: #{@filters}, page: #{@page}, page_size: #{@page_size}>"
75
+ end
76
+
77
+ # Provides a debugging-friendly string with detailed object information.
78
+ def inspect
79
+ class_name = self.class.name.split('::').last
80
+ "<#{class_name} filters: #{@filters.inspect}, page: #{@page.inspect}, page_size:"\
81
+ " #{@page_size.inspect}>"
82
+ end
83
+ end
84
+ 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
  # AuditRequest Model.
@@ -65,20 +65,26 @@ module ShellDataReportingApIs
65
65
  # @return [Accounts]
66
66
  attr_accessor :accounts
67
67
 
68
- # Page Size – Number of records to show on a page
68
+ # Type of requests to be fetched.
69
69
  # Optional
70
- # Default value 50
71
- # @return [Integer]
72
- attr_accessor :page_size
73
-
74
- # To search for requests submitted until this date.
75
- # Optional
76
- # Format: yyyyMMdd
77
- # Example: 20200130
78
- # If ToDate is not provided and FromDate is provided, then ToDate will be
79
- # considered as current date or 30 days from FromDate, whichever is earlier.
80
- # However, when both FromDate and ToDate is not provided then last 30 days
81
- # will be considered for filtering.
70
+ # Allowed values:
71
+ # • OrderCard
72
+ # • CreateCardGroup
73
+ # • PINReminder
74
+ # • MoveCard
75
+ # • UpdateCardStatus
76
+ # • UpdateCardGroup
77
+ # • AutoRenew
78
+ # • BulkCardOrder
79
+ # • BulkCardBlock
80
+ # • BulkCardOrderMultiAccount
81
+ # • MobilePaymentRegistration
82
+ # • UpdateCompanyInfo
83
+ # • BCOSummary
84
+ # • BCOMultiAccountSummary
85
+ # • BCBSummary
86
+ # • FundTransfer
87
+ # • DeliveryAddressUpdate
82
88
  # @return [Array[String]]
83
89
  attr_accessor :requested_operation
84
90
 
@@ -100,12 +106,6 @@ module ShellDataReportingApIs
100
106
  # @return [String]
101
107
  attr_accessor :search_text
102
108
 
103
- # Page Number (as shown to the users)
104
- # Optional
105
- # Default value 1
106
- # @return [Integer]
107
- attr_accessor :current_page
108
-
109
109
  # To search for requests submitted from this date.
110
110
  # Optional
111
111
  # Maximum of X days duration allowed per search. The X value is configurable
@@ -139,11 +139,9 @@ module ShellDataReportingApIs
139
139
  @_hash['col_co_code'] = 'ColCoCode'
140
140
  @_hash['col_co_id'] = 'ColCoId'
141
141
  @_hash['accounts'] = 'Accounts'
142
- @_hash['page_size'] = 'PageSize'
143
142
  @_hash['requested_operation'] = 'RequestedOperation'
144
143
  @_hash['sort_order'] = 'SortOrder'
145
144
  @_hash['search_text'] = 'SearchText'
146
- @_hash['current_page'] = 'CurrentPage'
147
145
  @_hash['from_date'] = 'FromDate'
148
146
  @_hash['to_date'] = 'ToDate'
149
147
  @_hash
@@ -159,11 +157,9 @@ module ShellDataReportingApIs
159
157
  col_co_code
160
158
  col_co_id
161
159
  accounts
162
- page_size
163
160
  requested_operation
164
161
  sort_order
165
162
  search_text
166
- current_page
167
163
  from_date
168
164
  to_date
169
165
  ]
@@ -179,7 +175,6 @@ module ShellDataReportingApIs
179
175
  col_co_id
180
176
  sort_order
181
177
  search_text
182
- current_page
183
178
  from_date
184
179
  to_date
185
180
  ]
@@ -187,9 +182,8 @@ module ShellDataReportingApIs
187
182
 
188
183
  def initialize(status = SKIP, payer_number = SKIP, payer_id = SKIP,
189
184
  account_number = SKIP, col_co_code = SKIP, col_co_id = SKIP,
190
- accounts = SKIP, page_size = SKIP,
191
- requested_operation = SKIP, sort_order = SKIP,
192
- search_text = SKIP, current_page = SKIP, from_date = SKIP,
185
+ accounts = SKIP, requested_operation = SKIP,
186
+ sort_order = SKIP, search_text = SKIP, from_date = SKIP,
193
187
  to_date = SKIP)
194
188
  @status = status unless status == SKIP
195
189
  @payer_number = payer_number unless payer_number == SKIP
@@ -198,11 +192,9 @@ module ShellDataReportingApIs
198
192
  @col_co_code = col_co_code unless col_co_code == SKIP
199
193
  @col_co_id = col_co_id unless col_co_id == SKIP
200
194
  @accounts = accounts unless accounts == SKIP
201
- @page_size = page_size unless page_size == SKIP
202
195
  @requested_operation = requested_operation unless requested_operation == SKIP
203
196
  @sort_order = sort_order unless sort_order == SKIP
204
197
  @search_text = search_text unless search_text == SKIP
205
- @current_page = current_page unless current_page == SKIP
206
198
  @from_date = from_date unless from_date == SKIP
207
199
  @to_date = to_date unless to_date == SKIP
208
200
  end
@@ -219,12 +211,10 @@ module ShellDataReportingApIs
219
211
  col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
220
212
  col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
221
213
  accounts = Accounts.from_hash(hash['Accounts']) if hash['Accounts']
222
- page_size = hash.key?('PageSize') ? hash['PageSize'] : SKIP
223
214
  requested_operation =
224
215
  hash.key?('RequestedOperation') ? hash['RequestedOperation'] : SKIP
225
216
  sort_order = hash.key?('SortOrder') ? hash['SortOrder'] : SKIP
226
217
  search_text = hash.key?('SearchText') ? hash['SearchText'] : SKIP
227
- current_page = hash.key?('CurrentPage') ? hash['CurrentPage'] : SKIP
228
218
  from_date = hash.key?('FromDate') ? hash['FromDate'] : SKIP
229
219
  to_date = hash.key?('ToDate') ? hash['ToDate'] : SKIP
230
220
 
@@ -236,13 +226,32 @@ module ShellDataReportingApIs
236
226
  col_co_code,
237
227
  col_co_id,
238
228
  accounts,
239
- page_size,
240
229
  requested_operation,
241
230
  sort_order,
242
231
  search_text,
243
- current_page,
244
232
  from_date,
245
233
  to_date)
246
234
  end
235
+
236
+ # Provides a human-readable string representation of the object.
237
+ def to_s
238
+ class_name = self.class.name.split('::').last
239
+ "<#{class_name} status: #{@status}, payer_number: #{@payer_number}, payer_id: #{@payer_id},"\
240
+ " account_number: #{@account_number}, col_co_code: #{@col_co_code}, col_co_id:"\
241
+ " #{@col_co_id}, accounts: #{@accounts}, requested_operation: #{@requested_operation},"\
242
+ " sort_order: #{@sort_order}, search_text: #{@search_text}, from_date: #{@from_date},"\
243
+ " to_date: #{@to_date}>"
244
+ end
245
+
246
+ # Provides a debugging-friendly string with detailed object information.
247
+ def inspect
248
+ class_name = self.class.name.split('::').last
249
+ "<#{class_name} status: #{@status.inspect}, payer_number: #{@payer_number.inspect},"\
250
+ " payer_id: #{@payer_id.inspect}, account_number: #{@account_number.inspect}, col_co_code:"\
251
+ " #{@col_co_code.inspect}, col_co_id: #{@col_co_id.inspect}, accounts: #{@accounts.inspect},"\
252
+ " requested_operation: #{@requested_operation.inspect}, sort_order: #{@sort_order.inspect},"\
253
+ " search_text: #{@search_text.inspect}, from_date: #{@from_date.inspect}, to_date:"\
254
+ " #{@to_date.inspect}>"
255
+ end
247
256
  end
248
257
  end