---
http_interactions:
- request:
    method: post
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/
    body:
      encoding: UTF-8
      string: '{"name":"new advertiser 7a9c1b8707c4ef3f78e9c605c338be96","status_id":1,"category_id":1010}'
    headers:
      Content-Type:
      - application/json
      User-Agent:
      - OiApiRuby Gem 0.1.1
  response:
    status:
      code: 201
      message: CREATED
    headers:
      Date:
      - Tue, 28 Apr 2015 21:02:26 GMT
      Server:
      - Apache/2.2.15 (CentOS)
      Vary:
      - Accept,Cookie
      X-Frame-Options:
      - SAMEORIGIN
      Allow:
      - GET, POST, HEAD, OPTIONS
      Connection:
      - close
      Transfer-Encoding:
      - chunked
      Content-Type:
      - application/json
    body:
      encoding: UTF-8
      string: '{"status": "Create Successful", "message": "Advertiser successfully
        created", "id": 40606}'
    http_version: 
  recorded_at: Tue, 28 Apr 2015 21:03:34 GMT
- request:
    method: post
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/40606/cards/
    body:
      encoding: UTF-8
      string: '{"number":9819465435,"exp_month":12,"exp_year":16,"cvc":111,"name":"John
        Tester","address_line1":"123 Elm Street","address_line2":"Apt 2","address_city":"Rochester","address_zip":14605,"address_state":"NY","address_country":"US","default":"true"}'
    headers:
      Content-Type:
      - application/json
      User-Agent:
      - OiApiRuby Gem 0.1.1
  response:
    status:
      code: 400
      message: BAD REQUEST
    headers:
      Date:
      - Tue, 28 Apr 2015 21:02:27 GMT
      Server:
      - Apache/2.2.15 (CentOS)
      Vary:
      - Accept,Cookie
      X-Frame-Options:
      - SAMEORIGIN
      Allow:
      - GET, POST, DELETE, HEAD, OPTIONS
      Connection:
      - close
      Transfer-Encoding:
      - chunked
      Content-Type:
      - application/json
    body:
      encoding: UTF-8
      string: '{"status": "Request Failed", "message": "Your card number is incorrect.",
        "error_code": "incorrect_number", "error": true}'
    http_version: 
  recorded_at: Tue, 28 Apr 2015 21:03:35 GMT
- request:
    method: put
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/40606/cards//
    body:
      encoding: UTF-8
      string: '{"number":999}'
    headers:
      Content-Type:
      - application/json
      User-Agent:
      - OiApiRuby Gem 0.1.1
  response:
    status:
      code: 405
      message: METHOD NOT ALLOWED
    headers:
      Date:
      - Tue, 28 Apr 2015 21:02:28 GMT
      Server:
      - Apache/2.2.15 (CentOS)
      Vary:
      - Accept,Cookie
      X-Frame-Options:
      - SAMEORIGIN
      Allow:
      - GET, POST, DELETE, HEAD, OPTIONS
      Connection:
      - close
      Transfer-Encoding:
      - chunked
      Content-Type:
      - application/json
    body:
      encoding: UTF-8
      string: '{"detail": "Method ''PUT'' not allowed."}'
    http_version: 
  recorded_at: Tue, 28 Apr 2015 21:03:36 GMT
recorded_with: VCR 2.9.3