treezor_client 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (422) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +11 -0
  3. data/Gemfile.lock +71 -0
  4. data/README.md +275 -0
  5. data/Rakefile +13 -0
  6. data/doc/TreezorClient.html +251 -0
  7. data/doc/TreezorClient/ApiClient.html +2600 -0
  8. data/doc/TreezorClient/ApiError.html +464 -0
  9. data/doc/TreezorClient/Balance.html +2042 -0
  10. data/doc/TreezorClient/BalanceApi.html +760 -0
  11. data/doc/TreezorClient/Bankaccount.html +2560 -0
  12. data/doc/TreezorClient/Bankaccount/EnumAttributeValidator.html +455 -0
  13. data/doc/TreezorClient/BankaccountApi.html +2450 -0
  14. data/doc/TreezorClient/BeneficiariesApi.html +2387 -0
  15. data/doc/TreezorClient/BeneficiariesSddB2bWhitelist.html +1816 -0
  16. data/doc/TreezorClient/Beneficiary.html +2574 -0
  17. data/doc/TreezorClient/Body.html +1826 -0
  18. data/doc/TreezorClient/Body/EnumAttributeValidator.html +455 -0
  19. data/doc/TreezorClient/Body1.html +2596 -0
  20. data/doc/TreezorClient/Body10.html +2069 -0
  21. data/doc/TreezorClient/Body10/EnumAttributeValidator.html +455 -0
  22. data/doc/TreezorClient/Body2.html +2492 -0
  23. data/doc/TreezorClient/Body3.html +1726 -0
  24. data/doc/TreezorClient/Body4.html +1726 -0
  25. data/doc/TreezorClient/Body5.html +2001 -0
  26. data/doc/TreezorClient/Body5/EnumAttributeValidator.html +455 -0
  27. data/doc/TreezorClient/Body6.html +2069 -0
  28. data/doc/TreezorClient/Body6/EnumAttributeValidator.html +455 -0
  29. data/doc/TreezorClient/Body7.html +2002 -0
  30. data/doc/TreezorClient/Body7/EnumAttributeValidator.html +455 -0
  31. data/doc/TreezorClient/Body8.html +1981 -0
  32. data/doc/TreezorClient/Body8/EnumAttributeValidator.html +455 -0
  33. data/doc/TreezorClient/Body9.html +2001 -0
  34. data/doc/TreezorClient/Body9/EnumAttributeValidator.html +455 -0
  35. data/doc/TreezorClient/BusinessApi.html +1548 -0
  36. data/doc/TreezorClient/BusinesssearchsBusinessinformations.html +2822 -0
  37. data/doc/TreezorClient/BusinesssearchsBusinessinformations/EnumAttributeValidator.html +455 -0
  38. data/doc/TreezorClient/Card.html +6928 -0
  39. data/doc/TreezorClient/Card/EnumAttributeValidator.html +455 -0
  40. data/doc/TreezorClient/CardApi.html +9907 -0
  41. data/doc/TreezorClient/CardDigitalization.html +2126 -0
  42. data/doc/TreezorClient/CardDigitalizationDetailsFromGPS.html +4343 -0
  43. data/doc/TreezorClient/CardDigitalizationsApi.html +1542 -0
  44. data/doc/TreezorClient/CardReserveApi.html +1622 -0
  45. data/doc/TreezorClient/CardtransactionApi.html +1243 -0
  46. data/doc/TreezorClient/Configuration.html +2459 -0
  47. data/doc/TreezorClient/CountryRestrictionGroupsApi.html +2602 -0
  48. data/doc/TreezorClient/Document.html +2812 -0
  49. data/doc/TreezorClient/Document/EnumAttributeValidator.html +455 -0
  50. data/doc/TreezorClient/DocumentApi.html +2878 -0
  51. data/doc/TreezorClient/Error.html +1794 -0
  52. data/doc/TreezorClient/HeartbeatApi.html +702 -0
  53. data/doc/TreezorClient/InlineResponse200.html +1626 -0
  54. data/doc/TreezorClient/InlineResponse2001.html +1626 -0
  55. data/doc/TreezorClient/InlineResponse20010.html +1626 -0
  56. data/doc/TreezorClient/InlineResponse20010Cardtransactions.html +5844 -0
  57. data/doc/TreezorClient/InlineResponse20011.html +1626 -0
  58. data/doc/TreezorClient/InlineResponse20012.html +1626 -0
  59. data/doc/TreezorClient/InlineResponse20013.html +1626 -0
  60. data/doc/TreezorClient/InlineResponse20014.html +1626 -0
  61. data/doc/TreezorClient/InlineResponse20015.html +1626 -0
  62. data/doc/TreezorClient/InlineResponse20016.html +1626 -0
  63. data/doc/TreezorClient/InlineResponse20017.html +1626 -0
  64. data/doc/TreezorClient/InlineResponse20018.html +1626 -0
  65. data/doc/TreezorClient/InlineResponse20019.html +1626 -0
  66. data/doc/TreezorClient/InlineResponse2002.html +1626 -0
  67. data/doc/TreezorClient/InlineResponse20020.html +1626 -0
  68. data/doc/TreezorClient/InlineResponse20021.html +1626 -0
  69. data/doc/TreezorClient/InlineResponse20022.html +1626 -0
  70. data/doc/TreezorClient/InlineResponse20023.html +1626 -0
  71. data/doc/TreezorClient/InlineResponse20024.html +1626 -0
  72. data/doc/TreezorClient/InlineResponse20025.html +1626 -0
  73. data/doc/TreezorClient/InlineResponse2003.html +1626 -0
  74. data/doc/TreezorClient/InlineResponse2004.html +1626 -0
  75. data/doc/TreezorClient/InlineResponse2005.html +1626 -0
  76. data/doc/TreezorClient/InlineResponse2005Businessinformations.html +3561 -0
  77. data/doc/TreezorClient/InlineResponse2005Businessinformations/EnumAttributeValidator.html +455 -0
  78. data/doc/TreezorClient/InlineResponse2005Users.html +1972 -0
  79. data/doc/TreezorClient/InlineResponse2005Users/EnumAttributeValidator.html +455 -0
  80. data/doc/TreezorClient/InlineResponse2006.html +1626 -0
  81. data/doc/TreezorClient/InlineResponse2007.html +1626 -0
  82. data/doc/TreezorClient/InlineResponse2007Cardimages.html +1800 -0
  83. data/doc/TreezorClient/InlineResponse2008.html +1626 -0
  84. data/doc/TreezorClient/InlineResponse2009.html +1790 -0
  85. data/doc/TreezorClient/InlineResponseDefault.html +1626 -0
  86. data/doc/TreezorClient/IssuerInitiatedDigitizationDataApi.html +1371 -0
  87. data/doc/TreezorClient/IssuerInitiatedDigitizationDatasAdditionnalData.html +1803 -0
  88. data/doc/TreezorClient/IssuerInitiatedDigitizationDatasAdditionnalDataECCPublicCertificates.html +1804 -0
  89. data/doc/TreezorClient/Mandate.html +4584 -0
  90. data/doc/TreezorClient/Mandate/EnumAttributeValidator.html +455 -0
  91. data/doc/TreezorClient/MandateApi.html +3787 -0
  92. data/doc/TreezorClient/MccRestrictionGroup.html +2144 -0
  93. data/doc/TreezorClient/MccRestrictionGroup/EnumAttributeValidator.html +455 -0
  94. data/doc/TreezorClient/MccRestrictionGroupsApi.html +2598 -0
  95. data/doc/TreezorClient/MerchantIdRestrictionGroup.html +2144 -0
  96. data/doc/TreezorClient/MerchantIdRestrictionGroup/EnumAttributeValidator.html +455 -0
  97. data/doc/TreezorClient/MerchantIdRestrictionGroupsApi.html +2638 -0
  98. data/doc/TreezorClient/Payin.html +5584 -0
  99. data/doc/TreezorClient/Payin/EnumAttributeValidator.html +455 -0
  100. data/doc/TreezorClient/PayinApi.html +2963 -0
  101. data/doc/TreezorClient/Payinrefund.html +2476 -0
  102. data/doc/TreezorClient/Payinrefund/EnumAttributeValidator.html +455 -0
  103. data/doc/TreezorClient/PayinrefundApi.html +2449 -0
  104. data/doc/TreezorClient/Payout.html +3488 -0
  105. data/doc/TreezorClient/Payout/EnumAttributeValidator.html +455 -0
  106. data/doc/TreezorClient/PayoutApi.html +2737 -0
  107. data/doc/TreezorClient/Tav.html +2130 -0
  108. data/doc/TreezorClient/Transaction.html +2798 -0
  109. data/doc/TreezorClient/TransactionApi.html +1491 -0
  110. data/doc/TreezorClient/Transfer.html +3158 -0
  111. data/doc/TreezorClient/Transfer/EnumAttributeValidator.html +455 -0
  112. data/doc/TreezorClient/TransferApi.html +2725 -0
  113. data/doc/TreezorClient/Transferrefund.html +2644 -0
  114. data/doc/TreezorClient/Transferrefund/EnumAttributeValidator.html +455 -0
  115. data/doc/TreezorClient/TransferrefundApi.html +2450 -0
  116. data/doc/TreezorClient/User.html +5844 -0
  117. data/doc/TreezorClient/User/EnumAttributeValidator.html +455 -0
  118. data/doc/TreezorClient/UserApi.html +6647 -0
  119. data/doc/TreezorClient/Virtualiban.html +2462 -0
  120. data/doc/TreezorClient/VirtualibansApi.html +2845 -0
  121. data/doc/TreezorClient/Wallet.html +4076 -0
  122. data/doc/TreezorClient/Wallet/EnumAttributeValidator.html +455 -0
  123. data/doc/TreezorClient/WalletApi.html +3944 -0
  124. data/doc/_index.html +1025 -0
  125. data/doc/class_list.html +51 -0
  126. data/doc/css/common.css +1 -0
  127. data/doc/css/full_list.css +58 -0
  128. data/doc/css/style.css +496 -0
  129. data/doc/file.README.html +636 -0
  130. data/doc/file_list.html +56 -0
  131. data/doc/frames.html +17 -0
  132. data/doc/index.html +636 -0
  133. data/doc/js/app.js +292 -0
  134. data/doc/js/full_list.js +216 -0
  135. data/doc/js/jquery.js +4 -0
  136. data/doc/method_list.html +15699 -0
  137. data/doc/top-level-namespace.html +110 -0
  138. data/docs/Balance.md +13 -0
  139. data/docs/BalanceApi.md +74 -0
  140. data/docs/Bankaccount.md +19 -0
  141. data/docs/BankaccountApi.md +288 -0
  142. data/docs/BeneficiariesApi.md +284 -0
  143. data/docs/BeneficiariesSddB2bWhitelist.md +10 -0
  144. data/docs/Beneficiary.md +19 -0
  145. data/docs/Body.md +10 -0
  146. data/docs/Body1.md +19 -0
  147. data/docs/Body10.md +13 -0
  148. data/docs/Body2.md +18 -0
  149. data/docs/Body3.md +9 -0
  150. data/docs/Body4.md +9 -0
  151. data/docs/Body5.md +12 -0
  152. data/docs/Body6.md +13 -0
  153. data/docs/Body7.md +12 -0
  154. data/docs/Body8.md +12 -0
  155. data/docs/Body9.md +12 -0
  156. data/docs/BusinessApi.md +162 -0
  157. data/docs/BusinesssearchsBusinessinformations.md +22 -0
  158. data/docs/Card.md +71 -0
  159. data/docs/CardApi.md +1202 -0
  160. data/docs/CardDigitalization.md +14 -0
  161. data/docs/CardDigitalizationDetailsFromGPS.md +40 -0
  162. data/docs/CardDigitalizationsApi.md +195 -0
  163. data/docs/CardReserveApi.md +201 -0
  164. data/docs/CardtransactionApi.md +141 -0
  165. data/docs/CountryRestrictionGroupsApi.md +333 -0
  166. data/docs/Document.md +22 -0
  167. data/docs/DocumentApi.md +351 -0
  168. data/docs/Error.md +10 -0
  169. data/docs/HeartbeatApi.md +69 -0
  170. data/docs/InlineResponse200.md +8 -0
  171. data/docs/InlineResponse2001.md +8 -0
  172. data/docs/InlineResponse20010.md +8 -0
  173. data/docs/InlineResponse20010Cardtransactions.md +58 -0
  174. data/docs/InlineResponse20011.md +8 -0
  175. data/docs/InlineResponse20012.md +8 -0
  176. data/docs/InlineResponse20013.md +8 -0
  177. data/docs/InlineResponse20014.md +8 -0
  178. data/docs/InlineResponse20015.md +8 -0
  179. data/docs/InlineResponse20016.md +8 -0
  180. data/docs/InlineResponse20017.md +8 -0
  181. data/docs/InlineResponse20018.md +8 -0
  182. data/docs/InlineResponse20019.md +8 -0
  183. data/docs/InlineResponse2002.md +8 -0
  184. data/docs/InlineResponse20020.md +8 -0
  185. data/docs/InlineResponse20021.md +8 -0
  186. data/docs/InlineResponse20022.md +8 -0
  187. data/docs/InlineResponse20023.md +8 -0
  188. data/docs/InlineResponse20024.md +8 -0
  189. data/docs/InlineResponse20025.md +8 -0
  190. data/docs/InlineResponse2003.md +8 -0
  191. data/docs/InlineResponse2004.md +8 -0
  192. data/docs/InlineResponse2005.md +8 -0
  193. data/docs/InlineResponse2005Businessinformations.md +26 -0
  194. data/docs/InlineResponse2005Users.md +12 -0
  195. data/docs/InlineResponse2006.md +8 -0
  196. data/docs/InlineResponse2007.md +8 -0
  197. data/docs/InlineResponse2007Cardimages.md +10 -0
  198. data/docs/InlineResponse2008.md +8 -0
  199. data/docs/InlineResponse2009.md +10 -0
  200. data/docs/InlineResponseDefault.md +8 -0
  201. data/docs/IssuerInitiatedDigitizationDataApi.md +146 -0
  202. data/docs/IssuerInitiatedDigitizationDatasAdditionnalData.md +10 -0
  203. data/docs/IssuerInitiatedDigitizationDatasAdditionnalDataECCPublicCertificates.md +10 -0
  204. data/docs/Mandate.md +43 -0
  205. data/docs/MandateApi.md +443 -0
  206. data/docs/MccRestrictionGroup.md +14 -0
  207. data/docs/MccRestrictionGroupsApi.md +333 -0
  208. data/docs/MerchantIdRestrictionGroup.md +14 -0
  209. data/docs/MerchantIdRestrictionGroupsApi.md +335 -0
  210. data/docs/Payin.md +55 -0
  211. data/docs/PayinApi.md +321 -0
  212. data/docs/Payinrefund.md +18 -0
  213. data/docs/PayinrefundApi.md +289 -0
  214. data/docs/Payout.md +30 -0
  215. data/docs/PayoutApi.md +309 -0
  216. data/docs/Tav.md +14 -0
  217. data/docs/Transaction.md +22 -0
  218. data/docs/TransactionApi.md +157 -0
  219. data/docs/Transfer.md +26 -0
  220. data/docs/TransferApi.md +308 -0
  221. data/docs/Transferrefund.md +20 -0
  222. data/docs/TransferrefundApi.md +289 -0
  223. data/docs/User.md +58 -0
  224. data/docs/UserApi.md +568 -0
  225. data/docs/Virtualiban.md +18 -0
  226. data/docs/VirtualibansApi.md +315 -0
  227. data/docs/Wallet.md +37 -0
  228. data/docs/WalletApi.md +423 -0
  229. data/git_push.sh +55 -0
  230. data/lib/treezor_client.rb +130 -0
  231. data/lib/treezor_client/api/balance_api.rb +90 -0
  232. data/lib/treezor_client/api/bankaccount_api.rb +343 -0
  233. data/lib/treezor_client/api/beneficiaries_api.rb +310 -0
  234. data/lib/treezor_client/api/business_api.rb +187 -0
  235. data/lib/treezor_client/api/card_api.rb +1321 -0
  236. data/lib/treezor_client/api/card_digitalizations_api.rb +213 -0
  237. data/lib/treezor_client/api/card_reserve_api.rb +216 -0
  238. data/lib/treezor_client/api/cardtransaction_api.rb +163 -0
  239. data/lib/treezor_client/api/country_restriction_groups_api.rb +353 -0
  240. data/lib/treezor_client/api/document_api.rb +404 -0
  241. data/lib/treezor_client/api/heartbeat_api.rb +83 -0
  242. data/lib/treezor_client/api/issuer_initiated_digitization_data_api.rb +165 -0
  243. data/lib/treezor_client/api/mandate_api.rb +543 -0
  244. data/lib/treezor_client/api/mcc_restriction_groups_api.rb +353 -0
  245. data/lib/treezor_client/api/merchant_id_restriction_groups_api.rb +356 -0
  246. data/lib/treezor_client/api/payin_api.rb +389 -0
  247. data/lib/treezor_client/api/payinrefund_api.rb +333 -0
  248. data/lib/treezor_client/api/payout_api.rb +363 -0
  249. data/lib/treezor_client/api/transaction_api.rb +187 -0
  250. data/lib/treezor_client/api/transfer_api.rb +364 -0
  251. data/lib/treezor_client/api/transferrefund_api.rb +333 -0
  252. data/lib/treezor_client/api/user_api.rb +708 -0
  253. data/lib/treezor_client/api/virtualibans_api.rb +369 -0
  254. data/lib/treezor_client/api/wallet_api.rb +505 -0
  255. data/lib/treezor_client/api_client.rb +389 -0
  256. data/lib/treezor_client/api_error.rb +38 -0
  257. data/lib/treezor_client/configuration.rb +209 -0
  258. data/lib/treezor_client/models/balance.rb +234 -0
  259. data/lib/treezor_client/models/bankaccount.rb +322 -0
  260. data/lib/treezor_client/models/beneficiaries_sdd_b2b_whitelist.rb +219 -0
  261. data/lib/treezor_client/models/beneficiary.rb +306 -0
  262. data/lib/treezor_client/models/body.rb +251 -0
  263. data/lib/treezor_client/models/body_1.rb +317 -0
  264. data/lib/treezor_client/models/body_10.rb +278 -0
  265. data/lib/treezor_client/models/body_2.rb +297 -0
  266. data/lib/treezor_client/models/body_3.rb +209 -0
  267. data/lib/treezor_client/models/body_4.rb +209 -0
  268. data/lib/treezor_client/models/body_5.rb +276 -0
  269. data/lib/treezor_client/models/body_6.rb +278 -0
  270. data/lib/treezor_client/models/body_7.rb +276 -0
  271. data/lib/treezor_client/models/body_8.rb +266 -0
  272. data/lib/treezor_client/models/body_9.rb +276 -0
  273. data/lib/treezor_client/models/businesssearchs_businessinformations.rb +362 -0
  274. data/lib/treezor_client/models/card.rb +793 -0
  275. data/lib/treezor_client/models/card_digitalization.rb +242 -0
  276. data/lib/treezor_client/models/card_digitalization_details_from_gps.rb +509 -0
  277. data/lib/treezor_client/models/document.rb +349 -0
  278. data/lib/treezor_client/models/error.rb +208 -0
  279. data/lib/treezor_client/models/inline_response_200.rb +190 -0
  280. data/lib/treezor_client/models/inline_response_200_1.rb +190 -0
  281. data/lib/treezor_client/models/inline_response_200_10.rb +190 -0
  282. data/lib/treezor_client/models/inline_response_200_10_cardtransactions.rb +642 -0
  283. data/lib/treezor_client/models/inline_response_200_11.rb +190 -0
  284. data/lib/treezor_client/models/inline_response_200_12.rb +190 -0
  285. data/lib/treezor_client/models/inline_response_200_13.rb +190 -0
  286. data/lib/treezor_client/models/inline_response_200_14.rb +190 -0
  287. data/lib/treezor_client/models/inline_response_200_15.rb +190 -0
  288. data/lib/treezor_client/models/inline_response_200_16.rb +190 -0
  289. data/lib/treezor_client/models/inline_response_200_17.rb +190 -0
  290. data/lib/treezor_client/models/inline_response_200_18.rb +190 -0
  291. data/lib/treezor_client/models/inline_response_200_19.rb +190 -0
  292. data/lib/treezor_client/models/inline_response_200_2.rb +190 -0
  293. data/lib/treezor_client/models/inline_response_200_20.rb +190 -0
  294. data/lib/treezor_client/models/inline_response_200_21.rb +190 -0
  295. data/lib/treezor_client/models/inline_response_200_22.rb +190 -0
  296. data/lib/treezor_client/models/inline_response_200_23.rb +190 -0
  297. data/lib/treezor_client/models/inline_response_200_24.rb +190 -0
  298. data/lib/treezor_client/models/inline_response_200_25.rb +190 -0
  299. data/lib/treezor_client/models/inline_response_200_3.rb +190 -0
  300. data/lib/treezor_client/models/inline_response_200_4.rb +190 -0
  301. data/lib/treezor_client/models/inline_response_200_5.rb +190 -0
  302. data/lib/treezor_client/models/inline_response_200_5_businessinformations.rb +451 -0
  303. data/lib/treezor_client/models/inline_response_200_5_users.rb +262 -0
  304. data/lib/treezor_client/models/inline_response_200_6.rb +190 -0
  305. data/lib/treezor_client/models/inline_response_200_7.rb +190 -0
  306. data/lib/treezor_client/models/inline_response_200_7_cardimages.rb +225 -0
  307. data/lib/treezor_client/models/inline_response_200_8.rb +190 -0
  308. data/lib/treezor_client/models/inline_response_200_9.rb +209 -0
  309. data/lib/treezor_client/models/inline_response_default.rb +190 -0
  310. data/lib/treezor_client/models/issuer_initiated_digitization_datas_additionnal_data.rb +208 -0
  311. data/lib/treezor_client/models/issuer_initiated_digitization_datas_additionnal_data_ecc_public_certificates.rb +209 -0
  312. data/lib/treezor_client/models/mandate.rb +564 -0
  313. data/lib/treezor_client/models/mcc_restriction_group.rb +284 -0
  314. data/lib/treezor_client/models/merchant_id_restriction_group.rb +284 -0
  315. data/lib/treezor_client/models/payin.rb +646 -0
  316. data/lib/treezor_client/models/payinrefund.rb +313 -0
  317. data/lib/treezor_client/models/payout.rb +434 -0
  318. data/lib/treezor_client/models/tav.rb +246 -0
  319. data/lib/treezor_client/models/transaction.rb +317 -0
  320. data/lib/treezor_client/models/transfer.rb +389 -0
  321. data/lib/treezor_client/models/transferrefund.rb +331 -0
  322. data/lib/treezor_client/models/user.rb +688 -0
  323. data/lib/treezor_client/models/virtualiban.rb +278 -0
  324. data/lib/treezor_client/models/wallet.rb +488 -0
  325. data/lib/treezor_client/version.rb +15 -0
  326. data/pkg/treezor_client-1.0.0.gem +0 -0
  327. data/spec/api/balance_api_spec.rb +52 -0
  328. data/spec/api/bankaccount_api_spec.rb +109 -0
  329. data/spec/api/beneficiaries_api_spec.rb +108 -0
  330. data/spec/api/business_api_spec.rb +79 -0
  331. data/spec/api/card_api_spec.rb +365 -0
  332. data/spec/api/card_digitalizations_api_spec.rb +79 -0
  333. data/spec/api/card_reserve_api_spec.rb +83 -0
  334. data/spec/api/cardtransaction_api_spec.rb +70 -0
  335. data/spec/api/country_restriction_groups_api_spec.rb +116 -0
  336. data/spec/api/document_api_spec.rb +126 -0
  337. data/spec/api/heartbeat_api_spec.rb +50 -0
  338. data/spec/api/issuer_initiated_digitization_data_api_spec.rb +72 -0
  339. data/spec/api/mandate_api_spec.rb +147 -0
  340. data/spec/api/mcc_restriction_groups_api_spec.rb +116 -0
  341. data/spec/api/merchant_id_restriction_groups_api_spec.rb +117 -0
  342. data/spec/api/payin_api_spec.rb +126 -0
  343. data/spec/api/payinrefund_api_spec.rb +111 -0
  344. data/spec/api/payout_api_spec.rb +121 -0
  345. data/spec/api/transaction_api_spec.rb +78 -0
  346. data/spec/api/transfer_api_spec.rb +120 -0
  347. data/spec/api/transferrefund_api_spec.rb +111 -0
  348. data/spec/api/user_api_spec.rb +216 -0
  349. data/spec/api/virtualibans_api_spec.rb +123 -0
  350. data/spec/api/wallet_api_spec.rb +158 -0
  351. data/spec/api_client_spec.rb +226 -0
  352. data/spec/configuration_spec.rb +42 -0
  353. data/spec/models/balance_spec.rb +72 -0
  354. data/spec/models/bankaccount_spec.rb +112 -0
  355. data/spec/models/beneficiaries_sdd_b2b_whitelist_spec.rb +54 -0
  356. data/spec/models/beneficiary_spec.rb +108 -0
  357. data/spec/models/body_10_spec.rb +76 -0
  358. data/spec/models/body_1_spec.rb +108 -0
  359. data/spec/models/body_2_spec.rb +102 -0
  360. data/spec/models/body_3_spec.rb +48 -0
  361. data/spec/models/body_4_spec.rb +48 -0
  362. data/spec/models/body_5_spec.rb +70 -0
  363. data/spec/models/body_6_spec.rb +76 -0
  364. data/spec/models/body_7_spec.rb +70 -0
  365. data/spec/models/body_8_spec.rb +70 -0
  366. data/spec/models/body_9_spec.rb +70 -0
  367. data/spec/models/body_spec.rb +58 -0
  368. data/spec/models/businesssearchs_businessinformations_spec.rb +130 -0
  369. data/spec/models/card_digitalization_details_from_gps_spec.rb +234 -0
  370. data/spec/models/card_digitalization_spec.rb +78 -0
  371. data/spec/models/card_spec.rb +424 -0
  372. data/spec/models/document_spec.rb +130 -0
  373. data/spec/models/error_spec.rb +54 -0
  374. data/spec/models/inline_response_200_10_cardtransactions_spec.rb +342 -0
  375. data/spec/models/inline_response_200_10_spec.rb +42 -0
  376. data/spec/models/inline_response_200_11_spec.rb +42 -0
  377. data/spec/models/inline_response_200_12_spec.rb +42 -0
  378. data/spec/models/inline_response_200_13_spec.rb +42 -0
  379. data/spec/models/inline_response_200_14_spec.rb +42 -0
  380. data/spec/models/inline_response_200_15_spec.rb +42 -0
  381. data/spec/models/inline_response_200_16_spec.rb +42 -0
  382. data/spec/models/inline_response_200_17_spec.rb +42 -0
  383. data/spec/models/inline_response_200_18_spec.rb +42 -0
  384. data/spec/models/inline_response_200_19_spec.rb +42 -0
  385. data/spec/models/inline_response_200_1_spec.rb +42 -0
  386. data/spec/models/inline_response_200_20_spec.rb +42 -0
  387. data/spec/models/inline_response_200_21_spec.rb +42 -0
  388. data/spec/models/inline_response_200_22_spec.rb +42 -0
  389. data/spec/models/inline_response_200_23_spec.rb +42 -0
  390. data/spec/models/inline_response_200_24_spec.rb +42 -0
  391. data/spec/models/inline_response_200_25_spec.rb +42 -0
  392. data/spec/models/inline_response_200_2_spec.rb +42 -0
  393. data/spec/models/inline_response_200_3_spec.rb +42 -0
  394. data/spec/models/inline_response_200_4_spec.rb +42 -0
  395. data/spec/models/inline_response_200_5_businessinformations_spec.rb +170 -0
  396. data/spec/models/inline_response_200_5_spec.rb +42 -0
  397. data/spec/models/inline_response_200_5_users_spec.rb +70 -0
  398. data/spec/models/inline_response_200_6_spec.rb +42 -0
  399. data/spec/models/inline_response_200_7_cardimages_spec.rb +54 -0
  400. data/spec/models/inline_response_200_7_spec.rb +42 -0
  401. data/spec/models/inline_response_200_8_spec.rb +42 -0
  402. data/spec/models/inline_response_200_9_spec.rb +54 -0
  403. data/spec/models/inline_response_200_spec.rb +42 -0
  404. data/spec/models/inline_response_default_spec.rb +42 -0
  405. data/spec/models/issuer_initiated_digitization_datas_additionnal_data_ecc_public_certificates_spec.rb +54 -0
  406. data/spec/models/issuer_initiated_digitization_datas_additionnal_data_spec.rb +54 -0
  407. data/spec/models/mandate_spec.rb +264 -0
  408. data/spec/models/mcc_restriction_group_spec.rb +82 -0
  409. data/spec/models/merchant_id_restriction_group_spec.rb +82 -0
  410. data/spec/models/payin_spec.rb +328 -0
  411. data/spec/models/payinrefund_spec.rb +106 -0
  412. data/spec/models/payout_spec.rb +182 -0
  413. data/spec/models/tav_spec.rb +78 -0
  414. data/spec/models/transaction_spec.rb +126 -0
  415. data/spec/models/transfer_spec.rb +154 -0
  416. data/spec/models/transferrefund_spec.rb +118 -0
  417. data/spec/models/user_spec.rb +350 -0
  418. data/spec/models/virtualiban_spec.rb +102 -0
  419. data/spec/models/wallet_spec.rb +220 -0
  420. data/spec/spec_helper.rb +111 -0
  421. data/treezor_client.gemspec +47 -0
  422. metadata +739 -0
data/docs/Body8.md ADDED
@@ -0,0 +1,12 @@
1
+ # TreezorClient::Body8
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | Name of the merchant ID restriction group | [optional]
7
+ **status** | **String** | Status of the merchant ID restriction group | [optional]
8
+ **is_whitelist** | **BOOLEAN** | determines whether it will be a black or a white list | [optional] [default to true]
9
+ **merchants** | **Array<String>** | Array of merchant ID | [optional]
10
+ **start_date** | **String** | The date at which the merchant ID group will be take into account. Format YYYY-MM-DD HH:MM:SS | [optional]
11
+
12
+
data/docs/Body9.md ADDED
@@ -0,0 +1,12 @@
1
+ # TreezorClient::Body9
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | Name of the country restriction group |
7
+ **status** | **String** | Status of the country group | [optional]
8
+ **is_whitelist** | **BOOLEAN** | determines whether it will be a black or a white list | [optional] [default to true]
9
+ **countries** | **Array<Integer>** | Array of countries |
10
+ **start_date** | **String** | The date at which the country restriction group will be take into account. Format YYYY-MM-DD HH:MM:SS | [optional]
11
+
12
+
@@ -0,0 +1,162 @@
1
+ # TreezorClient::BusinessApi
2
+
3
+ All URIs are relative to *https://sandbox.treezor.com/v1/index.php*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**businessinformations_get**](BusinessApi.md#businessinformations_get) | **GET** /businessinformations | get business information
8
+ [**businesssearchs_get**](BusinessApi.md#businesssearchs_get) | **GET** /businesssearchs | search businesses
9
+
10
+
11
+ # **businessinformations_get**
12
+ > InlineResponse2005 businessinformations_get(country, opts)
13
+
14
+ get business information
15
+
16
+ The get business information endpoint returns all already known business information. End user will have then to verify/correct it.
17
+
18
+ ### Example
19
+ ```ruby
20
+ # load the gem
21
+ require 'treezor_client'
22
+ # setup authorization
23
+ TreezorClient.configure do |config|
24
+ # Configure API key authorization: api_key
25
+ config.api_key['Authorization'] = 'YOUR API KEY'
26
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
27
+ #config.api_key_prefix['Authorization'] = 'Bearer'
28
+ end
29
+
30
+ api_instance = TreezorClient::BusinessApi.new
31
+
32
+ country = "country_example" # String | In which country to search. Format [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
33
+
34
+ opts = {
35
+ access_signature: "access_signature_example", # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
36
+ access_tag: "access_tag_example", # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
37
+ access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
38
+ access_user_ip: "access_user_ip_example", # String | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
39
+ external_id: "external_id_example", # String | External unique business id. As given in businesssearch reponse.
40
+ registration_number: "registration_number_example", # String | Unique business registration number.
41
+ vat_number: "vat_number_example" # String | Unique business VAT number.
42
+ }
43
+
44
+ begin
45
+ #get business information
46
+ result = api_instance.businessinformations_get(country, opts)
47
+ p result
48
+ rescue TreezorClient::ApiError => e
49
+ puts "Exception when calling BusinessApi->businessinformations_get: #{e}"
50
+ end
51
+ ```
52
+
53
+ ### Parameters
54
+
55
+ Name | Type | Description | Notes
56
+ ------------- | ------------- | ------------- | -------------
57
+ **country** | **String**| In which country to search. Format [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) |
58
+ **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
59
+ **access_tag** | **String**| Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics). | [optional]
60
+ **access_user_id** | **Integer**| Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
61
+ **access_user_ip** | **String**| Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
62
+ **external_id** | **String**| External unique business id. As given in businesssearch reponse. | [optional]
63
+ **registration_number** | **String**| Unique business registration number. | [optional]
64
+ **vat_number** | **String**| Unique business VAT number. | [optional]
65
+
66
+ ### Return type
67
+
68
+ [**InlineResponse2005**](InlineResponse2005.md)
69
+
70
+ ### Authorization
71
+
72
+ [api_key](../README.md#api_key)
73
+
74
+ ### HTTP request headers
75
+
76
+ - **Content-Type**: Not defined
77
+ - **Accept**: Not defined
78
+
79
+
80
+
81
+ # **businesssearchs_get**
82
+ > Array<InlineResponse2004> businesssearchs_get(country, opts)
83
+
84
+ search businesses
85
+
86
+ The search endpoint returns some business information.
87
+
88
+ ### Example
89
+ ```ruby
90
+ # load the gem
91
+ require 'treezor_client'
92
+ # setup authorization
93
+ TreezorClient.configure do |config|
94
+ # Configure API key authorization: api_key
95
+ config.api_key['Authorization'] = 'YOUR API KEY'
96
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
97
+ #config.api_key_prefix['Authorization'] = 'Bearer'
98
+ end
99
+
100
+ api_instance = TreezorClient::BusinessApi.new
101
+
102
+ country = "country_example" # String | In which country to search. Format [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
103
+
104
+ opts = {
105
+ access_signature: "access_signature_example", # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
106
+ access_tag: "access_tag_example", # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
107
+ access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
108
+ access_user_ip: "access_user_ip_example", # String | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
109
+ name_exact: "name_exact_example", # String | Business exact name. Exclusive with nameMatchBeginning and nameClosestKeywords.
110
+ name_match_beginning: "name_match_beginning_example", # String | Business names begin with. Exclusive with nameExact and nameClosestKeywords.
111
+ name_closest_keywords: "name_closest_keywords_example", # String | Business names closed to keywords. Exclusive with nameExact and nameMatchBeginning.
112
+ registration_number: "registration_number_example", # String | Business registration number.
113
+ vat_number: "vat_number_example", # String | Business VAT number.
114
+ phone_number: "phone_number_example", # String | Business phone number.
115
+ address_street: "address_street_example", # String | Business' street address.
116
+ address_city: "address_city_example", # String | Business' city address.
117
+ address_postal_code: "address_postal_code_example" # String | Business' postal code address.
118
+ }
119
+
120
+ begin
121
+ #search businesses
122
+ result = api_instance.businesssearchs_get(country, opts)
123
+ p result
124
+ rescue TreezorClient::ApiError => e
125
+ puts "Exception when calling BusinessApi->businesssearchs_get: #{e}"
126
+ end
127
+ ```
128
+
129
+ ### Parameters
130
+
131
+ Name | Type | Description | Notes
132
+ ------------- | ------------- | ------------- | -------------
133
+ **country** | **String**| In which country to search. Format [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) |
134
+ **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
135
+ **access_tag** | **String**| Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics). | [optional]
136
+ **access_user_id** | **Integer**| Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
137
+ **access_user_ip** | **String**| Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
138
+ **name_exact** | **String**| Business exact name. Exclusive with nameMatchBeginning and nameClosestKeywords. | [optional]
139
+ **name_match_beginning** | **String**| Business names begin with. Exclusive with nameExact and nameClosestKeywords. | [optional]
140
+ **name_closest_keywords** | **String**| Business names closed to keywords. Exclusive with nameExact and nameMatchBeginning. | [optional]
141
+ **registration_number** | **String**| Business registration number. | [optional]
142
+ **vat_number** | **String**| Business VAT number. | [optional]
143
+ **phone_number** | **String**| Business phone number. | [optional]
144
+ **address_street** | **String**| Business' street address. | [optional]
145
+ **address_city** | **String**| Business' city address. | [optional]
146
+ **address_postal_code** | **String**| Business' postal code address. | [optional]
147
+
148
+ ### Return type
149
+
150
+ [**Array<InlineResponse2004>**](InlineResponse2004.md)
151
+
152
+ ### Authorization
153
+
154
+ [api_key](../README.md#api_key)
155
+
156
+ ### HTTP request headers
157
+
158
+ - **Content-Type**: Not defined
159
+ - **Accept**: Not defined
160
+
161
+
162
+
@@ -0,0 +1,22 @@
1
+ # TreezorClient::BusinesssearchsBusinessinformations
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **legal_name** | **String** | Business commercial name. | [optional]
7
+ **phone** | **String** | Business phone number. | [optional]
8
+ **legal_tva_number** | **String** | Business VAT number. | [optional]
9
+ **legal_registration_number** | **String** | Business registration number. | [optional]
10
+ **status** | **String** | | Code | Description | | ---- | ----------- | | D | Deleted | | N | Company non diffusible (Insee) | | I | Inactive (Insee) | | A | Economically active | | C | Closed | | T | Transfered | | S | Economically stopped (Insee) | | L | Liquidation | | O | Dormant company | | [optional]
11
+ **office_type** | **Integer** | | Code | Description | | ---- | ---- | | 0 | Secondary establishment | | 1 | Headquarter | | [optional]
12
+ **safe_number** | **String** | Business SAFE number. | [optional]
13
+ **activity_type** | **String** | Business sector. Code NAF in France. | [optional]
14
+ **external_id** | **String** | Business external id. | [optional]
15
+ **address1** | **String** | Business' street. | [optional]
16
+ **postcode** | **String** | Business' postal code. | [optional]
17
+ **city** | **String** | Business' city. | [optional]
18
+ **state** | **String** | Business' province. | [optional]
19
+ **country** | **String** | Business' country. | [optional]
20
+ **tradename** | **String** | Business trade name | [optional]
21
+
22
+
data/docs/Card.md ADDED
@@ -0,0 +1,71 @@
1
+ # TreezorClient::Card
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **card_id** | **Integer** | | [optional]
7
+ **user_id** | **Integer** | | [optional]
8
+ **wallet_id** | **Integer** | | [optional]
9
+ **wallet_cardtransaction_id** | **Integer** | | [optional]
10
+ **mcc_restriction_group_id** | **Integer** | | [optional]
11
+ **merchant_restriction_group_id** | **Integer** | | [optional]
12
+ **country_restriction_group_id** | **Integer** | | [optional]
13
+ **public_token** | **String** | | [optional]
14
+ **card_tag** | **String** | | [optional]
15
+ **status_code** | **String** | | [optional]
16
+ **is_live** | **Integer** | | [optional]
17
+ **pin_try_exceeds** | **Integer** | | [optional]
18
+ **masked_pan** | **Integer** | | [optional]
19
+ **embossed_name** | **String** | | [optional]
20
+ **expiry_date** | **Integer** | Date YYYY-MM-DD | [optional]
21
+ **cvv** | **String** | | [optional]
22
+ **start_date** | **Integer** | Date YYYY-MM-DD | [optional]
23
+ **end_date** | **Integer** | Date YYYY-MM-DD | [optional]
24
+ **country_code** | **String** | | [optional]
25
+ **currency_code** | **String** | | [optional]
26
+ **lang** | **String** | | [optional]
27
+ **delivery_title** | **String** | | [optional]
28
+ **delivery_lastname** | **String** | | [optional]
29
+ **delivery_firstname** | **String** | | [optional]
30
+ **delivery_address1** | **String** | | [optional]
31
+ **delivery_address2** | **String** | | [optional]
32
+ **delivery_address3** | **String** | | [optional]
33
+ **delivery_city** | **String** | | [optional]
34
+ **delivery_postcode** | **String** | | [optional]
35
+ **delivery_country** | **String** | | [optional]
36
+ **mobile_sent** | **String** | | [optional]
37
+ **limits_group** | **String** | | [optional]
38
+ **perms_group** | **String** | | [optional]
39
+ **card_design** | **String** | | [optional]
40
+ **virtual_converted** | **Integer** | | [optional]
41
+ **option_atm** | **Integer** | | [optional]
42
+ **option_foreign** | **Integer** | | [optional]
43
+ **option_online** | **Integer** | | [optional]
44
+ **option_nfc** | **Integer** | | [optional]
45
+ **limit_atm_year** | **Integer** | | [optional]
46
+ **limit_atm_month** | **Integer** | | [optional]
47
+ **limit_atm_week** | **Integer** | | [optional]
48
+ **limit_atm_day** | **Integer** | | [optional]
49
+ **limit_atm_all** | **Integer** | | [optional]
50
+ **limit_payment_year** | **Integer** | | [optional]
51
+ **limit_payment_month** | **Integer** | | [optional]
52
+ **limit_payment_week** | **Integer** | | [optional]
53
+ **limit_payment_day** | **Integer** | | [optional]
54
+ **limit_payment_all** | **Integer** | | [optional]
55
+ **total_atm_year** | **Integer** | | [optional]
56
+ **total_atm_month** | **Integer** | | [optional]
57
+ **total_atm_week** | **Integer** | | [optional]
58
+ **total_atm_day** | **Integer** | | [optional]
59
+ **total_atm_all** | **Integer** | | [optional]
60
+ **total_payment_year** | **Integer** | | [optional]
61
+ **total_payment_month** | **Integer** | | [optional]
62
+ **total_payment_week** | **Integer** | | [optional]
63
+ **total_payment_day** | **Integer** | | [optional]
64
+ **total_payment_all** | **Integer** | | [optional]
65
+ **created_by** | **Integer** | | [optional]
66
+ **created_date** | **Integer** | Date YYYY-MM-DD HH:MM:SS | [optional]
67
+ **modified_by** | **Integer** | | [optional]
68
+ **modified_date** | **Integer** | Date YYYY-MM-DD HH:MM:SS | [optional]
69
+ **total_rows** | **Integer** | | [optional]
70
+
71
+
data/docs/CardApi.md ADDED
@@ -0,0 +1,1202 @@
1
+ # TreezorClient::CardApi
2
+
3
+ All URIs are relative to *https://sandbox.treezor.com/v1/index.php*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**cardimages_get**](CardApi.md#cardimages_get) | **GET** /cardimages | get a card image
8
+ [**cards_create_virtual_post**](CardApi.md#cards_create_virtual_post) | **POST** /cards/CreateVirtual | create a virtual card
9
+ [**cards_get**](CardApi.md#cards_get) | **GET** /cards | search cards
10
+ [**cards_id_activate_put**](CardApi.md#cards_id_activate_put) | **PUT** /cards/{id}/Activate/ | activate a card
11
+ [**cards_id_change_pin_put**](CardApi.md#cards_id_change_pin_put) | **PUT** /cards/{id}/ChangePIN/ | change card's PIN
12
+ [**cards_id_convert_virtual_put**](CardApi.md#cards_id_convert_virtual_put) | **PUT** /cards/{id}/ConvertVirtual/ | convert card to virtual
13
+ [**cards_id_delete**](CardApi.md#cards_id_delete) | **DELETE** /cards/{id} | deactivate a card
14
+ [**cards_id_get**](CardApi.md#cards_id_get) | **GET** /cards/{id} | get a card
15
+ [**cards_id_limits_put**](CardApi.md#cards_id_limits_put) | **PUT** /cards/{id}/Limits/ | update card's limits
16
+ [**cards_id_lock_unlock_put**](CardApi.md#cards_id_lock_unlock_put) | **PUT** /cards/{id}/LockUnlock/ | update card's blocking status
17
+ [**cards_id_options_put**](CardApi.md#cards_id_options_put) | **PUT** /cards/{id}/Options/ | update card's options
18
+ [**cards_id_put**](CardApi.md#cards_id_put) | **PUT** /cards/{id} | update card informations
19
+ [**cards_id_regenerate_put**](CardApi.md#cards_id_regenerate_put) | **PUT** /cards/{id}/Regenerate/ | regenerate card
20
+ [**cards_id_set_pin_put**](CardApi.md#cards_id_set_pin_put) | **PUT** /cards/{id}/setPIN/ | set card's PIN
21
+ [**cards_id_unblock_pin_put**](CardApi.md#cards_id_unblock_pin_put) | **PUT** /cards/{id}/UnblockPIN/ | unblock card's PIN
22
+ [**cards_request_physical_post**](CardApi.md#cards_request_physical_post) | **POST** /cards/RequestPhysical | create a physical card
23
+
24
+
25
+ # **cardimages_get**
26
+ > InlineResponse2007 cardimages_get(card_id, opts)
27
+
28
+ get a card image
29
+
30
+ Return virtual card's image
31
+
32
+ ### Example
33
+ ```ruby
34
+ # load the gem
35
+ require 'treezor_client'
36
+ # setup authorization
37
+ TreezorClient.configure do |config|
38
+ # Configure API key authorization: api_key
39
+ config.api_key['Authorization'] = 'YOUR API KEY'
40
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
41
+ #config.api_key_prefix['Authorization'] = 'Bearer'
42
+ end
43
+
44
+ api_instance = TreezorClient::CardApi.new
45
+
46
+ card_id = 56 # Integer | Vitual card's id.
47
+
48
+ opts = {
49
+ access_signature: "access_signature_example", # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
50
+ access_tag: "access_tag_example", # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
51
+ access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
52
+ access_user_ip: "access_user_ip_example" # String | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
53
+ }
54
+
55
+ begin
56
+ #get a card image
57
+ result = api_instance.cardimages_get(card_id, opts)
58
+ p result
59
+ rescue TreezorClient::ApiError => e
60
+ puts "Exception when calling CardApi->cardimages_get: #{e}"
61
+ end
62
+ ```
63
+
64
+ ### Parameters
65
+
66
+ Name | Type | Description | Notes
67
+ ------------- | ------------- | ------------- | -------------
68
+ **card_id** | **Integer**| Vitual card's id. |
69
+ **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
70
+ **access_tag** | **String**| Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics). | [optional]
71
+ **access_user_id** | **Integer**| Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
72
+ **access_user_ip** | **String**| Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
73
+
74
+ ### Return type
75
+
76
+ [**InlineResponse2007**](InlineResponse2007.md)
77
+
78
+ ### Authorization
79
+
80
+ [api_key](../README.md#api_key)
81
+
82
+ ### HTTP request headers
83
+
84
+ - **Content-Type**: Not defined
85
+ - **Accept**: Not defined
86
+
87
+
88
+
89
+ # **cards_create_virtual_post**
90
+ > InlineResponse2006 cards_create_virtual_post(user_id, wallet_id, perms_group, card_print, opts)
91
+
92
+ create a virtual card
93
+
94
+ Create a new virtual card. To use a card you will need to activate it (/cards/{id}/Activate/).
95
+
96
+ ### Example
97
+ ```ruby
98
+ # load the gem
99
+ require 'treezor_client'
100
+ # setup authorization
101
+ TreezorClient.configure do |config|
102
+ # Configure API key authorization: api_key
103
+ config.api_key['Authorization'] = 'YOUR API KEY'
104
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
105
+ #config.api_key_prefix['Authorization'] = 'Bearer'
106
+ end
107
+
108
+ api_instance = TreezorClient::CardApi.new
109
+
110
+ user_id = 56 # Integer | User's id of cardholder
111
+
112
+ wallet_id = 56 # Integer | Wallet's Id in which to create the card
113
+
114
+ perms_group = "perms_group_example" # String | Permissions group of the card. There is 4 usages which create 16 possible groups: | group | NFC | ATM | On-line | Foreign | |-----|-----|-----|-----|------| |TRZ-CU-001|KO|KO|KO|KO| |TRZ-CU-002|KO|KO|KO|OK| |TRZ-CU-003|KO|KO|OK|KO| |TRZ-CU-004|KO|KO|OK|OK| |TRZ-CU-005|KO|OK|KO|KO| |TRZ-CU-006|KO|OK|KO|OK| |TRZ-CU-007|KO|OK|OK|KO| |TRZ-CU-008|KO|OK|OK|OK| |TRZ-CU-009|OK|KO|KO|KO| |TRZ-CU-010|OK|KO|KO|OK| |TRZ-CU-011|OK|KO|OK|KO| |TRZ-CU-012|OK|KO|OK|OK| |TRZ-CU-013|OK|OK|KO|KO| |TRZ-CU-014|OK|OK|KO|OK| |TRZ-CU-015|OK|OK|OK|KO| |TRZ-CU-016|OK|OK|OK|OK|
115
+
116
+ card_print = "card_print_example" # String | Card appareance code, also used to choose the program ID of the card
117
+
118
+ opts = {
119
+ access_signature: "access_signature_example", # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
120
+ card_tag: "card_tag_example", # String | Custom field
121
+ limit_atm_year: 56, # Integer | ATM operations limit for a sliding year. No default value.
122
+ limit_atm_month: 56, # Integer | ATM operations limit for a sliding month. No default value.
123
+ limit_atm_week: 56, # Integer | ATM operations limit for a sliding week. Default value 2000€.
124
+ limit_atm_day: 56, # Integer | ATM operations limit for a single day. Default value 1000€.
125
+ limit_atm_all: 56, # Integer | ATM operations limit from beginning. No default value.
126
+ limit_payment_year: 56, # Integer | POS operations limit for a sliding year. No default value.
127
+ limit_payment_month: 56, # Integer | POS operations limit for a sliding month. No default value.
128
+ limit_payment_week: 56, # Integer | POS operations limit for a sliding week. Default value 3000€.
129
+ limit_payment_day: 56, # Integer | POS operations limit for a single day. Default value 2000€.
130
+ limit_payment_all: 56, # Integer | POS operations limit from beginning. No default value.
131
+ pin: "pin_example", # String | Card's PIN code value.
132
+ anonymous: 56, # Integer | Card is anonymous. If value is 1 there will be no embossed name.
133
+ send_to_parent: 56, # Integer | If you put the value 1 the delivery address will be the parent user's.
134
+ mcc_restriction_group_id: 56, # Integer | mccRestrictionGroupId you want to apply
135
+ merchant_restriction_group_id: 56, # Integer | merchantRestrictionGroupId you want to apply
136
+ country_restriction_group_id: 56, # Integer | countryRestrictionGroupId you want to apply
137
+ access_tag: "access_tag_example", # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
138
+ access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
139
+ access_user_ip: "access_user_ip_example" # String | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
140
+ }
141
+
142
+ begin
143
+ #create a virtual card
144
+ result = api_instance.cards_create_virtual_post(user_id, wallet_id, perms_group, card_print, opts)
145
+ p result
146
+ rescue TreezorClient::ApiError => e
147
+ puts "Exception when calling CardApi->cards_create_virtual_post: #{e}"
148
+ end
149
+ ```
150
+
151
+ ### Parameters
152
+
153
+ Name | Type | Description | Notes
154
+ ------------- | ------------- | ------------- | -------------
155
+ **user_id** | **Integer**| User's id of cardholder |
156
+ **wallet_id** | **Integer**| Wallet's Id in which to create the card |
157
+ **perms_group** | **String**| Permissions group of the card. There is 4 usages which create 16 possible groups: | group | NFC | ATM | On-line | Foreign | |-----|-----|-----|-----|------| |TRZ-CU-001|KO|KO|KO|KO| |TRZ-CU-002|KO|KO|KO|OK| |TRZ-CU-003|KO|KO|OK|KO| |TRZ-CU-004|KO|KO|OK|OK| |TRZ-CU-005|KO|OK|KO|KO| |TRZ-CU-006|KO|OK|KO|OK| |TRZ-CU-007|KO|OK|OK|KO| |TRZ-CU-008|KO|OK|OK|OK| |TRZ-CU-009|OK|KO|KO|KO| |TRZ-CU-010|OK|KO|KO|OK| |TRZ-CU-011|OK|KO|OK|KO| |TRZ-CU-012|OK|KO|OK|OK| |TRZ-CU-013|OK|OK|KO|KO| |TRZ-CU-014|OK|OK|KO|OK| |TRZ-CU-015|OK|OK|OK|KO| |TRZ-CU-016|OK|OK|OK|OK| |
158
+ **card_print** | **String**| Card appareance code, also used to choose the program ID of the card |
159
+ **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
160
+ **card_tag** | **String**| Custom field | [optional]
161
+ **limit_atm_year** | **Integer**| ATM operations limit for a sliding year. No default value. | [optional]
162
+ **limit_atm_month** | **Integer**| ATM operations limit for a sliding month. No default value. | [optional]
163
+ **limit_atm_week** | **Integer**| ATM operations limit for a sliding week. Default value 2000€. | [optional]
164
+ **limit_atm_day** | **Integer**| ATM operations limit for a single day. Default value 1000€. | [optional]
165
+ **limit_atm_all** | **Integer**| ATM operations limit from beginning. No default value. | [optional]
166
+ **limit_payment_year** | **Integer**| POS operations limit for a sliding year. No default value. | [optional]
167
+ **limit_payment_month** | **Integer**| POS operations limit for a sliding month. No default value. | [optional]
168
+ **limit_payment_week** | **Integer**| POS operations limit for a sliding week. Default value 3000€. | [optional]
169
+ **limit_payment_day** | **Integer**| POS operations limit for a single day. Default value 2000€. | [optional]
170
+ **limit_payment_all** | **Integer**| POS operations limit from beginning. No default value. | [optional]
171
+ **pin** | **String**| Card's PIN code value. | [optional]
172
+ **anonymous** | **Integer**| Card is anonymous. If value is 1 there will be no embossed name. | [optional]
173
+ **send_to_parent** | **Integer**| If you put the value 1 the delivery address will be the parent user's. | [optional]
174
+ **mcc_restriction_group_id** | **Integer**| mccRestrictionGroupId you want to apply | [optional]
175
+ **merchant_restriction_group_id** | **Integer**| merchantRestrictionGroupId you want to apply | [optional]
176
+ **country_restriction_group_id** | **Integer**| countryRestrictionGroupId you want to apply | [optional]
177
+ **access_tag** | **String**| Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics). | [optional]
178
+ **access_user_id** | **Integer**| Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
179
+ **access_user_ip** | **String**| Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
180
+
181
+ ### Return type
182
+
183
+ [**InlineResponse2006**](InlineResponse2006.md)
184
+
185
+ ### Authorization
186
+
187
+ [api_key](../README.md#api_key)
188
+
189
+ ### HTTP request headers
190
+
191
+ - **Content-Type**: Not defined
192
+ - **Accept**: Not defined
193
+
194
+
195
+
196
+ # **cards_get**
197
+ > InlineResponse2006 cards_get(opts)
198
+
199
+ search cards
200
+
201
+ ### Example
202
+ ```ruby
203
+ # load the gem
204
+ require 'treezor_client'
205
+ # setup authorization
206
+ TreezorClient.configure do |config|
207
+ # Configure API key authorization: api_key
208
+ config.api_key['Authorization'] = 'YOUR API KEY'
209
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
210
+ #config.api_key_prefix['Authorization'] = 'Bearer'
211
+ end
212
+
213
+ api_instance = TreezorClient::CardApi.new
214
+
215
+ opts = {
216
+ access_signature: "access_signature_example", # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
217
+ access_tag: "access_tag_example", # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
218
+ access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
219
+ access_user_ip: "access_user_ip_example", # String | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
220
+ card_id: 56, # Integer | Card's id
221
+ user_id: 56, # Integer | User's id of cardholder
222
+ embossed_name: "embossed_name_example", # String | Embossed name of the card
223
+ public_token: "public_token_example", # String | Public token of the card
224
+ perms_group: "perms_group_example", # String | Permissions group of the card. There is 4 usages which create 16 possible groups: | group | NFC | ATM | On-line | Foreign | |-----|-----|-----|-----|------| |TRZ-CU-001|KO|KO|KO|KO| |TRZ-CU-002|KO|KO|KO|OK| |TRZ-CU-003|KO|KO|OK|KO| |TRZ-CU-004|KO|KO|OK|OK| |TRZ-CU-005|KO|OK|KO|KO| |TRZ-CU-006|KO|OK|KO|OK| |TRZ-CU-007|KO|OK|OK|KO| |TRZ-CU-008|KO|OK|OK|OK| |TRZ-CU-009|OK|KO|KO|KO| |TRZ-CU-010|OK|KO|KO|OK| |TRZ-CU-011|OK|KO|OK|KO| |TRZ-CU-012|OK|KO|OK|OK| |TRZ-CU-013|OK|OK|KO|KO| |TRZ-CU-014|OK|OK|KO|OK| |TRZ-CU-015|OK|OK|OK|KO| |TRZ-CU-016|OK|OK|OK|OK|
225
+ is_physical: 56, # Integer | | Value | Type | | --- | --- | | 1 | Physical card| | 0 | Virtual card |
226
+ is_converted: 56, # Integer | | Value | Type | | --- | --- | | 1 | Physical card converted in a virtual card| | 0 | Not converted |
227
+ lock_status: 56, # Integer | | Value | Type | | --- | --- | | 1 | Card blocked | | 0 | Card Unblocked | | 2 | Lost card | | 3 | Stolen card |
228
+ mcc_restriction_group_id: 56, # Integer | mccRestrictionGroupId of the card
229
+ merchant_restriction_group_id: 56, # Integer | merchantRestrictionGroupId of the card
230
+ country_restriction_group_id: 56, # Integer | countryRestrictionGroupId of the card
231
+ page_number: 56, # Integer | Pagination page number. More info [here](https://agent.treezor.com/lists).
232
+ page_count: 56, # Integer | The number of items per page. More info [here](https://agent.treezor.com/lists).
233
+ sort_by: "sort_by_example", # String | The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists).
234
+ sort_order: "sort_order_example", # String | The order you want to sort the list. * **DESC** for a descending sort * **ASC** for a ascending sort. Default value : DESC. More info [here](https://agent.treezor.com/lists).
235
+ created_date_from: DateTime.parse("2013-10-20T19:20:30+01:00"), # DateTime | The creation date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
236
+ created_date_to: DateTime.parse("2013-10-20T19:20:30+01:00"), # DateTime | The creation date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
237
+ updated_date_from: DateTime.parse("2013-10-20T19:20:30+01:00"), # DateTime | The modification date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
238
+ updated_date_to: DateTime.parse("2013-10-20T19:20:30+01:00") # DateTime | The modification date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
239
+ }
240
+
241
+ begin
242
+ #search cards
243
+ result = api_instance.cards_get(opts)
244
+ p result
245
+ rescue TreezorClient::ApiError => e
246
+ puts "Exception when calling CardApi->cards_get: #{e}"
247
+ end
248
+ ```
249
+
250
+ ### Parameters
251
+
252
+ Name | Type | Description | Notes
253
+ ------------- | ------------- | ------------- | -------------
254
+ **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
255
+ **access_tag** | **String**| Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics). | [optional]
256
+ **access_user_id** | **Integer**| Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
257
+ **access_user_ip** | **String**| Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
258
+ **card_id** | **Integer**| Card's id | [optional]
259
+ **user_id** | **Integer**| User's id of cardholder | [optional]
260
+ **embossed_name** | **String**| Embossed name of the card | [optional]
261
+ **public_token** | **String**| Public token of the card | [optional]
262
+ **perms_group** | **String**| Permissions group of the card. There is 4 usages which create 16 possible groups: | group | NFC | ATM | On-line | Foreign | |-----|-----|-----|-----|------| |TRZ-CU-001|KO|KO|KO|KO| |TRZ-CU-002|KO|KO|KO|OK| |TRZ-CU-003|KO|KO|OK|KO| |TRZ-CU-004|KO|KO|OK|OK| |TRZ-CU-005|KO|OK|KO|KO| |TRZ-CU-006|KO|OK|KO|OK| |TRZ-CU-007|KO|OK|OK|KO| |TRZ-CU-008|KO|OK|OK|OK| |TRZ-CU-009|OK|KO|KO|KO| |TRZ-CU-010|OK|KO|KO|OK| |TRZ-CU-011|OK|KO|OK|KO| |TRZ-CU-012|OK|KO|OK|OK| |TRZ-CU-013|OK|OK|KO|KO| |TRZ-CU-014|OK|OK|KO|OK| |TRZ-CU-015|OK|OK|OK|KO| |TRZ-CU-016|OK|OK|OK|OK| | [optional]
263
+ **is_physical** | **Integer**| | Value | Type | | --- | --- | | 1 | Physical card| | 0 | Virtual card | | [optional]
264
+ **is_converted** | **Integer**| | Value | Type | | --- | --- | | 1 | Physical card converted in a virtual card| | 0 | Not converted | | [optional]
265
+ **lock_status** | **Integer**| | Value | Type | | --- | --- | | 1 | Card blocked | | 0 | Card Unblocked | | 2 | Lost card | | 3 | Stolen card | | [optional]
266
+ **mcc_restriction_group_id** | **Integer**| mccRestrictionGroupId of the card | [optional]
267
+ **merchant_restriction_group_id** | **Integer**| merchantRestrictionGroupId of the card | [optional]
268
+ **country_restriction_group_id** | **Integer**| countryRestrictionGroupId of the card | [optional]
269
+ **page_number** | **Integer**| Pagination page number. More info [here](https://agent.treezor.com/lists). | [optional]
270
+ **page_count** | **Integer**| The number of items per page. More info [here](https://agent.treezor.com/lists). | [optional]
271
+ **sort_by** | **String**| The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists). | [optional]
272
+ **sort_order** | **String**| The order you want to sort the list. * **DESC** for a descending sort * **ASC** for a ascending sort. Default value : DESC. More info [here](https://agent.treezor.com/lists). | [optional]
273
+ **created_date_from** | **DateTime**| The creation date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists) | [optional]
274
+ **created_date_to** | **DateTime**| The creation date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists) | [optional]
275
+ **updated_date_from** | **DateTime**| The modification date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists) | [optional]
276
+ **updated_date_to** | **DateTime**| The modification date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists) | [optional]
277
+
278
+ ### Return type
279
+
280
+ [**InlineResponse2006**](InlineResponse2006.md)
281
+
282
+ ### Authorization
283
+
284
+ [api_key](../README.md#api_key)
285
+
286
+ ### HTTP request headers
287
+
288
+ - **Content-Type**: Not defined
289
+ - **Accept**: Not defined
290
+
291
+
292
+
293
+ # **cards_id_activate_put**
294
+ > InlineResponse2006 cards_id_activate_put(id, opts)
295
+
296
+ activate a card
297
+
298
+ The Activate endpoint change card status to activate. An activated card can be freely used.
299
+
300
+ ### Example
301
+ ```ruby
302
+ # load the gem
303
+ require 'treezor_client'
304
+ # setup authorization
305
+ TreezorClient.configure do |config|
306
+ # Configure API key authorization: api_key
307
+ config.api_key['Authorization'] = 'YOUR API KEY'
308
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
309
+ #config.api_key_prefix['Authorization'] = 'Bearer'
310
+ end
311
+
312
+ api_instance = TreezorClient::CardApi.new
313
+
314
+ id = 56 # Integer | Card's id.
315
+
316
+ opts = {
317
+ access_token: "access_token_example", # String | Access token must be defined here or in Authorization HTTP header. More info [here](https://agent.treezor.com/security-authentication).
318
+ access_signature: "access_signature_example", # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
319
+ access_tag: "access_tag_example", # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
320
+ access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
321
+ access_user_ip: "access_user_ip_example" # String | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
322
+ }
323
+
324
+ begin
325
+ #activate a card
326
+ result = api_instance.cards_id_activate_put(id, opts)
327
+ p result
328
+ rescue TreezorClient::ApiError => e
329
+ puts "Exception when calling CardApi->cards_id_activate_put: #{e}"
330
+ end
331
+ ```
332
+
333
+ ### Parameters
334
+
335
+ Name | Type | Description | Notes
336
+ ------------- | ------------- | ------------- | -------------
337
+ **id** | **Integer**| Card's id. |
338
+ **access_token** | **String**| Access token must be defined here or in Authorization HTTP header. More info [here](https://agent.treezor.com/security-authentication). | [optional]
339
+ **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
340
+ **access_tag** | **String**| Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics). | [optional]
341
+ **access_user_id** | **Integer**| Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
342
+ **access_user_ip** | **String**| Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
343
+
344
+ ### Return type
345
+
346
+ [**InlineResponse2006**](InlineResponse2006.md)
347
+
348
+ ### Authorization
349
+
350
+ [api_key](../README.md#api_key)
351
+
352
+ ### HTTP request headers
353
+
354
+ - **Content-Type**: Not defined
355
+ - **Accept**: Not defined
356
+
357
+
358
+
359
+ # **cards_id_change_pin_put**
360
+ > InlineResponse2006 cards_id_change_pin_put(id, current_pin, new_pin, confirm_pin, opts)
361
+
362
+ change card's PIN
363
+
364
+ Change card's PIN code knowing the current one.
365
+
366
+ ### Example
367
+ ```ruby
368
+ # load the gem
369
+ require 'treezor_client'
370
+ # setup authorization
371
+ TreezorClient.configure do |config|
372
+ # Configure API key authorization: api_key
373
+ config.api_key['Authorization'] = 'YOUR API KEY'
374
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
375
+ #config.api_key_prefix['Authorization'] = 'Bearer'
376
+ end
377
+
378
+ api_instance = TreezorClient::CardApi.new
379
+
380
+ id = 56 # Integer | Card's id.
381
+
382
+ current_pin = "current_pin_example" # String | Card's current PIN
383
+
384
+ new_pin = "new_pin_example" # String | Card's new PIN
385
+
386
+ confirm_pin = "confirm_pin_example" # String | Card's new PIN confirmation value
387
+
388
+ opts = {
389
+ access_signature: "access_signature_example", # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
390
+ access_tag: "access_tag_example", # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
391
+ access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
392
+ access_user_ip: "access_user_ip_example" # String | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
393
+ }
394
+
395
+ begin
396
+ #change card's PIN
397
+ result = api_instance.cards_id_change_pin_put(id, current_pin, new_pin, confirm_pin, opts)
398
+ p result
399
+ rescue TreezorClient::ApiError => e
400
+ puts "Exception when calling CardApi->cards_id_change_pin_put: #{e}"
401
+ end
402
+ ```
403
+
404
+ ### Parameters
405
+
406
+ Name | Type | Description | Notes
407
+ ------------- | ------------- | ------------- | -------------
408
+ **id** | **Integer**| Card's id. |
409
+ **current_pin** | **String**| Card's current PIN |
410
+ **new_pin** | **String**| Card's new PIN |
411
+ **confirm_pin** | **String**| Card's new PIN confirmation value |
412
+ **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
413
+ **access_tag** | **String**| Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics). | [optional]
414
+ **access_user_id** | **Integer**| Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
415
+ **access_user_ip** | **String**| Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
416
+
417
+ ### Return type
418
+
419
+ [**InlineResponse2006**](InlineResponse2006.md)
420
+
421
+ ### Authorization
422
+
423
+ [api_key](../README.md#api_key)
424
+
425
+ ### HTTP request headers
426
+
427
+ - **Content-Type**: Not defined
428
+ - **Accept**: Not defined
429
+
430
+
431
+
432
+ # **cards_id_convert_virtual_put**
433
+ > InlineResponse2006 cards_id_convert_virtual_put(id, opts)
434
+
435
+ convert card to virtual
436
+
437
+ Convert a virtual card into a physical one. The converted card will be both virtual and physical.
438
+
439
+ ### Example
440
+ ```ruby
441
+ # load the gem
442
+ require 'treezor_client'
443
+ # setup authorization
444
+ TreezorClient.configure do |config|
445
+ # Configure API key authorization: api_key
446
+ config.api_key['Authorization'] = 'YOUR API KEY'
447
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
448
+ #config.api_key_prefix['Authorization'] = 'Bearer'
449
+ end
450
+
451
+ api_instance = TreezorClient::CardApi.new
452
+
453
+ id = 56 # Integer | Card's id.
454
+
455
+ opts = {
456
+ access_signature: "access_signature_example", # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
457
+ access_tag: "access_tag_example", # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
458
+ access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
459
+ access_user_ip: "access_user_ip_example" # String | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
460
+ }
461
+
462
+ begin
463
+ #convert card to virtual
464
+ result = api_instance.cards_id_convert_virtual_put(id, opts)
465
+ p result
466
+ rescue TreezorClient::ApiError => e
467
+ puts "Exception when calling CardApi->cards_id_convert_virtual_put: #{e}"
468
+ end
469
+ ```
470
+
471
+ ### Parameters
472
+
473
+ Name | Type | Description | Notes
474
+ ------------- | ------------- | ------------- | -------------
475
+ **id** | **Integer**| Card's id. |
476
+ **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
477
+ **access_tag** | **String**| Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics). | [optional]
478
+ **access_user_id** | **Integer**| Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
479
+ **access_user_ip** | **String**| Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
480
+
481
+ ### Return type
482
+
483
+ [**InlineResponse2006**](InlineResponse2006.md)
484
+
485
+ ### Authorization
486
+
487
+ [api_key](../README.md#api_key)
488
+
489
+ ### HTTP request headers
490
+
491
+ - **Content-Type**: Not defined
492
+ - **Accept**: Not defined
493
+
494
+
495
+
496
+ # **cards_id_delete**
497
+ > InlineResponse2006 cards_id_delete(id)
498
+
499
+ deactivate a card
500
+
501
+ ### Example
502
+ ```ruby
503
+ # load the gem
504
+ require 'treezor_client'
505
+ # setup authorization
506
+ TreezorClient.configure do |config|
507
+ # Configure API key authorization: api_key
508
+ config.api_key['Authorization'] = 'YOUR API KEY'
509
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
510
+ #config.api_key_prefix['Authorization'] = 'Bearer'
511
+ end
512
+
513
+ api_instance = TreezorClient::CardApi.new
514
+
515
+ id = 789 # Integer | Card's id.
516
+
517
+
518
+ begin
519
+ #deactivate a card
520
+ result = api_instance.cards_id_delete(id)
521
+ p result
522
+ rescue TreezorClient::ApiError => e
523
+ puts "Exception when calling CardApi->cards_id_delete: #{e}"
524
+ end
525
+ ```
526
+
527
+ ### Parameters
528
+
529
+ Name | Type | Description | Notes
530
+ ------------- | ------------- | ------------- | -------------
531
+ **id** | **Integer**| Card's id. |
532
+
533
+ ### Return type
534
+
535
+ [**InlineResponse2006**](InlineResponse2006.md)
536
+
537
+ ### Authorization
538
+
539
+ [api_key](../README.md#api_key)
540
+
541
+ ### HTTP request headers
542
+
543
+ - **Content-Type**: Not defined
544
+ - **Accept**: Not defined
545
+
546
+
547
+
548
+ # **cards_id_get**
549
+ > InlineResponse2006 cards_id_get(id)
550
+
551
+ get a card
552
+
553
+ ### Example
554
+ ```ruby
555
+ # load the gem
556
+ require 'treezor_client'
557
+ # setup authorization
558
+ TreezorClient.configure do |config|
559
+ # Configure API key authorization: api_key
560
+ config.api_key['Authorization'] = 'YOUR API KEY'
561
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
562
+ #config.api_key_prefix['Authorization'] = 'Bearer'
563
+ end
564
+
565
+ api_instance = TreezorClient::CardApi.new
566
+
567
+ id = 789 # Integer | Card's id.
568
+
569
+
570
+ begin
571
+ #get a card
572
+ result = api_instance.cards_id_get(id)
573
+ p result
574
+ rescue TreezorClient::ApiError => e
575
+ puts "Exception when calling CardApi->cards_id_get: #{e}"
576
+ end
577
+ ```
578
+
579
+ ### Parameters
580
+
581
+ Name | Type | Description | Notes
582
+ ------------- | ------------- | ------------- | -------------
583
+ **id** | **Integer**| Card's id. |
584
+
585
+ ### Return type
586
+
587
+ [**InlineResponse2006**](InlineResponse2006.md)
588
+
589
+ ### Authorization
590
+
591
+ [api_key](../README.md#api_key)
592
+
593
+ ### HTTP request headers
594
+
595
+ - **Content-Type**: Not defined
596
+ - **Accept**: Not defined
597
+
598
+
599
+
600
+ # **cards_id_limits_put**
601
+ > InlineResponse2006 cards_id_limits_put(id, opts)
602
+
603
+ update card's limits
604
+
605
+ Update of the card limits.
606
+
607
+ ### Example
608
+ ```ruby
609
+ # load the gem
610
+ require 'treezor_client'
611
+ # setup authorization
612
+ TreezorClient.configure do |config|
613
+ # Configure API key authorization: api_key
614
+ config.api_key['Authorization'] = 'YOUR API KEY'
615
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
616
+ #config.api_key_prefix['Authorization'] = 'Bearer'
617
+ end
618
+
619
+ api_instance = TreezorClient::CardApi.new
620
+
621
+ id = 56 # Integer | Card's id.
622
+
623
+ opts = {
624
+ access_signature: "access_signature_example", # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
625
+ limit_atm_year: 56, # Integer | ATM year limit
626
+ limit_atm_month: 56, # Integer | ATM month limit
627
+ limit_atm_week: 56, # Integer | ATM week limit
628
+ limit_atm_day: 56, # Integer | ATM day limit
629
+ limit_atm_all: 56, # Integer | ATM from beginning limit
630
+ limit_payment_year: 56, # Integer | Payment year limit
631
+ limit_payment_month: 56, # Integer | Payment month limit
632
+ limit_payment_week: 56, # Integer | Payment week limit
633
+ limit_payment_day: 56, # Integer | Payment day limit
634
+ limit_payment_all: 56, # Integer | Payment from beginning limit
635
+ access_tag: "access_tag_example", # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
636
+ access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
637
+ access_user_ip: "access_user_ip_example" # String | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
638
+ }
639
+
640
+ begin
641
+ #update card's limits
642
+ result = api_instance.cards_id_limits_put(id, opts)
643
+ p result
644
+ rescue TreezorClient::ApiError => e
645
+ puts "Exception when calling CardApi->cards_id_limits_put: #{e}"
646
+ end
647
+ ```
648
+
649
+ ### Parameters
650
+
651
+ Name | Type | Description | Notes
652
+ ------------- | ------------- | ------------- | -------------
653
+ **id** | **Integer**| Card's id. |
654
+ **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
655
+ **limit_atm_year** | **Integer**| ATM year limit | [optional]
656
+ **limit_atm_month** | **Integer**| ATM month limit | [optional]
657
+ **limit_atm_week** | **Integer**| ATM week limit | [optional]
658
+ **limit_atm_day** | **Integer**| ATM day limit | [optional]
659
+ **limit_atm_all** | **Integer**| ATM from beginning limit | [optional]
660
+ **limit_payment_year** | **Integer**| Payment year limit | [optional]
661
+ **limit_payment_month** | **Integer**| Payment month limit | [optional]
662
+ **limit_payment_week** | **Integer**| Payment week limit | [optional]
663
+ **limit_payment_day** | **Integer**| Payment day limit | [optional]
664
+ **limit_payment_all** | **Integer**| Payment from beginning limit | [optional]
665
+ **access_tag** | **String**| Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics). | [optional]
666
+ **access_user_id** | **Integer**| Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
667
+ **access_user_ip** | **String**| Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
668
+
669
+ ### Return type
670
+
671
+ [**InlineResponse2006**](InlineResponse2006.md)
672
+
673
+ ### Authorization
674
+
675
+ [api_key](../README.md#api_key)
676
+
677
+ ### HTTP request headers
678
+
679
+ - **Content-Type**: Not defined
680
+ - **Accept**: Not defined
681
+
682
+
683
+
684
+ # **cards_id_lock_unlock_put**
685
+ > InlineResponse2006 cards_id_lock_unlock_put(id, lock_status, opts)
686
+
687
+ update card's blocking status
688
+
689
+ Block or unblock a card.
690
+
691
+ ### Example
692
+ ```ruby
693
+ # load the gem
694
+ require 'treezor_client'
695
+ # setup authorization
696
+ TreezorClient.configure do |config|
697
+ # Configure API key authorization: api_key
698
+ config.api_key['Authorization'] = 'YOUR API KEY'
699
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
700
+ #config.api_key_prefix['Authorization'] = 'Bearer'
701
+ end
702
+
703
+ api_instance = TreezorClient::CardApi.new
704
+
705
+ id = 56 # Integer | Card's id.
706
+
707
+ lock_status = 56 # Integer | | Value | Type | | --- | --- | | 1 | Block the card| | 0 | Unblock the card | | 2 | Lost card | | 3 | Stolen card |
708
+
709
+ opts = {
710
+ access_signature: "access_signature_example", # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
711
+ access_tag: "access_tag_example", # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
712
+ access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
713
+ access_user_ip: "access_user_ip_example" # String | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
714
+ }
715
+
716
+ begin
717
+ #update card's blocking status
718
+ result = api_instance.cards_id_lock_unlock_put(id, lock_status, opts)
719
+ p result
720
+ rescue TreezorClient::ApiError => e
721
+ puts "Exception when calling CardApi->cards_id_lock_unlock_put: #{e}"
722
+ end
723
+ ```
724
+
725
+ ### Parameters
726
+
727
+ Name | Type | Description | Notes
728
+ ------------- | ------------- | ------------- | -------------
729
+ **id** | **Integer**| Card's id. |
730
+ **lock_status** | **Integer**| | Value | Type | | --- | --- | | 1 | Block the card| | 0 | Unblock the card | | 2 | Lost card | | 3 | Stolen card | |
731
+ **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
732
+ **access_tag** | **String**| Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics). | [optional]
733
+ **access_user_id** | **Integer**| Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
734
+ **access_user_ip** | **String**| Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
735
+
736
+ ### Return type
737
+
738
+ [**InlineResponse2006**](InlineResponse2006.md)
739
+
740
+ ### Authorization
741
+
742
+ [api_key](../README.md#api_key)
743
+
744
+ ### HTTP request headers
745
+
746
+ - **Content-Type**: Not defined
747
+ - **Accept**: Not defined
748
+
749
+
750
+
751
+ # **cards_id_options_put**
752
+ > InlineResponse2006 cards_id_options_put(id, foreign, online, atm, nfc, opts)
753
+
754
+ update card's options
755
+
756
+ Allows to update card's permission group.
757
+
758
+ ### Example
759
+ ```ruby
760
+ # load the gem
761
+ require 'treezor_client'
762
+ # setup authorization
763
+ TreezorClient.configure do |config|
764
+ # Configure API key authorization: api_key
765
+ config.api_key['Authorization'] = 'YOUR API KEY'
766
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
767
+ #config.api_key_prefix['Authorization'] = 'Bearer'
768
+ end
769
+
770
+ api_instance = TreezorClient::CardApi.new
771
+
772
+ id = 56 # Integer | Card's id.
773
+
774
+ foreign = 56 # Integer | Card usable abroad
775
+
776
+ online = 56 # Integer | Card usable on-line
777
+
778
+ atm = 56 # Integer | Card usable on ATM (withdrawals)
779
+
780
+ nfc = 56 # Integer | Card usable on contactless compatible POS machine machine\"
781
+
782
+ opts = {
783
+ access_signature: "access_signature_example", # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
784
+ access_tag: "access_tag_example", # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
785
+ access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
786
+ access_user_ip: "access_user_ip_example" # String | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
787
+ }
788
+
789
+ begin
790
+ #update card's options
791
+ result = api_instance.cards_id_options_put(id, foreign, online, atm, nfc, opts)
792
+ p result
793
+ rescue TreezorClient::ApiError => e
794
+ puts "Exception when calling CardApi->cards_id_options_put: #{e}"
795
+ end
796
+ ```
797
+
798
+ ### Parameters
799
+
800
+ Name | Type | Description | Notes
801
+ ------------- | ------------- | ------------- | -------------
802
+ **id** | **Integer**| Card's id. |
803
+ **foreign** | **Integer**| Card usable abroad |
804
+ **online** | **Integer**| Card usable on-line |
805
+ **atm** | **Integer**| Card usable on ATM (withdrawals) |
806
+ **nfc** | **Integer**| Card usable on contactless compatible POS machine machine\" |
807
+ **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
808
+ **access_tag** | **String**| Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics). | [optional]
809
+ **access_user_id** | **Integer**| Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
810
+ **access_user_ip** | **String**| Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
811
+
812
+ ### Return type
813
+
814
+ [**InlineResponse2006**](InlineResponse2006.md)
815
+
816
+ ### Authorization
817
+
818
+ [api_key](../README.md#api_key)
819
+
820
+ ### HTTP request headers
821
+
822
+ - **Content-Type**: Not defined
823
+ - **Accept**: Not defined
824
+
825
+
826
+
827
+ # **cards_id_put**
828
+ > InlineResponse2006 cards_id_put(id, opts)
829
+
830
+ update card informations
831
+
832
+ Actually update mccRestrictionGroupId and merchantRestrictionGroupId of a card
833
+
834
+ ### Example
835
+ ```ruby
836
+ # load the gem
837
+ require 'treezor_client'
838
+ # setup authorization
839
+ TreezorClient.configure do |config|
840
+ # Configure API key authorization: api_key
841
+ config.api_key['Authorization'] = 'YOUR API KEY'
842
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
843
+ #config.api_key_prefix['Authorization'] = 'Bearer'
844
+ end
845
+
846
+ api_instance = TreezorClient::CardApi.new
847
+
848
+ id = 56 # Integer | Card's id.
849
+
850
+ opts = {
851
+ access_signature: "access_signature_example", # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
852
+ mcc_restriction_group_id: 56, # Integer | card's mccRestrictionGroupId
853
+ merchant_restriction_group_id: 56, # Integer | card's merchantRestrictionGroupId
854
+ country_restriction_group_id: 56, # Integer | card's countryRestrictionGroupId
855
+ access_tag: "access_tag_example", # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
856
+ access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
857
+ access_user_ip: "access_user_ip_example" # String | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
858
+ }
859
+
860
+ begin
861
+ #update card informations
862
+ result = api_instance.cards_id_put(id, opts)
863
+ p result
864
+ rescue TreezorClient::ApiError => e
865
+ puts "Exception when calling CardApi->cards_id_put: #{e}"
866
+ end
867
+ ```
868
+
869
+ ### Parameters
870
+
871
+ Name | Type | Description | Notes
872
+ ------------- | ------------- | ------------- | -------------
873
+ **id** | **Integer**| Card's id. |
874
+ **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
875
+ **mcc_restriction_group_id** | **Integer**| card's mccRestrictionGroupId | [optional]
876
+ **merchant_restriction_group_id** | **Integer**| card's merchantRestrictionGroupId | [optional]
877
+ **country_restriction_group_id** | **Integer**| card's countryRestrictionGroupId | [optional]
878
+ **access_tag** | **String**| Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics). | [optional]
879
+ **access_user_id** | **Integer**| Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
880
+ **access_user_ip** | **String**| Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
881
+
882
+ ### Return type
883
+
884
+ [**InlineResponse2006**](InlineResponse2006.md)
885
+
886
+ ### Authorization
887
+
888
+ [api_key](../README.md#api_key)
889
+
890
+ ### HTTP request headers
891
+
892
+ - **Content-Type**: Not defined
893
+ - **Accept**: Not defined
894
+
895
+
896
+
897
+ # **cards_id_regenerate_put**
898
+ > InlineResponse2006 cards_id_regenerate_put(id, opts)
899
+
900
+ regenerate card
901
+
902
+ If card is Lost or Stolen (card's status), the card itself will get regenerated. Otherwise only the card image gets recreated.
903
+
904
+ ### Example
905
+ ```ruby
906
+ # load the gem
907
+ require 'treezor_client'
908
+ # setup authorization
909
+ TreezorClient.configure do |config|
910
+ # Configure API key authorization: api_key
911
+ config.api_key['Authorization'] = 'YOUR API KEY'
912
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
913
+ #config.api_key_prefix['Authorization'] = 'Bearer'
914
+ end
915
+
916
+ api_instance = TreezorClient::CardApi.new
917
+
918
+ id = 56 # Integer | Card's id.
919
+
920
+ opts = {
921
+ access_signature: "access_signature_example", # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
922
+ access_tag: "access_tag_example", # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
923
+ access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
924
+ access_user_ip: "access_user_ip_example" # String | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
925
+ }
926
+
927
+ begin
928
+ #regenerate card
929
+ result = api_instance.cards_id_regenerate_put(id, opts)
930
+ p result
931
+ rescue TreezorClient::ApiError => e
932
+ puts "Exception when calling CardApi->cards_id_regenerate_put: #{e}"
933
+ end
934
+ ```
935
+
936
+ ### Parameters
937
+
938
+ Name | Type | Description | Notes
939
+ ------------- | ------------- | ------------- | -------------
940
+ **id** | **Integer**| Card's id. |
941
+ **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
942
+ **access_tag** | **String**| Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics). | [optional]
943
+ **access_user_id** | **Integer**| Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
944
+ **access_user_ip** | **String**| Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
945
+
946
+ ### Return type
947
+
948
+ [**InlineResponse2006**](InlineResponse2006.md)
949
+
950
+ ### Authorization
951
+
952
+ [api_key](../README.md#api_key)
953
+
954
+ ### HTTP request headers
955
+
956
+ - **Content-Type**: Not defined
957
+ - **Accept**: Not defined
958
+
959
+
960
+
961
+ # **cards_id_set_pin_put**
962
+ > InlineResponse2006 cards_id_set_pin_put(id, new_pin, confirm_pin, opts)
963
+
964
+ set card's PIN
965
+
966
+ Overwrite card's PIN.
967
+
968
+ ### Example
969
+ ```ruby
970
+ # load the gem
971
+ require 'treezor_client'
972
+ # setup authorization
973
+ TreezorClient.configure do |config|
974
+ # Configure API key authorization: api_key
975
+ config.api_key['Authorization'] = 'YOUR API KEY'
976
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
977
+ #config.api_key_prefix['Authorization'] = 'Bearer'
978
+ end
979
+
980
+ api_instance = TreezorClient::CardApi.new
981
+
982
+ id = 56 # Integer | Card's id.
983
+
984
+ new_pin = "new_pin_example" # String | Card's new PIN.
985
+
986
+ confirm_pin = "confirm_pin_example" # String | Card's new PIN confirmation value
987
+
988
+ opts = {
989
+ access_signature: "access_signature_example", # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
990
+ access_tag: "access_tag_example", # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
991
+ access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
992
+ access_user_ip: "access_user_ip_example" # String | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
993
+ }
994
+
995
+ begin
996
+ #set card's PIN
997
+ result = api_instance.cards_id_set_pin_put(id, new_pin, confirm_pin, opts)
998
+ p result
999
+ rescue TreezorClient::ApiError => e
1000
+ puts "Exception when calling CardApi->cards_id_set_pin_put: #{e}"
1001
+ end
1002
+ ```
1003
+
1004
+ ### Parameters
1005
+
1006
+ Name | Type | Description | Notes
1007
+ ------------- | ------------- | ------------- | -------------
1008
+ **id** | **Integer**| Card's id. |
1009
+ **new_pin** | **String**| Card's new PIN. |
1010
+ **confirm_pin** | **String**| Card's new PIN confirmation value |
1011
+ **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
1012
+ **access_tag** | **String**| Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics). | [optional]
1013
+ **access_user_id** | **Integer**| Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
1014
+ **access_user_ip** | **String**| Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
1015
+
1016
+ ### Return type
1017
+
1018
+ [**InlineResponse2006**](InlineResponse2006.md)
1019
+
1020
+ ### Authorization
1021
+
1022
+ [api_key](../README.md#api_key)
1023
+
1024
+ ### HTTP request headers
1025
+
1026
+ - **Content-Type**: Not defined
1027
+ - **Accept**: Not defined
1028
+
1029
+
1030
+
1031
+ # **cards_id_unblock_pin_put**
1032
+ > InlineResponse2006 cards_id_unblock_pin_put(id, opts)
1033
+
1034
+ unblock card's PIN
1035
+
1036
+ Unblock card's PIN code.
1037
+
1038
+ ### Example
1039
+ ```ruby
1040
+ # load the gem
1041
+ require 'treezor_client'
1042
+ # setup authorization
1043
+ TreezorClient.configure do |config|
1044
+ # Configure API key authorization: api_key
1045
+ config.api_key['Authorization'] = 'YOUR API KEY'
1046
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1047
+ #config.api_key_prefix['Authorization'] = 'Bearer'
1048
+ end
1049
+
1050
+ api_instance = TreezorClient::CardApi.new
1051
+
1052
+ id = 56 # Integer | Card's id.
1053
+
1054
+ opts = {
1055
+ access_signature: "access_signature_example", # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
1056
+ access_tag: "access_tag_example", # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
1057
+ access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
1058
+ access_user_ip: "access_user_ip_example" # String | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
1059
+ }
1060
+
1061
+ begin
1062
+ #unblock card's PIN
1063
+ result = api_instance.cards_id_unblock_pin_put(id, opts)
1064
+ p result
1065
+ rescue TreezorClient::ApiError => e
1066
+ puts "Exception when calling CardApi->cards_id_unblock_pin_put: #{e}"
1067
+ end
1068
+ ```
1069
+
1070
+ ### Parameters
1071
+
1072
+ Name | Type | Description | Notes
1073
+ ------------- | ------------- | ------------- | -------------
1074
+ **id** | **Integer**| Card's id. |
1075
+ **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
1076
+ **access_tag** | **String**| Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics). | [optional]
1077
+ **access_user_id** | **Integer**| Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
1078
+ **access_user_ip** | **String**| Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
1079
+
1080
+ ### Return type
1081
+
1082
+ [**InlineResponse2006**](InlineResponse2006.md)
1083
+
1084
+ ### Authorization
1085
+
1086
+ [api_key](../README.md#api_key)
1087
+
1088
+ ### HTTP request headers
1089
+
1090
+ - **Content-Type**: Not defined
1091
+ - **Accept**: Not defined
1092
+
1093
+
1094
+
1095
+ # **cards_request_physical_post**
1096
+ > InlineResponse2006 cards_request_physical_post(user_id, wallet_id, perms_group, card_tag, card_print, opts)
1097
+
1098
+ create a physical card
1099
+
1100
+ Create a new physical card. To use a card you will need to activate it (/cards/{id}/Activate/).
1101
+
1102
+ ### Example
1103
+ ```ruby
1104
+ # load the gem
1105
+ require 'treezor_client'
1106
+ # setup authorization
1107
+ TreezorClient.configure do |config|
1108
+ # Configure API key authorization: api_key
1109
+ config.api_key['Authorization'] = 'YOUR API KEY'
1110
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1111
+ #config.api_key_prefix['Authorization'] = 'Bearer'
1112
+ end
1113
+
1114
+ api_instance = TreezorClient::CardApi.new
1115
+
1116
+ user_id = 56 # Integer | User's id of cardholder
1117
+
1118
+ wallet_id = 56 # Integer | Wallet's Id in which to create the card
1119
+
1120
+ perms_group = "perms_group_example" # String | Permissions group of the card. There is 4 usages which create 16 possible groups: | group | NFC | ATM | On-line | Foreign | |-----|-----|-----|-----|------| |TRZ-CU-001|KO|KO|KO|KO| |TRZ-CU-002|KO|KO|KO|OK| |TRZ-CU-003|KO|KO|OK|KO| |TRZ-CU-004|KO|KO|OK|OK| |TRZ-CU-005|KO|OK|KO|KO| |TRZ-CU-006|KO|OK|KO|OK| |TRZ-CU-007|KO|OK|OK|KO| |TRZ-CU-008|KO|OK|OK|OK| |TRZ-CU-009|OK|KO|KO|KO| |TRZ-CU-010|OK|KO|KO|OK| |TRZ-CU-011|OK|KO|OK|KO| |TRZ-CU-012|OK|KO|OK|OK| |TRZ-CU-013|OK|OK|KO|KO| |TRZ-CU-014|OK|OK|KO|OK| |TRZ-CU-015|OK|OK|OK|KO| |TRZ-CU-016|OK|OK|OK|OK|
1121
+
1122
+ card_tag = "card_tag_example" # String | Custom field
1123
+
1124
+ card_print = "card_print_example" # String | Card appearance code, also used to choose the program ID of the card
1125
+
1126
+ opts = {
1127
+ access_signature: "access_signature_example", # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
1128
+ limit_atm_year: 56, # Integer | ATM operations limit for a sliding year. No default value.
1129
+ limit_atm_month: 56, # Integer | ATM operations limit for a sliding month. No default value.
1130
+ limit_atm_week: 56, # Integer | ATM operations limit for a sliding week. Default value 2000€.
1131
+ limit_atm_day: 56, # Integer | ATM operations limit for a single day. Default value 1000€.
1132
+ limit_atm_all: 56, # Integer | ATM operations limit from beginning. No default value.
1133
+ limit_payment_year: 56, # Integer | POS operations limit for a sliding year. No default value.
1134
+ limit_payment_month: 56, # Integer | POS operations limit for a sliding month. No default value.
1135
+ limit_payment_week: 56, # Integer | POS operations limit for a sliding week. Default value 3000€.
1136
+ limit_payment_day: 56, # Integer | POS operations limit for a single day. Default value 2000€.
1137
+ limit_payment_all: 56, # Integer | POS operations limit from beginning. No default value.
1138
+ pin: "pin_example", # String | Card's PIN code value. Default random PIN.
1139
+ anonymous: 56, # Integer | Card is anonymous. If value is 1 there will be no embossed name.
1140
+ send_to_parent: 56, # Integer | If you put the value 1 the delivery address will be the parent user's.
1141
+ mcc_restriction_group_id: 56, # Integer | mccRestrictionGroupId you want to apply
1142
+ merchant_restriction_group_id: 56, # Integer | merchantRestrictionGroupId you want to apply
1143
+ country_restriction_group_id: 56, # Integer | countryRestrictionGroupId you want to apply
1144
+ access_tag: "access_tag_example", # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
1145
+ access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
1146
+ access_user_ip: "access_user_ip_example" # String | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
1147
+ }
1148
+
1149
+ begin
1150
+ #create a physical card
1151
+ result = api_instance.cards_request_physical_post(user_id, wallet_id, perms_group, card_tag, card_print, opts)
1152
+ p result
1153
+ rescue TreezorClient::ApiError => e
1154
+ puts "Exception when calling CardApi->cards_request_physical_post: #{e}"
1155
+ end
1156
+ ```
1157
+
1158
+ ### Parameters
1159
+
1160
+ Name | Type | Description | Notes
1161
+ ------------- | ------------- | ------------- | -------------
1162
+ **user_id** | **Integer**| User's id of cardholder |
1163
+ **wallet_id** | **Integer**| Wallet's Id in which to create the card |
1164
+ **perms_group** | **String**| Permissions group of the card. There is 4 usages which create 16 possible groups: | group | NFC | ATM | On-line | Foreign | |-----|-----|-----|-----|------| |TRZ-CU-001|KO|KO|KO|KO| |TRZ-CU-002|KO|KO|KO|OK| |TRZ-CU-003|KO|KO|OK|KO| |TRZ-CU-004|KO|KO|OK|OK| |TRZ-CU-005|KO|OK|KO|KO| |TRZ-CU-006|KO|OK|KO|OK| |TRZ-CU-007|KO|OK|OK|KO| |TRZ-CU-008|KO|OK|OK|OK| |TRZ-CU-009|OK|KO|KO|KO| |TRZ-CU-010|OK|KO|KO|OK| |TRZ-CU-011|OK|KO|OK|KO| |TRZ-CU-012|OK|KO|OK|OK| |TRZ-CU-013|OK|OK|KO|KO| |TRZ-CU-014|OK|OK|KO|OK| |TRZ-CU-015|OK|OK|OK|KO| |TRZ-CU-016|OK|OK|OK|OK| |
1165
+ **card_tag** | **String**| Custom field |
1166
+ **card_print** | **String**| Card appearance code, also used to choose the program ID of the card |
1167
+ **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
1168
+ **limit_atm_year** | **Integer**| ATM operations limit for a sliding year. No default value. | [optional]
1169
+ **limit_atm_month** | **Integer**| ATM operations limit for a sliding month. No default value. | [optional]
1170
+ **limit_atm_week** | **Integer**| ATM operations limit for a sliding week. Default value 2000€. | [optional]
1171
+ **limit_atm_day** | **Integer**| ATM operations limit for a single day. Default value 1000€. | [optional]
1172
+ **limit_atm_all** | **Integer**| ATM operations limit from beginning. No default value. | [optional]
1173
+ **limit_payment_year** | **Integer**| POS operations limit for a sliding year. No default value. | [optional]
1174
+ **limit_payment_month** | **Integer**| POS operations limit for a sliding month. No default value. | [optional]
1175
+ **limit_payment_week** | **Integer**| POS operations limit for a sliding week. Default value 3000€. | [optional]
1176
+ **limit_payment_day** | **Integer**| POS operations limit for a single day. Default value 2000€. | [optional]
1177
+ **limit_payment_all** | **Integer**| POS operations limit from beginning. No default value. | [optional]
1178
+ **pin** | **String**| Card's PIN code value. Default random PIN. | [optional]
1179
+ **anonymous** | **Integer**| Card is anonymous. If value is 1 there will be no embossed name. | [optional]
1180
+ **send_to_parent** | **Integer**| If you put the value 1 the delivery address will be the parent user's. | [optional]
1181
+ **mcc_restriction_group_id** | **Integer**| mccRestrictionGroupId you want to apply | [optional]
1182
+ **merchant_restriction_group_id** | **Integer**| merchantRestrictionGroupId you want to apply | [optional]
1183
+ **country_restriction_group_id** | **Integer**| countryRestrictionGroupId you want to apply | [optional]
1184
+ **access_tag** | **String**| Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics). | [optional]
1185
+ **access_user_id** | **Integer**| Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
1186
+ **access_user_ip** | **String**| Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
1187
+
1188
+ ### Return type
1189
+
1190
+ [**InlineResponse2006**](InlineResponse2006.md)
1191
+
1192
+ ### Authorization
1193
+
1194
+ [api_key](../README.md#api_key)
1195
+
1196
+ ### HTTP request headers
1197
+
1198
+ - **Content-Type**: Not defined
1199
+ - **Accept**: Not defined
1200
+
1201
+
1202
+