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
@@ -0,0 +1,1321 @@
1
+ =begin
2
+ #Treezor
3
+
4
+ #Treezor API. more info [here](https://www.treezor.com).
5
+
6
+ OpenAPI spec version: 0.1.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require "uri"
14
+
15
+ module TreezorClient
16
+ class CardApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # get a card image
24
+ # Return virtual card's image
25
+ # @param card_id Vitual card's id.
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
28
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
29
+ # @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
30
+ # @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
31
+ # @return [InlineResponse2007]
32
+ def cardimages_get(card_id, opts = {})
33
+ data, _status_code, _headers = cardimages_get_with_http_info(card_id, opts)
34
+ return data
35
+ end
36
+
37
+ # get a card image
38
+ # Return virtual card's image
39
+ # @param card_id Vitual card's id.
40
+ # @param [Hash] opts the optional parameters
41
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
42
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
43
+ # @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
44
+ # @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
45
+ # @return [Array<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers
46
+ def cardimages_get_with_http_info(card_id, opts = {})
47
+ if @api_client.config.debugging
48
+ @api_client.config.logger.debug "Calling API: CardApi.cardimages_get ..."
49
+ end
50
+ # verify the required parameter 'card_id' is set
51
+ if @api_client.config.client_side_validation && card_id.nil?
52
+ fail ArgumentError, "Missing the required parameter 'card_id' when calling CardApi.cardimages_get"
53
+ end
54
+ # resource path
55
+ local_var_path = "/cardimages"
56
+
57
+ # query parameters
58
+ query_params = {}
59
+ query_params[:'cardId'] = card_id
60
+ query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
61
+ query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
62
+ query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
63
+ query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
64
+
65
+ # header parameters
66
+ header_params = {}
67
+
68
+ # form parameters
69
+ form_params = {}
70
+
71
+ # http body (model)
72
+ post_body = nil
73
+ auth_names = ['api_key']
74
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
75
+ :header_params => header_params,
76
+ :query_params => query_params,
77
+ :form_params => form_params,
78
+ :body => post_body,
79
+ :auth_names => auth_names,
80
+ :return_type => 'InlineResponse2007')
81
+ if @api_client.config.debugging
82
+ @api_client.config.logger.debug "API called: CardApi#cardimages_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
83
+ end
84
+ return data, status_code, headers
85
+ end
86
+
87
+ # create a virtual card
88
+ # Create a new virtual card. To use a card you will need to activate it (/cards/{id}/Activate/).
89
+ # @param user_id User&#39;s id of cardholder
90
+ # @param wallet_id Wallet&#39;s Id in which to create the card
91
+ # @param perms_group 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|
92
+ # @param card_print Card appareance code, also used to choose the program ID of the card
93
+ # @param [Hash] opts the optional parameters
94
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
95
+ # @option opts [String] :card_tag Custom field
96
+ # @option opts [Integer] :limit_atm_year ATM operations limit for a sliding year. No default value.
97
+ # @option opts [Integer] :limit_atm_month ATM operations limit for a sliding month. No default value.
98
+ # @option opts [Integer] :limit_atm_week ATM operations limit for a sliding week. Default value 2000€.
99
+ # @option opts [Integer] :limit_atm_day ATM operations limit for a single day. Default value 1000€.
100
+ # @option opts [Integer] :limit_atm_all ATM operations limit from beginning. No default value.
101
+ # @option opts [Integer] :limit_payment_year POS operations limit for a sliding year. No default value.
102
+ # @option opts [Integer] :limit_payment_month POS operations limit for a sliding month. No default value.
103
+ # @option opts [Integer] :limit_payment_week POS operations limit for a sliding week. Default value 3000€.
104
+ # @option opts [Integer] :limit_payment_day POS operations limit for a single day. Default value 2000€.
105
+ # @option opts [Integer] :limit_payment_all POS operations limit from beginning. No default value.
106
+ # @option opts [String] :pin Card&#39;s PIN code value.
107
+ # @option opts [Integer] :anonymous Card is anonymous. If value is 1 there will be no embossed name.
108
+ # @option opts [Integer] :send_to_parent If you put the value 1 the delivery address will be the parent user&#39;s.
109
+ # @option opts [Integer] :mcc_restriction_group_id mccRestrictionGroupId you want to apply
110
+ # @option opts [Integer] :merchant_restriction_group_id merchantRestrictionGroupId you want to apply
111
+ # @option opts [Integer] :country_restriction_group_id countryRestrictionGroupId you want to apply
112
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
113
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
114
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
115
+ # @return [InlineResponse2006]
116
+ def cards_create_virtual_post(user_id, wallet_id, perms_group, card_print, opts = {})
117
+ data, _status_code, _headers = cards_create_virtual_post_with_http_info(user_id, wallet_id, perms_group, card_print, opts)
118
+ return data
119
+ end
120
+
121
+ # create a virtual card
122
+ # Create a new virtual card. To use a card you will need to activate it (/cards/{id}/Activate/).
123
+ # @param user_id User&#39;s id of cardholder
124
+ # @param wallet_id Wallet&#39;s Id in which to create the card
125
+ # @param perms_group 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|
126
+ # @param card_print Card appareance code, also used to choose the program ID of the card
127
+ # @param [Hash] opts the optional parameters
128
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
129
+ # @option opts [String] :card_tag Custom field
130
+ # @option opts [Integer] :limit_atm_year ATM operations limit for a sliding year. No default value.
131
+ # @option opts [Integer] :limit_atm_month ATM operations limit for a sliding month. No default value.
132
+ # @option opts [Integer] :limit_atm_week ATM operations limit for a sliding week. Default value 2000€.
133
+ # @option opts [Integer] :limit_atm_day ATM operations limit for a single day. Default value 1000€.
134
+ # @option opts [Integer] :limit_atm_all ATM operations limit from beginning. No default value.
135
+ # @option opts [Integer] :limit_payment_year POS operations limit for a sliding year. No default value.
136
+ # @option opts [Integer] :limit_payment_month POS operations limit for a sliding month. No default value.
137
+ # @option opts [Integer] :limit_payment_week POS operations limit for a sliding week. Default value 3000€.
138
+ # @option opts [Integer] :limit_payment_day POS operations limit for a single day. Default value 2000€.
139
+ # @option opts [Integer] :limit_payment_all POS operations limit from beginning. No default value.
140
+ # @option opts [String] :pin Card&#39;s PIN code value.
141
+ # @option opts [Integer] :anonymous Card is anonymous. If value is 1 there will be no embossed name.
142
+ # @option opts [Integer] :send_to_parent If you put the value 1 the delivery address will be the parent user&#39;s.
143
+ # @option opts [Integer] :mcc_restriction_group_id mccRestrictionGroupId you want to apply
144
+ # @option opts [Integer] :merchant_restriction_group_id merchantRestrictionGroupId you want to apply
145
+ # @option opts [Integer] :country_restriction_group_id countryRestrictionGroupId you want to apply
146
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
147
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
148
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
149
+ # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
150
+ def cards_create_virtual_post_with_http_info(user_id, wallet_id, perms_group, card_print, opts = {})
151
+ if @api_client.config.debugging
152
+ @api_client.config.logger.debug "Calling API: CardApi.cards_create_virtual_post ..."
153
+ end
154
+ # verify the required parameter 'user_id' is set
155
+ if @api_client.config.client_side_validation && user_id.nil?
156
+ fail ArgumentError, "Missing the required parameter 'user_id' when calling CardApi.cards_create_virtual_post"
157
+ end
158
+ # verify the required parameter 'wallet_id' is set
159
+ if @api_client.config.client_side_validation && wallet_id.nil?
160
+ fail ArgumentError, "Missing the required parameter 'wallet_id' when calling CardApi.cards_create_virtual_post"
161
+ end
162
+ # verify the required parameter 'perms_group' is set
163
+ if @api_client.config.client_side_validation && perms_group.nil?
164
+ fail ArgumentError, "Missing the required parameter 'perms_group' when calling CardApi.cards_create_virtual_post"
165
+ end
166
+ # verify the required parameter 'card_print' is set
167
+ if @api_client.config.client_side_validation && card_print.nil?
168
+ fail ArgumentError, "Missing the required parameter 'card_print' when calling CardApi.cards_create_virtual_post"
169
+ end
170
+ # resource path
171
+ local_var_path = "/cards/CreateVirtual"
172
+
173
+ # query parameters
174
+ query_params = {}
175
+ query_params[:'userId'] = user_id
176
+ query_params[:'walletId'] = wallet_id
177
+ query_params[:'permsGroup'] = perms_group
178
+ query_params[:'cardPrint'] = card_print
179
+ query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
180
+ query_params[:'cardTag'] = opts[:'card_tag'] if !opts[:'card_tag'].nil?
181
+ query_params[:'limitAtmYear'] = opts[:'limit_atm_year'] if !opts[:'limit_atm_year'].nil?
182
+ query_params[:'limitAtmMonth'] = opts[:'limit_atm_month'] if !opts[:'limit_atm_month'].nil?
183
+ query_params[:'limitAtmWeek'] = opts[:'limit_atm_week'] if !opts[:'limit_atm_week'].nil?
184
+ query_params[:'limitAtmDay'] = opts[:'limit_atm_day'] if !opts[:'limit_atm_day'].nil?
185
+ query_params[:'limitAtmAll'] = opts[:'limit_atm_all'] if !opts[:'limit_atm_all'].nil?
186
+ query_params[:'limitPaymentYear'] = opts[:'limit_payment_year'] if !opts[:'limit_payment_year'].nil?
187
+ query_params[:'limitPaymentMonth'] = opts[:'limit_payment_month'] if !opts[:'limit_payment_month'].nil?
188
+ query_params[:'limitPaymentWeek'] = opts[:'limit_payment_week'] if !opts[:'limit_payment_week'].nil?
189
+ query_params[:'limitPaymentDay'] = opts[:'limit_payment_day'] if !opts[:'limit_payment_day'].nil?
190
+ query_params[:'limitPaymentAll'] = opts[:'limit_payment_all'] if !opts[:'limit_payment_all'].nil?
191
+ query_params[:'pin'] = opts[:'pin'] if !opts[:'pin'].nil?
192
+ query_params[:'anonymous'] = opts[:'anonymous'] if !opts[:'anonymous'].nil?
193
+ query_params[:'sendToParent'] = opts[:'send_to_parent'] if !opts[:'send_to_parent'].nil?
194
+ query_params[:'mccRestrictionGroupId'] = opts[:'mcc_restriction_group_id'] if !opts[:'mcc_restriction_group_id'].nil?
195
+ query_params[:'merchantRestrictionGroupId'] = opts[:'merchant_restriction_group_id'] if !opts[:'merchant_restriction_group_id'].nil?
196
+ query_params[:'countryRestrictionGroupId'] = opts[:'country_restriction_group_id'] if !opts[:'country_restriction_group_id'].nil?
197
+ query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
198
+ query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
199
+ query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
200
+
201
+ # header parameters
202
+ header_params = {}
203
+
204
+ # form parameters
205
+ form_params = {}
206
+
207
+ # http body (model)
208
+ post_body = nil
209
+ auth_names = ['api_key']
210
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
211
+ :header_params => header_params,
212
+ :query_params => query_params,
213
+ :form_params => form_params,
214
+ :body => post_body,
215
+ :auth_names => auth_names,
216
+ :return_type => 'InlineResponse2006')
217
+ if @api_client.config.debugging
218
+ @api_client.config.logger.debug "API called: CardApi#cards_create_virtual_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
219
+ end
220
+ return data, status_code, headers
221
+ end
222
+
223
+ # search cards
224
+ #
225
+ # @param [Hash] opts the optional parameters
226
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
227
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
228
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
229
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
230
+ # @option opts [Integer] :card_id Card&#39;s id
231
+ # @option opts [Integer] :user_id User&#39;s id of cardholder
232
+ # @option opts [String] :embossed_name Embossed name of the card
233
+ # @option opts [String] :public_token Public token of the card
234
+ # @option opts [String] :perms_group 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|
235
+ # @option opts [Integer] :is_physical | Value | Type | | --- | --- | | 1 | Physical card| | 0 | Virtual card |
236
+ # @option opts [Integer] :is_converted | Value | Type | | --- | --- | | 1 | Physical card converted in a virtual card| | 0 | Not converted |
237
+ # @option opts [Integer] :lock_status | Value | Type | | --- | --- | | 1 | Card blocked | | 0 | Card Unblocked | | 2 | Lost card | | 3 | Stolen card |
238
+ # @option opts [Integer] :mcc_restriction_group_id mccRestrictionGroupId of the card
239
+ # @option opts [Integer] :merchant_restriction_group_id merchantRestrictionGroupId of the card
240
+ # @option opts [Integer] :country_restriction_group_id countryRestrictionGroupId of the card
241
+ # @option opts [Integer] :page_number Pagination page number. More info [here](https://agent.treezor.com/lists).
242
+ # @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
243
+ # @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists).
244
+ # @option opts [String] :sort_order 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).
245
+ # @option opts [DateTime] :created_date_from 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)
246
+ # @option opts [DateTime] :created_date_to 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)
247
+ # @option opts [DateTime] :updated_date_from 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)
248
+ # @option opts [DateTime] :updated_date_to 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)
249
+ # @return [InlineResponse2006]
250
+ def cards_get(opts = {})
251
+ data, _status_code, _headers = cards_get_with_http_info(opts)
252
+ return data
253
+ end
254
+
255
+ # search cards
256
+ #
257
+ # @param [Hash] opts the optional parameters
258
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
259
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
260
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
261
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
262
+ # @option opts [Integer] :card_id Card&#39;s id
263
+ # @option opts [Integer] :user_id User&#39;s id of cardholder
264
+ # @option opts [String] :embossed_name Embossed name of the card
265
+ # @option opts [String] :public_token Public token of the card
266
+ # @option opts [String] :perms_group 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|
267
+ # @option opts [Integer] :is_physical | Value | Type | | --- | --- | | 1 | Physical card| | 0 | Virtual card |
268
+ # @option opts [Integer] :is_converted | Value | Type | | --- | --- | | 1 | Physical card converted in a virtual card| | 0 | Not converted |
269
+ # @option opts [Integer] :lock_status | Value | Type | | --- | --- | | 1 | Card blocked | | 0 | Card Unblocked | | 2 | Lost card | | 3 | Stolen card |
270
+ # @option opts [Integer] :mcc_restriction_group_id mccRestrictionGroupId of the card
271
+ # @option opts [Integer] :merchant_restriction_group_id merchantRestrictionGroupId of the card
272
+ # @option opts [Integer] :country_restriction_group_id countryRestrictionGroupId of the card
273
+ # @option opts [Integer] :page_number Pagination page number. More info [here](https://agent.treezor.com/lists).
274
+ # @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
275
+ # @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists).
276
+ # @option opts [String] :sort_order 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).
277
+ # @option opts [DateTime] :created_date_from 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)
278
+ # @option opts [DateTime] :created_date_to 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)
279
+ # @option opts [DateTime] :updated_date_from 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)
280
+ # @option opts [DateTime] :updated_date_to 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)
281
+ # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
282
+ def cards_get_with_http_info(opts = {})
283
+ if @api_client.config.debugging
284
+ @api_client.config.logger.debug "Calling API: CardApi.cards_get ..."
285
+ end
286
+ # resource path
287
+ local_var_path = "/cards"
288
+
289
+ # query parameters
290
+ query_params = {}
291
+ query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
292
+ query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
293
+ query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
294
+ query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
295
+ query_params[:'cardId'] = opts[:'card_id'] if !opts[:'card_id'].nil?
296
+ query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
297
+ query_params[:'embossedName'] = opts[:'embossed_name'] if !opts[:'embossed_name'].nil?
298
+ query_params[:'publicToken'] = opts[:'public_token'] if !opts[:'public_token'].nil?
299
+ query_params[:'permsGroup'] = opts[:'perms_group'] if !opts[:'perms_group'].nil?
300
+ query_params[:'isPhysical'] = opts[:'is_physical'] if !opts[:'is_physical'].nil?
301
+ query_params[:'isConverted'] = opts[:'is_converted'] if !opts[:'is_converted'].nil?
302
+ query_params[:'lockStatus'] = opts[:'lock_status'] if !opts[:'lock_status'].nil?
303
+ query_params[:'mccRestrictionGroupId'] = opts[:'mcc_restriction_group_id'] if !opts[:'mcc_restriction_group_id'].nil?
304
+ query_params[:'merchantRestrictionGroupId'] = opts[:'merchant_restriction_group_id'] if !opts[:'merchant_restriction_group_id'].nil?
305
+ query_params[:'countryRestrictionGroupId'] = opts[:'country_restriction_group_id'] if !opts[:'country_restriction_group_id'].nil?
306
+ query_params[:'pageNumber'] = opts[:'page_number'] if !opts[:'page_number'].nil?
307
+ query_params[:'pageCount'] = opts[:'page_count'] if !opts[:'page_count'].nil?
308
+ query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
309
+ query_params[:'sortOrder'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
310
+ query_params[:'createdDateFrom'] = opts[:'created_date_from'] if !opts[:'created_date_from'].nil?
311
+ query_params[:'createdDateTo'] = opts[:'created_date_to'] if !opts[:'created_date_to'].nil?
312
+ query_params[:'updatedDateFrom'] = opts[:'updated_date_from'] if !opts[:'updated_date_from'].nil?
313
+ query_params[:'updatedDateTo'] = opts[:'updated_date_to'] if !opts[:'updated_date_to'].nil?
314
+
315
+ # header parameters
316
+ header_params = {}
317
+
318
+ # form parameters
319
+ form_params = {}
320
+
321
+ # http body (model)
322
+ post_body = nil
323
+ auth_names = ['api_key']
324
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
325
+ :header_params => header_params,
326
+ :query_params => query_params,
327
+ :form_params => form_params,
328
+ :body => post_body,
329
+ :auth_names => auth_names,
330
+ :return_type => 'InlineResponse2006')
331
+ if @api_client.config.debugging
332
+ @api_client.config.logger.debug "API called: CardApi#cards_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
333
+ end
334
+ return data, status_code, headers
335
+ end
336
+
337
+ # activate a card
338
+ # The Activate endpoint change card status to activate. An activated card can be freely used.
339
+ # @param id Card&#39;s id.
340
+ # @param [Hash] opts the optional parameters
341
+ # @option opts [String] :access_token Access token must be defined here or in Authorization HTTP header. More info [here](https://agent.treezor.com/security-authentication).
342
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
343
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
344
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
345
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
346
+ # @return [InlineResponse2006]
347
+ def cards_id_activate_put(id, opts = {})
348
+ data, _status_code, _headers = cards_id_activate_put_with_http_info(id, opts)
349
+ return data
350
+ end
351
+
352
+ # activate a card
353
+ # The Activate endpoint change card status to activate. An activated card can be freely used.
354
+ # @param id Card&#39;s id.
355
+ # @param [Hash] opts the optional parameters
356
+ # @option opts [String] :access_token Access token must be defined here or in Authorization HTTP header. More info [here](https://agent.treezor.com/security-authentication).
357
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
358
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
359
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
360
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
361
+ # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
362
+ def cards_id_activate_put_with_http_info(id, opts = {})
363
+ if @api_client.config.debugging
364
+ @api_client.config.logger.debug "Calling API: CardApi.cards_id_activate_put ..."
365
+ end
366
+ # verify the required parameter 'id' is set
367
+ if @api_client.config.client_side_validation && id.nil?
368
+ fail ArgumentError, "Missing the required parameter 'id' when calling CardApi.cards_id_activate_put"
369
+ end
370
+ # resource path
371
+ local_var_path = "/cards/{id}/Activate/".sub('{' + 'id' + '}', id.to_s)
372
+
373
+ # query parameters
374
+ query_params = {}
375
+ query_params[:'accessToken'] = opts[:'access_token'] if !opts[:'access_token'].nil?
376
+ query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
377
+ query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
378
+ query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
379
+ query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
380
+
381
+ # header parameters
382
+ header_params = {}
383
+
384
+ # form parameters
385
+ form_params = {}
386
+
387
+ # http body (model)
388
+ post_body = nil
389
+ auth_names = ['api_key']
390
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
391
+ :header_params => header_params,
392
+ :query_params => query_params,
393
+ :form_params => form_params,
394
+ :body => post_body,
395
+ :auth_names => auth_names,
396
+ :return_type => 'InlineResponse2006')
397
+ if @api_client.config.debugging
398
+ @api_client.config.logger.debug "API called: CardApi#cards_id_activate_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
399
+ end
400
+ return data, status_code, headers
401
+ end
402
+
403
+ # change card's PIN
404
+ # Change card's PIN code knowing the current one.
405
+ # @param id Card&#39;s id.
406
+ # @param current_pin Card&#39;s current PIN
407
+ # @param new_pin Card&#39;s new PIN
408
+ # @param confirm_pin Card&#39;s new PIN confirmation value
409
+ # @param [Hash] opts the optional parameters
410
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
411
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
412
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
413
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
414
+ # @return [InlineResponse2006]
415
+ def cards_id_change_pin_put(id, current_pin, new_pin, confirm_pin, opts = {})
416
+ data, _status_code, _headers = cards_id_change_pin_put_with_http_info(id, current_pin, new_pin, confirm_pin, opts)
417
+ return data
418
+ end
419
+
420
+ # change card&#39;s PIN
421
+ # Change card&#39;s PIN code knowing the current one.
422
+ # @param id Card&#39;s id.
423
+ # @param current_pin Card&#39;s current PIN
424
+ # @param new_pin Card&#39;s new PIN
425
+ # @param confirm_pin Card&#39;s new PIN confirmation value
426
+ # @param [Hash] opts the optional parameters
427
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
428
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
429
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
430
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
431
+ # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
432
+ def cards_id_change_pin_put_with_http_info(id, current_pin, new_pin, confirm_pin, opts = {})
433
+ if @api_client.config.debugging
434
+ @api_client.config.logger.debug "Calling API: CardApi.cards_id_change_pin_put ..."
435
+ end
436
+ # verify the required parameter 'id' is set
437
+ if @api_client.config.client_side_validation && id.nil?
438
+ fail ArgumentError, "Missing the required parameter 'id' when calling CardApi.cards_id_change_pin_put"
439
+ end
440
+ # verify the required parameter 'current_pin' is set
441
+ if @api_client.config.client_side_validation && current_pin.nil?
442
+ fail ArgumentError, "Missing the required parameter 'current_pin' when calling CardApi.cards_id_change_pin_put"
443
+ end
444
+ # verify the required parameter 'new_pin' is set
445
+ if @api_client.config.client_side_validation && new_pin.nil?
446
+ fail ArgumentError, "Missing the required parameter 'new_pin' when calling CardApi.cards_id_change_pin_put"
447
+ end
448
+ # verify the required parameter 'confirm_pin' is set
449
+ if @api_client.config.client_side_validation && confirm_pin.nil?
450
+ fail ArgumentError, "Missing the required parameter 'confirm_pin' when calling CardApi.cards_id_change_pin_put"
451
+ end
452
+ # resource path
453
+ local_var_path = "/cards/{id}/ChangePIN/".sub('{' + 'id' + '}', id.to_s)
454
+
455
+ # query parameters
456
+ query_params = {}
457
+ query_params[:'currentPIN'] = current_pin
458
+ query_params[:'newPIN'] = new_pin
459
+ query_params[:'confirmPIN'] = confirm_pin
460
+ query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
461
+ query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
462
+ query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
463
+ query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
464
+
465
+ # header parameters
466
+ header_params = {}
467
+
468
+ # form parameters
469
+ form_params = {}
470
+
471
+ # http body (model)
472
+ post_body = nil
473
+ auth_names = ['api_key']
474
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
475
+ :header_params => header_params,
476
+ :query_params => query_params,
477
+ :form_params => form_params,
478
+ :body => post_body,
479
+ :auth_names => auth_names,
480
+ :return_type => 'InlineResponse2006')
481
+ if @api_client.config.debugging
482
+ @api_client.config.logger.debug "API called: CardApi#cards_id_change_pin_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
483
+ end
484
+ return data, status_code, headers
485
+ end
486
+
487
+ # convert card to virtual
488
+ # Convert a virtual card into a physical one. The converted card will be both virtual and physical.
489
+ # @param id Card&#39;s id.
490
+ # @param [Hash] opts the optional parameters
491
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
492
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
493
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
494
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
495
+ # @return [InlineResponse2006]
496
+ def cards_id_convert_virtual_put(id, opts = {})
497
+ data, _status_code, _headers = cards_id_convert_virtual_put_with_http_info(id, opts)
498
+ return data
499
+ end
500
+
501
+ # convert card to virtual
502
+ # Convert a virtual card into a physical one. The converted card will be both virtual and physical.
503
+ # @param id Card&#39;s id.
504
+ # @param [Hash] opts the optional parameters
505
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
506
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
507
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
508
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
509
+ # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
510
+ def cards_id_convert_virtual_put_with_http_info(id, opts = {})
511
+ if @api_client.config.debugging
512
+ @api_client.config.logger.debug "Calling API: CardApi.cards_id_convert_virtual_put ..."
513
+ end
514
+ # verify the required parameter 'id' is set
515
+ if @api_client.config.client_side_validation && id.nil?
516
+ fail ArgumentError, "Missing the required parameter 'id' when calling CardApi.cards_id_convert_virtual_put"
517
+ end
518
+ # resource path
519
+ local_var_path = "/cards/{id}/ConvertVirtual/".sub('{' + 'id' + '}', id.to_s)
520
+
521
+ # query parameters
522
+ query_params = {}
523
+ query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
524
+ query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
525
+ query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
526
+ query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
527
+
528
+ # header parameters
529
+ header_params = {}
530
+
531
+ # form parameters
532
+ form_params = {}
533
+
534
+ # http body (model)
535
+ post_body = nil
536
+ auth_names = ['api_key']
537
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
538
+ :header_params => header_params,
539
+ :query_params => query_params,
540
+ :form_params => form_params,
541
+ :body => post_body,
542
+ :auth_names => auth_names,
543
+ :return_type => 'InlineResponse2006')
544
+ if @api_client.config.debugging
545
+ @api_client.config.logger.debug "API called: CardApi#cards_id_convert_virtual_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
546
+ end
547
+ return data, status_code, headers
548
+ end
549
+
550
+ # deactivate a card
551
+ #
552
+ # @param id Card&#39;s id.
553
+ # @param [Hash] opts the optional parameters
554
+ # @return [InlineResponse2006]
555
+ def cards_id_delete(id, opts = {})
556
+ data, _status_code, _headers = cards_id_delete_with_http_info(id, opts)
557
+ return data
558
+ end
559
+
560
+ # deactivate a card
561
+ #
562
+ # @param id Card&#39;s id.
563
+ # @param [Hash] opts the optional parameters
564
+ # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
565
+ def cards_id_delete_with_http_info(id, opts = {})
566
+ if @api_client.config.debugging
567
+ @api_client.config.logger.debug "Calling API: CardApi.cards_id_delete ..."
568
+ end
569
+ # verify the required parameter 'id' is set
570
+ if @api_client.config.client_side_validation && id.nil?
571
+ fail ArgumentError, "Missing the required parameter 'id' when calling CardApi.cards_id_delete"
572
+ end
573
+ # resource path
574
+ local_var_path = "/cards/{id}".sub('{' + 'id' + '}', id.to_s)
575
+
576
+ # query parameters
577
+ query_params = {}
578
+
579
+ # header parameters
580
+ header_params = {}
581
+
582
+ # form parameters
583
+ form_params = {}
584
+
585
+ # http body (model)
586
+ post_body = nil
587
+ auth_names = ['api_key']
588
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
589
+ :header_params => header_params,
590
+ :query_params => query_params,
591
+ :form_params => form_params,
592
+ :body => post_body,
593
+ :auth_names => auth_names,
594
+ :return_type => 'InlineResponse2006')
595
+ if @api_client.config.debugging
596
+ @api_client.config.logger.debug "API called: CardApi#cards_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
597
+ end
598
+ return data, status_code, headers
599
+ end
600
+
601
+ # get a card
602
+ #
603
+ # @param id Card&#39;s id.
604
+ # @param [Hash] opts the optional parameters
605
+ # @return [InlineResponse2006]
606
+ def cards_id_get(id, opts = {})
607
+ data, _status_code, _headers = cards_id_get_with_http_info(id, opts)
608
+ return data
609
+ end
610
+
611
+ # get a card
612
+ #
613
+ # @param id Card&#39;s id.
614
+ # @param [Hash] opts the optional parameters
615
+ # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
616
+ def cards_id_get_with_http_info(id, opts = {})
617
+ if @api_client.config.debugging
618
+ @api_client.config.logger.debug "Calling API: CardApi.cards_id_get ..."
619
+ end
620
+ # verify the required parameter 'id' is set
621
+ if @api_client.config.client_side_validation && id.nil?
622
+ fail ArgumentError, "Missing the required parameter 'id' when calling CardApi.cards_id_get"
623
+ end
624
+ # resource path
625
+ local_var_path = "/cards/{id}".sub('{' + 'id' + '}', id.to_s)
626
+
627
+ # query parameters
628
+ query_params = {}
629
+
630
+ # header parameters
631
+ header_params = {}
632
+
633
+ # form parameters
634
+ form_params = {}
635
+
636
+ # http body (model)
637
+ post_body = nil
638
+ auth_names = ['api_key']
639
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
640
+ :header_params => header_params,
641
+ :query_params => query_params,
642
+ :form_params => form_params,
643
+ :body => post_body,
644
+ :auth_names => auth_names,
645
+ :return_type => 'InlineResponse2006')
646
+ if @api_client.config.debugging
647
+ @api_client.config.logger.debug "API called: CardApi#cards_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
648
+ end
649
+ return data, status_code, headers
650
+ end
651
+
652
+ # update card's limits
653
+ # Update of the card limits.
654
+ # @param id Card&#39;s id.
655
+ # @param [Hash] opts the optional parameters
656
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
657
+ # @option opts [Integer] :limit_atm_year ATM year limit
658
+ # @option opts [Integer] :limit_atm_month ATM month limit
659
+ # @option opts [Integer] :limit_atm_week ATM week limit
660
+ # @option opts [Integer] :limit_atm_day ATM day limit
661
+ # @option opts [Integer] :limit_atm_all ATM from beginning limit
662
+ # @option opts [Integer] :limit_payment_year Payment year limit
663
+ # @option opts [Integer] :limit_payment_month Payment month limit
664
+ # @option opts [Integer] :limit_payment_week Payment week limit
665
+ # @option opts [Integer] :limit_payment_day Payment day limit
666
+ # @option opts [Integer] :limit_payment_all Payment from beginning limit
667
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
668
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
669
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
670
+ # @return [InlineResponse2006]
671
+ def cards_id_limits_put(id, opts = {})
672
+ data, _status_code, _headers = cards_id_limits_put_with_http_info(id, opts)
673
+ return data
674
+ end
675
+
676
+ # update card&#39;s limits
677
+ # Update of the card limits.
678
+ # @param id Card&#39;s id.
679
+ # @param [Hash] opts the optional parameters
680
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
681
+ # @option opts [Integer] :limit_atm_year ATM year limit
682
+ # @option opts [Integer] :limit_atm_month ATM month limit
683
+ # @option opts [Integer] :limit_atm_week ATM week limit
684
+ # @option opts [Integer] :limit_atm_day ATM day limit
685
+ # @option opts [Integer] :limit_atm_all ATM from beginning limit
686
+ # @option opts [Integer] :limit_payment_year Payment year limit
687
+ # @option opts [Integer] :limit_payment_month Payment month limit
688
+ # @option opts [Integer] :limit_payment_week Payment week limit
689
+ # @option opts [Integer] :limit_payment_day Payment day limit
690
+ # @option opts [Integer] :limit_payment_all Payment from beginning limit
691
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
692
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
693
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
694
+ # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
695
+ def cards_id_limits_put_with_http_info(id, opts = {})
696
+ if @api_client.config.debugging
697
+ @api_client.config.logger.debug "Calling API: CardApi.cards_id_limits_put ..."
698
+ end
699
+ # verify the required parameter 'id' is set
700
+ if @api_client.config.client_side_validation && id.nil?
701
+ fail ArgumentError, "Missing the required parameter 'id' when calling CardApi.cards_id_limits_put"
702
+ end
703
+ # resource path
704
+ local_var_path = "/cards/{id}/Limits/".sub('{' + 'id' + '}', id.to_s)
705
+
706
+ # query parameters
707
+ query_params = {}
708
+ query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
709
+ query_params[:'limitAtmYear'] = opts[:'limit_atm_year'] if !opts[:'limit_atm_year'].nil?
710
+ query_params[:'limitAtmMonth'] = opts[:'limit_atm_month'] if !opts[:'limit_atm_month'].nil?
711
+ query_params[:'limitAtmWeek'] = opts[:'limit_atm_week'] if !opts[:'limit_atm_week'].nil?
712
+ query_params[:'limitAtmDay'] = opts[:'limit_atm_day'] if !opts[:'limit_atm_day'].nil?
713
+ query_params[:'limitAtmAll'] = opts[:'limit_atm_all'] if !opts[:'limit_atm_all'].nil?
714
+ query_params[:'limitPaymentYear'] = opts[:'limit_payment_year'] if !opts[:'limit_payment_year'].nil?
715
+ query_params[:'limitPaymentMonth'] = opts[:'limit_payment_month'] if !opts[:'limit_payment_month'].nil?
716
+ query_params[:'limitPaymentWeek'] = opts[:'limit_payment_week'] if !opts[:'limit_payment_week'].nil?
717
+ query_params[:'limitPaymentDay'] = opts[:'limit_payment_day'] if !opts[:'limit_payment_day'].nil?
718
+ query_params[:'limitPaymentAll'] = opts[:'limit_payment_all'] if !opts[:'limit_payment_all'].nil?
719
+ query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
720
+ query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
721
+ query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
722
+
723
+ # header parameters
724
+ header_params = {}
725
+
726
+ # form parameters
727
+ form_params = {}
728
+
729
+ # http body (model)
730
+ post_body = nil
731
+ auth_names = ['api_key']
732
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
733
+ :header_params => header_params,
734
+ :query_params => query_params,
735
+ :form_params => form_params,
736
+ :body => post_body,
737
+ :auth_names => auth_names,
738
+ :return_type => 'InlineResponse2006')
739
+ if @api_client.config.debugging
740
+ @api_client.config.logger.debug "API called: CardApi#cards_id_limits_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
741
+ end
742
+ return data, status_code, headers
743
+ end
744
+
745
+ # update card's blocking status
746
+ # Block or unblock a card.
747
+ # @param id Card&#39;s id.
748
+ # @param lock_status | Value | Type | | --- | --- | | 1 | Block the card| | 0 | Unblock the card | | 2 | Lost card | | 3 | Stolen card |
749
+ # @param [Hash] opts the optional parameters
750
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
751
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
752
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
753
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
754
+ # @return [InlineResponse2006]
755
+ def cards_id_lock_unlock_put(id, lock_status, opts = {})
756
+ data, _status_code, _headers = cards_id_lock_unlock_put_with_http_info(id, lock_status, opts)
757
+ return data
758
+ end
759
+
760
+ # update card&#39;s blocking status
761
+ # Block or unblock a card.
762
+ # @param id Card&#39;s id.
763
+ # @param lock_status | Value | Type | | --- | --- | | 1 | Block the card| | 0 | Unblock the card | | 2 | Lost card | | 3 | Stolen card |
764
+ # @param [Hash] opts the optional parameters
765
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
766
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
767
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
768
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
769
+ # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
770
+ def cards_id_lock_unlock_put_with_http_info(id, lock_status, opts = {})
771
+ if @api_client.config.debugging
772
+ @api_client.config.logger.debug "Calling API: CardApi.cards_id_lock_unlock_put ..."
773
+ end
774
+ # verify the required parameter 'id' is set
775
+ if @api_client.config.client_side_validation && id.nil?
776
+ fail ArgumentError, "Missing the required parameter 'id' when calling CardApi.cards_id_lock_unlock_put"
777
+ end
778
+ # verify the required parameter 'lock_status' is set
779
+ if @api_client.config.client_side_validation && lock_status.nil?
780
+ fail ArgumentError, "Missing the required parameter 'lock_status' when calling CardApi.cards_id_lock_unlock_put"
781
+ end
782
+ # resource path
783
+ local_var_path = "/cards/{id}/LockUnlock/".sub('{' + 'id' + '}', id.to_s)
784
+
785
+ # query parameters
786
+ query_params = {}
787
+ query_params[:'lockStatus'] = lock_status
788
+ query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
789
+ query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
790
+ query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
791
+ query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
792
+
793
+ # header parameters
794
+ header_params = {}
795
+
796
+ # form parameters
797
+ form_params = {}
798
+
799
+ # http body (model)
800
+ post_body = nil
801
+ auth_names = ['api_key']
802
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
803
+ :header_params => header_params,
804
+ :query_params => query_params,
805
+ :form_params => form_params,
806
+ :body => post_body,
807
+ :auth_names => auth_names,
808
+ :return_type => 'InlineResponse2006')
809
+ if @api_client.config.debugging
810
+ @api_client.config.logger.debug "API called: CardApi#cards_id_lock_unlock_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
811
+ end
812
+ return data, status_code, headers
813
+ end
814
+
815
+ # update card's options
816
+ # Allows to update card's permission group.
817
+ # @param id Card&#39;s id.
818
+ # @param foreign Card usable abroad
819
+ # @param online Card usable on-line
820
+ # @param atm Card usable on ATM (withdrawals)
821
+ # @param nfc Card usable on contactless compatible POS machine machine\&quot;
822
+ # @param [Hash] opts the optional parameters
823
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
824
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
825
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
826
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
827
+ # @return [InlineResponse2006]
828
+ def cards_id_options_put(id, foreign, online, atm, nfc, opts = {})
829
+ data, _status_code, _headers = cards_id_options_put_with_http_info(id, foreign, online, atm, nfc, opts)
830
+ return data
831
+ end
832
+
833
+ # update card&#39;s options
834
+ # Allows to update card&#39;s permission group.
835
+ # @param id Card&#39;s id.
836
+ # @param foreign Card usable abroad
837
+ # @param online Card usable on-line
838
+ # @param atm Card usable on ATM (withdrawals)
839
+ # @param nfc Card usable on contactless compatible POS machine machine\&quot;
840
+ # @param [Hash] opts the optional parameters
841
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
842
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
843
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
844
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
845
+ # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
846
+ def cards_id_options_put_with_http_info(id, foreign, online, atm, nfc, opts = {})
847
+ if @api_client.config.debugging
848
+ @api_client.config.logger.debug "Calling API: CardApi.cards_id_options_put ..."
849
+ end
850
+ # verify the required parameter 'id' is set
851
+ if @api_client.config.client_side_validation && id.nil?
852
+ fail ArgumentError, "Missing the required parameter 'id' when calling CardApi.cards_id_options_put"
853
+ end
854
+ # verify the required parameter 'foreign' is set
855
+ if @api_client.config.client_side_validation && foreign.nil?
856
+ fail ArgumentError, "Missing the required parameter 'foreign' when calling CardApi.cards_id_options_put"
857
+ end
858
+ # verify the required parameter 'online' is set
859
+ if @api_client.config.client_side_validation && online.nil?
860
+ fail ArgumentError, "Missing the required parameter 'online' when calling CardApi.cards_id_options_put"
861
+ end
862
+ # verify the required parameter 'atm' is set
863
+ if @api_client.config.client_side_validation && atm.nil?
864
+ fail ArgumentError, "Missing the required parameter 'atm' when calling CardApi.cards_id_options_put"
865
+ end
866
+ # verify the required parameter 'nfc' is set
867
+ if @api_client.config.client_side_validation && nfc.nil?
868
+ fail ArgumentError, "Missing the required parameter 'nfc' when calling CardApi.cards_id_options_put"
869
+ end
870
+ # resource path
871
+ local_var_path = "/cards/{id}/Options/".sub('{' + 'id' + '}', id.to_s)
872
+
873
+ # query parameters
874
+ query_params = {}
875
+ query_params[:'foreign'] = foreign
876
+ query_params[:'online'] = online
877
+ query_params[:'atm'] = atm
878
+ query_params[:'nfc'] = nfc
879
+ query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
880
+ query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
881
+ query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
882
+ query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
883
+
884
+ # header parameters
885
+ header_params = {}
886
+
887
+ # form parameters
888
+ form_params = {}
889
+
890
+ # http body (model)
891
+ post_body = nil
892
+ auth_names = ['api_key']
893
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
894
+ :header_params => header_params,
895
+ :query_params => query_params,
896
+ :form_params => form_params,
897
+ :body => post_body,
898
+ :auth_names => auth_names,
899
+ :return_type => 'InlineResponse2006')
900
+ if @api_client.config.debugging
901
+ @api_client.config.logger.debug "API called: CardApi#cards_id_options_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
902
+ end
903
+ return data, status_code, headers
904
+ end
905
+
906
+ # update card informations
907
+ # Actually update mccRestrictionGroupId and merchantRestrictionGroupId of a card
908
+ # @param id Card&#39;s id.
909
+ # @param [Hash] opts the optional parameters
910
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
911
+ # @option opts [Integer] :mcc_restriction_group_id card&#39;s mccRestrictionGroupId
912
+ # @option opts [Integer] :merchant_restriction_group_id card&#39;s merchantRestrictionGroupId
913
+ # @option opts [Integer] :country_restriction_group_id card&#39;s countryRestrictionGroupId
914
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
915
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
916
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
917
+ # @return [InlineResponse2006]
918
+ def cards_id_put(id, opts = {})
919
+ data, _status_code, _headers = cards_id_put_with_http_info(id, opts)
920
+ return data
921
+ end
922
+
923
+ # update card informations
924
+ # Actually update mccRestrictionGroupId and merchantRestrictionGroupId of a card
925
+ # @param id Card&#39;s id.
926
+ # @param [Hash] opts the optional parameters
927
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
928
+ # @option opts [Integer] :mcc_restriction_group_id card&#39;s mccRestrictionGroupId
929
+ # @option opts [Integer] :merchant_restriction_group_id card&#39;s merchantRestrictionGroupId
930
+ # @option opts [Integer] :country_restriction_group_id card&#39;s countryRestrictionGroupId
931
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
932
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
933
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
934
+ # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
935
+ def cards_id_put_with_http_info(id, opts = {})
936
+ if @api_client.config.debugging
937
+ @api_client.config.logger.debug "Calling API: CardApi.cards_id_put ..."
938
+ end
939
+ # verify the required parameter 'id' is set
940
+ if @api_client.config.client_side_validation && id.nil?
941
+ fail ArgumentError, "Missing the required parameter 'id' when calling CardApi.cards_id_put"
942
+ end
943
+ # resource path
944
+ local_var_path = "/cards/{id}".sub('{' + 'id' + '}', id.to_s)
945
+
946
+ # query parameters
947
+ query_params = {}
948
+ query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
949
+ query_params[:'mccRestrictionGroupId'] = opts[:'mcc_restriction_group_id'] if !opts[:'mcc_restriction_group_id'].nil?
950
+ query_params[:'merchantRestrictionGroupId'] = opts[:'merchant_restriction_group_id'] if !opts[:'merchant_restriction_group_id'].nil?
951
+ query_params[:'countryRestrictionGroupId'] = opts[:'country_restriction_group_id'] if !opts[:'country_restriction_group_id'].nil?
952
+ query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
953
+ query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
954
+ query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
955
+
956
+ # header parameters
957
+ header_params = {}
958
+
959
+ # form parameters
960
+ form_params = {}
961
+
962
+ # http body (model)
963
+ post_body = nil
964
+ auth_names = ['api_key']
965
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
966
+ :header_params => header_params,
967
+ :query_params => query_params,
968
+ :form_params => form_params,
969
+ :body => post_body,
970
+ :auth_names => auth_names,
971
+ :return_type => 'InlineResponse2006')
972
+ if @api_client.config.debugging
973
+ @api_client.config.logger.debug "API called: CardApi#cards_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
974
+ end
975
+ return data, status_code, headers
976
+ end
977
+
978
+ # regenerate card
979
+ # If card is Lost or Stolen (card's status), the card itself will get regenerated. Otherwise only the card image gets recreated.
980
+ # @param id Card&#39;s id.
981
+ # @param [Hash] opts the optional parameters
982
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
983
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
984
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
985
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
986
+ # @return [InlineResponse2006]
987
+ def cards_id_regenerate_put(id, opts = {})
988
+ data, _status_code, _headers = cards_id_regenerate_put_with_http_info(id, opts)
989
+ return data
990
+ end
991
+
992
+ # regenerate card
993
+ # If card is Lost or Stolen (card&#39;s status), the card itself will get regenerated. Otherwise only the card image gets recreated.
994
+ # @param id Card&#39;s id.
995
+ # @param [Hash] opts the optional parameters
996
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
997
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
998
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
999
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
1000
+ # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
1001
+ def cards_id_regenerate_put_with_http_info(id, opts = {})
1002
+ if @api_client.config.debugging
1003
+ @api_client.config.logger.debug "Calling API: CardApi.cards_id_regenerate_put ..."
1004
+ end
1005
+ # verify the required parameter 'id' is set
1006
+ if @api_client.config.client_side_validation && id.nil?
1007
+ fail ArgumentError, "Missing the required parameter 'id' when calling CardApi.cards_id_regenerate_put"
1008
+ end
1009
+ # resource path
1010
+ local_var_path = "/cards/{id}/Regenerate/".sub('{' + 'id' + '}', id.to_s)
1011
+
1012
+ # query parameters
1013
+ query_params = {}
1014
+ query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
1015
+ query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
1016
+ query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
1017
+ query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
1018
+
1019
+ # header parameters
1020
+ header_params = {}
1021
+
1022
+ # form parameters
1023
+ form_params = {}
1024
+
1025
+ # http body (model)
1026
+ post_body = nil
1027
+ auth_names = ['api_key']
1028
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1029
+ :header_params => header_params,
1030
+ :query_params => query_params,
1031
+ :form_params => form_params,
1032
+ :body => post_body,
1033
+ :auth_names => auth_names,
1034
+ :return_type => 'InlineResponse2006')
1035
+ if @api_client.config.debugging
1036
+ @api_client.config.logger.debug "API called: CardApi#cards_id_regenerate_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1037
+ end
1038
+ return data, status_code, headers
1039
+ end
1040
+
1041
+ # set card's PIN
1042
+ # Overwrite card's PIN.
1043
+ # @param id Card&#39;s id.
1044
+ # @param new_pin Card&#39;s new PIN.
1045
+ # @param confirm_pin Card&#39;s new PIN confirmation value
1046
+ # @param [Hash] opts the optional parameters
1047
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
1048
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
1049
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
1050
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
1051
+ # @return [InlineResponse2006]
1052
+ def cards_id_set_pin_put(id, new_pin, confirm_pin, opts = {})
1053
+ data, _status_code, _headers = cards_id_set_pin_put_with_http_info(id, new_pin, confirm_pin, opts)
1054
+ return data
1055
+ end
1056
+
1057
+ # set card&#39;s PIN
1058
+ # Overwrite card&#39;s PIN.
1059
+ # @param id Card&#39;s id.
1060
+ # @param new_pin Card&#39;s new PIN.
1061
+ # @param confirm_pin Card&#39;s new PIN confirmation value
1062
+ # @param [Hash] opts the optional parameters
1063
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
1064
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
1065
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
1066
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
1067
+ # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
1068
+ def cards_id_set_pin_put_with_http_info(id, new_pin, confirm_pin, opts = {})
1069
+ if @api_client.config.debugging
1070
+ @api_client.config.logger.debug "Calling API: CardApi.cards_id_set_pin_put ..."
1071
+ end
1072
+ # verify the required parameter 'id' is set
1073
+ if @api_client.config.client_side_validation && id.nil?
1074
+ fail ArgumentError, "Missing the required parameter 'id' when calling CardApi.cards_id_set_pin_put"
1075
+ end
1076
+ # verify the required parameter 'new_pin' is set
1077
+ if @api_client.config.client_side_validation && new_pin.nil?
1078
+ fail ArgumentError, "Missing the required parameter 'new_pin' when calling CardApi.cards_id_set_pin_put"
1079
+ end
1080
+ # verify the required parameter 'confirm_pin' is set
1081
+ if @api_client.config.client_side_validation && confirm_pin.nil?
1082
+ fail ArgumentError, "Missing the required parameter 'confirm_pin' when calling CardApi.cards_id_set_pin_put"
1083
+ end
1084
+ # resource path
1085
+ local_var_path = "/cards/{id}/setPIN/".sub('{' + 'id' + '}', id.to_s)
1086
+
1087
+ # query parameters
1088
+ query_params = {}
1089
+ query_params[:'newPIN'] = new_pin
1090
+ query_params[:'confirmPIN'] = confirm_pin
1091
+ query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
1092
+ query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
1093
+ query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
1094
+ query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
1095
+
1096
+ # header parameters
1097
+ header_params = {}
1098
+
1099
+ # form parameters
1100
+ form_params = {}
1101
+
1102
+ # http body (model)
1103
+ post_body = nil
1104
+ auth_names = ['api_key']
1105
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1106
+ :header_params => header_params,
1107
+ :query_params => query_params,
1108
+ :form_params => form_params,
1109
+ :body => post_body,
1110
+ :auth_names => auth_names,
1111
+ :return_type => 'InlineResponse2006')
1112
+ if @api_client.config.debugging
1113
+ @api_client.config.logger.debug "API called: CardApi#cards_id_set_pin_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1114
+ end
1115
+ return data, status_code, headers
1116
+ end
1117
+
1118
+ # unblock card's PIN
1119
+ # Unblock card's PIN code.
1120
+ # @param id Card&#39;s id.
1121
+ # @param [Hash] opts the optional parameters
1122
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
1123
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
1124
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
1125
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
1126
+ # @return [InlineResponse2006]
1127
+ def cards_id_unblock_pin_put(id, opts = {})
1128
+ data, _status_code, _headers = cards_id_unblock_pin_put_with_http_info(id, opts)
1129
+ return data
1130
+ end
1131
+
1132
+ # unblock card&#39;s PIN
1133
+ # Unblock card&#39;s PIN code.
1134
+ # @param id Card&#39;s id.
1135
+ # @param [Hash] opts the optional parameters
1136
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
1137
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
1138
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
1139
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
1140
+ # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
1141
+ def cards_id_unblock_pin_put_with_http_info(id, opts = {})
1142
+ if @api_client.config.debugging
1143
+ @api_client.config.logger.debug "Calling API: CardApi.cards_id_unblock_pin_put ..."
1144
+ end
1145
+ # verify the required parameter 'id' is set
1146
+ if @api_client.config.client_side_validation && id.nil?
1147
+ fail ArgumentError, "Missing the required parameter 'id' when calling CardApi.cards_id_unblock_pin_put"
1148
+ end
1149
+ # resource path
1150
+ local_var_path = "/cards/{id}/UnblockPIN/".sub('{' + 'id' + '}', id.to_s)
1151
+
1152
+ # query parameters
1153
+ query_params = {}
1154
+ query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
1155
+ query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
1156
+ query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
1157
+ query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
1158
+
1159
+ # header parameters
1160
+ header_params = {}
1161
+
1162
+ # form parameters
1163
+ form_params = {}
1164
+
1165
+ # http body (model)
1166
+ post_body = nil
1167
+ auth_names = ['api_key']
1168
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1169
+ :header_params => header_params,
1170
+ :query_params => query_params,
1171
+ :form_params => form_params,
1172
+ :body => post_body,
1173
+ :auth_names => auth_names,
1174
+ :return_type => 'InlineResponse2006')
1175
+ if @api_client.config.debugging
1176
+ @api_client.config.logger.debug "API called: CardApi#cards_id_unblock_pin_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1177
+ end
1178
+ return data, status_code, headers
1179
+ end
1180
+
1181
+ # create a physical card
1182
+ # Create a new physical card. To use a card you will need to activate it (/cards/{id}/Activate/).
1183
+ # @param user_id User&#39;s id of cardholder
1184
+ # @param wallet_id Wallet&#39;s Id in which to create the card
1185
+ # @param perms_group 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|
1186
+ # @param card_tag Custom field
1187
+ # @param card_print Card appearance code, also used to choose the program ID of the card
1188
+ # @param [Hash] opts the optional parameters
1189
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
1190
+ # @option opts [Integer] :limit_atm_year ATM operations limit for a sliding year. No default value.
1191
+ # @option opts [Integer] :limit_atm_month ATM operations limit for a sliding month. No default value.
1192
+ # @option opts [Integer] :limit_atm_week ATM operations limit for a sliding week. Default value 2000€.
1193
+ # @option opts [Integer] :limit_atm_day ATM operations limit for a single day. Default value 1000€.
1194
+ # @option opts [Integer] :limit_atm_all ATM operations limit from beginning. No default value.
1195
+ # @option opts [Integer] :limit_payment_year POS operations limit for a sliding year. No default value.
1196
+ # @option opts [Integer] :limit_payment_month POS operations limit for a sliding month. No default value.
1197
+ # @option opts [Integer] :limit_payment_week POS operations limit for a sliding week. Default value 3000€.
1198
+ # @option opts [Integer] :limit_payment_day POS operations limit for a single day. Default value 2000€.
1199
+ # @option opts [Integer] :limit_payment_all POS operations limit from beginning. No default value.
1200
+ # @option opts [String] :pin Card&#39;s PIN code value. Default random PIN.
1201
+ # @option opts [Integer] :anonymous Card is anonymous. If value is 1 there will be no embossed name.
1202
+ # @option opts [Integer] :send_to_parent If you put the value 1 the delivery address will be the parent user&#39;s.
1203
+ # @option opts [Integer] :mcc_restriction_group_id mccRestrictionGroupId you want to apply
1204
+ # @option opts [Integer] :merchant_restriction_group_id merchantRestrictionGroupId you want to apply
1205
+ # @option opts [Integer] :country_restriction_group_id countryRestrictionGroupId you want to apply
1206
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
1207
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
1208
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
1209
+ # @return [InlineResponse2006]
1210
+ def cards_request_physical_post(user_id, wallet_id, perms_group, card_tag, card_print, opts = {})
1211
+ data, _status_code, _headers = cards_request_physical_post_with_http_info(user_id, wallet_id, perms_group, card_tag, card_print, opts)
1212
+ return data
1213
+ end
1214
+
1215
+ # create a physical card
1216
+ # Create a new physical card. To use a card you will need to activate it (/cards/{id}/Activate/).
1217
+ # @param user_id User&#39;s id of cardholder
1218
+ # @param wallet_id Wallet&#39;s Id in which to create the card
1219
+ # @param perms_group 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|
1220
+ # @param card_tag Custom field
1221
+ # @param card_print Card appearance code, also used to choose the program ID of the card
1222
+ # @param [Hash] opts the optional parameters
1223
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
1224
+ # @option opts [Integer] :limit_atm_year ATM operations limit for a sliding year. No default value.
1225
+ # @option opts [Integer] :limit_atm_month ATM operations limit for a sliding month. No default value.
1226
+ # @option opts [Integer] :limit_atm_week ATM operations limit for a sliding week. Default value 2000€.
1227
+ # @option opts [Integer] :limit_atm_day ATM operations limit for a single day. Default value 1000€.
1228
+ # @option opts [Integer] :limit_atm_all ATM operations limit from beginning. No default value.
1229
+ # @option opts [Integer] :limit_payment_year POS operations limit for a sliding year. No default value.
1230
+ # @option opts [Integer] :limit_payment_month POS operations limit for a sliding month. No default value.
1231
+ # @option opts [Integer] :limit_payment_week POS operations limit for a sliding week. Default value 3000€.
1232
+ # @option opts [Integer] :limit_payment_day POS operations limit for a single day. Default value 2000€.
1233
+ # @option opts [Integer] :limit_payment_all POS operations limit from beginning. No default value.
1234
+ # @option opts [String] :pin Card&#39;s PIN code value. Default random PIN.
1235
+ # @option opts [Integer] :anonymous Card is anonymous. If value is 1 there will be no embossed name.
1236
+ # @option opts [Integer] :send_to_parent If you put the value 1 the delivery address will be the parent user&#39;s.
1237
+ # @option opts [Integer] :mcc_restriction_group_id mccRestrictionGroupId you want to apply
1238
+ # @option opts [Integer] :merchant_restriction_group_id merchantRestrictionGroupId you want to apply
1239
+ # @option opts [Integer] :country_restriction_group_id countryRestrictionGroupId you want to apply
1240
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
1241
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
1242
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
1243
+ # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
1244
+ def cards_request_physical_post_with_http_info(user_id, wallet_id, perms_group, card_tag, card_print, opts = {})
1245
+ if @api_client.config.debugging
1246
+ @api_client.config.logger.debug "Calling API: CardApi.cards_request_physical_post ..."
1247
+ end
1248
+ # verify the required parameter 'user_id' is set
1249
+ if @api_client.config.client_side_validation && user_id.nil?
1250
+ fail ArgumentError, "Missing the required parameter 'user_id' when calling CardApi.cards_request_physical_post"
1251
+ end
1252
+ # verify the required parameter 'wallet_id' is set
1253
+ if @api_client.config.client_side_validation && wallet_id.nil?
1254
+ fail ArgumentError, "Missing the required parameter 'wallet_id' when calling CardApi.cards_request_physical_post"
1255
+ end
1256
+ # verify the required parameter 'perms_group' is set
1257
+ if @api_client.config.client_side_validation && perms_group.nil?
1258
+ fail ArgumentError, "Missing the required parameter 'perms_group' when calling CardApi.cards_request_physical_post"
1259
+ end
1260
+ # verify the required parameter 'card_tag' is set
1261
+ if @api_client.config.client_side_validation && card_tag.nil?
1262
+ fail ArgumentError, "Missing the required parameter 'card_tag' when calling CardApi.cards_request_physical_post"
1263
+ end
1264
+ # verify the required parameter 'card_print' is set
1265
+ if @api_client.config.client_side_validation && card_print.nil?
1266
+ fail ArgumentError, "Missing the required parameter 'card_print' when calling CardApi.cards_request_physical_post"
1267
+ end
1268
+ # resource path
1269
+ local_var_path = "/cards/RequestPhysical"
1270
+
1271
+ # query parameters
1272
+ query_params = {}
1273
+ query_params[:'userId'] = user_id
1274
+ query_params[:'walletId'] = wallet_id
1275
+ query_params[:'permsGroup'] = perms_group
1276
+ query_params[:'cardTag'] = card_tag
1277
+ query_params[:'cardPrint'] = card_print
1278
+ query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
1279
+ query_params[:'limitAtmYear'] = opts[:'limit_atm_year'] if !opts[:'limit_atm_year'].nil?
1280
+ query_params[:'limitAtmMonth'] = opts[:'limit_atm_month'] if !opts[:'limit_atm_month'].nil?
1281
+ query_params[:'limitAtmWeek'] = opts[:'limit_atm_week'] if !opts[:'limit_atm_week'].nil?
1282
+ query_params[:'limitAtmDay'] = opts[:'limit_atm_day'] if !opts[:'limit_atm_day'].nil?
1283
+ query_params[:'limitAtmAll'] = opts[:'limit_atm_all'] if !opts[:'limit_atm_all'].nil?
1284
+ query_params[:'limitPaymentYear'] = opts[:'limit_payment_year'] if !opts[:'limit_payment_year'].nil?
1285
+ query_params[:'limitPaymentMonth'] = opts[:'limit_payment_month'] if !opts[:'limit_payment_month'].nil?
1286
+ query_params[:'limitPaymentWeek'] = opts[:'limit_payment_week'] if !opts[:'limit_payment_week'].nil?
1287
+ query_params[:'limitPaymentDay'] = opts[:'limit_payment_day'] if !opts[:'limit_payment_day'].nil?
1288
+ query_params[:'limitPaymentAll'] = opts[:'limit_payment_all'] if !opts[:'limit_payment_all'].nil?
1289
+ query_params[:'pin'] = opts[:'pin'] if !opts[:'pin'].nil?
1290
+ query_params[:'anonymous'] = opts[:'anonymous'] if !opts[:'anonymous'].nil?
1291
+ query_params[:'sendToParent'] = opts[:'send_to_parent'] if !opts[:'send_to_parent'].nil?
1292
+ query_params[:'mccRestrictionGroupId'] = opts[:'mcc_restriction_group_id'] if !opts[:'mcc_restriction_group_id'].nil?
1293
+ query_params[:'merchantRestrictionGroupId'] = opts[:'merchant_restriction_group_id'] if !opts[:'merchant_restriction_group_id'].nil?
1294
+ query_params[:'countryRestrictionGroupId'] = opts[:'country_restriction_group_id'] if !opts[:'country_restriction_group_id'].nil?
1295
+ query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
1296
+ query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
1297
+ query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
1298
+
1299
+ # header parameters
1300
+ header_params = {}
1301
+
1302
+ # form parameters
1303
+ form_params = {}
1304
+
1305
+ # http body (model)
1306
+ post_body = nil
1307
+ auth_names = ['api_key']
1308
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1309
+ :header_params => header_params,
1310
+ :query_params => query_params,
1311
+ :form_params => form_params,
1312
+ :body => post_body,
1313
+ :auth_names => auth_names,
1314
+ :return_type => 'InlineResponse2006')
1315
+ if @api_client.config.debugging
1316
+ @api_client.config.logger.debug "API called: CardApi#cards_request_physical_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1317
+ end
1318
+ return data, status_code, headers
1319
+ end
1320
+ end
1321
+ end