{"info":{"_postman_id":"06598c62-46f6-4305-be0d-34ffb3fd2fa4","name":"donus-code-challenge","description":"<html><head></head><body><p>This API represents a transaction banking system.  </p>\n<p>Within it there are the possibilities of:</p>\n<ul>\n<li>Create customer account.</li>\n<li>Login to customer account.</li>\n<li>Create customer card.</li>\n<li>Search customer card.</li>\n<li>Customer deposits into his own account with debit or credit mode.</li>\n<li>The customer deposits into another customer's account with debit or credit mode.</li>\n<li>Get customer transaction history.</li>\n<li>Get the customer's transaction history by transfer type, debit or credit.</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"18385856","collectionId":"06598c62-46f6-4305-be0d-34ffb3fd2fa4","publishedId":"2s8YmLuNUK","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-11-16T17:23:35.000Z"},"item":[{"name":"Customer","item":[{"name":"Sing up","id":"8345d1c2-86ab-49f6-aa52-258ef4a14390","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"fullName\": \"Robin Hood\",\n    \"cpf\": \"98765432131231\",\n    \"email\": \"robinho@email.com\",\n    \"password\": \"Hood1377\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3011/user/signup","description":"<p>Create customer account.</p>\n","urlObject":{"protocol":"http","port":"3011","path":["user","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8345d1c2-86ab-49f6-aa52-258ef4a14390"},{"name":"Sing in","id":"d97b7c5c-b3e2-4f40-ac84-eef3f91fa6e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"robinho@email.com\",\n    \"password\": \"Hood1377\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3011/user/login","description":"<p>Login to customer account.</p>\n","urlObject":{"protocol":"http","port":"3011","path":["user","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d97b7c5c-b3e2-4f40-ac84-eef3f91fa6e4"}],"id":"690d1436-53c9-42ec-91f7-f36f74c237ba","_postman_id":"690d1436-53c9-42ec-91f7-f36f74c237ba","description":""},{"name":"Card","item":[{"name":"Create card customer","id":"688657ed-b01b-4125-ba5f-7104678de884","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjNmMDg1NDA1LWQ1ZjUtNDY4Mi05ZjQxLTNiMTdhYTg3M2MwMyIsImVtYWlsIjoiZmVAZW1haWwuY29tIiwiaWF0IjoxNjY4NTU1MjU4LCJleHAiOjE2Njg2MjAyNTh9.5y2H1QtI02FvmfEyDehK6aquUUKb19ZEkwYJ_HS0xqw","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"cardCustomerName\": \"Robin Hood\",\n   \"cardNumber\": \"765432131231\",\n   \"amount\": 100,\n   \"cvv\": \"321\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3011/user/createCard","description":"<p>Create customer card.</p>\n<p>Card number and card cvv will be encrypted</p>\n","urlObject":{"protocol":"http","port":"3011","path":["user","createCard"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"688657ed-b01b-4125-ba5f-7104678de884"},{"name":"Get card by customer","id":"196a3f9c-882a-4d2b-8357-0e73199309c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjNmMDg1NDA1LWQ1ZjUtNDY4Mi05ZjQxLTNiMTdhYTg3M2MwMyIsImVtYWlsIjoiZmVAZW1haWwuY29tIiwiaWF0IjoxNjY4NTY5MzQ5LCJleHAiOjE2Njg2MzQzNDl9.TxRcm6UMcZNcGgYgFD8KGFL3IXWLOdZ-HrnKA28vwKQ","type":"text"}],"url":"http://localhost:3011/user/card/all","description":"<p>Search customer card by token to customer</p>\n","urlObject":{"protocol":"http","port":"3011","path":["user","card","all"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"196a3f9c-882a-4d2b-8357-0e73199309c9"}],"id":"9b247a8b-049c-4137-943b-e59ff99cfecc","_postman_id":"9b247a8b-049c-4137-943b-e59ff99cfecc","description":""},{"name":"Payable","item":[{"name":"Deposit payable","id":"24be5da4-9914-4790-b26a-375cc71e199b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjNmMDg1NDA1LWQ1ZjUtNDY4Mi05ZjQxLTNiMTdhYTg3M2MwMyIsImVtYWlsIjoiZmVAZW1haWwuY29tIiwiaWF0IjoxNjY4NTY5MzQ5LCJleHAiOjE2Njg2MzQzNDl9.TxRcm6UMcZNcGgYgFD8KGFL3IXWLOdZ-HrnKA28vwKQ","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"paymentMethod\": \"CREDIT_CARD\",\n   \"value\": 2000,\n   \"description\": \"Pagamento do mês de Novembro\",\n   \"cardNumber\": \"765432131231\",\n   \"cvv\": \"321\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3011/user/depositPayable","description":"<p>Customer deposits into his own account with debit or credit mode.</p>\n<p>For <em>paymentMethod:</em> <em><strong>DEBIT_CARD</strong></em> transfer the status will enter as <strong>PAID</strong> and the payment date will remain for the same day.</p>\n<p>For <em>paymentMethod:</em> <em><strong>CREDIT_CARD</strong></em> transfers, the status will be <strong>WAITING_FUNDS</strong> and the payment date will be 30 days from now.</p>\n","urlObject":{"protocol":"http","port":"3011","path":["user","depositPayable"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"24be5da4-9914-4790-b26a-375cc71e199b"},{"name":"Transfer payable","id":"8592fb35-a9d0-4a65-baee-60d47a143a19","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjNmMDg1NDA1LWQ1ZjUtNDY4Mi05ZjQxLTNiMTdhYTg3M2MwMyIsImVtYWlsIjoiZmVAZW1haWwuY29tIiwiaWF0IjoxNjY4NjA3NTM0LCJleHAiOjE2Njg2NzI1MzR9.SMZJLxEGPdCGfhYIThZhk_bewY4-VS-VAdMf9SWpf2Y","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"paymentMethod\": \"DEBIT_CARD\",\n   \"value\": 2000,\n   \"description\": \"Pagando o melhor amigo\",\n   \"cardNumber\": \"765432131231\",\n   \"cvv\": \"321\",\n   \"idTransferCustomer\" : \"c9f87f38-a47b-48c6-9ca9-dd248d3b32d2\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3011/user/transferPayable","description":"<p>The customer deposits into another customer's account with debit or credit mode.</p>\n<p>For <em>paymentMethod:</em> <em><strong>DEBIT_CARD</strong></em> transfer the status will enter as <strong>PAID</strong> and the payment date will remain for the same day.</p>\n<p>For <em>paymentMethod:</em> <em><strong>CREDIT_CARD</strong></em> transfers, the status will be <strong>WAITING_FUNDS</strong> and the payment date will be 30 days from now.</p>\n","urlObject":{"protocol":"http","port":"3011","path":["user","transferPayable"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8592fb35-a9d0-4a65-baee-60d47a143a19"},{"name":"Get all payable by customer","id":"a994a266-8fcb-449a-9763-574c64cc6981","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjNmMDg1NDA1LWQ1ZjUtNDY4Mi05ZjQxLTNiMTdhYTg3M2MwMyIsImVtYWlsIjoiZmVAZW1haWwuY29tIiwiaWF0IjoxNjY4NTYwNTA4LCJleHAiOjE2Njg2MjU1MDh9.qHT6wPzg7M8Tm9Z2U4WCaj-4iM3qth5qaiReFzNDYsM","type":"text"}],"url":"http://localhost:3011/user/allpayable","description":"<p>Get customer transaction history by token.</p>\n","urlObject":{"protocol":"http","port":"3011","path":["user","allpayable"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a994a266-8fcb-449a-9763-574c64cc6981"},{"name":"Get payable by status","id":"1c96b378-8043-4f7f-ae7a-f48b78c5fa0e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjNmMDg1NDA1LWQ1ZjUtNDY4Mi05ZjQxLTNiMTdhYTg3M2MwMyIsImVtYWlsIjoiZmVAZW1haWwuY29tIiwiaWF0IjoxNjY4NTY5MzQ5LCJleHAiOjE2Njg2MzQzNDl9.TxRcm6UMcZNcGgYgFD8KGFL3IXWLOdZ-HrnKA28vwKQ","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"status\": \"WAITING_FUNDS\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3011/user/payable/status","description":"<p>Get customer transaction history by transfer type, debit or credit.</p>\n<p>For <em>paymentMethod:</em> <em><strong>DEBIT_CARD</strong></em> transfer the <em><strong>status</strong></em> will enter as <strong>PAID</strong> and the payment date will remain for the same day.</p>\n<p>For <em>paymentMethod:</em> <em><strong>CREDIT_CARD</strong></em> transfers, the <em><strong>status</strong></em> will be <strong>WAITING_FUNDS</strong> and the payment date will be 30 days from now.</p>\n<p>Body  </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"3011","path":["user","payable","status"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1c96b378-8043-4f7f-ae7a-f48b78c5fa0e"}],"id":"c5a52f0e-0c7a-463c-a81f-7078b50c4fb3","_postman_id":"c5a52f0e-0c7a-463c-a81f-7078b50c4fb3","description":""}]}