Sha256: 2825188a09e0cf34f832e5f97d0990c1edab08b2611ab12fdd7a4b6afa0b6285

Contents?: true

Size: 1.83 KB

Versions: 8

Compression:

Stored size: 1.83 KB

Contents

---
http_interactions:
- request:
    method: post
    uri: http://tophatter.dev/merchant_api/v1/orders/refund.json
    body:
      encoding: UTF-8
      string: order_id=359887509&type=partial&reason=delay_in_shipping&fees[]=shipping_fee&access_token=d8f979fc7d14fec0b075c0b73dbafb59
    headers:
      Accept:
      - "*/*; q=0.5, application/xml"
      Accept-Encoding:
      - gzip, deflate
      Content-Length:
      - '122'
      Content-Type:
      - application/x-www-form-urlencoded
      User-Agent:
      - Ruby
  response:
    status:
      code: 200
      message: OK
    headers:
      X-Frame-Options:
      - SAMEORIGIN
      X-Xss-Protection:
      - 1; mode=block
      X-Content-Type-Options:
      - nosniff
      Content-Type:
      - application/json; charset=utf-8
      Etag:
      - W/"185bec251d52dc9d5d905f963efdd329"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - 9e52b5ed-16f5-4fd1-8465-1258981b5eb2
      X-Runtime:
      - '1.057785'
      Date:
      - Fri, 31 Mar 2017 23:32:54 GMT
      Connection:
      - close
    body:
      encoding: UTF-8
      string: '{"order_id":359887509,"status":"shipped","carrier":"usps","tracking_number":"CX263292019US","product_name":"Paid
        Fullfillable 1","product_identifier":"DEFAULT","variation_identifier":null,"customer_name":"Optimus
        Prime","customer_id":981984628,"address1":"201 Valley Street","address2":null,"city":"Los
        Altos","state":"CA","postal_code":"94022","country":"United States","available_refunds":{"buyer_fee":399.0},"refund_amount":0.0,"disbursement_amount":358.8,"seller_fees_amount":40.2,"seller_fees":[{"type":"commission_fee","amount":40.2}],"paid_at":"2017-03-31T14:31:19-07:00","created_at":"2017-03-31T16:32:24-07:00"}'
    http_version: 
  recorded_at: Fri, 31 Mar 2017 23:32:54 GMT
recorded_with: VCR 3.0.3

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tophatter-merchant-1.2.2 spec/cassettes/TophatterMerchant_Order/_refund/refunds_an_order.yml
tophatter-merchant-1.2.1 spec/cassettes/TophatterMerchant_Order/_refund/refunds_an_order.yml
tophatter-merchant-1.2.0 spec/cassettes/TophatterMerchant_Order/_refund/refunds_an_order.yml
tophatter-merchant-1.1.9 spec/cassettes/TophatterMerchant_Order/_refund/refunds_an_order.yml
tophatter-merchant-1.1.8 spec/cassettes/TophatterMerchant_Order/_refund/refunds_an_order.yml
tophatter-merchant-1.1.7 spec/cassettes/TophatterMerchant_Order/_refund/refunds_an_order.yml
tophatter-merchant-1.1.6 spec/cassettes/TophatterMerchant_Order/_refund/refunds_an_order.yml
tophatter-merchant-1.1.5 spec/cassettes/TophatterMerchant_Order/_refund/refunds_an_order.yml