moip/moip-sdk-ruby

View on GitHub
vcr_cassettes/find_all_orders_no_filter.yml

Summary

Maintainability
Test Coverage
---
http_interactions:
- request:
    method: get
    uri: https://01010101010101010101010101010101:ABABABABABABABABABABABABABABABABABABABAB@sandbox.moip.com.br/v2/orders
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Content-Type:
      - application/json
      User-Agent:
      - MoipRubySDK/0.1.5 (+https://github.com/moip/moip-sdk-ruby)
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Thu, 21 Sep 2017 11:32:09 GMT
      Server:
      - nginx/1.6.3
      Status:
      - 200 OK
      Content-Type:
      - application/json
      Content-Length:
      - '12933'
      X-Content-Type-Options:
      - nosniff
      Vary:
      - Origin
    body:
      encoding: UTF-8
      string: '{"_links":{"next":{"href":"https://test.moip.com.br/v2/orders?filters=&limit=0&offset=0"},"previous":{"href":"https://test.moip.com.br/v2/orders?filters=&limit=0&offset=0"}},"summary":{"count":25585,"amount":5018996246},"orders":[{"id":"ORD-AXESCD0ZKBA9","ownId":null,"status":"NOT_PAID","blocked":false,"amount":{"total":9990,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"nome
        sobrenome","email":"nome@exemplo.com.br"},"items":[{"product":null}],"payments":[{"id":"PAY-V9RAAHI74C77","installmentCount":1,"fundingInstrument":{"method":"CREDIT_CARD","brand":"VISA"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-AXESCD0ZKBA9"}},"createdAt":"2017-09-21T09:02:10-0300","updatedAt":"2017-09-21T09:02:11-0300"},{"id":"ORD-QJCPV0SGTURI","ownId":null,"status":"NOT_PAID","blocked":false,"amount":{"total":9990,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"nome
        sobrenome","email":"nome@exemplo.com.br"},"items":[{"product":null}],"payments":[{"id":"PAY-XR758T5XPRD5","installmentCount":1,"fundingInstrument":{"method":"CREDIT_CARD","brand":"VISA"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-QJCPV0SGTURI"}},"createdAt":"2017-09-21T09:02:10-0300","updatedAt":"2017-09-21T09:02:11-0300"},{"id":"ORD-EODN81C4CPC7","ownId":null,"status":"NOT_PAID","blocked":false,"amount":{"total":1111,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"teste
        teste","email":"teste@teste.com"},"items":[{"product":null}],"payments":[{"id":"PAY-U8G77BMP1FQN","installmentCount":1,"fundingInstrument":{"method":"CREDIT_CARD","brand":"MASTERCARD"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-EODN81C4CPC7"}},"createdAt":"2017-09-21T09:02:06-0300","updatedAt":"2017-09-21T09:02:09-0300"},{"id":"ORD-WKS6JRQMT5BK","ownId":null,"status":"NOT_PAID","blocked":false,"amount":{"total":1111,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"teste
        teste","email":"teste@teste.com"},"items":[{"product":null}],"payments":[{"id":"PAY-EV9QC7PJR3ZC","installmentCount":1,"fundingInstrument":{"method":"CREDIT_CARD","brand":"MASTERCARD"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-WKS6JRQMT5BK"}},"createdAt":"2017-09-21T09:02:06-0300","updatedAt":"2017-09-21T09:02:08-0300"},{"id":"ORD-I3BNKLFBJJM3","ownId":null,"status":"NOT_PAID","blocked":false,"amount":{"total":900,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"breno
        laranjeiras","email":"breno25@moip.com.br"},"items":[{"product":null}],"payments":[{"id":"PAY-TI39OQ7EB7CM","installmentCount":1,"fundingInstrument":{"method":"CREDIT_CARD","brand":"MASTERCARD"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-I3BNKLFBJJM3"}},"createdAt":"2017-09-21T09:02:06-0300","updatedAt":"2017-09-21T09:02:09-0300"},{"id":"ORD-GLUNC56M5WNJ","ownId":null,"status":"NOT_PAID","blocked":false,"amount":{"total":900,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"william
        miranda","email":"manowill@moip.com"},"items":[{"product":null}],"payments":[{"id":"PAY-JZ4DRPSQOCTA","installmentCount":1,"fundingInstrument":{"method":"CREDIT_CARD","brand":"VISA"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-GLUNC56M5WNJ"}},"createdAt":"2017-09-21T09:02:06-0300","updatedAt":"2017-09-21T09:02:09-0300"},{"id":"ORD-ZEVV1DRYYWZB","ownId":null,"status":"NOT_PAID","blocked":false,"amount":{"total":900,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"breno
        laranjeiras","email":"breno25@moip.com.br"},"items":[{"product":null}],"payments":[{"id":"PAY-7RP1RKNJXWZB","installmentCount":1,"fundingInstrument":{"method":"CREDIT_CARD","brand":"MASTERCARD"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-ZEVV1DRYYWZB"}},"createdAt":"2017-09-21T09:02:06-0300","updatedAt":"2017-09-21T09:02:08-0300"},{"id":"ORD-6DUNJDPOMTNX","ownId":null,"status":"NOT_PAID","blocked":false,"amount":{"total":9990,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"ariane
        paula","email":"teste@moip.com.br"},"items":[{"product":null}],"payments":[{"id":"PAY-Z0EUJ0U7CT25","installmentCount":1,"fundingInstrument":{"method":"CREDIT_CARD","brand":"MASTERCARD"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-6DUNJDPOMTNX"}},"createdAt":"2017-09-21T09:02:05-0300","updatedAt":"2017-09-21T09:02:09-0300"},{"id":"ORD-FFBHGG31CLGX","ownId":null,"status":"NOT_PAID","blocked":false,"amount":{"total":4990,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"nome
        sobrenome","email":"nome@exemplo.com.br"},"items":[{"product":null}],"payments":[{"id":"PAY-OP6DHDV5BA1X","installmentCount":1,"fundingInstrument":{"method":"CREDIT_CARD","brand":"AMEX"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-FFBHGG31CLGX"}},"createdAt":"2017-09-21T09:02:05-0300","updatedAt":"2017-09-21T09:02:07-0300"},{"id":"ORD-56K8NAIAX5NW","ownId":"4987062","status":"WAITING","blocked":false,"amount":{"total":100,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"moip
        test","email":"moip@mailinator.com"},"items":[{"product":null}],"payments":[{"id":"PAY-1PUR1B3NJNMH","installmentCount":1,"fundingInstrument":{"method":"BOLETO","brand":null}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-56K8NAIAX5NW"}},"createdAt":"2017-09-21T06:01:23-0300","updatedAt":"2017-09-21T06:01:24-0300"},{"id":"ORD-V45GHX3E01W2","ownId":"4986916","status":"WAITING","blocked":false,"amount":{"total":100,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"moip
        test","email":"moip@mailinator.com"},"items":[{"product":null}],"payments":[{"id":"PAY-OT594JOTN7R7","installmentCount":1,"fundingInstrument":{"method":"BOLETO","brand":null}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-V45GHX3E01W2"}},"createdAt":"2017-09-21T06:01:15-0300","updatedAt":"2017-09-21T06:01:17-0300"},{"id":"ORD-GDS1RDPO7U1M","ownId":null,"status":"WAITING","blocked":false,"amount":{"total":19900,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"david
        luis da silva","email":"dluis@dluis.com"},"items":[{"product":null}],"payments":[{"id":"PAY-7D7KBBZDTTKJ","installmentCount":1,"fundingInstrument":{"method":"CREDIT_CARD","brand":"VISA"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-GDS1RDPO7U1M"}},"createdAt":"2017-09-20T23:50:42-0300","updatedAt":"2017-09-20T23:50:45-0300"},{"id":"ORD-K5PMY9NLMCBE","ownId":"wc-718","status":"PAID","blocked":false,"amount":{"total":6750,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"ian
        glaiton araujo","email":"nebob@coreclip.com"},"items":[{"product":null}],"payments":[{"id":"PAY-0Z8WJU93A7BJ","installmentCount":1,"fundingInstrument":{"method":"CREDIT_CARD","brand":"MASTERCARD"}}],"events":[{"type":"PAYMENT.AUTHORIZED","createdAt":"2017-09-20T19:57:39Z"}],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-K5PMY9NLMCBE"}},"createdAt":"2017-09-20T19:57:38-0300","updatedAt":"2017-09-20T19:57:39-0300"},{"id":"ORD-R22KFRGQJDIR","ownId":null,"status":"NOT_PAID","blocked":false,"amount":{"total":7500,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"adfasdf","email":"asfasdfads@asdfasf.com"},"items":[{"product":null}],"payments":[{"id":"PAY-K51SX7YCKBE3","installmentCount":1,"fundingInstrument":{"method":"CREDIT_CARD","brand":"VISA"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-R22KFRGQJDIR"}},"createdAt":"2017-09-20T20:42:21-0300","updatedAt":"2017-09-20T20:42:26-0300"},{"id":"ORD-JGHOVVDXGDFX","ownId":"planac-92","status":"PAID","blocked":false,"amount":{"total":60700,"addition":0,"fees":1799,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"jefferson","email":"craivy@gmail.com"},"items":[{"product":"teste"}],"payments":[{"id":"PAY-BXWJPMP1P80M","installmentCount":1,"fundingInstrument":{"method":"BOLETO","brand":"BOLETO"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-JGHOVVDXGDFX"}},"createdAt":"2017-09-20T17:26:03-0300","updatedAt":"2017-09-20T17:27:43-0300"},{"id":"ORD-7LWUJREQLGBH","ownId":"jeff233sas","status":"WAITING","blocked":false,"amount":{"total":10000,"addition":0,"fees":329,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"nome
        sobrenome","email":"email@cliente.com.br"},"items":[{"product":"razão / motivo
        do pagamento"}],"payments":[{"id":"PAY-D35TZS5F2O6Z","installmentCount":1,"fundingInstrument":{"method":"BOLETO","brand":"BOLETO"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-7LWUJREQLGBH"}},"createdAt":"2017-09-20T17:19:37-0300","updatedAt":"2017-09-20T17:22:17-0300"},{"id":"ORD-KOCG8YXBJNPL","ownId":null,"status":"NOT_PAID","blocked":false,"amount":{"total":3000,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"joão
        moip","email":"mariopenna.moip@mailinator.com"},"items":[{"product":null}],"payments":[{"id":"PAY-SEJSWLVSFUAI","installmentCount":1,"fundingInstrument":{"method":"CREDIT_CARD","brand":"AMEX"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-KOCG8YXBJNPL"}},"createdAt":"2017-09-20T19:00:10-0300","updatedAt":"2017-09-20T19:00:12-0300"},{"id":"ORD-WUT0Q4XFNK5P","ownId":"planac-91","status":"PAID","blocked":false,"amount":{"total":20800,"addition":0,"fees":642,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"jefferson","email":"craivy@gmail.com"},"items":[{"product":"teste"}],"payments":[{"id":"PAY-BOMWU9OELFMP","installmentCount":1,"fundingInstrument":{"method":"BOLETO","brand":"BOLETO"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-WUT0Q4XFNK5P"}},"createdAt":"2017-09-20T15:57:54-0300","updatedAt":"2017-09-20T17:15:18-0300"},{"id":"ORD-4DVPI2J0BET6","ownId":"25051990","status":"WAITING","blocked":false,"amount":{"total":2000,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"jose
        silva","email":"nome@email.com"},"items":[{"product":null}],"payments":[{"id":"PAY-9MFQPF57MRWR","installmentCount":1,"fundingInstrument":{"method":"BOLETO","brand":null}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-4DVPI2J0BET6"}},"createdAt":"2017-09-20T15:22:38-0300","updatedAt":"2017-09-20T15:23:56-0300"},{"id":"ORD-4HBY83Q3ZVHN","ownId":"25051989","status":"WAITING","blocked":false,"amount":{"total":2000,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"jose
        silva","email":"nome@email.com"},"items":[{"product":null}],"payments":[{"id":"PAY-HJD93OXZ8UB5","installmentCount":1,"fundingInstrument":{"method":"BOLETO","brand":null}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-4HBY83Q3ZVHN"}},"createdAt":"2017-09-20T15:11:25-0300","updatedAt":"2017-09-20T15:19:13-0300"}]}'
    http_version: 
  recorded_at: Thu, 21 Sep 2017 11:32:13 GMT
recorded_with: VCR 2.9.3