treezor_client 1.11.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (283) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +25 -24
  4. data/README.md +7 -5
  5. data/config.json +2 -1
  6. data/docs/Body11.md +9 -0
  7. data/docs/BusinessApi.md +2 -2
  8. data/docs/CardApi.md +0 -53
  9. data/docs/CardDigitalization.md +1 -1
  10. data/docs/CardReserveApi.md +4 -10
  11. data/docs/CardtransactionApi.md +1 -1
  12. data/docs/InlineResponse20010Cardtransactions.md +1 -0
  13. data/docs/InlineResponse20016.md +1 -1
  14. data/docs/InlineResponse2009Cardtransactions.md +1 -0
  15. data/docs/MerchantIdRestrictionGroupsApi.md +67 -0
  16. data/docs/Payin.md +1 -1
  17. data/docs/PayinApi.md +2 -2
  18. data/docs/Payinrefund.md +1 -1
  19. data/docs/PayinrefundApi.md +4 -4
  20. data/docs/SepaSctrInst.md +26 -0
  21. data/docs/UserApi.md +6 -6
  22. data/docs/WalletApi.md +1 -5
  23. data/generate.sh +14 -0
  24. data/lib/treezor_client/api/balance_api.rb +1 -1
  25. data/lib/treezor_client/api/bankaccount_api.rb +1 -1
  26. data/lib/treezor_client/api/beneficiaries_api.rb +1 -1
  27. data/lib/treezor_client/api/business_api.rb +4 -4
  28. data/lib/treezor_client/api/card_api.rb +1 -49
  29. data/lib/treezor_client/api/card_digitalizations_api.rb +1 -1
  30. data/lib/treezor_client/api/card_reserve_api.rb +7 -21
  31. data/lib/treezor_client/api/cardtransaction_api.rb +3 -3
  32. data/lib/treezor_client/api/country_restriction_groups_api.rb +1 -1
  33. data/lib/treezor_client/api/document_api.rb +1 -1
  34. data/lib/treezor_client/api/heartbeat_api.rb +1 -1
  35. data/lib/treezor_client/api/issuer_initiated_digitization_data_api.rb +1 -1
  36. data/lib/treezor_client/api/mandate_api.rb +1 -1
  37. data/lib/treezor_client/api/mcc_restriction_groups_api.rb +1 -1
  38. data/lib/treezor_client/api/merchant_id_restriction_groups_api.rb +69 -1
  39. data/lib/treezor_client/api/payin_api.rb +3 -3
  40. data/lib/treezor_client/api/payinrefund_api.rb +3 -3
  41. data/lib/treezor_client/api/payout_api.rb +1 -1
  42. data/lib/treezor_client/api/payout_refunds_api.rb +1 -1
  43. data/lib/treezor_client/api/tax_residence_api.rb +1 -1
  44. data/lib/treezor_client/api/transaction_api.rb +1 -1
  45. data/lib/treezor_client/api/transfer_api.rb +1 -1
  46. data/lib/treezor_client/api/transferrefund_api.rb +1 -1
  47. data/lib/treezor_client/api/user_api.rb +7 -7
  48. data/lib/treezor_client/api/virtualibans_api.rb +1 -1
  49. data/lib/treezor_client/api/wallet_api.rb +3 -9
  50. data/lib/treezor_client/api_client.rb +6 -4
  51. data/lib/treezor_client/api_error.rb +1 -1
  52. data/lib/treezor_client/configuration.rb +3 -3
  53. data/lib/treezor_client/models/balance.rb +3 -2
  54. data/lib/treezor_client/models/bankaccount.rb +3 -2
  55. data/lib/treezor_client/models/beneficiaries_sdd_b2b_whitelist.rb +3 -2
  56. data/lib/treezor_client/models/beneficiary.rb +3 -2
  57. data/lib/treezor_client/models/body.rb +3 -2
  58. data/lib/treezor_client/models/body_1.rb +3 -2
  59. data/lib/treezor_client/models/body_10.rb +3 -2
  60. data/lib/treezor_client/models/{inline_response_200_7_cardimages.rb → body_11.rb} +52 -40
  61. data/lib/treezor_client/models/body_2.rb +3 -2
  62. data/lib/treezor_client/models/body_3.rb +3 -2
  63. data/lib/treezor_client/models/body_4.rb +3 -2
  64. data/lib/treezor_client/models/body_5.rb +3 -2
  65. data/lib/treezor_client/models/body_6.rb +3 -2
  66. data/lib/treezor_client/models/body_7.rb +3 -2
  67. data/lib/treezor_client/models/body_8.rb +3 -2
  68. data/lib/treezor_client/models/body_9.rb +3 -2
  69. data/lib/treezor_client/models/businesssearchs_businessinformations.rb +3 -2
  70. data/lib/treezor_client/models/card.rb +3 -2
  71. data/lib/treezor_client/models/card_digitalization.rb +4 -3
  72. data/lib/treezor_client/models/country_restriction_group.rb +3 -2
  73. data/lib/treezor_client/models/document.rb +3 -2
  74. data/lib/treezor_client/models/error.rb +3 -2
  75. data/lib/treezor_client/models/inline_response_200.rb +3 -2
  76. data/lib/treezor_client/models/inline_response_200_1.rb +3 -2
  77. data/lib/treezor_client/models/inline_response_200_10.rb +3 -2
  78. data/lib/treezor_client/models/inline_response_200_10_cardtransactions.rb +13 -3
  79. data/lib/treezor_client/models/inline_response_200_11.rb +3 -2
  80. data/lib/treezor_client/models/inline_response_200_12.rb +3 -2
  81. data/lib/treezor_client/models/inline_response_200_13.rb +3 -2
  82. data/lib/treezor_client/models/inline_response_200_14.rb +3 -2
  83. data/lib/treezor_client/models/inline_response_200_15.rb +3 -2
  84. data/lib/treezor_client/models/inline_response_200_16.rb +11 -10
  85. data/lib/treezor_client/models/inline_response_200_17.rb +3 -2
  86. data/lib/treezor_client/models/inline_response_200_18.rb +3 -2
  87. data/lib/treezor_client/models/inline_response_200_19.rb +3 -2
  88. data/lib/treezor_client/models/inline_response_200_2.rb +3 -2
  89. data/lib/treezor_client/models/inline_response_200_20.rb +3 -2
  90. data/lib/treezor_client/models/inline_response_200_21.rb +3 -2
  91. data/lib/treezor_client/models/inline_response_200_22.rb +3 -2
  92. data/lib/treezor_client/models/inline_response_200_23.rb +3 -2
  93. data/lib/treezor_client/models/inline_response_200_24.rb +3 -2
  94. data/lib/treezor_client/models/inline_response_200_25.rb +3 -2
  95. data/lib/treezor_client/models/inline_response_200_26.rb +3 -2
  96. data/lib/treezor_client/models/inline_response_200_27.rb +3 -2
  97. data/lib/treezor_client/models/inline_response_200_28.rb +3 -2
  98. data/lib/treezor_client/models/inline_response_200_3.rb +3 -2
  99. data/lib/treezor_client/models/inline_response_200_4.rb +3 -2
  100. data/lib/treezor_client/models/inline_response_200_4_businessinformations.rb +3 -2
  101. data/lib/treezor_client/models/inline_response_200_4_users.rb +3 -2
  102. data/lib/treezor_client/models/inline_response_200_5.rb +3 -2
  103. data/lib/treezor_client/models/inline_response_200_6.rb +3 -2
  104. data/lib/treezor_client/models/inline_response_200_6_cardimages.rb +3 -2
  105. data/lib/treezor_client/models/inline_response_200_7.rb +3 -2
  106. data/lib/treezor_client/models/inline_response_200_8.rb +3 -2
  107. data/lib/treezor_client/models/inline_response_200_9.rb +3 -2
  108. data/lib/treezor_client/models/inline_response_200_9_cardtransactions.rb +13 -3
  109. data/lib/treezor_client/models/inline_response_default.rb +3 -2
  110. data/lib/treezor_client/models/issuer_initiated_digitization_data.rb +3 -2
  111. data/lib/treezor_client/models/issuer_initiated_digitization_datas_additionnal_data.rb +3 -2
  112. data/lib/treezor_client/models/mandate.rb +3 -2
  113. data/lib/treezor_client/models/mcc_restriction_group.rb +3 -2
  114. data/lib/treezor_client/models/merchant_id_restriction_group.rb +3 -2
  115. data/lib/treezor_client/models/payin.rb +8 -5
  116. data/lib/treezor_client/models/payinrefund.rb +4 -3
  117. data/lib/treezor_client/models/payout.rb +3 -2
  118. data/lib/treezor_client/models/payout_refund.rb +3 -2
  119. data/lib/treezor_client/models/sepa_sctr_inst.rb +347 -0
  120. data/lib/treezor_client/models/tax_residence.rb +3 -2
  121. data/lib/treezor_client/models/transaction.rb +3 -2
  122. data/lib/treezor_client/models/transfer.rb +3 -2
  123. data/lib/treezor_client/models/transferrefund.rb +3 -2
  124. data/lib/treezor_client/models/user.rb +3 -2
  125. data/lib/treezor_client/models/virtualiban.rb +3 -2
  126. data/lib/treezor_client/models/wallet.rb +3 -2
  127. data/lib/treezor_client/version.rb +2 -2
  128. data/lib/treezor_client.rb +3 -1
  129. data/original_treezor_api_spec.yaml +111 -78
  130. data/patches/01_update_rake_gemfile.patch +11 -0
  131. data/patches/02_iban_bic_case.patch +13 -0
  132. data/pkg/treezor_client-2.1.0.gem +0 -0
  133. data/spec/models/body_11_spec.rb +51 -0
  134. data/spec/models/sepa_sctr_inst_spec.rb +149 -0
  135. data/treezor_api_spec.yaml +149 -78
  136. data/treezor_client.gemspec +2 -1
  137. metadata +37 -152
  138. data/doc/TreezorClient/ApiClient.html +0 -2600
  139. data/doc/TreezorClient/ApiError.html +0 -464
  140. data/doc/TreezorClient/Balance.html +0 -2042
  141. data/doc/TreezorClient/BalanceApi.html +0 -760
  142. data/doc/TreezorClient/Bankaccount/EnumAttributeValidator.html +0 -455
  143. data/doc/TreezorClient/Bankaccount.html +0 -2560
  144. data/doc/TreezorClient/BankaccountApi.html +0 -2450
  145. data/doc/TreezorClient/BeneficiariesApi.html +0 -2387
  146. data/doc/TreezorClient/BeneficiariesSddB2bWhitelist.html +0 -1816
  147. data/doc/TreezorClient/Beneficiary.html +0 -2574
  148. data/doc/TreezorClient/Body/EnumAttributeValidator.html +0 -455
  149. data/doc/TreezorClient/Body.html +0 -1826
  150. data/doc/TreezorClient/Body1.html +0 -2596
  151. data/doc/TreezorClient/Body10/EnumAttributeValidator.html +0 -455
  152. data/doc/TreezorClient/Body10.html +0 -2069
  153. data/doc/TreezorClient/Body2.html +0 -2492
  154. data/doc/TreezorClient/Body3.html +0 -1726
  155. data/doc/TreezorClient/Body4.html +0 -1726
  156. data/doc/TreezorClient/Body5/EnumAttributeValidator.html +0 -455
  157. data/doc/TreezorClient/Body5.html +0 -2001
  158. data/doc/TreezorClient/Body6/EnumAttributeValidator.html +0 -455
  159. data/doc/TreezorClient/Body6.html +0 -2069
  160. data/doc/TreezorClient/Body7/EnumAttributeValidator.html +0 -455
  161. data/doc/TreezorClient/Body7.html +0 -2002
  162. data/doc/TreezorClient/Body8/EnumAttributeValidator.html +0 -455
  163. data/doc/TreezorClient/Body8.html +0 -1981
  164. data/doc/TreezorClient/Body9/EnumAttributeValidator.html +0 -455
  165. data/doc/TreezorClient/Body9.html +0 -2001
  166. data/doc/TreezorClient/BusinessApi.html +0 -1548
  167. data/doc/TreezorClient/BusinesssearchsBusinessinformations/EnumAttributeValidator.html +0 -455
  168. data/doc/TreezorClient/BusinesssearchsBusinessinformations.html +0 -2822
  169. data/doc/TreezorClient/Card/EnumAttributeValidator.html +0 -455
  170. data/doc/TreezorClient/Card.html +0 -6928
  171. data/doc/TreezorClient/CardApi.html +0 -9907
  172. data/doc/TreezorClient/CardDigitalization.html +0 -2126
  173. data/doc/TreezorClient/CardDigitalizationDetailsFromGPS.html +0 -4343
  174. data/doc/TreezorClient/CardDigitalizationsApi.html +0 -1542
  175. data/doc/TreezorClient/CardReserveApi.html +0 -1622
  176. data/doc/TreezorClient/CardtransactionApi.html +0 -1243
  177. data/doc/TreezorClient/Configuration.html +0 -2459
  178. data/doc/TreezorClient/CountryRestrictionGroupsApi.html +0 -2602
  179. data/doc/TreezorClient/Document/EnumAttributeValidator.html +0 -455
  180. data/doc/TreezorClient/Document.html +0 -2812
  181. data/doc/TreezorClient/DocumentApi.html +0 -2878
  182. data/doc/TreezorClient/Error.html +0 -1794
  183. data/doc/TreezorClient/HeartbeatApi.html +0 -702
  184. data/doc/TreezorClient/InlineResponse200.html +0 -1626
  185. data/doc/TreezorClient/InlineResponse2001.html +0 -1626
  186. data/doc/TreezorClient/InlineResponse20010.html +0 -1626
  187. data/doc/TreezorClient/InlineResponse20010Cardtransactions.html +0 -5844
  188. data/doc/TreezorClient/InlineResponse20011.html +0 -1626
  189. data/doc/TreezorClient/InlineResponse20012.html +0 -1626
  190. data/doc/TreezorClient/InlineResponse20013.html +0 -1626
  191. data/doc/TreezorClient/InlineResponse20014.html +0 -1626
  192. data/doc/TreezorClient/InlineResponse20015.html +0 -1626
  193. data/doc/TreezorClient/InlineResponse20016.html +0 -1626
  194. data/doc/TreezorClient/InlineResponse20017.html +0 -1626
  195. data/doc/TreezorClient/InlineResponse20018.html +0 -1626
  196. data/doc/TreezorClient/InlineResponse20019.html +0 -1626
  197. data/doc/TreezorClient/InlineResponse2002.html +0 -1626
  198. data/doc/TreezorClient/InlineResponse20020.html +0 -1626
  199. data/doc/TreezorClient/InlineResponse20021.html +0 -1626
  200. data/doc/TreezorClient/InlineResponse20022.html +0 -1626
  201. data/doc/TreezorClient/InlineResponse20023.html +0 -1626
  202. data/doc/TreezorClient/InlineResponse20024.html +0 -1626
  203. data/doc/TreezorClient/InlineResponse20025.html +0 -1626
  204. data/doc/TreezorClient/InlineResponse2003.html +0 -1626
  205. data/doc/TreezorClient/InlineResponse2004.html +0 -1626
  206. data/doc/TreezorClient/InlineResponse2005.html +0 -1626
  207. data/doc/TreezorClient/InlineResponse2005Businessinformations/EnumAttributeValidator.html +0 -455
  208. data/doc/TreezorClient/InlineResponse2005Businessinformations.html +0 -3561
  209. data/doc/TreezorClient/InlineResponse2005Users/EnumAttributeValidator.html +0 -455
  210. data/doc/TreezorClient/InlineResponse2005Users.html +0 -1972
  211. data/doc/TreezorClient/InlineResponse2006.html +0 -1626
  212. data/doc/TreezorClient/InlineResponse2007.html +0 -1626
  213. data/doc/TreezorClient/InlineResponse2007Cardimages.html +0 -1800
  214. data/doc/TreezorClient/InlineResponse2008.html +0 -1626
  215. data/doc/TreezorClient/InlineResponse2009.html +0 -1790
  216. data/doc/TreezorClient/InlineResponseDefault.html +0 -1626
  217. data/doc/TreezorClient/IssuerInitiatedDigitizationDataApi.html +0 -1371
  218. data/doc/TreezorClient/IssuerInitiatedDigitizationDatasAdditionnalData.html +0 -1803
  219. data/doc/TreezorClient/IssuerInitiatedDigitizationDatasAdditionnalDataECCPublicCertificates.html +0 -1804
  220. data/doc/TreezorClient/Mandate/EnumAttributeValidator.html +0 -455
  221. data/doc/TreezorClient/Mandate.html +0 -4584
  222. data/doc/TreezorClient/MandateApi.html +0 -3787
  223. data/doc/TreezorClient/MccRestrictionGroup/EnumAttributeValidator.html +0 -455
  224. data/doc/TreezorClient/MccRestrictionGroup.html +0 -2144
  225. data/doc/TreezorClient/MccRestrictionGroupsApi.html +0 -2598
  226. data/doc/TreezorClient/MerchantIdRestrictionGroup/EnumAttributeValidator.html +0 -455
  227. data/doc/TreezorClient/MerchantIdRestrictionGroup.html +0 -2144
  228. data/doc/TreezorClient/MerchantIdRestrictionGroupsApi.html +0 -2638
  229. data/doc/TreezorClient/Payin/EnumAttributeValidator.html +0 -455
  230. data/doc/TreezorClient/Payin.html +0 -5584
  231. data/doc/TreezorClient/PayinApi.html +0 -2963
  232. data/doc/TreezorClient/Payinrefund/EnumAttributeValidator.html +0 -455
  233. data/doc/TreezorClient/Payinrefund.html +0 -2476
  234. data/doc/TreezorClient/PayinrefundApi.html +0 -2449
  235. data/doc/TreezorClient/Payout/EnumAttributeValidator.html +0 -455
  236. data/doc/TreezorClient/Payout.html +0 -3488
  237. data/doc/TreezorClient/PayoutApi.html +0 -2737
  238. data/doc/TreezorClient/Tav.html +0 -2130
  239. data/doc/TreezorClient/Transaction.html +0 -2798
  240. data/doc/TreezorClient/TransactionApi.html +0 -1491
  241. data/doc/TreezorClient/Transfer/EnumAttributeValidator.html +0 -455
  242. data/doc/TreezorClient/Transfer.html +0 -3158
  243. data/doc/TreezorClient/TransferApi.html +0 -2725
  244. data/doc/TreezorClient/Transferrefund/EnumAttributeValidator.html +0 -455
  245. data/doc/TreezorClient/Transferrefund.html +0 -2644
  246. data/doc/TreezorClient/TransferrefundApi.html +0 -2450
  247. data/doc/TreezorClient/User/EnumAttributeValidator.html +0 -455
  248. data/doc/TreezorClient/User.html +0 -5844
  249. data/doc/TreezorClient/UserApi.html +0 -6647
  250. data/doc/TreezorClient/Virtualiban.html +0 -2462
  251. data/doc/TreezorClient/VirtualibansApi.html +0 -2845
  252. data/doc/TreezorClient/Wallet/EnumAttributeValidator.html +0 -455
  253. data/doc/TreezorClient/Wallet.html +0 -4076
  254. data/doc/TreezorClient/WalletApi.html +0 -3944
  255. data/doc/TreezorClient.html +0 -251
  256. data/doc/_index.html +0 -1025
  257. data/doc/class_list.html +0 -51
  258. data/doc/css/common.css +0 -1
  259. data/doc/css/full_list.css +0 -58
  260. data/doc/css/style.css +0 -496
  261. data/doc/file.README.html +0 -636
  262. data/doc/file_list.html +0 -56
  263. data/doc/frames.html +0 -17
  264. data/doc/index.html +0 -636
  265. data/doc/js/app.js +0 -292
  266. data/doc/js/full_list.js +0 -216
  267. data/doc/js/jquery.js +0 -4
  268. data/doc/method_list.html +0 -15699
  269. data/doc/top-level-namespace.html +0 -110
  270. data/docs/CardDigitalizationDetailsFromGPS.md +0 -40
  271. data/docs/InlineResponse20011Cardtransactions.md +0 -58
  272. data/docs/InlineResponse2005Businessinformations.md +0 -26
  273. data/docs/InlineResponse2005Users.md +0 -12
  274. data/docs/InlineResponse2007Cardimages.md +0 -10
  275. data/docs/IssuerInitiatedDigitizationDatasAdditionnalDataECCPublicCertificates.md +0 -10
  276. data/docs/Tav.md +0 -14
  277. data/lib/treezor_client/models/card_digitalization_details_from_gps.rb +0 -509
  278. data/lib/treezor_client/models/inline_response_200_11_cardtransactions.rb +0 -637
  279. data/lib/treezor_client/models/inline_response_200_5_businessinformations.rb +0 -447
  280. data/lib/treezor_client/models/inline_response_200_5_users.rb +0 -258
  281. data/lib/treezor_client/models/issuer_initiated_digitization_datas_additionnal_data_ecc_public_certificates.rb +0 -209
  282. data/lib/treezor_client/models/tav.rb +0 -241
  283. data/pkg/treezor_client-1.10.0.gem +0 -0
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 0.1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.1
9
+ Swagger Codegen version: 2.4.19
10
10
 
11
11
  =end
12
12
 
@@ -227,7 +227,7 @@ module TreezorClient
227
227
  return nil unless attributes.is_a?(Hash)
228
228
  self.class.swagger_types.each_pair do |key, type|
229
229
  if type =~ /\AArray<(.*)>/i
230
- # check to ensure the input is an array given that the the attribute
230
+ # check to ensure the input is an array given that the attribute
231
231
  # is documented as an array but the input is not
232
232
  if attributes[self.class.attribute_map[key]].is_a?(Array)
233
233
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -323,5 +323,6 @@ module TreezorClient
323
323
  value
324
324
  end
325
325
  end
326
+
326
327
  end
327
328
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 0.1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.1
9
+ Swagger Codegen version: 2.4.19
10
10
 
11
11
  =end
12
12
 
@@ -647,7 +647,7 @@ module TreezorClient
647
647
  return nil unless attributes.is_a?(Hash)
648
648
  self.class.swagger_types.each_pair do |key, type|
649
649
  if type =~ /\AArray<(.*)>/i
650
- # check to ensure the input is an array given that the the attribute
650
+ # check to ensure the input is an array given that the attribute
651
651
  # is documented as an array but the input is not
652
652
  if attributes[self.class.attribute_map[key]].is_a?(Array)
653
653
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -743,5 +743,6 @@ module TreezorClient
743
743
  value
744
744
  end
745
745
  end
746
+
746
747
  end
747
748
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 0.1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.1
9
+ Swagger Codegen version: 2.4.19
10
10
 
11
11
  =end
12
12
 
@@ -173,7 +173,7 @@ module TreezorClient
173
173
  return nil unless attributes.is_a?(Hash)
174
174
  self.class.swagger_types.each_pair do |key, type|
175
175
  if type =~ /\AArray<(.*)>/i
176
- # check to ensure the input is an array given that the the attribute
176
+ # check to ensure the input is an array given that the attribute
177
177
  # is documented as an array but the input is not
178
178
  if attributes[self.class.attribute_map[key]].is_a?(Array)
179
179
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -269,5 +269,6 @@ module TreezorClient
269
269
  value
270
270
  end
271
271
  end
272
+
272
273
  end
273
274
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 0.1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.1
9
+ Swagger Codegen version: 2.4.19
10
10
 
11
11
  =end
12
12
 
@@ -384,7 +384,7 @@ module TreezorClient
384
384
  return nil unless attributes.is_a?(Hash)
385
385
  self.class.swagger_types.each_pair do |key, type|
386
386
  if type =~ /\AArray<(.*)>/i
387
- # check to ensure the input is an array given that the the attribute
387
+ # check to ensure the input is an array given that the attribute
388
388
  # is documented as an array but the input is not
389
389
  if attributes[self.class.attribute_map[key]].is_a?(Array)
390
390
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -480,5 +480,6 @@ module TreezorClient
480
480
  value
481
481
  end
482
482
  end
483
+
483
484
  end
484
485
  end
@@ -6,10 +6,10 @@
6
6
  OpenAPI spec version: 0.1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.1
9
+ Swagger Codegen version: 2.4.19
10
10
 
11
11
  =end
12
12
 
13
13
  module TreezorClient
14
- VERSION = '1.11.0'
14
+ VERSION = '2.1.1'
15
15
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 0.1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.1
9
+ Swagger Codegen version: 2.4.19
10
10
 
11
11
  =end
12
12
 
@@ -24,6 +24,7 @@ require 'treezor_client/models/beneficiary'
24
24
  require 'treezor_client/models/body'
25
25
  require 'treezor_client/models/body_1'
26
26
  require 'treezor_client/models/body_10'
27
+ require 'treezor_client/models/body_11'
27
28
  require 'treezor_client/models/body_2'
28
29
  require 'treezor_client/models/body_3'
29
30
  require 'treezor_client/models/body_4'
@@ -82,6 +83,7 @@ require 'treezor_client/models/payin'
82
83
  require 'treezor_client/models/payinrefund'
83
84
  require 'treezor_client/models/payout'
84
85
  require 'treezor_client/models/payout_refund'
86
+ require 'treezor_client/models/sepa_sctr_inst'
85
87
  require 'treezor_client/models/tax_residence'
86
88
  require 'treezor_client/models/transaction'
87
89
  require 'treezor_client/models/transfer'
@@ -1958,42 +1958,6 @@ paths:
1958
1958
  - api_key: []
1959
1959
  tags:
1960
1960
  - card
1961
- delete:
1962
- summary: deactivate a card
1963
- parameters:
1964
- - name: id
1965
- in: path
1966
- description: Card's id.
1967
- required: true
1968
- type: integer
1969
- format: int64
1970
- responses:
1971
- '200':
1972
- description: OK
1973
- schema:
1974
- type: object
1975
- properties:
1976
- cards:
1977
- type: array
1978
- items:
1979
- $ref: '#/definitions/Card'
1980
- '400':
1981
- description: Bad Request
1982
- '401':
1983
- description: Unauthorized
1984
- default:
1985
- description: Unexpected error
1986
- schema:
1987
- type: object
1988
- properties:
1989
- errors:
1990
- type: array
1991
- items:
1992
- $ref: '#/definitions/Error'
1993
- security:
1994
- - api_key: []
1995
- tags:
1996
- - card
1997
1961
  /cards/CreateVirtual:
1998
1962
  post:
1999
1963
  summary: create a virtual card
@@ -3410,6 +3374,7 @@ paths:
3410
3374
  in: query
3411
3375
  description: |
3412
3376
  The new status for the payment Token. Possible values are :
3377
+
3413
3378
  | Status | Description |
3414
3379
  | ---- | ----------- |
3415
3380
  | unsuspend | Unsuspend |
@@ -3649,11 +3614,6 @@ paths:
3649
3614
  [here](https://www.treezor.com/basics).
3650
3615
  required: false
3651
3616
  type: string
3652
- - name: id
3653
- description: the cardId of the reserved amount you want to pick up
3654
- required: true
3655
- type: integer
3656
- format: int64
3657
3617
  - in: body
3658
3618
  name: body
3659
3619
  schema:
@@ -3731,11 +3691,6 @@ paths:
3731
3691
  [here](https://www.treezor.com/basics).
3732
3692
  required: false
3733
3693
  type: string
3734
- - name: id
3735
- description: the cardId of the reserved amount you want to pick up
3736
- required: true
3737
- type: integer
3738
- format: int64
3739
3694
  - in: body
3740
3695
  name: body
3741
3696
  schema:
@@ -3776,7 +3731,7 @@ paths:
3776
3731
  tags:
3777
3732
  - cardtransaction
3778
3733
  summary: search for card transactions
3779
- description: Search for documents.
3734
+ description: Search for documents. The request must contain at least one of those inputs - cardId, paymentId, publicToken, walletId
3780
3735
  operationId: readCardTransaction
3781
3736
  consumes:
3782
3737
  - application/json
@@ -3882,6 +3837,8 @@ paths:
3882
3837
  type: integer
3883
3838
  walletId:
3884
3839
  type: integer
3840
+ acquirerId:
3841
+ type: integer
3885
3842
  walletCurrency:
3886
3843
  type: string
3887
3844
  merchantId:
@@ -4079,6 +4036,8 @@ paths:
4079
4036
  type: string
4080
4037
  walletId:
4081
4038
  type: string
4039
+ acquirerId:
4040
+ type: string
4082
4041
  walletCurrency:
4083
4042
  type: string
4084
4043
  merchantId:
@@ -4410,6 +4369,7 @@ paths:
4410
4369
  - criterion : a filter criterion.
4411
4370
 
4412
4371
  Here are the possible values for criterion :
4372
+
4413
4373
  | Criteria | Description | Type | Expression Example |
4414
4374
  |----------|------------------------|------------------------------------------|--------------------|
4415
4375
  | > | greater than | alphanumeric string | 100 |
@@ -6092,6 +6052,7 @@ paths:
6092
6052
  - criterion : a filter criterion.
6093
6053
 
6094
6054
  Here are the possible values for criterion :
6055
+
6095
6056
  | Criteria | Description | Type | Expression Example |
6096
6057
  |----------|------------------------|------------------------------------------|--------------------|
6097
6058
  | > | greater than | alphanumeric string | 100 |
@@ -6427,7 +6388,7 @@ paths:
6427
6388
  schema:
6428
6389
  type: object
6429
6390
  properties:
6430
- bankaccounts:
6391
+ merchantIdRestrictionGroups:
6431
6392
  type: array
6432
6393
  items:
6433
6394
  $ref: '#/definitions/MerchantIdRestrictionGroup'
@@ -6516,6 +6477,7 @@ paths:
6516
6477
  - criterion : a filter criterion.
6517
6478
 
6518
6479
  Here are the possible values for criterion :
6480
+
6519
6481
  | Criteria | Description | Type | Expression Example |
6520
6482
  |----------|------------------------|------------------------------------------|--------------------|
6521
6483
  | > | greater than | alphanumeric string | 100 |
@@ -6568,7 +6530,7 @@ paths:
6568
6530
  schema:
6569
6531
  type: object
6570
6532
  properties:
6571
- bankaccounts:
6533
+ merchantIdRestrictionGroups:
6572
6534
  type: array
6573
6535
  items:
6574
6536
  $ref: '#/definitions/MerchantIdRestrictionGroup'
@@ -6616,7 +6578,7 @@ paths:
6616
6578
  schema:
6617
6579
  type: object
6618
6580
  properties:
6619
- bankaccounts:
6581
+ merchantIdRestrictionGroups:
6620
6582
  type: array
6621
6583
  items:
6622
6584
  $ref: '#/definitions/MerchantIdRestrictionGroup'
@@ -6708,7 +6670,7 @@ paths:
6708
6670
  schema:
6709
6671
  type: object
6710
6672
  properties:
6711
- bankaccounts:
6673
+ merchantIdRestrictionGroups:
6712
6674
  type: array
6713
6675
  items:
6714
6676
  $ref: '#/definitions/MerchantIdRestrictionGroup'
@@ -6755,7 +6717,88 @@ paths:
6755
6717
  schema:
6756
6718
  type: object
6757
6719
  properties:
6758
- bankaccounts:
6720
+ merchantIdRestrictionGroups:
6721
+ type: array
6722
+ items:
6723
+ $ref: '#/definitions/MerchantIdRestrictionGroup'
6724
+ '405':
6725
+ description: Invalid input
6726
+ default:
6727
+ description: Unexpected error
6728
+ schema:
6729
+ type: object
6730
+ properties:
6731
+ errors:
6732
+ type: array
6733
+ items:
6734
+ $ref: '#/definitions/Error'
6735
+ security:
6736
+ - api_key: []
6737
+ '/merchantIdRestrictionGroups/{id}/DeltaUpdate/':
6738
+ put:
6739
+ tags:
6740
+ - merchantIdRestrictionGroups
6741
+ summary: edit the merchant ID list for a restriction group
6742
+ description: Edit the merchant ID list for a restriction group in the system.
6743
+ consumes:
6744
+ - application/json
6745
+ produces:
6746
+ - application/json
6747
+ parameters:
6748
+ - name: id
6749
+ in: path
6750
+ description: Merchant ID restriction group's id.
6751
+ required: true
6752
+ type: integer
6753
+ - name: accessSignature
6754
+ in: query
6755
+ description: |
6756
+ Access signature can be mandatory for specific context. Treezor will
6757
+ contact you if so. More info
6758
+ [here](https://agent.treezor.com/security-authentication).
6759
+ required: false
6760
+ type: string
6761
+ - name: accessTag
6762
+ in: query
6763
+ description: |
6764
+ Access tag is used for idem potency query. More info
6765
+ [here](https://agent.treezor.com/basics).
6766
+ required: false
6767
+ type: string
6768
+ - name: accessUserId
6769
+ in: query
6770
+ description: |
6771
+ Access user's id is used for user's action restriction. More info
6772
+ [here](https://agent.treezor.com/basics).
6773
+ required: false
6774
+ type: integer
6775
+ - name: accessUserIp
6776
+ in: query
6777
+ description: |
6778
+ Access user's ip is used for user's action restriction. More info
6779
+ [here](https://agent.treezor.com/basics).
6780
+ required: false
6781
+ type: string
6782
+ - in: body
6783
+ name: body
6784
+ schema:
6785
+ properties:
6786
+ merchants:
6787
+ description: Array of merchant ID
6788
+ type: array
6789
+ items:
6790
+ type: string
6791
+ merchantsOperation:
6792
+ description: Action to do with merchants id list
6793
+ type: string
6794
+ enum: ["add", "remove"]
6795
+ responses:
6796
+ '200':
6797
+ description: OK
6798
+ schema:
6799
+ type: object
6800
+ properties:
6801
+ merchantIdRestrictionGroups:
6759
6802
  type: array
6760
6803
  items:
6761
6804
  $ref: '#/definitions/MerchantIdRestrictionGroup'
@@ -6772,7 +6815,6 @@ paths:
6772
6815
  $ref: '#/definitions/Error'
6773
6816
  security:
6774
6817
  - api_key: []
6775
-
6776
6818
  /payins:
6777
6819
  post:
6778
6820
  tags:
@@ -9423,14 +9465,15 @@ paths:
9423
9465
  - name: entityType
9424
9466
  in: query
9425
9467
  description: |
9426
- Type of user's entity type
9427
- | Value | Type |
9428
- | --- | --- |
9429
- | 1 | Reporting Financial Institution |
9430
- | 2 | Non-Reporting Financial Institution |
9431
- | 3 | Active Non-Financial Entity - Governmental entities, Int. organizations |
9432
- | 4 | Active Non-Financial Entity - Other |
9433
- | 5 | Passive Non-Financial Entity - Investment entity that is not Participating Jurisdiction FI |
9468
+ Type of user's entity type :
9469
+
9470
+ | Value | Type |
9471
+ | --- | --- |
9472
+ | 1 | Reporting Financial Institution |
9473
+ | 2 | Non-Reporting Financial Institution |
9474
+ | 3 | Active Non-Financial Entity - Governmental entities, Int. organizations |
9475
+ | 4 | Active Non-Financial Entity - Other |
9476
+ | 5 | Passive Non-Financial Entity - Investment entity that is not Participating Jurisdiction FI |
9434
9477
  required: false
9435
9478
  type: integer
9436
9479
  - name: title
@@ -9884,7 +9927,7 @@ paths:
9884
9927
  type: string
9885
9928
  - name: position
9886
9929
  in: query
9887
- description: User's position.
9930
+ description: User's position (deprecated, you must use the parameter occupation).
9888
9931
  required: false
9889
9932
  type: string
9890
9933
  - name: personalAssets
@@ -10258,6 +10301,7 @@ paths:
10258
10301
  in: query
10259
10302
  description: |
10260
10303
  Type of relationship
10304
+
10261
10305
  | Value | Type |
10262
10306
  | --- | --- |
10263
10307
  | 1 | Shareholder |
@@ -10270,6 +10314,7 @@ paths:
10270
10314
  in: query
10271
10315
  description: |
10272
10316
  Type of relationship. Possible values:
10317
+
10273
10318
  | Value | Type |
10274
10319
  | --- | --- |
10275
10320
  | 1 | Leader |
@@ -10724,7 +10769,7 @@ paths:
10724
10769
  type: string
10725
10770
  - name: position
10726
10771
  in: query
10727
- description: User's position.
10772
+ description: User's position (deprecated, you must use the parameter occupation).
10728
10773
  required: false
10729
10774
  type: string
10730
10775
  - name: personalAssets
@@ -11497,7 +11542,7 @@ paths:
11497
11542
  tags:
11498
11543
  - wallet
11499
11544
  summary: search wallets
11500
- description: Get wallets from the system that match the search criteria.
11545
+ description: 'Get wallets from the system that match the search criteria. The request must contains at least one of those inputs :walletId eventAlias, userId, walletTypeId, walletTag'
11501
11546
  operationId: getWallets
11502
11547
  consumes:
11503
11548
  - application/json
@@ -11571,13 +11616,6 @@ paths:
11571
11616
  | 14 | Electronic Money Card (Internal only) |
11572
11617
  required: false
11573
11618
  type: integer
11574
- - name: eventName
11575
- in: query
11576
- description: |
11577
- Event name that will be used as wallet name. For example, in a
11578
- wedding list: Wedding of X and Y
11579
- required: false
11580
- type: string
11581
11619
  - name: eventAlias
11582
11620
  in: query
11583
11621
  description: |
@@ -11610,11 +11648,6 @@ paths:
11610
11648
  description: Number of payin done on the wallet.
11611
11649
  required: false
11612
11650
  type: integer
11613
- - name: solde
11614
- in: query
11615
- description: Wallet current balance.
11616
- required: false
11617
- type: string
11618
11651
  - name: pageNumber
11619
11652
  in: query
11620
11653
  description: |
@@ -12497,9 +12530,9 @@ definitions:
12497
12530
  | Status | Description |
12498
12531
  | ---- | ----------- |
12499
12532
  | A | Active |
12500
- | N | Not tokenized |
12533
+ | U | Not tokenized |
12501
12534
  | S | Suspended |
12502
- | X | Deactivated (Final status, cannot be changed)|
12535
+ | D | Deactivated (Final status, cannot be changed)|
12503
12536
  createdDate:
12504
12537
  type: string
12505
12538
  modifiedDate:
@@ -0,0 +1,11 @@
1
+ diff --git a/Gemfile b/Gemfile
2
+ index f833005..f58bec0 100644
3
+ --- a/Gemfile
4
+ +++ b/Gemfile
5
+ @@ -3,5 +3,5 @@ source 'https://rubygems.org'
6
+ gemspec
7
+
8
+ group :development, :test do
9
+ - gem 'rake', '~> 12.3.3'
10
+ + gem 'rake', '~> 13.0.6'
11
+ end
@@ -0,0 +1,13 @@
1
+ diff --git a/lib/treezor_client/models/payin.rb b/lib/treezor_client/models/payin.rb
2
+ index 9324101..3eec42b 100644
3
+ --- a/lib/treezor_client/models/payin.rb
4
+ +++ b/lib/treezor_client/models/payin.rb
5
+ @@ -388,6 +388,8 @@ module TreezorClient
6
+
7
+ if attributes.has_key?(:'ibanBic')
8
+ self.iban_bic = attributes[:'ibanBic']
9
+ + elsif attributes.has_key?(:'ibanBIC')
10
+ + self.iban_bic = attributes[:'ibanBIC']
11
+ end
12
+
13
+ if attributes.has_key?(:'ibanTxEndToEndId')
Binary file
@@ -0,0 +1,51 @@
1
+ =begin
2
+ #Treezor
3
+
4
+ #Treezor API. more info [here](https://www.treezor.com).
5
+
6
+ OpenAPI spec version: 0.1.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for TreezorClient::Body11
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'Body11' do
21
+ before do
22
+ # run before each test
23
+ @instance = TreezorClient::Body11.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of Body11' do
31
+ it 'should create an instance of Body11' do
32
+ expect(@instance).to be_instance_of(TreezorClient::Body11)
33
+ end
34
+ end
35
+ describe 'test attribute "merchants"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "merchants_operation"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove"])
45
+ # validator.allowable_values.each do |value|
46
+ # expect { @instance.merchants_operation = value }.not_to raise_error
47
+ # end
48
+ end
49
+ end
50
+
51
+ end