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
 
@@ -153,7 +153,7 @@ module TreezorClient
153
153
  return nil unless attributes.is_a?(Hash)
154
154
  self.class.swagger_types.each_pair do |key, type|
155
155
  if type =~ /\AArray<(.*)>/i
156
- # check to ensure the input is an array given that the the attribute
156
+ # check to ensure the input is an array given that the attribute
157
157
  # is documented as an array but the input is not
158
158
  if attributes[self.class.attribute_map[key]].is_a?(Array)
159
159
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -249,5 +249,6 @@ module TreezorClient
249
249
  value
250
250
  end
251
251
  end
252
+
252
253
  end
253
254
  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
 
@@ -122,7 +122,7 @@ module TreezorClient
122
122
  return nil unless attributes.is_a?(Hash)
123
123
  self.class.swagger_types.each_pair do |key, type|
124
124
  if type =~ /\AArray<(.*)>/i
125
- # check to ensure the input is an array given that the the attribute
125
+ # check to ensure the input is an array given that the attribute
126
126
  # is documented as an array but the input is not
127
127
  if attributes[self.class.attribute_map[key]].is_a?(Array)
128
128
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -218,5 +218,6 @@ module TreezorClient
218
218
  value
219
219
  end
220
220
  end
221
+
221
222
  end
222
223
  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
 
@@ -470,7 +470,7 @@ module TreezorClient
470
470
  return nil unless attributes.is_a?(Hash)
471
471
  self.class.swagger_types.each_pair do |key, type|
472
472
  if type =~ /\AArray<(.*)>/i
473
- # check to ensure the input is an array given that the the attribute
473
+ # check to ensure the input is an array given that the attribute
474
474
  # is documented as an array but the input is not
475
475
  if attributes[self.class.attribute_map[key]].is_a?(Array)
476
476
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -566,5 +566,6 @@ module TreezorClient
566
566
  value
567
567
  end
568
568
  end
569
+
569
570
  end
570
571
  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
 
@@ -180,7 +180,7 @@ module TreezorClient
180
180
  return nil unless attributes.is_a?(Hash)
181
181
  self.class.swagger_types.each_pair do |key, type|
182
182
  if type =~ /\AArray<(.*)>/i
183
- # check to ensure the input is an array given that the the attribute
183
+ # check to ensure the input is an array given that the attribute
184
184
  # is documented as an array but the input is not
185
185
  if attributes[self.class.attribute_map[key]].is_a?(Array)
186
186
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -276,5 +276,6 @@ module TreezorClient
276
276
  value
277
277
  end
278
278
  end
279
+
279
280
  end
280
281
  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
 
@@ -180,7 +180,7 @@ module TreezorClient
180
180
  return nil unless attributes.is_a?(Hash)
181
181
  self.class.swagger_types.each_pair do |key, type|
182
182
  if type =~ /\AArray<(.*)>/i
183
- # check to ensure the input is an array given that the the attribute
183
+ # check to ensure the input is an array given that the attribute
184
184
  # is documented as an array but the input is not
185
185
  if attributes[self.class.attribute_map[key]].is_a?(Array)
186
186
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -276,5 +276,6 @@ module TreezorClient
276
276
  value
277
277
  end
278
278
  end
279
+
279
280
  end
280
281
  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
 
@@ -194,7 +194,7 @@ module TreezorClient
194
194
  # Attribute type mapping.
195
195
  def self.swagger_types
196
196
  {
197
- :'payin_id' => :'Integer',
197
+ :'payin_id' => :'String',
198
198
  :'payin_tag' => :'String',
199
199
  :'payin_status' => :'String',
200
200
  :'code_status' => :'Integer',
@@ -388,6 +388,8 @@ module TreezorClient
388
388
 
389
389
  if attributes.has_key?(:'ibanBic')
390
390
  self.iban_bic = attributes[:'ibanBic']
391
+ elsif attributes.has_key?(:'ibanBIC')
392
+ self.iban_bic = attributes[:'ibanBIC']
391
393
  end
392
394
 
393
395
  if attributes.has_key?(:'ibanTxEndToEndId')
@@ -461,7 +463,7 @@ module TreezorClient
461
463
  # Check to see if the all the properties in the model are valid
462
464
  # @return true if the model is valid
463
465
  def valid?
464
- payin_status_validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
466
+ payin_status_validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'CANCELLED', 'VALIDATED'])
465
467
  return false unless payin_status_validator.valid?(@payin_status)
466
468
  true
467
469
  end
@@ -469,7 +471,7 @@ module TreezorClient
469
471
  # Custom attribute writer method checking allowed values (enum).
470
472
  # @param [Object] payin_status Object to be assigned
471
473
  def payin_status=(payin_status)
472
- validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
474
+ validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'CANCELLED', 'VALIDATED'])
473
475
  unless validator.valid?(payin_status)
474
476
  fail ArgumentError, 'invalid value for "payin_status", must be one of #{validator.allowable_values}.'
475
477
  end
@@ -551,7 +553,7 @@ module TreezorClient
551
553
  return nil unless attributes.is_a?(Hash)
552
554
  self.class.swagger_types.each_pair do |key, type|
553
555
  if type =~ /\AArray<(.*)>/i
554
- # check to ensure the input is an array given that the the attribute
556
+ # check to ensure the input is an array given that the attribute
555
557
  # is documented as an array but the input is not
556
558
  if attributes[self.class.attribute_map[key]].is_a?(Array)
557
559
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -647,5 +649,6 @@ module TreezorClient
647
649
  value
648
650
  end
649
651
  end
652
+
650
653
  end
651
654
  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
 
@@ -84,7 +84,7 @@ module TreezorClient
84
84
  :'payinrefund_tag' => :'String',
85
85
  :'payinrefund_status' => :'String',
86
86
  :'wallet_id' => :'Integer',
87
- :'payin_id' => :'Integer',
87
+ :'payin_id' => :'String',
88
88
  :'payinrefund_date' => :'Integer',
89
89
  :'amount' => :'String',
90
90
  :'currency' => :'String',
@@ -209,7 +209,7 @@ module TreezorClient
209
209
  return nil unless attributes.is_a?(Hash)
210
210
  self.class.swagger_types.each_pair do |key, type|
211
211
  if type =~ /\AArray<(.*)>/i
212
- # check to ensure the input is an array given that the the attribute
212
+ # check to ensure the input is an array given that the attribute
213
213
  # is documented as an array but the input is not
214
214
  if attributes[self.class.attribute_map[key]].is_a?(Array)
215
215
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -305,5 +305,6 @@ module TreezorClient
305
305
  value
306
306
  end
307
307
  end
308
+
308
309
  end
309
310
  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
 
@@ -330,7 +330,7 @@ module TreezorClient
330
330
  return nil unless attributes.is_a?(Hash)
331
331
  self.class.swagger_types.each_pair do |key, type|
332
332
  if type =~ /\AArray<(.*)>/i
333
- # check to ensure the input is an array given that the the attribute
333
+ # check to ensure the input is an array given that the attribute
334
334
  # is documented as an array but the input is not
335
335
  if attributes[self.class.attribute_map[key]].is_a?(Array)
336
336
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -426,5 +426,6 @@ module TreezorClient
426
426
  value
427
427
  end
428
428
  end
429
+
429
430
  end
430
431
  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
 
@@ -243,7 +243,7 @@ module TreezorClient
243
243
  return nil unless attributes.is_a?(Hash)
244
244
  self.class.swagger_types.each_pair do |key, type|
245
245
  if type =~ /\AArray<(.*)>/i
246
- # check to ensure the input is an array given that the the attribute
246
+ # check to ensure the input is an array given that the attribute
247
247
  # is documented as an array but the input is not
248
248
  if attributes[self.class.attribute_map[key]].is_a?(Array)
249
249
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -339,5 +339,6 @@ module TreezorClient
339
339
  value
340
340
  end
341
341
  end
342
+
342
343
  end
343
344
  end
@@ -0,0 +1,347 @@
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.19
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module TreezorClient
16
+ class SepaSctrInst
17
+ attr_accessor :wallet_id
18
+
19
+ attr_accessor :debtor_bic
20
+
21
+ attr_accessor :debtor_iban
22
+
23
+ attr_accessor :debitor_name
24
+
25
+ attr_accessor :debitor_country
26
+
27
+ attr_accessor :debitor_address_line
28
+
29
+ attr_accessor :creditor_bic
30
+
31
+ attr_accessor :creditor_iban
32
+
33
+ attr_accessor :creditor_name
34
+
35
+ attr_accessor :creditor_address_line
36
+
37
+ attr_accessor :creditor_country
38
+
39
+ attr_accessor :transaction_id
40
+
41
+ attr_accessor :virtual_iban_id
42
+
43
+ # RFC 3339
44
+ attr_accessor :settlement_date
45
+
46
+ attr_accessor :settlement_amount
47
+
48
+ attr_accessor :return_reason_code
49
+
50
+ attr_accessor :virtual_iban_reference
51
+
52
+ attr_accessor :remittance_information
53
+
54
+ attr_accessor :transaction_end_to_end_id
55
+
56
+ # Attribute mapping from ruby-style variable name to JSON key.
57
+ def self.attribute_map
58
+ {
59
+ :'wallet_id' => :'walletId',
60
+ :'debtor_bic' => :'debtorBic',
61
+ :'debtor_iban' => :'debtorIban',
62
+ :'debitor_name' => :'debitorName',
63
+ :'debitor_country' => :'debitorCountry',
64
+ :'debitor_address_line' => :'debitorAddressLine',
65
+ :'creditor_bic' => :'creditorBIC',
66
+ :'creditor_iban' => :'creditorIban',
67
+ :'creditor_name' => :'creditorName',
68
+ :'creditor_address_line' => :'creditorAddressLine',
69
+ :'creditor_country' => :'creditorCountry',
70
+ :'transaction_id' => :'transactionId',
71
+ :'virtual_iban_id' => :'virtualIbanId',
72
+ :'settlement_date' => :'settlementDate',
73
+ :'settlement_amount' => :'settlementAmount',
74
+ :'return_reason_code' => :'return_reason_code',
75
+ :'virtual_iban_reference' => :'virtualIbanReference',
76
+ :'remittance_information' => :'remittanceInformation',
77
+ :'transaction_end_to_end_id' => :'transactionEndToEndId'
78
+ }
79
+ end
80
+
81
+ # Attribute type mapping.
82
+ def self.swagger_types
83
+ {
84
+ :'wallet_id' => :'Integer',
85
+ :'debtor_bic' => :'String',
86
+ :'debtor_iban' => :'String',
87
+ :'debitor_name' => :'String',
88
+ :'debitor_country' => :'String',
89
+ :'debitor_address_line' => :'String',
90
+ :'creditor_bic' => :'String',
91
+ :'creditor_iban' => :'String',
92
+ :'creditor_name' => :'String',
93
+ :'creditor_address_line' => :'String',
94
+ :'creditor_country' => :'String',
95
+ :'transaction_id' => :'String',
96
+ :'virtual_iban_id' => :'String',
97
+ :'settlement_date' => :'String',
98
+ :'settlement_amount' => :'String',
99
+ :'return_reason_code' => :'String',
100
+ :'virtual_iban_reference' => :'String',
101
+ :'remittance_information' => :'String',
102
+ :'transaction_end_to_end_id' => :'String'
103
+ }
104
+ end
105
+
106
+ # Initializes the object
107
+ # @param [Hash] attributes Model attributes in the form of hash
108
+ def initialize(attributes = {})
109
+ return unless attributes.is_a?(Hash)
110
+
111
+ # convert string to symbol for hash key
112
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
113
+
114
+ if attributes.has_key?(:'walletId')
115
+ self.wallet_id = attributes[:'walletId']
116
+ end
117
+
118
+ if attributes.has_key?(:'debtorBic')
119
+ self.debtor_bic = attributes[:'debtorBic']
120
+ end
121
+
122
+ if attributes.has_key?(:'debtorIban')
123
+ self.debtor_iban = attributes[:'debtorIban']
124
+ end
125
+
126
+ if attributes.has_key?(:'debitorName')
127
+ self.debitor_name = attributes[:'debitorName']
128
+ end
129
+
130
+ if attributes.has_key?(:'debitorCountry')
131
+ self.debitor_country = attributes[:'debitorCountry']
132
+ end
133
+
134
+ if attributes.has_key?(:'debitorAddressLine')
135
+ self.debitor_address_line = attributes[:'debitorAddressLine']
136
+ end
137
+
138
+ if attributes.has_key?(:'creditorBIC')
139
+ self.creditor_bic = attributes[:'creditorBIC']
140
+ end
141
+
142
+ if attributes.has_key?(:'creditorIban')
143
+ self.creditor_iban = attributes[:'creditorIban']
144
+ end
145
+
146
+ if attributes.has_key?(:'creditorName')
147
+ self.creditor_name = attributes[:'creditorName']
148
+ end
149
+
150
+ if attributes.has_key?(:'creditorAddressLine')
151
+ self.creditor_address_line = attributes[:'creditorAddressLine']
152
+ end
153
+
154
+ if attributes.has_key?(:'creditorCountry')
155
+ self.creditor_country = attributes[:'creditorCountry']
156
+ end
157
+
158
+ if attributes.has_key?(:'transactionId')
159
+ self.transaction_id = attributes[:'transactionId']
160
+ end
161
+
162
+ if attributes.has_key?(:'virtualIbanId')
163
+ self.virtual_iban_id = attributes[:'virtualIbanId']
164
+ end
165
+
166
+ if attributes.has_key?(:'settlementDate')
167
+ self.settlement_date = attributes[:'settlementDate']
168
+ end
169
+
170
+ if attributes.has_key?(:'settlementAmount')
171
+ self.settlement_amount = attributes[:'settlementAmount']
172
+ end
173
+
174
+ if attributes.has_key?(:'return_reason_code')
175
+ self.return_reason_code = attributes[:'return_reason_code']
176
+ end
177
+
178
+ if attributes.has_key?(:'virtualIbanReference')
179
+ self.virtual_iban_reference = attributes[:'virtualIbanReference']
180
+ end
181
+
182
+ if attributes.has_key?(:'remittanceInformation')
183
+ self.remittance_information = attributes[:'remittanceInformation']
184
+ end
185
+
186
+ if attributes.has_key?(:'transactionEndToEndId')
187
+ self.transaction_end_to_end_id = attributes[:'transactionEndToEndId']
188
+ end
189
+ end
190
+
191
+ # Show invalid properties with the reasons. Usually used together with valid?
192
+ # @return Array for valid properties with the reasons
193
+ def list_invalid_properties
194
+ invalid_properties = Array.new
195
+ invalid_properties
196
+ end
197
+
198
+ # Check to see if the all the properties in the model are valid
199
+ # @return true if the model is valid
200
+ def valid?
201
+ true
202
+ end
203
+
204
+ # Checks equality by comparing each attribute.
205
+ # @param [Object] Object to be compared
206
+ def ==(o)
207
+ return true if self.equal?(o)
208
+ self.class == o.class &&
209
+ wallet_id == o.wallet_id &&
210
+ debtor_bic == o.debtor_bic &&
211
+ debtor_iban == o.debtor_iban &&
212
+ debitor_name == o.debitor_name &&
213
+ debitor_country == o.debitor_country &&
214
+ debitor_address_line == o.debitor_address_line &&
215
+ creditor_bic == o.creditor_bic &&
216
+ creditor_iban == o.creditor_iban &&
217
+ creditor_name == o.creditor_name &&
218
+ creditor_address_line == o.creditor_address_line &&
219
+ creditor_country == o.creditor_country &&
220
+ transaction_id == o.transaction_id &&
221
+ virtual_iban_id == o.virtual_iban_id &&
222
+ settlement_date == o.settlement_date &&
223
+ settlement_amount == o.settlement_amount &&
224
+ return_reason_code == o.return_reason_code &&
225
+ virtual_iban_reference == o.virtual_iban_reference &&
226
+ remittance_information == o.remittance_information &&
227
+ transaction_end_to_end_id == o.transaction_end_to_end_id
228
+ end
229
+
230
+ # @see the `==` method
231
+ # @param [Object] Object to be compared
232
+ def eql?(o)
233
+ self == o
234
+ end
235
+
236
+ # Calculates hash code according to all attributes.
237
+ # @return [Fixnum] Hash code
238
+ def hash
239
+ [wallet_id, debtor_bic, debtor_iban, debitor_name, debitor_country, debitor_address_line, creditor_bic, creditor_iban, creditor_name, creditor_address_line, creditor_country, transaction_id, virtual_iban_id, settlement_date, settlement_amount, return_reason_code, virtual_iban_reference, remittance_information, transaction_end_to_end_id].hash
240
+ end
241
+
242
+ # Builds the object from hash
243
+ # @param [Hash] attributes Model attributes in the form of hash
244
+ # @return [Object] Returns the model itself
245
+ def build_from_hash(attributes)
246
+ return nil unless attributes.is_a?(Hash)
247
+ self.class.swagger_types.each_pair do |key, type|
248
+ if type =~ /\AArray<(.*)>/i
249
+ # check to ensure the input is an array given that the attribute
250
+ # is documented as an array but the input is not
251
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
252
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
253
+ end
254
+ elsif !attributes[self.class.attribute_map[key]].nil?
255
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
256
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
257
+ end
258
+
259
+ self
260
+ end
261
+
262
+ # Deserializes the data based on type
263
+ # @param string type Data type
264
+ # @param string value Value to be deserialized
265
+ # @return [Object] Deserialized data
266
+ def _deserialize(type, value)
267
+ case type.to_sym
268
+ when :DateTime
269
+ DateTime.parse(value)
270
+ when :Date
271
+ Date.parse(value)
272
+ when :String
273
+ value.to_s
274
+ when :Integer
275
+ value.to_i
276
+ when :Float
277
+ value.to_f
278
+ when :BOOLEAN
279
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
280
+ true
281
+ else
282
+ false
283
+ end
284
+ when :Object
285
+ # generic object (usually a Hash), return directly
286
+ value
287
+ when /\AArray<(?<inner_type>.+)>\z/
288
+ inner_type = Regexp.last_match[:inner_type]
289
+ value.map { |v| _deserialize(inner_type, v) }
290
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
291
+ k_type = Regexp.last_match[:k_type]
292
+ v_type = Regexp.last_match[:v_type]
293
+ {}.tap do |hash|
294
+ value.each do |k, v|
295
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
296
+ end
297
+ end
298
+ else # model
299
+ temp_model = TreezorClient.const_get(type).new
300
+ temp_model.build_from_hash(value)
301
+ end
302
+ end
303
+
304
+ # Returns the string representation of the object
305
+ # @return [String] String presentation of the object
306
+ def to_s
307
+ to_hash.to_s
308
+ end
309
+
310
+ # to_body is an alias to to_hash (backward compatibility)
311
+ # @return [Hash] Returns the object in the form of hash
312
+ def to_body
313
+ to_hash
314
+ end
315
+
316
+ # Returns the object in the form of hash
317
+ # @return [Hash] Returns the object in the form of hash
318
+ def to_hash
319
+ hash = {}
320
+ self.class.attribute_map.each_pair do |attr, param|
321
+ value = self.send(attr)
322
+ next if value.nil?
323
+ hash[param] = _to_hash(value)
324
+ end
325
+ hash
326
+ end
327
+
328
+ # Outputs non-array value in the form of hash
329
+ # For object, use to_hash. Otherwise, just return the value
330
+ # @param [Object] value Any valid value
331
+ # @return [Hash] Returns the value in the form of hash
332
+ def _to_hash(value)
333
+ if value.is_a?(Array)
334
+ value.compact.map { |v| _to_hash(v) }
335
+ elsif value.is_a?(Hash)
336
+ {}.tap do |hash|
337
+ value.each { |k, v| hash[k] = _to_hash(v) }
338
+ end
339
+ elsif value.respond_to? :to_hash
340
+ value.to_hash
341
+ else
342
+ value
343
+ end
344
+ end
345
+
346
+ end
347
+ 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
 
@@ -154,7 +154,7 @@ module TreezorClient
154
154
  return nil unless attributes.is_a?(Hash)
155
155
  self.class.swagger_types.each_pair do |key, type|
156
156
  if type =~ /\AArray<(.*)>/i
157
- # check to ensure the input is an array given that the the attribute
157
+ # check to ensure the input is an array given that the attribute
158
158
  # is documented as an array but the input is not
159
159
  if attributes[self.class.attribute_map[key]].is_a?(Array)
160
160
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -250,5 +250,6 @@ module TreezorClient
250
250
  value
251
251
  end
252
252
  end
253
+
253
254
  end
254
255
  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
 
@@ -212,7 +212,7 @@ module TreezorClient
212
212
  return nil unless attributes.is_a?(Hash)
213
213
  self.class.swagger_types.each_pair do |key, type|
214
214
  if type =~ /\AArray<(.*)>/i
215
- # check to ensure the input is an array given that the the attribute
215
+ # check to ensure the input is an array given that the attribute
216
216
  # is documented as an array but the input is not
217
217
  if attributes[self.class.attribute_map[key]].is_a?(Array)
218
218
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -308,5 +308,6 @@ module TreezorClient
308
308
  value
309
309
  end
310
310
  end
311
+
311
312
  end
312
313
  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
 
@@ -285,7 +285,7 @@ module TreezorClient
285
285
  return nil unless attributes.is_a?(Hash)
286
286
  self.class.swagger_types.each_pair do |key, type|
287
287
  if type =~ /\AArray<(.*)>/i
288
- # check to ensure the input is an array given that the the attribute
288
+ # check to ensure the input is an array given that the attribute
289
289
  # is documented as an array but the input is not
290
290
  if attributes[self.class.attribute_map[key]].is_a?(Array)
291
291
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -381,5 +381,6 @@ module TreezorClient
381
381
  value
382
382
  end
383
383
  end
384
+
384
385
  end
385
386
  end