budgea_client 5.3.4 → 5.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (281) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +11 -10
  3. data/README.md +14 -4
  4. data/budgea_client.gemspec +2 -1
  5. data/budgea_openapi.json +348 -27
  6. data/config.json +1 -1
  7. data/docs/AuthenticationApi.md +62 -0
  8. data/docs/BanksApi.md +6 -2
  9. data/docs/Connection.md +1 -0
  10. data/docs/Connector.md +1 -0
  11. data/docs/ConnectorSource.md +7 -0
  12. data/docs/Field.md +2 -1
  13. data/docs/InlineResponse2005.md +1 -3
  14. data/docs/PFMApi.md +9 -12
  15. data/docs/Payment.md +15 -0
  16. data/docs/PaymentBeneficiary.md +13 -0
  17. data/docs/PaymentBeneficiaryRequest.md +12 -0
  18. data/docs/PaymentData.md +13 -0
  19. data/docs/PaymentErrorCode.md +7 -0
  20. data/docs/PaymentInstruction.md +12 -0
  21. data/docs/PaymentInstructionRequest.md +13 -0
  22. data/docs/PaymentRequest.md +13 -0
  23. data/docs/PaymentState.md +7 -0
  24. data/docs/PaymentsApi.md +61 -0
  25. data/generate.sh +14 -0
  26. data/lib/budgea_client.rb +10 -1
  27. data/lib/budgea_client/api/administration_api.rb +1 -1
  28. data/lib/budgea_client/api/authentication_api.rb +61 -1
  29. data/lib/budgea_client/api/banks_api.rb +7 -1
  30. data/lib/budgea_client/api/connections_api.rb +1 -1
  31. data/lib/budgea_client/api/documents_api.rb +1 -1
  32. data/lib/budgea_client/api/ocr_api.rb +1 -1
  33. data/lib/budgea_client/api/oidc_api.rb +1 -1
  34. data/lib/budgea_client/api/payments_api.rb +75 -0
  35. data/lib/budgea_client/api/pfm_api.rb +15 -27
  36. data/lib/budgea_client/api/providers_api.rb +1 -1
  37. data/lib/budgea_client/api/recipients_api.rb +1 -1
  38. data/lib/budgea_client/api/terms_api.rb +1 -1
  39. data/lib/budgea_client/api/transfer_api.rb +1 -1
  40. data/lib/budgea_client/api/transfers_api.rb +1 -1
  41. data/lib/budgea_client/api/users_management_api.rb +1 -1
  42. data/lib/budgea_client/api/wealth_api.rb +1 -1
  43. data/lib/budgea_client/api_client.rb +4 -4
  44. data/lib/budgea_client/api_error.rb +1 -1
  45. data/lib/budgea_client/configuration.rb +3 -3
  46. data/lib/budgea_client/models/access.rb +1 -1
  47. data/lib/budgea_client/models/account.rb +1 -1
  48. data/lib/budgea_client/models/account_log.rb +1 -1
  49. data/lib/budgea_client/models/account_type.rb +1 -1
  50. data/lib/budgea_client/models/alert.rb +1 -1
  51. data/lib/budgea_client/models/auth_provider.rb +1 -1
  52. data/lib/budgea_client/models/category.rb +1 -1
  53. data/lib/budgea_client/models/certificate.rb +1 -1
  54. data/lib/budgea_client/models/client.rb +1 -1
  55. data/lib/budgea_client/models/config_log.rb +1 -1
  56. data/lib/budgea_client/models/connection.rb +19 -4
  57. data/lib/budgea_client/models/connection_log.rb +1 -1
  58. data/lib/budgea_client/models/connection_source.rb +1 -1
  59. data/lib/budgea_client/models/connector.rb +16 -5
  60. data/lib/budgea_client/models/connector_category.rb +1 -1
  61. data/lib/budgea_client/models/connector_logo.rb +1 -1
  62. data/lib/budgea_client/models/connector_source.rb +80 -5
  63. data/lib/budgea_client/models/currency.rb +1 -1
  64. data/lib/budgea_client/models/device.rb +1 -1
  65. data/lib/budgea_client/models/document.rb +1 -1
  66. data/lib/budgea_client/models/document_type.rb +1 -1
  67. data/lib/budgea_client/models/field.rb +19 -6
  68. data/lib/budgea_client/models/field_value.rb +1 -1
  69. data/lib/budgea_client/models/file.rb +1 -1
  70. data/lib/budgea_client/models/group.rb +1 -1
  71. data/lib/budgea_client/models/hash_table.rb +1 -1
  72. data/lib/budgea_client/models/inline_response_200.rb +1 -1
  73. data/lib/budgea_client/models/inline_response_200_1.rb +1 -1
  74. data/lib/budgea_client/models/inline_response_200_10.rb +1 -1
  75. data/lib/budgea_client/models/inline_response_200_11.rb +1 -1
  76. data/lib/budgea_client/models/inline_response_200_12.rb +1 -1
  77. data/lib/budgea_client/models/inline_response_200_13.rb +1 -1
  78. data/lib/budgea_client/models/inline_response_200_14.rb +1 -1
  79. data/lib/budgea_client/models/inline_response_200_15.rb +1 -1
  80. data/lib/budgea_client/models/inline_response_200_16.rb +1 -1
  81. data/lib/budgea_client/models/inline_response_200_17.rb +1 -1
  82. data/lib/budgea_client/models/inline_response_200_18.rb +1 -1
  83. data/lib/budgea_client/models/inline_response_200_19.rb +1 -1
  84. data/lib/budgea_client/models/inline_response_200_2.rb +1 -1
  85. data/lib/budgea_client/models/inline_response_200_20.rb +1 -1
  86. data/lib/budgea_client/models/inline_response_200_21.rb +1 -1
  87. data/lib/budgea_client/models/inline_response_200_22.rb +1 -1
  88. data/lib/budgea_client/models/inline_response_200_23.rb +1 -1
  89. data/lib/budgea_client/models/inline_response_200_24.rb +1 -1
  90. data/lib/budgea_client/models/inline_response_200_25.rb +1 -1
  91. data/lib/budgea_client/models/inline_response_200_26.rb +1 -1
  92. data/lib/budgea_client/models/inline_response_200_27.rb +1 -1
  93. data/lib/budgea_client/models/inline_response_200_28.rb +1 -1
  94. data/lib/budgea_client/models/inline_response_200_29.rb +1 -1
  95. data/lib/budgea_client/models/inline_response_200_3.rb +1 -1
  96. data/lib/budgea_client/models/inline_response_200_30.rb +1 -1
  97. data/lib/budgea_client/models/inline_response_200_31.rb +1 -1
  98. data/lib/budgea_client/models/inline_response_200_32.rb +1 -1
  99. data/lib/budgea_client/models/inline_response_200_33.rb +1 -1
  100. data/lib/budgea_client/models/inline_response_200_34.rb +1 -1
  101. data/lib/budgea_client/models/inline_response_200_35.rb +1 -1
  102. data/lib/budgea_client/models/inline_response_200_36.rb +1 -1
  103. data/lib/budgea_client/models/inline_response_200_37.rb +1 -1
  104. data/lib/budgea_client/models/inline_response_200_38.rb +1 -1
  105. data/lib/budgea_client/models/inline_response_200_39.rb +1 -1
  106. data/lib/budgea_client/models/inline_response_200_4.rb +1 -1
  107. data/lib/budgea_client/models/inline_response_200_40.rb +1 -1
  108. data/lib/budgea_client/models/inline_response_200_41.rb +1 -1
  109. data/lib/budgea_client/models/inline_response_200_42.rb +1 -1
  110. data/lib/budgea_client/models/inline_response_200_5.rb +8 -38
  111. data/lib/budgea_client/models/inline_response_200_6.rb +1 -1
  112. data/lib/budgea_client/models/inline_response_200_7.rb +1 -1
  113. data/lib/budgea_client/models/inline_response_200_8.rb +1 -1
  114. data/lib/budgea_client/models/inline_response_200_9.rb +1 -1
  115. data/lib/budgea_client/models/investment.rb +1 -1
  116. data/lib/budgea_client/models/investment_value.rb +1 -1
  117. data/lib/budgea_client/models/keyword.rb +1 -1
  118. data/lib/budgea_client/models/locked_user.rb +1 -1
  119. data/lib/budgea_client/models/oidc_whitelist.rb +1 -1
  120. data/lib/budgea_client/models/order.rb +1 -1
  121. data/lib/budgea_client/models/payment.rb +255 -0
  122. data/lib/budgea_client/models/payment_beneficiary.rb +235 -0
  123. data/lib/budgea_client/models/payment_beneficiary_request.rb +240 -0
  124. data/lib/budgea_client/models/payment_data.rb +246 -0
  125. data/lib/budgea_client/models/payment_error_code.rb +44 -0
  126. data/lib/budgea_client/models/payment_instruction.rb +224 -0
  127. data/lib/budgea_client/models/payment_instruction_request.rb +254 -0
  128. data/lib/budgea_client/models/payment_request.rb +246 -0
  129. data/lib/budgea_client/models/payment_state.rb +35 -0
  130. data/lib/budgea_client/models/pocket.rb +1 -1
  131. data/lib/budgea_client/models/profile.rb +1 -1
  132. data/lib/budgea_client/models/project.rb +1 -1
  133. data/lib/budgea_client/models/project_type.rb +1 -1
  134. data/lib/budgea_client/models/recipient.rb +1 -1
  135. data/lib/budgea_client/models/recipient_log.rb +1 -1
  136. data/lib/budgea_client/models/security.rb +1 -1
  137. data/lib/budgea_client/models/subscription.rb +1 -1
  138. data/lib/budgea_client/models/subscription_log.rb +1 -1
  139. data/lib/budgea_client/models/terms_of_service.rb +1 -1
  140. data/lib/budgea_client/models/transaction.rb +1 -1
  141. data/lib/budgea_client/models/transaction_information.rb +1 -1
  142. data/lib/budgea_client/models/transactions_cluster.rb +1 -1
  143. data/lib/budgea_client/models/transfer.rb +1 -1
  144. data/lib/budgea_client/models/transfer_data.rb +1 -1
  145. data/lib/budgea_client/models/transfer_log.rb +1 -1
  146. data/lib/budgea_client/models/transfer_validation_data.rb +1 -1
  147. data/lib/budgea_client/models/user.rb +1 -1
  148. data/lib/budgea_client/models/user_alert.rb +1 -1
  149. data/lib/budgea_client/models/webhook.rb +1 -1
  150. data/lib/budgea_client/models/webhook_data.rb +1 -1
  151. data/lib/budgea_client/models/webhook_log.rb +1 -1
  152. data/lib/budgea_client/version.rb +2 -2
  153. data/patches/01_allow_enum_nil.patch +24 -0
  154. data/patches/02_accounts_property.patch +15 -0
  155. data/spec/api/administration_api_spec.rb +1 -1
  156. data/spec/api/authentication_api_spec.rb +1 -1
  157. data/spec/api/banks_api_spec.rb +1 -1
  158. data/spec/api/connections_api_spec.rb +1 -1
  159. data/spec/api/documents_api_spec.rb +1 -1
  160. data/spec/api/ocr_api_spec.rb +1 -1
  161. data/spec/api/oidc_api_spec.rb +1 -1
  162. data/spec/api/payments_api_spec.rb +46 -0
  163. data/spec/api/pfm_api_spec.rb +1 -1
  164. data/spec/api/providers_api_spec.rb +1 -1
  165. data/spec/api/recipients_api_spec.rb +1 -1
  166. data/spec/api/terms_api_spec.rb +1 -1
  167. data/spec/api/transfer_api_spec.rb +1 -1
  168. data/spec/api/transfers_api_spec.rb +1 -1
  169. data/spec/api/users_management_api_spec.rb +1 -1
  170. data/spec/api/wealth_api_spec.rb +1 -1
  171. data/spec/api_client_spec.rb +1 -1
  172. data/spec/configuration_spec.rb +1 -1
  173. data/spec/models/access_spec.rb +1 -1
  174. data/spec/models/account_log_spec.rb +1 -1
  175. data/spec/models/account_spec.rb +1 -1
  176. data/spec/models/account_type_spec.rb +1 -1
  177. data/spec/models/alert_spec.rb +1 -1
  178. data/spec/models/auth_provider_spec.rb +1 -1
  179. data/spec/models/category_spec.rb +1 -1
  180. data/spec/models/certificate_spec.rb +1 -1
  181. data/spec/models/client_spec.rb +1 -1
  182. data/spec/models/config_log_spec.rb +1 -1
  183. data/spec/models/connection_log_spec.rb +1 -1
  184. data/spec/models/connection_source_spec.rb +1 -1
  185. data/spec/models/connection_spec.rb +1 -1
  186. data/spec/models/connector_category_spec.rb +1 -1
  187. data/spec/models/connector_logo_spec.rb +1 -1
  188. data/spec/models/connector_source_spec.rb +1 -1
  189. data/spec/models/connector_spec.rb +1 -1
  190. data/spec/models/currency_spec.rb +1 -1
  191. data/spec/models/device_spec.rb +1 -1
  192. data/spec/models/document_spec.rb +1 -1
  193. data/spec/models/document_type_spec.rb +1 -1
  194. data/spec/models/field_spec.rb +1 -1
  195. data/spec/models/field_value_spec.rb +1 -1
  196. data/spec/models/file_spec.rb +1 -1
  197. data/spec/models/group_spec.rb +1 -1
  198. data/spec/models/hash_table_spec.rb +1 -1
  199. data/spec/models/inline_response_200_10_spec.rb +1 -1
  200. data/spec/models/inline_response_200_11_spec.rb +1 -1
  201. data/spec/models/inline_response_200_12_spec.rb +1 -1
  202. data/spec/models/inline_response_200_13_spec.rb +1 -1
  203. data/spec/models/inline_response_200_14_spec.rb +1 -1
  204. data/spec/models/inline_response_200_15_spec.rb +1 -1
  205. data/spec/models/inline_response_200_16_spec.rb +1 -1
  206. data/spec/models/inline_response_200_17_spec.rb +1 -1
  207. data/spec/models/inline_response_200_18_spec.rb +1 -1
  208. data/spec/models/inline_response_200_19_spec.rb +1 -1
  209. data/spec/models/inline_response_200_1_spec.rb +1 -1
  210. data/spec/models/inline_response_200_20_spec.rb +1 -1
  211. data/spec/models/inline_response_200_21_spec.rb +1 -1
  212. data/spec/models/inline_response_200_22_spec.rb +1 -1
  213. data/spec/models/inline_response_200_23_spec.rb +1 -1
  214. data/spec/models/inline_response_200_24_spec.rb +1 -1
  215. data/spec/models/inline_response_200_25_spec.rb +1 -1
  216. data/spec/models/inline_response_200_26_spec.rb +1 -1
  217. data/spec/models/inline_response_200_27_spec.rb +1 -1
  218. data/spec/models/inline_response_200_28_spec.rb +1 -1
  219. data/spec/models/inline_response_200_29_spec.rb +1 -1
  220. data/spec/models/inline_response_200_2_spec.rb +1 -1
  221. data/spec/models/inline_response_200_30_spec.rb +1 -1
  222. data/spec/models/inline_response_200_31_spec.rb +1 -1
  223. data/spec/models/inline_response_200_32_spec.rb +1 -1
  224. data/spec/models/inline_response_200_33_spec.rb +1 -1
  225. data/spec/models/inline_response_200_34_spec.rb +1 -1
  226. data/spec/models/inline_response_200_35_spec.rb +1 -1
  227. data/spec/models/inline_response_200_36_spec.rb +1 -1
  228. data/spec/models/inline_response_200_37_spec.rb +1 -1
  229. data/spec/models/inline_response_200_38_spec.rb +1 -1
  230. data/spec/models/inline_response_200_39_spec.rb +1 -1
  231. data/spec/models/inline_response_200_3_spec.rb +1 -1
  232. data/spec/models/inline_response_200_40_spec.rb +1 -1
  233. data/spec/models/inline_response_200_41_spec.rb +1 -1
  234. data/spec/models/inline_response_200_42_spec.rb +1 -1
  235. data/spec/models/inline_response_200_4_spec.rb +1 -1
  236. data/spec/models/inline_response_200_5_spec.rb +1 -1
  237. data/spec/models/inline_response_200_6_spec.rb +1 -1
  238. data/spec/models/inline_response_200_7_spec.rb +1 -1
  239. data/spec/models/inline_response_200_8_spec.rb +1 -1
  240. data/spec/models/inline_response_200_9_spec.rb +1 -1
  241. data/spec/models/inline_response_200_spec.rb +1 -1
  242. data/spec/models/investment_spec.rb +1 -1
  243. data/spec/models/investment_value_spec.rb +1 -1
  244. data/spec/models/keyword_spec.rb +1 -1
  245. data/spec/models/locked_user_spec.rb +1 -1
  246. data/spec/models/oidc_whitelist_spec.rb +1 -1
  247. data/spec/models/order_spec.rb +1 -1
  248. data/spec/models/payment_beneficiary_request_spec.rb +65 -0
  249. data/spec/models/payment_beneficiary_spec.rb +35 -0
  250. data/spec/models/payment_data_spec.rb +71 -0
  251. data/spec/models/payment_error_code_spec.rb +35 -0
  252. data/spec/models/payment_instruction_request_spec.rb +35 -0
  253. data/spec/models/payment_instruction_spec.rb +35 -0
  254. data/spec/models/payment_request_spec.rb +71 -0
  255. data/spec/models/payment_spec.rb +35 -0
  256. data/spec/models/payment_state_spec.rb +35 -0
  257. data/spec/models/pocket_spec.rb +1 -1
  258. data/spec/models/profile_spec.rb +1 -1
  259. data/spec/models/project_spec.rb +1 -1
  260. data/spec/models/project_type_spec.rb +1 -1
  261. data/spec/models/recipient_log_spec.rb +1 -1
  262. data/spec/models/recipient_spec.rb +1 -1
  263. data/spec/models/security_spec.rb +1 -1
  264. data/spec/models/subscription_log_spec.rb +1 -1
  265. data/spec/models/subscription_spec.rb +1 -1
  266. data/spec/models/terms_of_service_spec.rb +1 -1
  267. data/spec/models/transaction_information_spec.rb +1 -1
  268. data/spec/models/transaction_spec.rb +1 -1
  269. data/spec/models/transactions_cluster_spec.rb +1 -1
  270. data/spec/models/transfer_log_spec.rb +1 -1
  271. data/spec/models/transfer_spec.rb +1 -1
  272. data/spec/models/user_alert_spec.rb +1 -1
  273. data/spec/models/user_spec.rb +1 -1
  274. data/spec/models/webhook_data_spec.rb +1 -1
  275. data/spec/models/webhook_log_spec.rb +1 -1
  276. data/spec/models/webhook_spec.rb +1 -1
  277. data/spec/spec_helper.rb +1 -1
  278. data/tags +2748 -0
  279. metadata +70 -9
  280. data/transfer_additional_info_needed.json +0 -1
  281. data/transfer_additional_info_needed_validation_error.json +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9d510fe06f27b1b63710996b01c5bb15000f54e3e3ac33172509b88ae4951dc
4
- data.tar.gz: d1b901424f029e8ddf4bd2489213157aef07671faa420c88fff8983bdb5fcde8
3
+ metadata.gz: 874a87d4a79089c432c3689939fbb7ff18881c07254d4e10401253e81c128c44
4
+ data.tar.gz: 378533147fef2b30299b37fd8ce533ce766f0ce3972ec9903edd1be040f419f5
5
5
  SHA512:
6
- metadata.gz: d8754c7b1d16f858fd622457a15d0d05ff4c3df097128f4bee450aaad5a4709e4a889789de59d1b087b88f9192c2f3fc78dc6d0e17b89e161bc3de352b5ea951
7
- data.tar.gz: '052397ae55982ef2218a867bad79218e7c9e328866bd8dd7ceeee42dbf341521933cd172f49eacaea1cb09a059d31008fc2d1d83516899f189265969f335899f'
6
+ metadata.gz: ff20e03e3d7471054caafd2b7d107a7821ecccef14a30e357186646f4175fcd9469b795745323e8790c0d6306437a906ad53caa9d70134585f77ad7be78be242
7
+ data.tar.gz: fdaef52c788e666a1b1e3f3a4415f49d52ce9d62e54cce4a3660324f30d74f08dc221fe48343d3c81d1edc403686a9a4b81a4e6dcf4ef483f468d98d28403b25
data/Gemfile.lock CHANGED
@@ -1,30 +1,31 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- budgea_client (5.3.4)
4
+ budgea_client (5.4.0)
5
+ addressable (~> 2.3, >= 2.3.0)
5
6
  json (~> 2.1, >= 2.1.0)
6
7
  typhoeus (~> 1.0, >= 1.0.1)
7
8
 
8
9
  GEM
9
10
  remote: https://rubygems.org/
10
11
  specs:
11
- ZenTest (4.11.1)
12
+ ZenTest (4.12.0)
12
13
  addressable (2.5.2)
13
14
  public_suffix (>= 2.0.2, < 4.0)
14
15
  autotest (4.4.6)
15
16
  ZenTest (>= 4.4.1)
16
- autotest-fsevent (0.2.14)
17
+ autotest-fsevent (0.2.18)
17
18
  sys-uname
18
19
  autotest-growl (0.2.16)
19
20
  autotest-rails-pure (4.1.2)
20
21
  crack (0.4.3)
21
22
  safe_yaml (~> 1.0.0)
22
23
  diff-lcs (1.3)
23
- ethon (0.12.0)
24
- ffi (>= 1.3.0)
25
- ffi (1.9.25)
24
+ ethon (0.14.0)
25
+ ffi (>= 1.15.0)
26
+ ffi (1.15.3)
26
27
  hashdiff (0.3.7)
27
- json (2.3.1)
28
+ json (2.5.1)
28
29
  public_suffix (3.0.3)
29
30
  rake (12.3.3)
30
31
  rspec (3.8.0)
@@ -41,8 +42,8 @@ GEM
41
42
  rspec-support (~> 3.8.0)
42
43
  rspec-support (3.8.0)
43
44
  safe_yaml (1.0.4)
44
- sys-uname (1.0.3)
45
- ffi (>= 1.0.0)
45
+ sys-uname (1.2.2)
46
+ ffi (~> 1.1)
46
47
  typhoeus (1.4.0)
47
48
  ethon (>= 0.9.0)
48
49
  vcr (3.0.3)
@@ -66,4 +67,4 @@ DEPENDENCIES
66
67
  webmock (~> 1.24, >= 1.24.3)
67
68
 
68
69
  BUNDLED WITH
69
- 1.16.6
70
+ 1.17.3
data/README.md CHANGED
@@ -7,7 +7,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: 2.0
10
- - Package version: 5.3.4
10
+ - Package version: 5.4.0
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,15 +23,15 @@ gem build budgea_client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./budgea_client-5.3.4.gem
26
+ gem install ./budgea_client-5.4.0.gem
27
27
  ```
28
- (for development, run `gem install --dev ./budgea_client-5.3.4.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./budgea_client-5.4.0.gem` to install the development dependencies)
29
29
 
30
30
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
31
 
32
32
  Finally add this to the Gemfile:
33
33
 
34
- gem 'budgea_client', '~> 5.3.4'
34
+ gem 'budgea_client', '~> 5.4.0'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -126,6 +126,7 @@ Class | Method | HTTP request | Description
126
126
  *BudgeaClient::AuthenticationApi* | [**auth_token_access_post**](docs/AuthenticationApi.md#auth_token_access_post) | **POST** /auth/token/access | Transform a temporary code to a access_token
127
127
  *BudgeaClient::AuthenticationApi* | [**auth_token_code_get**](docs/AuthenticationApi.md#auth_token_code_get) | **GET** /auth/token/code | Generate a user temporary token
128
128
  *BudgeaClient::AuthenticationApi* | [**auth_token_delete**](docs/AuthenticationApi.md#auth_token_delete) | **DELETE** /auth/token | Remove user access
129
+ *BudgeaClient::AuthenticationApi* | [**auth_token_post**](docs/AuthenticationApi.md#auth_token_post) | **POST** /auth/token | Login to API with credentials
129
130
  *BudgeaClient::AuthenticationApi* | [**certificate_type_get**](docs/AuthenticationApi.md#certificate_type_get) | **GET** /certificate/{type} | Get the latest certificate of a type
130
131
  *BudgeaClient::AuthenticationApi* | [**hash_delete**](docs/AuthenticationApi.md#hash_delete) | **DELETE** /hash | Delete the user's connections
131
132
  *BudgeaClient::AuthenticationApi* | [**users_id_user_delete**](docs/AuthenticationApi.md#users_id_user_delete) | **DELETE** /users/{id_user} | Delete the user
@@ -421,6 +422,7 @@ Class | Method | HTTP request | Description
421
422
  *BudgeaClient::PFMApi* | [**users_id_user_profiles_me_put**](docs/PFMApi.md#users_id_user_profiles_me_put) | **PUT** /users/{id_user}/profiles/me | Change settings of the profile.
422
423
  *BudgeaClient::PFMApi* | [**users_id_user_resume_get**](docs/PFMApi.md#users_id_user_resume_get) | **GET** /users/{id_user}/resume | Get synthesis configuration of a specific user
423
424
  *BudgeaClient::PFMApi* | [**users_id_user_resume_post**](docs/PFMApi.md#users_id_user_resume_post) | **POST** /users/{id_user}/resume | Update synthesis configuration
425
+ *BudgeaClient::PaymentsApi* | [**payments_post**](docs/PaymentsApi.md#payments_post) | **POST** /payments | Create and validate a payment request
424
426
  *BudgeaClient::ProvidersApi* | [**banks_get**](docs/ProvidersApi.md#banks_get) | **GET** /banks | Get list of connectors
425
427
  *BudgeaClient::ProvidersApi* | [**banks_id_connector_logos_get**](docs/ProvidersApi.md#banks_id_connector_logos_get) | **GET** /banks/{id_connector}/logos | Get all links to the files associated with this connector.
426
428
  *BudgeaClient::ProvidersApi* | [**banks_id_connector_logos_main_get**](docs/ProvidersApi.md#banks_id_connector_logos_main_get) | **GET** /banks/{id_connector}/logos/main | Get all links to the files associated with this connector.
@@ -710,6 +712,14 @@ Class | Method | HTTP request | Description
710
712
  - [BudgeaClient::LockedUser](docs/LockedUser.md)
711
713
  - [BudgeaClient::OidcWhitelist](docs/OidcWhitelist.md)
712
714
  - [BudgeaClient::Order](docs/Order.md)
715
+ - [BudgeaClient::Payment](docs/Payment.md)
716
+ - [BudgeaClient::PaymentBeneficiary](docs/PaymentBeneficiary.md)
717
+ - [BudgeaClient::PaymentBeneficiaryRequest](docs/PaymentBeneficiaryRequest.md)
718
+ - [BudgeaClient::PaymentErrorCode](docs/PaymentErrorCode.md)
719
+ - [BudgeaClient::PaymentInstruction](docs/PaymentInstruction.md)
720
+ - [BudgeaClient::PaymentInstructionRequest](docs/PaymentInstructionRequest.md)
721
+ - [BudgeaClient::PaymentRequest](docs/PaymentRequest.md)
722
+ - [BudgeaClient::PaymentState](docs/PaymentState.md)
713
723
  - [BudgeaClient::Pocket](docs/Pocket.md)
714
724
  - [BudgeaClient::Profile](docs/Profile.md)
715
725
  - [BudgeaClient::Project](docs/Project.md)
@@ -8,7 +8,7 @@
8
8
  OpenAPI spec version: 2.0
9
9
 
10
10
  Generated by: https://github.com/swagger-api/swagger-codegen.git
11
- Swagger Codegen version: 2.4.15
11
+ Swagger Codegen version: 2.4.19
12
12
 
13
13
  =end
14
14
 
@@ -29,6 +29,7 @@ Gem::Specification.new do |s|
29
29
 
30
30
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
31
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
+ s.add_runtime_dependency 'addressable', '~> 2.3', '>= 2.3.0'
32
33
 
33
34
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
35
  s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
data/budgea_openapi.json CHANGED
@@ -493,16 +493,10 @@
493
493
  "schema": {
494
494
  "required": [
495
495
  "token",
496
- "scope",
497
- "user",
498
- "profile"
496
+ "scope"
499
497
  ],
500
498
  "type": "object",
501
499
  "properties": {
502
- "profile": {
503
- "type": "object",
504
- "description": "the user profile data object"
505
- },
506
500
  "scope": {
507
501
  "type": "string",
508
502
  "description": "the token scope"
@@ -511,53 +505,42 @@
511
505
  "type": "string",
512
506
  "description": "the requested token"
513
507
  },
514
- "expires_in": {
508
+ "expire_in": {
515
509
  "type": "integer",
516
510
  "description": "duration in seconds of the token validity"
517
- },
518
- "user": {
519
- "type": "object",
520
- "description": "the user data object"
521
511
  }
522
512
  }
523
513
  },
524
514
  "description": "",
525
515
  "examples": {
526
- "profile": {},
527
516
  "scope": "",
528
- "token": "A37mwXNCblbWX0LrvpRq60sZ6NBft/t5tsHhADie56/TJscwSi8NSjVmUIf6iLqpDwPe6lyFXM3z7E/zKf9eRHUWzx4QryEgmCtwZ0XgQb9SE+HwaenwqwTuv1gHZD+n",
529
- "user": {}
517
+ "token": "A37mwXNCblbWX0LrvpRq60sZ6NBft/t5tsHhADie56/TJscwSi8NSjVmUIf6iLqpDwPe6lyFXM3z7E/zKf9eRHUWzx4QryEgmCtwZ0XgQb9SE+HwaenwqwTuv1gHZD+n"
530
518
  }
531
519
  }
532
520
  },
533
521
  "tags": [
522
+ "Authentication",
534
523
  "PFM"
535
524
  ],
536
- "description": "Request a new user token by giving an username and a password.<br><br><br><br>",
525
+ "description": "Request a new token by giving the client_id and client_secret",
537
526
  "parameters": [
538
527
  {
539
- "required": true,
540
528
  "in": "formData",
541
529
  "type": "string",
542
- "name": "username",
543
- "description": "username"
530
+ "name": "client_id"
544
531
  },
545
532
  {
546
- "required": true,
547
533
  "in": "formData",
548
534
  "type": "string",
549
- "name": "password",
550
- "description": "password"
535
+ "name": "client_secret"
551
536
  },
552
537
  {
553
- "required": true,
554
538
  "in": "formData",
555
539
  "type": "string",
556
- "name": "application",
557
- "description": "application name"
540
+ "name": "grant_type",
541
+ "description": "grant type"
558
542
  },
559
543
  {
560
- "required": false,
561
544
  "in": "formData",
562
545
  "type": "string",
563
546
  "name": "scope",
@@ -3458,6 +3441,35 @@
3458
3441
  "summary": "Delete the supplied authorized redirect uri"
3459
3442
  }
3460
3443
  },
3444
+ "/payments": {
3445
+ "post": {
3446
+ "responses": {
3447
+ "200": {
3448
+ "description": "Successful POST on Payment resource",
3449
+ "schema": {
3450
+ "$ref": "#/definitions/Payment"
3451
+ }
3452
+ }
3453
+ },
3454
+ "parameters": [
3455
+ {
3456
+ "in": "body",
3457
+ "name": "payment_data",
3458
+ "required": true,
3459
+ "schema": {
3460
+ "$ref": "#/definitions/PaymentRequest"
3461
+ }
3462
+ }
3463
+ ],
3464
+ "tags": [
3465
+ "Payments"
3466
+ ],
3467
+ "summary": "Create and validate a payment request",
3468
+ "consumes": [
3469
+ "application/json"
3470
+ ]
3471
+ }
3472
+ },
3461
3473
  "/providers": {
3462
3474
  "get": {
3463
3475
  "responses": {
@@ -4376,6 +4388,12 @@
4376
4388
  "type": "string",
4377
4389
  "name": "expand",
4378
4390
  "in": "query"
4391
+ },
4392
+ {
4393
+ "required": false,
4394
+ "type": "string",
4395
+ "name": "all",
4396
+ "in": "query"
4379
4397
  }
4380
4398
  ],
4381
4399
  "summary": "Update an account"
@@ -9025,6 +9043,12 @@
9025
9043
  "type": "string",
9026
9044
  "name": "expand",
9027
9045
  "in": "query"
9046
+ },
9047
+ {
9048
+ "required": false,
9049
+ "type": "string",
9050
+ "name": "all",
9051
+ "in": "query"
9028
9052
  }
9029
9053
  ],
9030
9054
  "summary": "Update an account"
@@ -23475,6 +23499,12 @@
23475
23499
  "items": {
23476
23500
  "type": "string"
23477
23501
  }
23502
+ },
23503
+ "sources": {
23504
+ "type": "array",
23505
+ "items": {
23506
+ "$ref": "#/definitions/ConnectorSource"
23507
+ }
23478
23508
  }
23479
23509
  },
23480
23510
  "example": {
@@ -23565,6 +23595,45 @@
23565
23595
  "priority": {
23566
23596
  "type": "integer",
23567
23597
  "description": "The source priority order for the synchronization"
23598
+ },
23599
+ "capabilities": {
23600
+ "type": "array",
23601
+ "items": {
23602
+ "type": "string"
23603
+ }
23604
+ },
23605
+ "available_auth_mechanisms": {
23606
+ "type": "array",
23607
+ "items": {
23608
+ "type": "string"
23609
+ }
23610
+ },
23611
+ "urls": {
23612
+ "type": "array",
23613
+ "items": {
23614
+ "type": "string"
23615
+ }
23616
+ },
23617
+ "available_transfer_mechanisms": {
23618
+ "type": "array",
23619
+ "items": {
23620
+ "type": "string"
23621
+ }
23622
+ },
23623
+ "transfer_validate_mechanism": {
23624
+ "type": "string"
23625
+ },
23626
+ "transfer_execution_date_types": {
23627
+ "type": "array",
23628
+ "items": {
23629
+ "type": "string"
23630
+ }
23631
+ },
23632
+ "transfer_execution_frequencies": {
23633
+ "type": "array",
23634
+ "items": {
23635
+ "type": "string"
23636
+ }
23568
23637
  }
23569
23638
  },
23570
23639
  "example": {
@@ -23633,8 +23702,17 @@
23633
23702
  "description": "If true, field has to be set to synchronize the connection"
23634
23703
  },
23635
23704
  "auth_mechanisms": {
23636
- "type": "string",
23705
+ "type": "array",
23706
+ "items": {
23707
+ "type": "string"
23708
+ },
23637
23709
  "description": "Authentication mechanisms this field is used for"
23710
+ },
23711
+ "connector_sources": {
23712
+ "type": "array",
23713
+ "items": {
23714
+ "type": "string"
23715
+ }
23638
23716
  }
23639
23717
  },
23640
23718
  "example": {
@@ -23827,6 +23905,7 @@
23827
23905
  "decoupled",
23828
23906
  "passwordExpired",
23829
23907
  "webauthRequired",
23908
+ "rateLimiting",
23830
23909
  "bug"
23831
23910
  ],
23832
23911
  "description": "State of Connection"
@@ -23848,6 +23927,12 @@
23848
23927
  "$ref": "#/definitions/Account"
23849
23928
  }
23850
23929
  },
23930
+ "all_accounts": {
23931
+ "type": "array",
23932
+ "items": {
23933
+ "$ref": "#/definitions/Account"
23934
+ }
23935
+ },
23851
23936
  "subscriptions": {
23852
23937
  "type": "array",
23853
23938
  "items": {
@@ -26565,6 +26650,242 @@
26565
26650
  "name": "",
26566
26651
  "attacheable": true
26567
26652
  }
26653
+ },
26654
+ "PaymentRequest": {
26655
+ "type": "object",
26656
+ "required": ["client_redirect_uri", "instructions"],
26657
+ "properties": {
26658
+ "id_connector": {
26659
+ "type": "integer",
26660
+ "description": "ID of the bank connector to use to initiate the payment. The bank connector must be eligible to payments creation. The id_connector can be submitted later on if validated is false when you initiate the payment request."
26661
+ },
26662
+ "client_redirect_uri": {
26663
+ "type": "string",
26664
+ "description": "The redirect URL to use when building the validation URL. The provided URL must not contain any query parameter, rely on the client_state parameter for state management."
26665
+ },
26666
+ "client_state": {
26667
+ "type": "string",
26668
+ "description": "Optional value that will be added as a state query parameter to the redirect URL after validation."
26669
+ },
26670
+ "beneficiary": {
26671
+ "$ref": "#/definitions/PaymentBeneficiaryRequest"
26672
+ },
26673
+ "instructions": {
26674
+ "type": "array",
26675
+ "items": {
26676
+ "$ref": "#/definitions/PaymentInstructionRequest"
26677
+ },
26678
+ "description": "The payment information."
26679
+ },
26680
+ "validated": {
26681
+ "type": "boolean",
26682
+ "description": "Provide true to acknowledge payment validation at once. Otherwise, validation is deferred."
26683
+ }
26684
+ },
26685
+ "additionalProperties": {}
26686
+ },
26687
+ "PaymentBeneficiaryRequest": {
26688
+ "type": "object",
26689
+ "required": ["scheme_name", "identification", "label"],
26690
+ "properties": {
26691
+ "scheme_name": {
26692
+ "type": "string",
26693
+ "description": "The beneficiary number type: iban for IBAN, bban for BBAN (please note that BBAN is not supported by any connector yet)."
26694
+ },
26695
+ "identification": {
26696
+ "type": "string",
26697
+ "description": "The beneficiary account number, of type matching the scheme_name."
26698
+ },
26699
+ "label": {
26700
+ "type": "string",
26701
+ "description": "Display name of the beneficiary."
26702
+ },
26703
+ "merchant_scheme_name": {
26704
+ "type": "string",
26705
+ "description": "For merchant beneficiaries, the type of identifier: siret, siren, rcs, rna."
26706
+ },
26707
+ "merchant_identification": {
26708
+ "type": "string",
26709
+ "description": "For merchant beneficiaries, the identifier, of type matching the merchant_scheme_name."
26710
+ }
26711
+ }
26712
+ },
26713
+ "PaymentInstructionRequest": {
26714
+ "type": "object",
26715
+ "required": ["amount", "currency", "label", "execution_date_type"],
26716
+ "properties": {
26717
+ "reference_id": {
26718
+ "type": "string",
26719
+ "description": "An identifier for the transaction, set by the emitter client. If not provided, a random UUID value will be generated."
26720
+ },
26721
+ "amount": {
26722
+ "type": "integer",
26723
+ "description": "The amount of the payment."
26724
+ },
26725
+ "currency": {
26726
+ "type": "string",
26727
+ "description": "The currency code of the payment amount, a per ISO 4217."
26728
+ },
26729
+ "label": {
26730
+ "type": "string",
26731
+ "description": "Label of the payment."
26732
+ },
26733
+ "execution_date_type": {
26734
+ "type": "string",
26735
+ "description": "The execution date type of the payment: first_open_day for a standard banking transfer, deferred for a scheduled transfer, instant for instant payment. Other values might be supported later."
26736
+ },
26737
+ "execution_date": {
26738
+ "type": "date",
26739
+ "description": "The execution date for the transfer, only for deferred transfers."
26740
+ },
26741
+ "beneficiary": {
26742
+ "$ref": "#/definitions/PaymentBeneficiaryRequest"
26743
+ }
26744
+ }
26745
+ },
26746
+ "Payment": {
26747
+ "type": "object",
26748
+ "properties": {
26749
+ "id": {
26750
+ "type": "integer",
26751
+ "description": "The ID of the created payment request."
26752
+ },
26753
+ "state": {
26754
+ "type": "string"
26755
+ },
26756
+ "error_code": {
26757
+ "type": "string"
26758
+ },
26759
+ "error_description": {
26760
+ "type": "string",
26761
+ "nullable": true,
26762
+ "description": "Error message in case of an error."
26763
+ },
26764
+ "id_connector": {
26765
+ "type": "integer",
26766
+ "nullable": true,
26767
+ "description": "ID of the bank connector to use to initiate the payment."
26768
+ },
26769
+ "register_date": {
26770
+ "type": "datetime",
26771
+ "description": "Creation date of the transfer request."
26772
+ },
26773
+ "validate_uri": {
26774
+ "type": "string",
26775
+ "nullable": true,
26776
+ "description": "The URL that must be presented to the PSU to validate the payment request. The URL is only available after the transfer has been validated."
26777
+ },
26778
+ "client_redirect_uri": {
26779
+ "type": "string",
26780
+ "nullable": true,
26781
+ "description": "The validate_uri callback URL that was provided when configuring the transfer request."
26782
+ },
26783
+ "instructions": {
26784
+ "type": "array",
26785
+ "items": {
26786
+ "$ref": "#/definitions/PaymentInstruction"
26787
+ },
26788
+ "description": "The list of payment instructions."
26789
+ }
26790
+ }
26791
+ },
26792
+ "PaymentBeneficiary": {
26793
+ "type": "object",
26794
+ "properties": {
26795
+ "scheme_name": {
26796
+ "type": "string",
26797
+ "description": "The beneficiary number type: iban for IBAN, bban for BBAN."
26798
+ },
26799
+ "identification": {
26800
+ "type": "string",
26801
+ "description": "The beneficiary account number, of type matching the scheme_name."
26802
+ },
26803
+ "label": {
26804
+ "type": "string",
26805
+ "description": "Display name of the beneficiary."
26806
+ },
26807
+ "merchant_scheme_name": {
26808
+ "type": "string",
26809
+ "description": "For merchant beneficiaries, the type of identifier: siret, siren, rcs, rna."
26810
+ },
26811
+ "merchant_identification": {
26812
+ "type": "string",
26813
+ "description": "For merchant beneficiaries, the identifier, of type matching the merchant_scheme_name."
26814
+ },
26815
+ "bic": {
26816
+ "type": "string",
26817
+ "nullable": true,
26818
+ "description": "The BIC of the beneficiary if it could be determined from the IBAN, null otherwise."
26819
+ }
26820
+ }
26821
+ },
26822
+ "PaymentInstruction": {
26823
+ "type": "object",
26824
+ "properties": {
26825
+ "reference_id": {
26826
+ "type": "string",
26827
+ "description": "An identifier for the transaction."
26828
+ },
26829
+ "amount": {
26830
+ "type": "float",
26831
+ "description": "The amount of the payment."
26832
+ },
26833
+ "currency": {
26834
+ "type": "string",
26835
+ "description": "The currency of the payment amount."
26836
+ },
26837
+ "label": {
26838
+ "type": "string",
26839
+ "description": "Label of the payment."
26840
+ },
26841
+ "execution_date_type": {
26842
+ "type": "string",
26843
+ "description": "The execution date type of the payment: first_open_day for a standard banking transfer, deferred for a scheduled transfer, instant for instant payment. Other values might be supported later."
26844
+ },
26845
+ "execution_date": {
26846
+ "type": "date",
26847
+ "nullable": true,
26848
+ "description": "The execution date of the payment (available when the payment is deferred or has been validated)"
26849
+ },
26850
+ "beneficiary": {
26851
+ "$ref": "#/definitions/PaymentBeneficiary"
26852
+ }
26853
+ }
26854
+ },
26855
+ "PaymentState": {
26856
+ "type": "string",
26857
+ "description": "created\tThe payment request was registered, but not yet validated.\nvalidating\tThe payment request was validated and initialized with the bank. The validate_uri is available.\nerror\tAn error occurred while initializing the request with the bank. The error_code is available.\npending\tThe payment request has been validated on the bank website, but execution has not been confirmed yet.\nrejected\tThe payment request has been rejected by the bank or the user. The error_code is available.\ndone\tThe payment has been executed and confirmed by the bank.\nexpired\tThe payment has automatically expired because it did not have a definitive status (ie done or rejected) N days after its execution. N value is configurable with the payment.manual_expire_time_days configuration key.",
26858
+ "enum": [
26859
+ "created",
26860
+ "validating",
26861
+ "error",
26862
+ "pending",
26863
+ "rejected",
26864
+ "done",
26865
+ "expired"
26866
+ ]
26867
+ },
26868
+ "PaymentErrorCode": {
26869
+ "type": "string",
26870
+ "description": "invalidEmitter\tIdentification of the emitter account is invalid, or transfer emission is not possible.\ninsufficientFunds\tThe balance of the emitter account is too low.\ninvalidAmount\tThe amount of the payment request is invalid or out of the authorized bounds.\ninvalidCurrency\tThe currency of the payment request is invalid or unsupported.\ninvalidDate\tThe execution date of the payment request is invalid or out of the supported bounds.\ninvalidBeneficiary\tThe beneficiary identification is invalid or unsupported.\ninvalidLabel\tThe label of the payment request does not match the constraints enforced by the bank.\nregulatoryReason\tThe request was aborted by the bank for regulatory reason (e.g. fraud detection).\nauthenticationFailed\tThe request was aborted because the end-user failed to identify with the bank.\nnoAnswerFromCustomer\tThe payment request expired without any interaction with the end-user.\nnoSpecifiedReason\tThe payment request was rejected by the bank without any reason.\nCancelledByUser\tThe payment was explicitly cancelled by the end-user.\nbankMessage\tThe bank sent an error message to the user.\ninvalidValue\tThe request contains invalid data.\nactionNeeded\tAn action is needed on the website by the user.\nbug\tA bug has occurred during the request validation.",
26871
+ "enum": [
26872
+ "invalidEmitter",
26873
+ "insufficientFunds",
26874
+ "invalidAmount",
26875
+ "invalidCurrency",
26876
+ "invalidDate",
26877
+ "invalidBeneficiary",
26878
+ "invalidLabel",
26879
+ "regulatoryReason",
26880
+ "authenticationFailed",
26881
+ "noAnswerFromCustomer",
26882
+ "noSpecifiedReason",
26883
+ "CancelledByUser",
26884
+ "bankMessage",
26885
+ "invalidValue",
26886
+ "actionNeeded",
26887
+ "bug"
26888
+ ]
26568
26889
  }
26569
26890
  },
26570
26891
  "basePath": "/2.0/",