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,112 @@
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
+ # Meta Data relevant to the payload
9
+ class MetaData < BaseModel
10
+ SKIP = Object.new
11
+ private_constant :SKIP
12
+
13
+ # TODO: Write general description for this method
14
+ # @return [Integer]
15
+ attr_accessor :total_pages
16
+
17
+ # All dates in the JSON payloads are represented in ISO 8601 date-time
18
+ # format.
19
+ # All date-time fields in responses must include the timezone. An example is
20
+ # below:
21
+ # 2017-04-05T10:43:07+00:00
22
+ # @return [DateTime]
23
+ attr_accessor :first_available_date_time
24
+
25
+ # All dates in the JSON payloads are represented in ISO 8601 date-time
26
+ # format.
27
+ # All date-time fields in responses must include the timezone. An example is
28
+ # below:
29
+ # 2017-04-05T10:43:07+00:00
30
+ # @return [DateTime]
31
+ attr_accessor :last_available_date_time
32
+
33
+ # A mapping from model property names to API property names.
34
+ def self.names
35
+ @_hash = {} if @_hash.nil?
36
+ @_hash['total_pages'] = 'TotalPages'
37
+ @_hash['first_available_date_time'] = 'FirstAvailableDateTime'
38
+ @_hash['last_available_date_time'] = 'LastAvailableDateTime'
39
+ @_hash
40
+ end
41
+
42
+ # An array for optional fields
43
+ def self.optionals
44
+ %w[
45
+ total_pages
46
+ first_available_date_time
47
+ last_available_date_time
48
+ ]
49
+ end
50
+
51
+ # An array for nullable fields
52
+ def self.nullables
53
+ []
54
+ end
55
+
56
+ def initialize(total_pages = SKIP, first_available_date_time = SKIP,
57
+ last_available_date_time = SKIP)
58
+ @total_pages = total_pages unless total_pages == SKIP
59
+ unless first_available_date_time == SKIP
60
+ @first_available_date_time =
61
+ first_available_date_time
62
+ end
63
+ @last_available_date_time = last_available_date_time unless last_available_date_time == SKIP
64
+ end
65
+
66
+ # Creates an instance of the object from a hash.
67
+ def self.from_hash(hash)
68
+ return nil unless hash
69
+
70
+ # Extract variables from the hash.
71
+ total_pages = hash.key?('TotalPages') ? hash['TotalPages'] : SKIP
72
+ first_available_date_time = if hash.key?('FirstAvailableDateTime')
73
+ (DateTimeHelper.from_rfc3339(hash['FirstAvailableDateTime']) if hash['FirstAvailableDateTime'])
74
+ else
75
+ SKIP
76
+ end
77
+ last_available_date_time = if hash.key?('LastAvailableDateTime')
78
+ (DateTimeHelper.from_rfc3339(hash['LastAvailableDateTime']) if hash['LastAvailableDateTime'])
79
+ else
80
+ SKIP
81
+ end
82
+
83
+ # Create object from extracted values.
84
+ MetaData.new(total_pages,
85
+ first_available_date_time,
86
+ last_available_date_time)
87
+ end
88
+
89
+ def to_custom_first_available_date_time
90
+ DateTimeHelper.to_rfc3339(first_available_date_time)
91
+ end
92
+
93
+ def to_custom_last_available_date_time
94
+ DateTimeHelper.to_rfc3339(last_available_date_time)
95
+ end
96
+
97
+ # Provides a human-readable string representation of the object.
98
+ def to_s
99
+ class_name = self.class.name.split('::').last
100
+ "<#{class_name} total_pages: #{@total_pages}, first_available_date_time:"\
101
+ " #{@first_available_date_time}, last_available_date_time: #{@last_available_date_time}>"
102
+ end
103
+
104
+ # Provides a debugging-friendly string with detailed object information.
105
+ def inspect
106
+ class_name = self.class.name.split('::').last
107
+ "<#{class_name} total_pages: #{@total_pages.inspect}, first_available_date_time:"\
108
+ " #{@first_available_date_time.inspect}, last_available_date_time:"\
109
+ " #{@last_available_date_time.inspect}>"
110
+ end
111
+ end
112
+ 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
+ # The amount of the next Standing Order
8
+ class NextPaymentAmount < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [String]
14
+ attr_accessor :amount
15
+
16
+ # A code allocated to a currency by a Maintenance Agency under an
17
+ # international identification scheme, as described in the latest edition of
18
+ # the international standard ISO 4217 'Codes for the representation of
19
+ # currencies and funds'
20
+ # @return [String]
21
+ attr_accessor :currency
22
+
23
+ # A mapping from model property names to API property names.
24
+ def self.names
25
+ @_hash = {} if @_hash.nil?
26
+ @_hash['amount'] = 'Amount'
27
+ @_hash['currency'] = 'Currency'
28
+ @_hash
29
+ end
30
+
31
+ # An array for optional fields
32
+ def self.optionals
33
+ []
34
+ end
35
+
36
+ # An array for nullable fields
37
+ def self.nullables
38
+ []
39
+ end
40
+
41
+ def initialize(amount = nil, currency = nil)
42
+ @amount = amount
43
+ @currency = currency
44
+ end
45
+
46
+ # Creates an instance of the object from a hash.
47
+ def self.from_hash(hash)
48
+ return nil unless hash
49
+
50
+ # Extract variables from the hash.
51
+ amount = hash.key?('Amount') ? hash['Amount'] : nil
52
+ currency = hash.key?('Currency') ? hash['Currency'] : nil
53
+
54
+ # Create object from extracted values.
55
+ NextPaymentAmount.new(amount,
56
+ currency)
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} amount: #{@amount}, currency: #{@currency}>"
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} amount: #{@amount.inspect}, currency: #{@currency.inspect}>"
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,199 @@
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
+ # OfferModel Model.
9
+ class OfferModel < BaseModel
10
+ SKIP = Object.new
11
+ private_constant :SKIP
12
+
13
+ # A unique and immutable identifier used to identify the account resource.
14
+ # This identifier has no meaning to the account owner.
15
+ # @return [String]
16
+ attr_accessor :account_id
17
+
18
+ # A unique and immutable identifier used to identify the offer resource.
19
+ # This identifier has no meaning to the account owner.
20
+ # @return [String]
21
+ attr_accessor :offer_id
22
+
23
+ # Offer type, in a coded form.
24
+ # @return [OfferTypeEnum]
25
+ attr_accessor :offer_type
26
+
27
+ # Further details of the offer.
28
+ # @return [String]
29
+ attr_accessor :description
30
+
31
+ # Date and time at which the offer starts.
32
+ # All dates in the JSON payloads are represented in ISO 8601 date-time
33
+ # format.
34
+ # All date-time fields in responses must include the timezone. An example is
35
+ # below:
36
+ # 2017-04-05T10:43:07+00:00
37
+ # @return [DateTime]
38
+ attr_accessor :start_date_time
39
+
40
+ # Date and time at which the offer ends.
41
+ # All dates in the JSON payloads are represented in ISO 8601 date-time
42
+ # format.
43
+ # All date-time fields in responses must include the timezone. An example is
44
+ # below:
45
+ # 2017-04-05T10:43:07+00:00
46
+ # @return [DateTime]
47
+ attr_accessor :end_date_time
48
+
49
+ # Amount of money of the cash balance.
50
+ # @return [Amount]
51
+ attr_accessor :amount
52
+
53
+ # Fee associated with the offer type.
54
+ # @return [Fee]
55
+ attr_accessor :fee
56
+
57
+ # Rate associated with the offer type.
58
+ # @return [String]
59
+ attr_accessor :rate
60
+
61
+ # Value associated with the offer type.
62
+ # @return [Integer]
63
+ attr_accessor :value
64
+
65
+ # Further details of the term of the offer.
66
+ # @return [String]
67
+ attr_accessor :term
68
+
69
+ # URL (Uniform Resource Locator) where the document can be found
70
+ # @return [String]
71
+ attr_accessor :url
72
+
73
+ # A mapping from model property names to API property names.
74
+ def self.names
75
+ @_hash = {} if @_hash.nil?
76
+ @_hash['account_id'] = 'AccountId'
77
+ @_hash['offer_id'] = 'OfferId'
78
+ @_hash['offer_type'] = 'OfferType'
79
+ @_hash['description'] = 'Description'
80
+ @_hash['start_date_time'] = 'StartDateTime'
81
+ @_hash['end_date_time'] = 'EndDateTime'
82
+ @_hash['amount'] = 'Amount'
83
+ @_hash['fee'] = 'Fee'
84
+ @_hash['rate'] = 'Rate'
85
+ @_hash['value'] = 'Value'
86
+ @_hash['term'] = 'Term'
87
+ @_hash['url'] = 'URL'
88
+ @_hash
89
+ end
90
+
91
+ # An array for optional fields
92
+ def self.optionals
93
+ %w[
94
+ offer_id
95
+ offer_type
96
+ description
97
+ start_date_time
98
+ end_date_time
99
+ amount
100
+ fee
101
+ rate
102
+ value
103
+ term
104
+ url
105
+ ]
106
+ end
107
+
108
+ # An array for nullable fields
109
+ def self.nullables
110
+ []
111
+ end
112
+
113
+ def initialize(account_id = nil, offer_id = SKIP, offer_type = SKIP,
114
+ description = SKIP, start_date_time = SKIP,
115
+ end_date_time = SKIP, amount = SKIP, fee = SKIP, rate = SKIP,
116
+ value = SKIP, term = SKIP, url = SKIP)
117
+ @account_id = account_id
118
+ @offer_id = offer_id unless offer_id == SKIP
119
+ @offer_type = offer_type unless offer_type == SKIP
120
+ @description = description unless description == SKIP
121
+ @start_date_time = start_date_time unless start_date_time == SKIP
122
+ @end_date_time = end_date_time unless end_date_time == SKIP
123
+ @amount = amount unless amount == SKIP
124
+ @fee = fee unless fee == SKIP
125
+ @rate = rate unless rate == SKIP
126
+ @value = value unless value == SKIP
127
+ @term = term unless term == SKIP
128
+ @url = url unless url == SKIP
129
+ end
130
+
131
+ # Creates an instance of the object from a hash.
132
+ def self.from_hash(hash)
133
+ return nil unless hash
134
+
135
+ # Extract variables from the hash.
136
+ account_id = hash.key?('AccountId') ? hash['AccountId'] : nil
137
+ offer_id = hash.key?('OfferId') ? hash['OfferId'] : SKIP
138
+ offer_type = hash.key?('OfferType') ? hash['OfferType'] : SKIP
139
+ description = hash.key?('Description') ? hash['Description'] : SKIP
140
+ start_date_time = if hash.key?('StartDateTime')
141
+ (DateTimeHelper.from_rfc3339(hash['StartDateTime']) if hash['StartDateTime'])
142
+ else
143
+ SKIP
144
+ end
145
+ end_date_time = if hash.key?('EndDateTime')
146
+ (DateTimeHelper.from_rfc3339(hash['EndDateTime']) if hash['EndDateTime'])
147
+ else
148
+ SKIP
149
+ end
150
+ amount = Amount.from_hash(hash['Amount']) if hash['Amount']
151
+ fee = Fee.from_hash(hash['Fee']) if hash['Fee']
152
+ rate = hash.key?('Rate') ? hash['Rate'] : SKIP
153
+ value = hash.key?('Value') ? hash['Value'] : SKIP
154
+ term = hash.key?('Term') ? hash['Term'] : SKIP
155
+ url = hash.key?('URL') ? hash['URL'] : SKIP
156
+
157
+ # Create object from extracted values.
158
+ OfferModel.new(account_id,
159
+ offer_id,
160
+ offer_type,
161
+ description,
162
+ start_date_time,
163
+ end_date_time,
164
+ amount,
165
+ fee,
166
+ rate,
167
+ value,
168
+ term,
169
+ url)
170
+ end
171
+
172
+ def to_custom_start_date_time
173
+ DateTimeHelper.to_rfc3339(start_date_time)
174
+ end
175
+
176
+ def to_custom_end_date_time
177
+ DateTimeHelper.to_rfc3339(end_date_time)
178
+ end
179
+
180
+ # Provides a human-readable string representation of the object.
181
+ def to_s
182
+ class_name = self.class.name.split('::').last
183
+ "<#{class_name} account_id: #{@account_id}, offer_id: #{@offer_id}, offer_type:"\
184
+ " #{@offer_type}, description: #{@description}, start_date_time: #{@start_date_time},"\
185
+ " end_date_time: #{@end_date_time}, amount: #{@amount}, fee: #{@fee}, rate: #{@rate}, value:"\
186
+ " #{@value}, term: #{@term}, url: #{@url}>"
187
+ end
188
+
189
+ # Provides a debugging-friendly string with detailed object information.
190
+ def inspect
191
+ class_name = self.class.name.split('::').last
192
+ "<#{class_name} account_id: #{@account_id.inspect}, offer_id: #{@offer_id.inspect},"\
193
+ " offer_type: #{@offer_type.inspect}, description: #{@description.inspect}, start_date_time:"\
194
+ " #{@start_date_time.inspect}, end_date_time: #{@end_date_time.inspect}, amount:"\
195
+ " #{@amount.inspect}, fee: #{@fee.inspect}, rate: #{@rate.inspect}, value:"\
196
+ " #{@value.inspect}, term: #{@term.inspect}, url: #{@url.inspect}>"
197
+ end
198
+ end
199
+ end
@@ -0,0 +1,32 @@
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
+ # Offer type, in a coded form.
8
+ class OfferTypeEnum
9
+ OFFER_TYPE_ENUM = [
10
+ # TODO: Write general description for BALANCETRANSFER
11
+ BALANCETRANSFER = 'BalanceTransfer'.freeze,
12
+
13
+ # TODO: Write general description for LIMITINCREASE
14
+ LIMITINCREASE = 'LimitIncrease'.freeze,
15
+
16
+ # TODO: Write general description for MONEYTRANSFER
17
+ MONEYTRANSFER = 'MoneyTransfer'.freeze,
18
+
19
+ # TODO: Write general description for OTHER
20
+ OTHER = 'Other'.freeze,
21
+
22
+ # TODO: Write general description for PROMOTIONALRATE
23
+ PROMOTIONALRATE = 'PromotionalRate'.freeze
24
+ ].freeze
25
+
26
+ def self.validate(value)
27
+ return false if value.nil?
28
+
29
+ OFFER_TYPE_ENUM.include?(value)
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,144 @@
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
+ # PartyModel Model.
8
+ class PartyModel < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # A unique and immutable identifier used to identify the customer resource.
13
+ # This identifier has no meaning to the account owner.
14
+ # @return [String]
15
+ attr_accessor :party_id
16
+
17
+ # Number assigned by an agent to identify its customer.
18
+ # @return [String]
19
+ attr_accessor :party_number
20
+
21
+ # Party type, in a coded form.
22
+ # @return [PartyTypeEnum]
23
+ attr_accessor :party_type
24
+
25
+ # Name by which a party is known and which is usually used to identify that
26
+ # party.
27
+ # @return [String]
28
+ attr_accessor :name
29
+
30
+ # Address for electronic mail (e-mail).
31
+ # @return [String]
32
+ attr_accessor :email_address
33
+
34
+ # Collection of information that identifies a phone number, as defined by
35
+ # telecom services.
36
+ # @return [String]
37
+ attr_accessor :phone
38
+
39
+ # Collection of information that identifies a mobile phone number, as
40
+ # defined by telecom services.
41
+ # @return [String]
42
+ attr_accessor :mobile
43
+
44
+ # Postal address of a party.
45
+ # @return [Array[Address]]
46
+ attr_accessor :address
47
+
48
+ # A mapping from model property names to API property names.
49
+ def self.names
50
+ @_hash = {} if @_hash.nil?
51
+ @_hash['party_id'] = 'PartyId'
52
+ @_hash['party_number'] = 'PartyNumber'
53
+ @_hash['party_type'] = 'PartyType'
54
+ @_hash['name'] = 'Name'
55
+ @_hash['email_address'] = 'EmailAddress'
56
+ @_hash['phone'] = 'Phone'
57
+ @_hash['mobile'] = 'Mobile'
58
+ @_hash['address'] = 'Address'
59
+ @_hash
60
+ end
61
+
62
+ # An array for optional fields
63
+ def self.optionals
64
+ %w[
65
+ party_number
66
+ party_type
67
+ name
68
+ email_address
69
+ phone
70
+ mobile
71
+ address
72
+ ]
73
+ end
74
+
75
+ # An array for nullable fields
76
+ def self.nullables
77
+ []
78
+ end
79
+
80
+ def initialize(party_id = nil, party_number = SKIP, party_type = SKIP,
81
+ name = SKIP, email_address = SKIP, phone = SKIP,
82
+ mobile = SKIP, address = SKIP)
83
+ @party_id = party_id
84
+ @party_number = party_number unless party_number == SKIP
85
+ @party_type = party_type unless party_type == SKIP
86
+ @name = name unless name == SKIP
87
+ @email_address = email_address unless email_address == SKIP
88
+ @phone = phone unless phone == SKIP
89
+ @mobile = mobile unless mobile == SKIP
90
+ @address = address unless address == SKIP
91
+ end
92
+
93
+ # Creates an instance of the object from a hash.
94
+ def self.from_hash(hash)
95
+ return nil unless hash
96
+
97
+ # Extract variables from the hash.
98
+ party_id = hash.key?('PartyId') ? hash['PartyId'] : nil
99
+ party_number = hash.key?('PartyNumber') ? hash['PartyNumber'] : SKIP
100
+ party_type = hash.key?('PartyType') ? hash['PartyType'] : SKIP
101
+ name = hash.key?('Name') ? hash['Name'] : SKIP
102
+ email_address = hash.key?('EmailAddress') ? hash['EmailAddress'] : SKIP
103
+ phone = hash.key?('Phone') ? hash['Phone'] : SKIP
104
+ mobile = hash.key?('Mobile') ? hash['Mobile'] : SKIP
105
+ # Parameter is an array, so we need to iterate through it
106
+ address = nil
107
+ unless hash['Address'].nil?
108
+ address = []
109
+ hash['Address'].each do |structure|
110
+ address << (Address.from_hash(structure) if structure)
111
+ end
112
+ end
113
+
114
+ address = SKIP unless hash.key?('Address')
115
+
116
+ # Create object from extracted values.
117
+ PartyModel.new(party_id,
118
+ party_number,
119
+ party_type,
120
+ name,
121
+ email_address,
122
+ phone,
123
+ mobile,
124
+ address)
125
+ end
126
+
127
+ # Provides a human-readable string representation of the object.
128
+ def to_s
129
+ class_name = self.class.name.split('::').last
130
+ "<#{class_name} party_id: #{@party_id}, party_number: #{@party_number}, party_type:"\
131
+ " #{@party_type}, name: #{@name}, email_address: #{@email_address}, phone: #{@phone},"\
132
+ " mobile: #{@mobile}, address: #{@address}>"
133
+ end
134
+
135
+ # Provides a debugging-friendly string with detailed object information.
136
+ def inspect
137
+ class_name = self.class.name.split('::').last
138
+ "<#{class_name} party_id: #{@party_id.inspect}, party_number: #{@party_number.inspect},"\
139
+ " party_type: #{@party_type.inspect}, name: #{@name.inspect}, email_address:"\
140
+ " #{@email_address.inspect}, phone: #{@phone.inspect}, mobile: #{@mobile.inspect}, address:"\
141
+ " #{@address.inspect}>"
142
+ end
143
+ end
144
+ end
@@ -0,0 +1,26 @@
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
+ # Party type, in a coded form.
8
+ class PartyTypeEnum
9
+ PARTY_TYPE_ENUM = [
10
+ # TODO: Write general description for DELEGATE
11
+ DELEGATE = 'Delegate'.freeze,
12
+
13
+ # TODO: Write general description for JOINT
14
+ JOINT = 'Joint'.freeze,
15
+
16
+ # TODO: Write general description for SOLE
17
+ SOLE = 'Sole'.freeze
18
+ ].freeze
19
+
20
+ def self.validate(value)
21
+ return false if value.nil?
22
+
23
+ PARTY_TYPE_ENUM.include?(value)
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,32 @@
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
+ # Specifies the payment context
8
+ class PaymentContextCodeEnum
9
+ PAYMENT_CONTEXT_CODE_ENUM = [
10
+ # TODO: Write general description for BILLPAYMENT
11
+ BILLPAYMENT = 'BillPayment'.freeze,
12
+
13
+ # TODO: Write general description for ECOMMERCEGOODS
14
+ ECOMMERCEGOODS = 'EcommerceGoods'.freeze,
15
+
16
+ # TODO: Write general description for ECOMMERCESERVICES
17
+ ECOMMERCESERVICES = 'EcommerceServices'.freeze,
18
+
19
+ # TODO: Write general description for OTHER
20
+ OTHER = 'Other'.freeze,
21
+
22
+ # TODO: Write general description for PERSONTOPERSON
23
+ PERSONTOPERSON = 'PersonToPerson'.freeze
24
+ ].freeze
25
+
26
+ def self.validate(value)
27
+ return false if value.nil?
28
+
29
+ PAYMENT_CONTEXT_CODE_ENUM.include?(value)
30
+ end
31
+ end
32
+ end
@@ -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
+ # Specifies the Open Banking account access consent types. This is a list of
8
+ # the data clusters being consented by the Customer, and requested for
9
+ # authorisation with the API Provider.
10
+ class PermissionEnum
11
+ PERMISSION_ENUM = [
12
+ # TODO: Write general description for READACCOUNTSBASIC
13
+ READACCOUNTSBASIC = 'ReadAccountsBasic'.freeze,
14
+
15
+ # TODO: Write general description for READACCOUNTSDETAIL
16
+ READACCOUNTSDETAIL = 'ReadAccountsDetail'.freeze,
17
+
18
+ # TODO: Write general description for READBALANCES
19
+ READBALANCES = 'ReadBalances'.freeze,
20
+
21
+ # TODO: Write general description for READBENEFICIARIESBASIC
22
+ READBENEFICIARIESBASIC = 'ReadBeneficiariesBasic'.freeze,
23
+
24
+ # TODO: Write general description for READBENEFICIARIESDETAIL
25
+ READBENEFICIARIESDETAIL = 'ReadBeneficiariesDetail'.freeze,
26
+
27
+ # TODO: Write general description for READDIRECTDEBITS
28
+ READDIRECTDEBITS = 'ReadDirectDebits'.freeze,
29
+
30
+ # TODO: Write general description for READOFFERS
31
+ READOFFERS = 'ReadOffers'.freeze,
32
+
33
+ # TODO: Write general description for READPARTY
34
+ READPARTY = 'ReadParty'.freeze,
35
+
36
+ # TODO: Write general description for READPARTYAUTHUSER
37
+ READPARTYAUTHUSER = 'ReadPartyAuthUser'.freeze,
38
+
39
+ # TODO: Write general description for READSCHEDULEDPAYMENTSBASIC
40
+ READSCHEDULEDPAYMENTSBASIC = 'ReadScheduledPaymentsBasic'.freeze,
41
+
42
+ # TODO: Write general description for READSCHEDULEDPAYMENTSDETAIL
43
+ READSCHEDULEDPAYMENTSDETAIL = 'ReadScheduledPaymentsDetail'.freeze,
44
+
45
+ # TODO: Write general description for READSTANDINGORDERSBASIC
46
+ READSTANDINGORDERSBASIC = 'ReadStandingOrdersBasic'.freeze,
47
+
48
+ # TODO: Write general description for READSTANDINGORDERSDETAIL
49
+ READSTANDINGORDERSDETAIL = 'ReadStandingOrdersDetail'.freeze,
50
+
51
+ # TODO: Write general description for READSTATEMENTSBASIC
52
+ READSTATEMENTSBASIC = 'ReadStatementsBasic'.freeze,
53
+
54
+ # TODO: Write general description for READSTATEMENTSDETAIL
55
+ READSTATEMENTSDETAIL = 'ReadStatementsDetail'.freeze,
56
+
57
+ # TODO: Write general description for READTRANSACTIONSBASIC
58
+ READTRANSACTIONSBASIC = 'ReadTransactionsBasic'.freeze,
59
+
60
+ # TODO: Write general description for READTRANSACTIONSCREDITS
61
+ READTRANSACTIONSCREDITS = 'ReadTransactionsCredits'.freeze,
62
+
63
+ # TODO: Write general description for READTRANSACTIONSDEBITS
64
+ READTRANSACTIONSDEBITS = 'ReadTransactionsDebits'.freeze,
65
+
66
+ # TODO: Write general description for READTRANSACTIONSDETAIL
67
+ READTRANSACTIONSDETAIL = 'ReadTransactionsDetail'.freeze
68
+ ].freeze
69
+
70
+ def self.validate(value)
71
+ return false if value.nil?
72
+
73
+ PERMISSION_ENUM.include?(value)
74
+ end
75
+ end
76
+ end