Last active
June 19, 2018 04:41
-
-
Save diegodfsd/b7f65c2ffc3004d55ec7cf48faa145a2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
http_interactions: | |
- request: | |
method: post | |
uri: https://api.iugu.com/v1/marketplace/create_account | |
body: | |
encoding: UTF-8 | |
string: '{"name":"John Doe Co.","commissions":{"cents":0,"percent":20,"credit_card_cents":0,"credit_card_percent":15,"bank_slip_cents":0,"bank_slip_percent":20},"account_id":null}' | |
headers: | |
Content-Type: | |
- application/json; charset=utf8 | |
Accept: | |
- application/json | |
Accept-Charset: | |
- UTF-8 | |
User-Agent: | |
- dalos-ruby/v1.0 | |
Accept-Encoding: | |
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3 | |
Authorization: | |
- Basic MmI4ZTk4ZDI2ZmZlNGZmMzI4ZWMwOWEwZjI1NmQ2ODc6Og== | |
response: | |
status: | |
code: 401 | |
message: Unauthorized | |
headers: | |
Cache-Control: | |
- no-cache | |
Content-Type: | |
- application/json; charset=utf-8 | |
Date: | |
- Mon, 18 Jun 2018 02:43:03 GMT | |
Vary: | |
- Origin | |
X-Rack-Cache: | |
- invalidate, pass | |
X-Request-Id: | |
- e1136eb9fce0fa0b61b0079f8450c5ad | |
X-Runtime: | |
- '0.019314' | |
X-Ua-Compatible: | |
- IE=Edge,chrome=1 | |
Connection: | |
- keep-alive | |
Set-Cookie: | |
- incap_ses_788_1185448=1tZBaKKa7DRVWaBaPorvCjccJ1sAAAAAPTRShWlhCf0QhF9GXylLNw==; | |
path=/; Domain=.iugu.com | |
- nlbi_1185448=5oKVLOfxI21YmhtzxHKSPgAAAABA3PKNZX9lVBT1/kTBcILr; path=/; Domain=.iugu.com | |
- visid_incap_1185448=ASrcGroaSjWxx1Ef3+oaGzccJ1sAAAAAQUIPAAAAAAD3Z4Nrjg3jJHy0i+wmZg0l; | |
expires=Mon, 17 Jun 2019 10:02:23 GMT; path=/; Domain=.iugu.com | |
X-Iinfo: | |
- 4-38802308-38802314 NNNN CT(0 0 0) RT(1529289783073 49) q(0 0 0 2) r(0 0) | |
U5 | |
X-Cdn: | |
- Incapsula | |
Transfer-Encoding: | |
- chunked | |
body: | |
encoding: ASCII-8BIT | |
string: '{"errors":"Apenas dispon\u00edvel para o ambiente produ\u00e7\u00e3o"}' | |
http_version: | |
recorded_at: Mon, 18 Jun 2018 02:43:03 GMT | |
recorded_with: VCR 4.0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- request: | |
method: post | |
uri: https://api.iugu.com/v1/charge | |
body: | |
encoding: UTF-8 | |
string: '{"email":"[email protected]","discount_cents":0,"items":[{"quantity":1,"price_cents":5000,"description":"item | |
1"}],"payer":{"cpf_cnpj":"93187592740","name":"Walter White","phone_prefix":"11","phone":"98123-4567","email":"[email protected]","address":{"street":"rua | |
desconhcida","number":"222","district":"bairro","city":"São Paulo","state":"SP","zip_code":"04531-000","complement":"complemento | |
opcional"}},"token":"B830259768BB4643851AB4A583DC8261","months":12,"account_id":null}' | |
headers: | |
Content-Type: | |
- application/json; charset=utf8 | |
Accept: | |
- application/json | |
Accept-Charset: | |
- UTF-8 | |
User-Agent: | |
- dalos-ruby/v1.0 | |
Accept-Encoding: | |
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3 | |
Authorization: | |
- Basic MmI4ZTk4ZDI2ZmZlNGZmMzI4ZWMwOWEwZjI1NmQ2ODc6Og== | |
response: | |
status: | |
code: 200 | |
message: OK | |
headers: | |
Cache-Control: | |
- max-age=0, private, must-revalidate | |
Content-Type: | |
- application/json; charset=utf-8 | |
Date: | |
- Tue, 19 Jun 2018 04:24:21 GMT | |
Etag: | |
- '"06a738f733d824dc37348a69a565bed1"' | |
Vary: | |
- Origin | |
X-Handledby: | |
- api/v1/charge#charge | |
X-Rack-Cache: | |
- invalidate, pass | |
X-Request-Id: | |
- 9b5eae4160c2626ccfafe43c8b57cd94 | |
X-Runtime: | |
- '2.931396' | |
X-Ua-Compatible: | |
- IE=Edge,chrome=1 | |
Connection: | |
- keep-alive | |
Set-Cookie: | |
- incap_ses_788_1185448=s4ZVAmUu4Xo4iaVdPorvCnSFKFsAAAAAnHiNRSy9tbhC4Pky+PAD6Q==; | |
path=/; Domain=.iugu.com | |
- nlbi_1185448=bbSpeUr/yGq03MoTxHKSPgAAAACoEUE9f0XfNqxTgjo9ybSI; path=/; Domain=.iugu.com | |
- visid_incap_1185448=7QdrmLa2S7eOMmY7tnioi3SFKFsAAAAAQUIPAAAAAAAidJWKHAIBqZAFB9PSzP2Q; | |
expires=Tue, 18 Jun 2019 10:02:24 GMT; path=/; Domain=.iugu.com | |
X-Iinfo: | |
- 14-158854191-158852334 PNNN RT(1529382257673 31) q(0 0 0 -1) r(29 29) U5 | |
X-Cdn: | |
- Incapsula | |
Transfer-Encoding: | |
- chunked | |
body: | |
encoding: ASCII-8BIT | |
string: '{"message":"base: Essa conta n\u00e3o suporta parcelamento","errors":{"base":["Essa | |
conta n\u00e3o suporta parcelamento"]},"success":false,"url":"https://faturas.iugu.com/a625b2b5-2b46-4fd9-881a-bb1d832da970-b296","pdf":"https://faturas.iugu.com/a625b2b5-2b46-4fd9-881a-bb1d832da970-b296.pdf","identification":null,"invoice_id":"A625B2B52B464FD9881ABB1D832DA970"}' | |
http_version: | |
recorded_at: Tue, 19 Jun 2018 04:24:21 GMT | |
recorded_with: VCR 4.0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- request: | |
method: post | |
uri: https://api.iugu.com/v1/charge | |
body: | |
encoding: UTF-8 | |
string: '{"email":"[email protected]","discount_cents":0,"items":{"quantity":1,"price_cents":10000,"description":"item | |
1"},"payer":{"cpf_cnpj":"93187592740","name":"Walter White","phone_prefix":"11","phone":"98123-4567","email":"[email protected]","address":{"street":"rua | |
desconhcida","number":"222","district":"bairro","city":"São Paulo","state":"SP","zip_code":"04531-000","complement":"complemento | |
opcional"}},"token":"7780B53CE34B4559947051411AFDEFEE","account_id":null}' | |
headers: | |
Content-Type: | |
- application/json; charset=utf8 | |
Accept: | |
- application/json | |
Accept-Charset: | |
- UTF-8 | |
User-Agent: | |
- dalos-ruby/v1.0 | |
Accept-Encoding: | |
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3 | |
Authorization: | |
- Basic MmI4ZTk4ZDI2ZmZlNGZmMzI4ZWMwOWEwZjI1NmQ2ODc6Og== | |
response: | |
status: | |
code: 400 | |
message: Bad Request | |
headers: | |
Cache-Control: | |
- no-cache | |
Content-Type: | |
- application/json; charset=utf-8 | |
Date: | |
- Tue, 19 Jun 2018 04:24:21 GMT | |
Vary: | |
- Origin | |
X-Handledby: | |
- api/v1/charge#charge | |
X-Rack-Cache: | |
- invalidate, pass | |
X-Request-Id: | |
- 7feec6260cbe600698f8eece21355e75 | |
X-Runtime: | |
- '0.199440' | |
X-Ua-Compatible: | |
- IE=Edge,chrome=1 | |
Connection: | |
- keep-alive | |
Set-Cookie: | |
- incap_ses_788_1185448=IsznRLdiPAZwiqVdPorvCnWFKFsAAAAAC/mb6mxpZqlzmxsO8IY62g==; | |
path=/; Domain=.iugu.com | |
- nlbi_1185448=vAw+XtBeRnUiO8tFxHKSPgAAAACt6RYYnYMuiI3EkqoBCTzg; path=/; Domain=.iugu.com | |
- visid_incap_1185448=tub8+Cz9TuKFDUMKKDJKW3WFKFsAAAAAQUIPAAAAAAC4DhPDqwy2pbs4SmjiWjkg; | |
expires=Tue, 18 Jun 2019 10:02:24 GMT; path=/; Domain=.iugu.com | |
X-Iinfo: | |
- 12-80955049-80955055 NNNN CT(0 0 0) RT(1529382260861 46) q(0 0 0 -1) r(2 2) | |
U5 | |
X-Cdn: | |
- Incapsula | |
Transfer-Encoding: | |
- chunked | |
body: | |
encoding: ASCII-8BIT | |
string: '{"errors":"\u00e9 maior que o limite atual de cobran\u00e7as com cart\u00e3o | |
de cr\u00e9dito dessa conta. (R$ 50,00)"}' | |
http_version: | |
recorded_at: Tue, 19 Jun 2018 04:24:22 GMT | |
recorded_with: VCR 4.0.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment