vcr_cassettes/create_partial_refunded_order.yml
---
http_interactions:
- request:
method: post
uri: https://01010101010101010101010101010101:ABABABABABABABABABABABABABABABABABABABAB@sandbox.moip.com.br/v2/orders/ORD-6K8XPJD9O2KH/refunds
body:
encoding: UTF-8
string: '{"amount":100}'
headers:
Content-Type:
- application/json
response:
status:
code: 201
message: Created
headers:
Server:
- nginx
Date:
- Fri, 27 Feb 2015 20:56:23 GMT
Content-Type:
- application/json
Content-Length:
- '688'
Connection:
- keep-alive
Status:
- 201 Created
Vary:
- Accept-Encoding
X-Content-Type-Options:
- nosniff
body:
encoding: UTF-8
string: '{"id":"REF-QW4T48M7NDFH","status":"COMPLETED","events":[{"createdAt":"2015-02-27T17:56:22-0300","type":"REFUND.COMPLETED"},{"createdAt":"2015-02-27T17:56:21-0300","type":"REFUND.REQUESTED"}],"amount":{"fees":0,"currency":"BRL","total":100},"type":"PARTIAL","refundingInstrument":{"creditCard":{"brand":"VISA","first6":"401200","last4":"3335"},"method":"CREDIT_CARD"},"createdAt":"2015-02-27T17:56:21-0300","_links":{"payment":{"title":"PAY-5VWJOESX1BWB","href":"https://sandbox.moip.com.br/v2/payments/PAY-5VWJOESX1BWB"},"order":{"title":"ORD-6K8XPJD9O2KH","href":"https://sandbox.moip.com.br/v2/orders/ORD-6K8XPJD9O2KH"},"self":{"href":"https://sandbox.moip.com.br/v2/refunds/REF-QW4T48M7NDFH"}}}'
http_version:
recorded_at: Fri, 27 Feb 2015 20:56:21 GMT
recorded_with: VCR 2.9.3