pnz-payments-sdk 1.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 (238) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +28 -0
  3. data/README.md +98 -0
  4. data/lib/account_and_transaction_api_specification/api_helper.rb +10 -0
  5. data/lib/account_and_transaction_api_specification/client.rb +114 -0
  6. data/lib/account_and_transaction_api_specification/configuration.rb +127 -0
  7. data/lib/account_and_transaction_api_specification/controllers/accounts_controller.rb +146 -0
  8. data/lib/account_and_transaction_api_specification/controllers/balances_controller.rb +146 -0
  9. data/lib/account_and_transaction_api_specification/controllers/base_controller.rb +66 -0
  10. data/lib/account_and_transaction_api_specification/controllers/beneficiaries_controller.rb +146 -0
  11. data/lib/account_and_transaction_api_specification/controllers/direct_debits_controller.rb +146 -0
  12. data/lib/account_and_transaction_api_specification/controllers/offers_controller.rb +146 -0
  13. data/lib/account_and_transaction_api_specification/controllers/party_controller.rb +146 -0
  14. data/lib/account_and_transaction_api_specification/controllers/scheduled_payments_controller.rb +146 -0
  15. data/lib/account_and_transaction_api_specification/controllers/standing_orders_controller.rb +146 -0
  16. data/lib/account_and_transaction_api_specification/controllers/statements_controller.rb +421 -0
  17. data/lib/account_and_transaction_api_specification/controllers/transactions_controller.rb +170 -0
  18. data/lib/account_and_transaction_api_specification/exceptions/accounts400_error_exception.rb +72 -0
  19. data/lib/account_and_transaction_api_specification/exceptions/accounts403_error_exception.rb +72 -0
  20. data/lib/account_and_transaction_api_specification/exceptions/accounts500_error_exception.rb +72 -0
  21. data/lib/account_and_transaction_api_specification/exceptions/accounts503_error_exception.rb +72 -0
  22. data/lib/account_and_transaction_api_specification/exceptions/accounts_balances400_error_exception.rb +72 -0
  23. data/lib/account_and_transaction_api_specification/exceptions/accounts_balances403_error_exception.rb +72 -0
  24. data/lib/account_and_transaction_api_specification/exceptions/accounts_balances500_error_exception.rb +72 -0
  25. data/lib/account_and_transaction_api_specification/exceptions/accounts_balances503_error_exception.rb +72 -0
  26. data/lib/account_and_transaction_api_specification/exceptions/accounts_beneficiaries400_error_exception.rb +72 -0
  27. data/lib/account_and_transaction_api_specification/exceptions/accounts_beneficiaries403_error_exception.rb +72 -0
  28. data/lib/account_and_transaction_api_specification/exceptions/accounts_beneficiaries500_error_exception.rb +72 -0
  29. data/lib/account_and_transaction_api_specification/exceptions/accounts_beneficiaries503_error_exception.rb +72 -0
  30. data/lib/account_and_transaction_api_specification/exceptions/accounts_direct_debits400_error_exception.rb +72 -0
  31. data/lib/account_and_transaction_api_specification/exceptions/accounts_direct_debits403_error_exception.rb +72 -0
  32. data/lib/account_and_transaction_api_specification/exceptions/accounts_direct_debits500_error_exception.rb +72 -0
  33. data/lib/account_and_transaction_api_specification/exceptions/accounts_direct_debits503_error_exception.rb +72 -0
  34. data/lib/account_and_transaction_api_specification/exceptions/accounts_offers400_error_exception.rb +72 -0
  35. data/lib/account_and_transaction_api_specification/exceptions/accounts_offers403_error_exception.rb +72 -0
  36. data/lib/account_and_transaction_api_specification/exceptions/accounts_offers500_error_exception.rb +72 -0
  37. data/lib/account_and_transaction_api_specification/exceptions/accounts_offers503_error_exception.rb +72 -0
  38. data/lib/account_and_transaction_api_specification/exceptions/accounts_party400_error_exception.rb +72 -0
  39. data/lib/account_and_transaction_api_specification/exceptions/accounts_party403_error_exception.rb +72 -0
  40. data/lib/account_and_transaction_api_specification/exceptions/accounts_party500_error_exception.rb +72 -0
  41. data/lib/account_and_transaction_api_specification/exceptions/accounts_party503_error_exception.rb +72 -0
  42. data/lib/account_and_transaction_api_specification/exceptions/accounts_scheduled_payments400_error_exception.rb +72 -0
  43. data/lib/account_and_transaction_api_specification/exceptions/accounts_scheduled_payments403_error_exception.rb +72 -0
  44. data/lib/account_and_transaction_api_specification/exceptions/accounts_scheduled_payments500_error_exception.rb +72 -0
  45. data/lib/account_and_transaction_api_specification/exceptions/accounts_scheduled_payments503_error_exception.rb +72 -0
  46. data/lib/account_and_transaction_api_specification/exceptions/accounts_standing_orders400_error_exception.rb +72 -0
  47. data/lib/account_and_transaction_api_specification/exceptions/accounts_standing_orders403_error_exception.rb +72 -0
  48. data/lib/account_and_transaction_api_specification/exceptions/accounts_standing_orders500_error_exception.rb +72 -0
  49. data/lib/account_and_transaction_api_specification/exceptions/accounts_standing_orders503_error_exception.rb +72 -0
  50. data/lib/account_and_transaction_api_specification/exceptions/accounts_statements400_error_exception.rb +72 -0
  51. data/lib/account_and_transaction_api_specification/exceptions/accounts_statements403_error_exception.rb +72 -0
  52. data/lib/account_and_transaction_api_specification/exceptions/accounts_statements500_error_exception.rb +72 -0
  53. data/lib/account_and_transaction_api_specification/exceptions/accounts_statements503_error_exception.rb +72 -0
  54. data/lib/account_and_transaction_api_specification/exceptions/accounts_statements_transactions400_error_exception.rb +72 -0
  55. data/lib/account_and_transaction_api_specification/exceptions/accounts_statements_transactions403_error_exception.rb +72 -0
  56. data/lib/account_and_transaction_api_specification/exceptions/accounts_statements_transactions500_error_exception.rb +72 -0
  57. data/lib/account_and_transaction_api_specification/exceptions/accounts_statements_transactions503_error_exception.rb +72 -0
  58. data/lib/account_and_transaction_api_specification/exceptions/accounts_transactions400_error_exception.rb +72 -0
  59. data/lib/account_and_transaction_api_specification/exceptions/accounts_transactions403_error_exception.rb +72 -0
  60. data/lib/account_and_transaction_api_specification/exceptions/accounts_transactions500_error_exception.rb +72 -0
  61. data/lib/account_and_transaction_api_specification/exceptions/accounts_transactions503_error_exception.rb +72 -0
  62. data/lib/account_and_transaction_api_specification/exceptions/api_exception.rb +21 -0
  63. data/lib/account_and_transaction_api_specification/exceptions/balances400_error_exception.rb +72 -0
  64. data/lib/account_and_transaction_api_specification/exceptions/balances403_error_exception.rb +72 -0
  65. data/lib/account_and_transaction_api_specification/exceptions/balances500_error_exception.rb +72 -0
  66. data/lib/account_and_transaction_api_specification/exceptions/balances503_error_exception.rb +72 -0
  67. data/lib/account_and_transaction_api_specification/exceptions/beneficiaries400_error_exception.rb +72 -0
  68. data/lib/account_and_transaction_api_specification/exceptions/beneficiaries403_error_exception.rb +72 -0
  69. data/lib/account_and_transaction_api_specification/exceptions/beneficiaries500_error_exception.rb +72 -0
  70. data/lib/account_and_transaction_api_specification/exceptions/beneficiaries503_error_exception.rb +72 -0
  71. data/lib/account_and_transaction_api_specification/exceptions/direct_debits400_error_exception.rb +72 -0
  72. data/lib/account_and_transaction_api_specification/exceptions/direct_debits403_error_exception.rb +72 -0
  73. data/lib/account_and_transaction_api_specification/exceptions/direct_debits500_error_exception.rb +72 -0
  74. data/lib/account_and_transaction_api_specification/exceptions/direct_debits503_error_exception.rb +72 -0
  75. data/lib/account_and_transaction_api_specification/exceptions/offers400_error_exception.rb +72 -0
  76. data/lib/account_and_transaction_api_specification/exceptions/offers403_error_exception.rb +72 -0
  77. data/lib/account_and_transaction_api_specification/exceptions/offers500_error_exception.rb +72 -0
  78. data/lib/account_and_transaction_api_specification/exceptions/offers503_error_exception.rb +72 -0
  79. data/lib/account_and_transaction_api_specification/exceptions/party400_error_exception.rb +72 -0
  80. data/lib/account_and_transaction_api_specification/exceptions/party403_error_exception.rb +72 -0
  81. data/lib/account_and_transaction_api_specification/exceptions/party500_error_exception.rb +72 -0
  82. data/lib/account_and_transaction_api_specification/exceptions/party503_error_exception.rb +72 -0
  83. data/lib/account_and_transaction_api_specification/exceptions/scheduled_payments400_error_exception.rb +72 -0
  84. data/lib/account_and_transaction_api_specification/exceptions/scheduled_payments403_error_exception.rb +72 -0
  85. data/lib/account_and_transaction_api_specification/exceptions/scheduled_payments500_error_exception.rb +72 -0
  86. data/lib/account_and_transaction_api_specification/exceptions/scheduled_payments503_error_exception.rb +72 -0
  87. data/lib/account_and_transaction_api_specification/exceptions/standing_orders400_error_exception.rb +72 -0
  88. data/lib/account_and_transaction_api_specification/exceptions/standing_orders403_error_exception.rb +72 -0
  89. data/lib/account_and_transaction_api_specification/exceptions/standing_orders500_error_exception.rb +72 -0
  90. data/lib/account_and_transaction_api_specification/exceptions/standing_orders503_error_exception.rb +72 -0
  91. data/lib/account_and_transaction_api_specification/exceptions/statements400_error_exception.rb +72 -0
  92. data/lib/account_and_transaction_api_specification/exceptions/statements403_error_exception.rb +72 -0
  93. data/lib/account_and_transaction_api_specification/exceptions/statements500_error_exception.rb +72 -0
  94. data/lib/account_and_transaction_api_specification/exceptions/statements503_error_exception.rb +72 -0
  95. data/lib/account_and_transaction_api_specification/exceptions/transactions400_error_exception.rb +72 -0
  96. data/lib/account_and_transaction_api_specification/exceptions/transactions403_error_exception.rb +72 -0
  97. data/lib/account_and_transaction_api_specification/exceptions/transactions500_error_exception.rb +72 -0
  98. data/lib/account_and_transaction_api_specification/exceptions/transactions503_error_exception.rb +72 -0
  99. data/lib/account_and_transaction_api_specification/http/auth/o_auth2.rb +43 -0
  100. data/lib/account_and_transaction_api_specification/http/http_call_back.rb +10 -0
  101. data/lib/account_and_transaction_api_specification/http/http_method_enum.rb +10 -0
  102. data/lib/account_and_transaction_api_specification/http/http_request.rb +10 -0
  103. data/lib/account_and_transaction_api_specification/http/http_response.rb +10 -0
  104. data/lib/account_and_transaction_api_specification/models/account.rb +100 -0
  105. data/lib/account_and_transaction_api_specification/models/account_access_consent.rb +69 -0
  106. data/lib/account_and_transaction_api_specification/models/account_access_consent_model.rb +60 -0
  107. data/lib/account_and_transaction_api_specification/models/account_access_consent_pos_tresponse.rb +86 -0
  108. data/lib/account_and_transaction_api_specification/models/account_access_consent_response.rb +86 -0
  109. data/lib/account_and_transaction_api_specification/models/account_access_consent_response_model.rb +120 -0
  110. data/lib/account_and_transaction_api_specification/models/account_access_status_enum.rb +29 -0
  111. data/lib/account_and_transaction_api_specification/models/account_model.rb +137 -0
  112. data/lib/account_and_transaction_api_specification/models/account_response.rb +76 -0
  113. data/lib/account_and_transaction_api_specification/models/account_response_data.rb +71 -0
  114. data/lib/account_and_transaction_api_specification/models/account_scheme_model_enum.rb +23 -0
  115. data/lib/account_and_transaction_api_specification/models/account_sub_type_enum.rb +41 -0
  116. data/lib/account_and_transaction_api_specification/models/account_type_enum.rb +23 -0
  117. data/lib/account_and_transaction_api_specification/models/address.rb +137 -0
  118. data/lib/account_and_transaction_api_specification/models/address_type_enum.rb +20 -0
  119. data/lib/account_and_transaction_api_specification/models/address_type_option_enum.rb +41 -0
  120. data/lib/account_and_transaction_api_specification/models/amount.rb +71 -0
  121. data/lib/account_and_transaction_api_specification/models/authorisation_type_enum.rb +26 -0
  122. data/lib/account_and_transaction_api_specification/models/balance.rb +82 -0
  123. data/lib/account_and_transaction_api_specification/models/balance_model.rb +136 -0
  124. data/lib/account_and_transaction_api_specification/models/balance_model_type_enum.rb +47 -0
  125. data/lib/account_and_transaction_api_specification/models/balances_response.rb +76 -0
  126. data/lib/account_and_transaction_api_specification/models/balances_response_data.rb +69 -0
  127. data/lib/account_and_transaction_api_specification/models/bank_transaction_code.rb +69 -0
  128. data/lib/account_and_transaction_api_specification/models/base_model.rb +110 -0
  129. data/lib/account_and_transaction_api_specification/models/becs_remittance.rb +109 -0
  130. data/lib/account_and_transaction_api_specification/models/beneficiaries_response.rb +76 -0
  131. data/lib/account_and_transaction_api_specification/models/beneficiaries_response_data.rb +71 -0
  132. data/lib/account_and_transaction_api_specification/models/beneficiary_model.rb +110 -0
  133. data/lib/account_and_transaction_api_specification/models/card_instrument.rb +97 -0
  134. data/lib/account_and_transaction_api_specification/models/card_scheme_name_enum.rb +32 -0
  135. data/lib/account_and_transaction_api_specification/models/consent.rb +145 -0
  136. data/lib/account_and_transaction_api_specification/models/credit_debit_indicator_enum.rb +24 -0
  137. data/lib/account_and_transaction_api_specification/models/credit_line.rb +82 -0
  138. data/lib/account_and_transaction_api_specification/models/credit_line_type_enum.rb +26 -0
  139. data/lib/account_and_transaction_api_specification/models/creditor_account.rb +102 -0
  140. data/lib/account_and_transaction_api_specification/models/creditor_agent.rb +100 -0
  141. data/lib/account_and_transaction_api_specification/models/creditor_reference.rb +81 -0
  142. data/lib/account_and_transaction_api_specification/models/currency_exchange.rb +147 -0
  143. data/lib/account_and_transaction_api_specification/models/data.rb +71 -0
  144. data/lib/account_and_transaction_api_specification/models/debtor_account.rb +102 -0
  145. data/lib/account_and_transaction_api_specification/models/debtor_agent.rb +70 -0
  146. data/lib/account_and_transaction_api_specification/models/debtor_reference.rb +81 -0
  147. data/lib/account_and_transaction_api_specification/models/delivery_address.rb +138 -0
  148. data/lib/account_and_transaction_api_specification/models/direct_debit_model.rb +146 -0
  149. data/lib/account_and_transaction_api_specification/models/direct_debit_response.rb +76 -0
  150. data/lib/account_and_transaction_api_specification/models/direct_debit_response_data.rb +71 -0
  151. data/lib/account_and_transaction_api_specification/models/direct_debit_status_code_enum.rb +23 -0
  152. data/lib/account_and_transaction_api_specification/models/error.rb +92 -0
  153. data/lib/account_and_transaction_api_specification/models/error_code_enum.rb +100 -0
  154. data/lib/account_and_transaction_api_specification/models/error_response.rb +100 -0
  155. data/lib/account_and_transaction_api_specification/models/fee.rb +71 -0
  156. data/lib/account_and_transaction_api_specification/models/final_payment_amount.rb +71 -0
  157. data/lib/account_and_transaction_api_specification/models/first_payment_amount.rb +71 -0
  158. data/lib/account_and_transaction_api_specification/models/geo_location.rb +72 -0
  159. data/lib/account_and_transaction_api_specification/models/get_account_offers_response.rb +76 -0
  160. data/lib/account_and_transaction_api_specification/models/get_account_party_response.rb +76 -0
  161. data/lib/account_and_transaction_api_specification/models/get_account_party_response_data.rb +62 -0
  162. data/lib/account_and_transaction_api_specification/models/get_account_scheduled_payments_response.rb +76 -0
  163. data/lib/account_and_transaction_api_specification/models/get_account_statement_response.rb +76 -0
  164. data/lib/account_and_transaction_api_specification/models/get_account_statement_response_data.rb +62 -0
  165. data/lib/account_and_transaction_api_specification/models/get_account_statement_transactions_response.rb +76 -0
  166. data/lib/account_and_transaction_api_specification/models/get_account_statement_transactions_response_data.rb +71 -0
  167. data/lib/account_and_transaction_api_specification/models/get_account_statements_response.rb +76 -0
  168. data/lib/account_and_transaction_api_specification/models/get_account_statements_response_data.rb +71 -0
  169. data/lib/account_and_transaction_api_specification/models/get_offers_response.rb +76 -0
  170. data/lib/account_and_transaction_api_specification/models/get_offers_response_data.rb +71 -0
  171. data/lib/account_and_transaction_api_specification/models/get_party_response.rb +76 -0
  172. data/lib/account_and_transaction_api_specification/models/get_scheduled_payments_response.rb +76 -0
  173. data/lib/account_and_transaction_api_specification/models/get_scheduled_payments_response_data.rb +71 -0
  174. data/lib/account_and_transaction_api_specification/models/get_statements_response.rb +76 -0
  175. data/lib/account_and_transaction_api_specification/models/get_statements_response_data.rb +71 -0
  176. data/lib/account_and_transaction_api_specification/models/instructed_amount.rb +73 -0
  177. data/lib/account_and_transaction_api_specification/models/links.rb +100 -0
  178. data/lib/account_and_transaction_api_specification/models/merchant_details.rb +75 -0
  179. data/lib/account_and_transaction_api_specification/models/meta.rb +112 -0
  180. data/lib/account_and_transaction_api_specification/models/meta_data.rb +112 -0
  181. data/lib/account_and_transaction_api_specification/models/next_payment_amount.rb +71 -0
  182. data/lib/account_and_transaction_api_specification/models/offer_model.rb +199 -0
  183. data/lib/account_and_transaction_api_specification/models/offer_type_enum.rb +32 -0
  184. data/lib/account_and_transaction_api_specification/models/party_model.rb +144 -0
  185. data/lib/account_and_transaction_api_specification/models/party_type_enum.rb +26 -0
  186. data/lib/account_and_transaction_api_specification/models/payment_context_code_enum.rb +32 -0
  187. data/lib/account_and_transaction_api_specification/models/permission_enum.rb +76 -0
  188. data/lib/account_and_transaction_api_specification/models/postal_address.rb +138 -0
  189. data/lib/account_and_transaction_api_specification/models/previous_payment_amount.rb +71 -0
  190. data/lib/account_and_transaction_api_specification/models/proprietary_bank_transaction_code.rb +70 -0
  191. data/lib/account_and_transaction_api_specification/models/reference.rb +95 -0
  192. data/lib/account_and_transaction_api_specification/models/risk.rb +164 -0
  193. data/lib/account_and_transaction_api_specification/models/scheduled_payment_model.rb +155 -0
  194. data/lib/account_and_transaction_api_specification/models/scheduled_type_enum.rb +23 -0
  195. data/lib/account_and_transaction_api_specification/models/scheme_name_enum.rb +21 -0
  196. data/lib/account_and_transaction_api_specification/models/servicer.rb +71 -0
  197. data/lib/account_and_transaction_api_specification/models/standing_order_model.rb +289 -0
  198. data/lib/account_and_transaction_api_specification/models/standing_order_status_code_enum.rb +23 -0
  199. data/lib/account_and_transaction_api_specification/models/standing_orders_response.rb +76 -0
  200. data/lib/account_and_transaction_api_specification/models/standing_orders_response_data.rb +71 -0
  201. data/lib/account_and_transaction_api_specification/models/statement.rb +313 -0
  202. data/lib/account_and_transaction_api_specification/models/statement_amount.rb +81 -0
  203. data/lib/account_and_transaction_api_specification/models/statement_amount_type_enum.rb +83 -0
  204. data/lib/account_and_transaction_api_specification/models/statement_benefit.rb +69 -0
  205. data/lib/account_and_transaction_api_specification/models/statement_benefit_type_enum.rb +29 -0
  206. data/lib/account_and_transaction_api_specification/models/statement_date_time.rb +81 -0
  207. data/lib/account_and_transaction_api_specification/models/statement_date_time_type_enum.rb +41 -0
  208. data/lib/account_and_transaction_api_specification/models/statement_fee.rb +80 -0
  209. data/lib/account_and_transaction_api_specification/models/statement_fee_type_enum.rb +59 -0
  210. data/lib/account_and_transaction_api_specification/models/statement_interest.rb +81 -0
  211. data/lib/account_and_transaction_api_specification/models/statement_interest_type_enum.rb +32 -0
  212. data/lib/account_and_transaction_api_specification/models/statement_model.rb +313 -0
  213. data/lib/account_and_transaction_api_specification/models/statement_rate.rb +69 -0
  214. data/lib/account_and_transaction_api_specification/models/statement_rate_type_enum.rb +47 -0
  215. data/lib/account_and_transaction_api_specification/models/statement_type_enum.rb +32 -0
  216. data/lib/account_and_transaction_api_specification/models/statement_value.rb +69 -0
  217. data/lib/account_and_transaction_api_specification/models/statement_value_type_enum.rb +41 -0
  218. data/lib/account_and_transaction_api_specification/models/transaction_model.rb +333 -0
  219. data/lib/account_and_transaction_api_specification/models/transaction_reference.rb +95 -0
  220. data/lib/account_and_transaction_api_specification/models/transaction_status_enum.rb +23 -0
  221. data/lib/account_and_transaction_api_specification/models/transactions_response.rb +76 -0
  222. data/lib/account_and_transaction_api_specification/models/transactions_response_data.rb +71 -0
  223. data/lib/account_and_transaction_api_specification/utilities/date_time_helper.rb +11 -0
  224. data/lib/account_and_transaction_api_specification/utilities/file_wrapper.rb +28 -0
  225. data/lib/account_and_transaction_api_specification.rb +439 -0
  226. data/test/controllers/controller_test_base.rb +29 -0
  227. data/test/controllers/test_accounts_controller.rb +45 -0
  228. data/test/controllers/test_balances_controller.rb +45 -0
  229. data/test/controllers/test_beneficiaries_controller.rb +45 -0
  230. data/test/controllers/test_direct_debits_controller.rb +45 -0
  231. data/test/controllers/test_offers_controller.rb +45 -0
  232. data/test/controllers/test_party_controller.rb +45 -0
  233. data/test/controllers/test_scheduled_payments_controller.rb +45 -0
  234. data/test/controllers/test_standing_orders_controller.rb +45 -0
  235. data/test/controllers/test_statements_controller.rb +49 -0
  236. data/test/controllers/test_transactions_controller.rb +49 -0
  237. data/test/http_response_catcher.rb +19 -0
  238. metadata +349 -0
@@ -0,0 +1,76 @@
1
+ # account_and_transaction_api_specification
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module AccountAndTransactionApiSpecification
7
+ # TransactionsResponse Model.
8
+ class TransactionsResponse < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [TransactionsResponseData]
14
+ attr_accessor :data
15
+
16
+ # Links relevant to the payload
17
+ # @return [Links]
18
+ attr_accessor :links
19
+
20
+ # Links relevant to the payload
21
+ # @return [Meta]
22
+ attr_accessor :meta
23
+
24
+ # A mapping from model property names to API property names.
25
+ def self.names
26
+ @_hash = {} if @_hash.nil?
27
+ @_hash['data'] = 'Data'
28
+ @_hash['links'] = 'Links'
29
+ @_hash['meta'] = 'Meta'
30
+ @_hash
31
+ end
32
+
33
+ # An array for optional fields
34
+ def self.optionals
35
+ []
36
+ end
37
+
38
+ # An array for nullable fields
39
+ def self.nullables
40
+ []
41
+ end
42
+
43
+ def initialize(data = nil, links = nil, meta = nil)
44
+ @data = data
45
+ @links = links
46
+ @meta = meta
47
+ end
48
+
49
+ # Creates an instance of the object from a hash.
50
+ def self.from_hash(hash)
51
+ return nil unless hash
52
+
53
+ # Extract variables from the hash.
54
+ data = TransactionsResponseData.from_hash(hash['Data']) if hash['Data']
55
+ links = Links.from_hash(hash['Links']) if hash['Links']
56
+ meta = Meta.from_hash(hash['Meta']) if hash['Meta']
57
+
58
+ # Create object from extracted values.
59
+ TransactionsResponse.new(data,
60
+ links,
61
+ meta)
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} data: #{@data}, links: #{@links}, meta: #{@meta}>"
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} data: #{@data.inspect}, links: #{@links.inspect}, meta: #{@meta.inspect}>"
74
+ end
75
+ end
76
+ end
@@ -0,0 +1,71 @@
1
+ # account_and_transaction_api_specification
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module AccountAndTransactionApiSpecification
7
+ # TransactionsResponseData Model.
8
+ class TransactionsResponseData < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Transaction
13
+ # @return [Array[TransactionModel]]
14
+ attr_accessor :transaction
15
+
16
+ # A mapping from model property names to API property names.
17
+ def self.names
18
+ @_hash = {} if @_hash.nil?
19
+ @_hash['transaction'] = 'Transaction'
20
+ @_hash
21
+ end
22
+
23
+ # An array for optional fields
24
+ def self.optionals
25
+ %w[
26
+ transaction
27
+ ]
28
+ end
29
+
30
+ # An array for nullable fields
31
+ def self.nullables
32
+ []
33
+ end
34
+
35
+ def initialize(transaction = SKIP)
36
+ @transaction = transaction unless transaction == 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
+ transaction = nil
46
+ unless hash['Transaction'].nil?
47
+ transaction = []
48
+ hash['Transaction'].each do |structure|
49
+ transaction << (TransactionModel.from_hash(structure) if structure)
50
+ end
51
+ end
52
+
53
+ transaction = SKIP unless hash.key?('Transaction')
54
+
55
+ # Create object from extracted values.
56
+ TransactionsResponseData.new(transaction)
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} transaction: #{@transaction}>"
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} transaction: #{@transaction.inspect}>"
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,11 @@
1
+ # account_and_transaction_api_specification
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ require 'date'
7
+ module AccountAndTransactionApiSpecification
8
+ # A utility that supports dateTime conversion to different formats
9
+ class DateTimeHelper < CoreLibrary::DateTimeHelper
10
+ end
11
+ end
@@ -0,0 +1,28 @@
1
+ # account_and_transaction_api_specification
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module AccountAndTransactionApiSpecification
7
+ # A utility to allow users to set the content-type for files
8
+ class FileWrapper < CoreLibrary::FileWrapper
9
+ # The constructor.
10
+ # @param [File] file The file to be sent in the request.
11
+ # @param [string] content_type The content type of the provided file.
12
+ def initialize(file, content_type: 'application/octet-stream')
13
+ super
14
+ end
15
+
16
+ # Provides a human-readable string representation of the object.
17
+ def to_s
18
+ class_name = self.class.name.split('::').last
19
+ "<#{class_name} file: #{@file}, content_type: #{@content_type}>"
20
+ end
21
+
22
+ # Provides a debugging-friendly string with detailed object information.
23
+ def to_inspect
24
+ class_name = self.class.name.split('::').last
25
+ "<#{class_name} file: #{@file.inspect}, content_type: #{@content_type.inspect}>"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,439 @@
1
+ # account_and_transaction_api_specification
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ require 'date'
7
+ require 'json'
8
+
9
+ require 'apimatic_core_interfaces'
10
+ require 'apimatic_core'
11
+ require 'apimatic_faraday_client_adapter'
12
+
13
+ require_relative 'account_and_transaction_api_specification/api_helper'
14
+ require_relative 'account_and_transaction_api_specification/client'
15
+
16
+ # Utilities
17
+ require_relative 'account_and_transaction_api_specification/utilities/' \
18
+ 'file_wrapper'
19
+ require_relative 'account_and_transaction_api_specification/utilities/' \
20
+ 'date_time_helper'
21
+
22
+ # Http
23
+ require_relative 'account_and_transaction_api_specification/http/http_call_back'
24
+ require_relative 'account_and_transaction_api_specification/http/' \
25
+ 'http_method_enum'
26
+ require_relative 'account_and_transaction_api_specification/http/http_request'
27
+ require_relative 'account_and_transaction_api_specification/http/http_response'
28
+
29
+ # Logger
30
+ require_relative 'account_and_transaction_api_specification/http/auth/o_auth2'
31
+
32
+ # Models
33
+ require_relative 'account_and_transaction_api_specification/models/base_model'
34
+ require_relative 'account_and_transaction_api_specification/models/' \
35
+ 'account_model'
36
+ require_relative 'account_and_transaction_api_specification/models/error'
37
+ require_relative 'account_and_transaction_api_specification/models/' \
38
+ 'account_access_consent_response_model'
39
+ require_relative 'account_and_transaction_api_specification/models/' \
40
+ 'transaction_model'
41
+ require_relative 'account_and_transaction_api_specification/models/' \
42
+ 'standing_order_model'
43
+ require_relative 'account_and_transaction_api_specification/models/account'
44
+ require_relative 'account_and_transaction_api_specification/models/balance'
45
+ require_relative 'account_and_transaction_api_specification/models/' \
46
+ 'balances_response'
47
+ require_relative 'account_and_transaction_api_specification/models/' \
48
+ 'error_response'
49
+ require_relative 'account_and_transaction_api_specification/models/links'
50
+ require_relative 'account_and_transaction_api_specification/models/risk'
51
+ require_relative 'account_and_transaction_api_specification/models/consent'
52
+ require_relative 'account_and_transaction_api_specification/models/credit_line'
53
+ require_relative 'account_and_transaction_api_specification/models/' \
54
+ 'creditor_account'
55
+ require_relative 'account_and_transaction_api_specification/models/' \
56
+ 'account_access_consent_model'
57
+ require_relative 'account_and_transaction_api_specification/models/party_model'
58
+ require_relative 'account_and_transaction_api_specification/models/' \
59
+ 'scheduled_payment_model'
60
+ require_relative 'account_and_transaction_api_specification/models/address'
61
+ require_relative 'account_and_transaction_api_specification/models/' \
62
+ 'currency_exchange'
63
+ require_relative 'account_and_transaction_api_specification/models/' \
64
+ 'beneficiary_model'
65
+ require_relative 'account_and_transaction_api_specification/models/' \
66
+ 'statement_model'
67
+ require_relative 'account_and_transaction_api_specification/models/' \
68
+ 'becs_remittance'
69
+ require_relative 'account_and_transaction_api_specification/models/meta_data'
70
+ require_relative 'account_and_transaction_api_specification/models/' \
71
+ 'account_access_consent_response'
72
+ require_relative 'account_and_transaction_api_specification/models/' \
73
+ 'account_response'
74
+ require_relative 'account_and_transaction_api_specification/models/amount'
75
+ require_relative 'account_and_transaction_api_specification/models/' \
76
+ 'bank_transaction_code'
77
+ require_relative 'account_and_transaction_api_specification/models/' \
78
+ 'beneficiaries_response'
79
+ require_relative 'account_and_transaction_api_specification/models/' \
80
+ 'creditor_reference'
81
+ require_relative 'account_and_transaction_api_specification/models/' \
82
+ 'balance_model'
83
+ require_relative 'account_and_transaction_api_specification/models/' \
84
+ 'direct_debit_model'
85
+ require_relative 'account_and_transaction_api_specification/models/offer_model'
86
+ require_relative 'account_and_transaction_api_specification/models/' \
87
+ 'account_access_consent'
88
+ require_relative 'account_and_transaction_api_specification/models/' \
89
+ 'account_access_consent_pos_tresponse'
90
+ require_relative 'account_and_transaction_api_specification/models/' \
91
+ 'card_instrument'
92
+ require_relative 'account_and_transaction_api_specification/models/' \
93
+ 'creditor_agent'
94
+ require_relative 'account_and_transaction_api_specification/models/data'
95
+ require_relative 'account_and_transaction_api_specification/models/' \
96
+ 'get_account_statements_response_data'
97
+ require_relative 'account_and_transaction_api_specification/models/' \
98
+ 'get_statements_response_data'
99
+ require_relative 'account_and_transaction_api_specification/models/' \
100
+ 'debtor_reference'
101
+ require_relative 'account_and_transaction_api_specification/models/' \
102
+ 'direct_debit_response'
103
+ require_relative 'account_and_transaction_api_specification/models/' \
104
+ 'final_payment_amount'
105
+ require_relative 'account_and_transaction_api_specification/models/' \
106
+ 'get_account_scheduled_payments_response'
107
+ require_relative 'account_and_transaction_api_specification/models/' \
108
+ 'get_scheduled_payments_response'
109
+ require_relative 'account_and_transaction_api_specification/models/' \
110
+ 'get_statements_response'
111
+ require_relative 'account_and_transaction_api_specification/models/' \
112
+ 'next_payment_amount'
113
+ require_relative 'account_and_transaction_api_specification/models/' \
114
+ 'postal_address'
115
+ require_relative 'account_and_transaction_api_specification/models/' \
116
+ 'statement_benefit'
117
+ require_relative 'account_and_transaction_api_specification/models/' \
118
+ 'statement_interest'
119
+ require_relative 'account_and_transaction_api_specification/models/' \
120
+ 'statement_rate'
121
+ require_relative 'account_and_transaction_api_specification/models/' \
122
+ 'statement_value'
123
+ require_relative 'account_and_transaction_api_specification/models/' \
124
+ 'get_offers_response_data'
125
+ require_relative 'account_and_transaction_api_specification/models/' \
126
+ 'debtor_account'
127
+ require_relative 'account_and_transaction_api_specification/models/debtor_agent'
128
+ require_relative 'account_and_transaction_api_specification/models/fee'
129
+ require_relative 'account_and_transaction_api_specification/models/geo_location'
130
+ require_relative 'account_and_transaction_api_specification/models/' \
131
+ 'get_account_offers_response'
132
+ require_relative 'account_and_transaction_api_specification/models/' \
133
+ 'get_account_statement_response'
134
+ require_relative 'account_and_transaction_api_specification/models/' \
135
+ 'get_account_statements_response'
136
+ require_relative 'account_and_transaction_api_specification/models/' \
137
+ 'get_offers_response'
138
+ require_relative 'account_and_transaction_api_specification/models/' \
139
+ 'get_party_response'
140
+ require_relative 'account_and_transaction_api_specification/models/' \
141
+ 'instructed_amount'
142
+ require_relative 'account_and_transaction_api_specification/models/' \
143
+ 'statement_amount'
144
+ require_relative 'account_and_transaction_api_specification/models/' \
145
+ 'get_account_statement_response_data'
146
+ require_relative 'account_and_transaction_api_specification/models/' \
147
+ 'get_account_party_response_data'
148
+ require_relative 'account_and_transaction_api_specification/models/' \
149
+ 'get_scheduled_payments_response_data'
150
+ require_relative 'account_and_transaction_api_specification/models/' \
151
+ 'first_payment_amount'
152
+ require_relative 'account_and_transaction_api_specification/models/' \
153
+ 'get_account_party_response'
154
+ require_relative 'account_and_transaction_api_specification/models/' \
155
+ 'get_account_statement_transactions_response'
156
+ require_relative 'account_and_transaction_api_specification/models/' \
157
+ 'proprietary_bank_transaction_code'
158
+ require_relative 'account_and_transaction_api_specification/models/' \
159
+ 'statement_date_time'
160
+ require_relative 'account_and_transaction_api_specification/models/' \
161
+ 'statement_fee'
162
+ require_relative 'account_and_transaction_api_specification/models/' \
163
+ 'transactions_response'
164
+ require_relative 'account_and_transaction_api_specification/models/' \
165
+ 'get_account_statement_transactions_response_data'
166
+ require_relative 'account_and_transaction_api_specification/models/' \
167
+ 'delivery_address'
168
+ require_relative 'account_and_transaction_api_specification/models/' \
169
+ 'merchant_details'
170
+ require_relative 'account_and_transaction_api_specification/models/' \
171
+ 'previous_payment_amount'
172
+ require_relative 'account_and_transaction_api_specification/models/servicer'
173
+ require_relative 'account_and_transaction_api_specification/models/' \
174
+ 'standing_orders_response'
175
+ require_relative 'account_and_transaction_api_specification/models/' \
176
+ 'direct_debit_response_data'
177
+ require_relative 'account_and_transaction_api_specification/models/' \
178
+ 'transactions_response_data'
179
+ require_relative 'account_and_transaction_api_specification/models/meta'
180
+ require_relative 'account_and_transaction_api_specification/models/' \
181
+ 'beneficiaries_response_data'
182
+ require_relative 'account_and_transaction_api_specification/models/' \
183
+ 'standing_orders_response_data'
184
+ require_relative 'account_and_transaction_api_specification/models/' \
185
+ 'balances_response_data'
186
+ require_relative 'account_and_transaction_api_specification/models/reference'
187
+ require_relative 'account_and_transaction_api_specification/models/statement'
188
+ require_relative 'account_and_transaction_api_specification/models/' \
189
+ 'account_response_data'
190
+ require_relative 'account_and_transaction_api_specification/models/' \
191
+ 'transaction_reference'
192
+ require_relative 'account_and_transaction_api_specification/models/' \
193
+ 'account_scheme_model_enum'
194
+ require_relative 'account_and_transaction_api_specification/models/' \
195
+ 'account_type_enum'
196
+ require_relative 'account_and_transaction_api_specification/models/' \
197
+ 'address_type_option_enum'
198
+ require_relative 'account_and_transaction_api_specification/models/' \
199
+ 'authorisation_type_enum'
200
+ require_relative 'account_and_transaction_api_specification/models/' \
201
+ 'account_sub_type_enum'
202
+ require_relative 'account_and_transaction_api_specification/models/' \
203
+ 'address_type_enum'
204
+ require_relative 'account_and_transaction_api_specification/models/' \
205
+ 'card_scheme_name_enum'
206
+ require_relative 'account_and_transaction_api_specification/models/' \
207
+ 'credit_debit_indicator_enum'
208
+ require_relative 'account_and_transaction_api_specification/models/' \
209
+ 'error_code_enum'
210
+ require_relative 'account_and_transaction_api_specification/models/' \
211
+ 'offer_type_enum'
212
+ require_relative 'account_and_transaction_api_specification/models/' \
213
+ 'standing_order_status_code_enum'
214
+ require_relative 'account_and_transaction_api_specification/models/' \
215
+ 'statement_fee_type_enum'
216
+ require_relative 'account_and_transaction_api_specification/models/' \
217
+ 'scheduled_type_enum'
218
+ require_relative 'account_and_transaction_api_specification/models/' \
219
+ 'transaction_status_enum'
220
+ require_relative 'account_and_transaction_api_specification/models/' \
221
+ 'credit_line_type_enum'
222
+ require_relative 'account_and_transaction_api_specification/models/' \
223
+ 'statement_interest_type_enum'
224
+ require_relative 'account_and_transaction_api_specification/models/' \
225
+ 'direct_debit_status_code_enum'
226
+ require_relative 'account_and_transaction_api_specification/models/' \
227
+ 'payment_context_code_enum'
228
+ require_relative 'account_and_transaction_api_specification/models/' \
229
+ 'balance_model_type_enum'
230
+ require_relative 'account_and_transaction_api_specification/models/' \
231
+ 'statement_benefit_type_enum'
232
+ require_relative 'account_and_transaction_api_specification/models/' \
233
+ 'party_type_enum'
234
+ require_relative 'account_and_transaction_api_specification/models/' \
235
+ 'permission_enum'
236
+ require_relative 'account_and_transaction_api_specification/models/' \
237
+ 'scheme_name_enum'
238
+ require_relative 'account_and_transaction_api_specification/models/' \
239
+ 'account_access_status_enum'
240
+ require_relative 'account_and_transaction_api_specification/models/' \
241
+ 'statement_type_enum'
242
+ require_relative 'account_and_transaction_api_specification/models/' \
243
+ 'statement_date_time_type_enum'
244
+ require_relative 'account_and_transaction_api_specification/models/' \
245
+ 'statement_rate_type_enum'
246
+ require_relative 'account_and_transaction_api_specification/models/' \
247
+ 'statement_value_type_enum'
248
+ require_relative 'account_and_transaction_api_specification/models/' \
249
+ 'statement_amount_type_enum'
250
+
251
+ # Exceptions
252
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
253
+ 'api_exception'
254
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
255
+ 'accounts400_error_exception'
256
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
257
+ 'accounts403_error_exception'
258
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
259
+ 'accounts500_error_exception'
260
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
261
+ 'accounts503_error_exception'
262
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
263
+ 'accounts_balances400_error_exception'
264
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
265
+ 'accounts_balances403_error_exception'
266
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
267
+ 'accounts_balances500_error_exception'
268
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
269
+ 'accounts_balances503_error_exception'
270
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
271
+ 'accounts_beneficiaries400_error_exception'
272
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
273
+ 'accounts_beneficiaries403_error_exception'
274
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
275
+ 'accounts_beneficiaries500_error_exception'
276
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
277
+ 'accounts_beneficiaries503_error_exception'
278
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
279
+ 'accounts_direct_debits400_error_exception'
280
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
281
+ 'accounts_direct_debits403_error_exception'
282
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
283
+ 'accounts_direct_debits500_error_exception'
284
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
285
+ 'accounts_direct_debits503_error_exception'
286
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
287
+ 'accounts_offers400_error_exception'
288
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
289
+ 'accounts_offers403_error_exception'
290
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
291
+ 'accounts_offers500_error_exception'
292
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
293
+ 'accounts_offers503_error_exception'
294
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
295
+ 'accounts_party400_error_exception'
296
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
297
+ 'accounts_party403_error_exception'
298
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
299
+ 'accounts_party500_error_exception'
300
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
301
+ 'accounts_party503_error_exception'
302
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
303
+ 'accounts_scheduled_payments400_error_exception'
304
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
305
+ 'accounts_scheduled_payments403_error_exception'
306
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
307
+ 'accounts_scheduled_payments500_error_exception'
308
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
309
+ 'accounts_scheduled_payments503_error_exception'
310
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
311
+ 'accounts_standing_orders400_error_exception'
312
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
313
+ 'accounts_standing_orders403_error_exception'
314
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
315
+ 'accounts_standing_orders500_error_exception'
316
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
317
+ 'accounts_standing_orders503_error_exception'
318
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
319
+ 'accounts_statements400_error_exception'
320
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
321
+ 'accounts_statements403_error_exception'
322
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
323
+ 'accounts_statements500_error_exception'
324
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
325
+ 'accounts_statements503_error_exception'
326
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
327
+ 'accounts_statements_transactions400_error_exception'
328
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
329
+ 'accounts_statements_transactions403_error_exception'
330
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
331
+ 'accounts_statements_transactions500_error_exception'
332
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
333
+ 'accounts_statements_transactions503_error_exception'
334
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
335
+ 'accounts_transactions400_error_exception'
336
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
337
+ 'accounts_transactions403_error_exception'
338
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
339
+ 'accounts_transactions500_error_exception'
340
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
341
+ 'accounts_transactions503_error_exception'
342
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
343
+ 'balances400_error_exception'
344
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
345
+ 'balances403_error_exception'
346
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
347
+ 'balances500_error_exception'
348
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
349
+ 'balances503_error_exception'
350
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
351
+ 'beneficiaries400_error_exception'
352
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
353
+ 'beneficiaries403_error_exception'
354
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
355
+ 'beneficiaries500_error_exception'
356
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
357
+ 'beneficiaries503_error_exception'
358
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
359
+ 'direct_debits400_error_exception'
360
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
361
+ 'direct_debits403_error_exception'
362
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
363
+ 'direct_debits500_error_exception'
364
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
365
+ 'direct_debits503_error_exception'
366
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
367
+ 'offers400_error_exception'
368
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
369
+ 'offers403_error_exception'
370
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
371
+ 'offers500_error_exception'
372
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
373
+ 'offers503_error_exception'
374
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
375
+ 'party400_error_exception'
376
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
377
+ 'party403_error_exception'
378
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
379
+ 'party500_error_exception'
380
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
381
+ 'party503_error_exception'
382
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
383
+ 'scheduled_payments400_error_exception'
384
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
385
+ 'scheduled_payments403_error_exception'
386
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
387
+ 'scheduled_payments500_error_exception'
388
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
389
+ 'scheduled_payments503_error_exception'
390
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
391
+ 'standing_orders400_error_exception'
392
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
393
+ 'standing_orders403_error_exception'
394
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
395
+ 'standing_orders500_error_exception'
396
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
397
+ 'standing_orders503_error_exception'
398
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
399
+ 'statements400_error_exception'
400
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
401
+ 'statements403_error_exception'
402
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
403
+ 'statements500_error_exception'
404
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
405
+ 'statements503_error_exception'
406
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
407
+ 'transactions400_error_exception'
408
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
409
+ 'transactions403_error_exception'
410
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
411
+ 'transactions500_error_exception'
412
+ require_relative 'account_and_transaction_api_specification/exceptions/' \
413
+ 'transactions503_error_exception'
414
+
415
+ require_relative 'account_and_transaction_api_specification/configuration'
416
+
417
+ # Controllers
418
+ require_relative 'account_and_transaction_api_specification/controllers/' \
419
+ 'base_controller'
420
+ require_relative 'account_and_transaction_api_specification/controllers/' \
421
+ 'accounts_controller'
422
+ require_relative 'account_and_transaction_api_specification/controllers/' \
423
+ 'balances_controller'
424
+ require_relative 'account_and_transaction_api_specification/controllers/' \
425
+ 'beneficiaries_controller'
426
+ require_relative 'account_and_transaction_api_specification/controllers/' \
427
+ 'direct_debits_controller'
428
+ require_relative 'account_and_transaction_api_specification/controllers/' \
429
+ 'offers_controller'
430
+ require_relative 'account_and_transaction_api_specification/controllers/' \
431
+ 'party_controller'
432
+ require_relative 'account_and_transaction_api_specification/controllers/' \
433
+ 'scheduled_payments_controller'
434
+ require_relative 'account_and_transaction_api_specification/controllers/' \
435
+ 'standing_orders_controller'
436
+ require_relative 'account_and_transaction_api_specification/controllers/' \
437
+ 'statements_controller'
438
+ require_relative 'account_and_transaction_api_specification/controllers/' \
439
+ 'transactions_controller'
@@ -0,0 +1,29 @@
1
+ # account_and_transaction_api_specification
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ require 'json'
7
+ require 'minitest/autorun'
8
+ require 'minitest/hell'
9
+ require 'minitest/pride'
10
+ require 'minitest/proveit'
11
+ require 'account_and_transaction_api_specification'
12
+ require_relative '../http_response_catcher'
13
+
14
+ class ControllerTestBase < Minitest::Test
15
+ parallelize_me!
16
+ include AccountAndTransactionApiSpecification
17
+ include CoreLibrary
18
+
19
+ # Create configuration and set any test parameters
20
+ def create_configuration
21
+ Configuration.new(http_callback: HttpResponseCatcher.new)
22
+ end
23
+
24
+ # Initializes the base test controller
25
+ def setup_class
26
+ _config = create_configuration
27
+ @client = Client.new(config: _config)
28
+ end
29
+ end