moip/moip-sdk-ruby

View on GitHub
vcr_cassettes/find_all_orders_filters.yml

Summary

Maintainability
Test Coverage
---
http_interactions:
- request:
    method: get
    uri: https://01010101010101010101010101010101:ABABABABABABABABABABABABABABABABABABABAB@sandbox.moip.com.br/v2/orders?filters=status::in(PAID,WAITING)
    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:28:16 GMT
      Server:
      - nginx/1.6.3
      Status:
      - 200 OK
      Content-Type:
      - application/json
      Content-Length:
      - '13150'
      X-Content-Type-Options:
      - nosniff
      Vary:
      - Origin
    body:
      encoding: UTF-8
      string: '{"_links":{"next":{"href":"https://test.moip.com.br/v2/orders?filters=status::in(PAID,WAITING)&limit=0&offset=0"},"previous":{"href":"https://test.moip.com.br/v2/orders?filters=status::in(PAID,WAITING)&limit=0&offset=0"}},"summary":{"count":21064,"amount":4933423331},"orders":[{"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-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-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"},{"id":"ORD-KT688DIJYWU6","ownId":null,"status":"WAITING","blocked":false,"amount":{"total":10400,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"nome
        sobrenome","email":"email_1505929356@exemplo.com.br"},"items":[{"product":null}],"payments":[{"id":"PAY-T2DZ2BYKR796","installmentCount":1,"fundingInstrument":{"method":"CREDIT_CARD","brand":"VISA"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-KT688DIJYWU6"}},"createdAt":"2017-09-20T17:42:40-0300","updatedAt":"2017-09-20T17:42:43-0300"},{"id":"ORD-7I1DRUVQFVB1","ownId":"wc-716","status":"PAID","blocked":false,"amount":{"total":13980,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"clarissa
        nery","email":"clarissa_nery@hotmail.com"},"items":[{"product":null}],"payments":[{"id":"PAY-JZIFUIMSVA8F","installmentCount":1,"fundingInstrument":{"method":"CREDIT_CARD","brand":"VISA"}}],"events":[{"type":"PAYMENT.AUTHORIZED","createdAt":"2017-09-20T13:53:30Z"}],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-7I1DRUVQFVB1"}},"createdAt":"2017-09-20T13:53:28-0300","updatedAt":"2017-09-20T13:53:30-0300"},{"id":"ORD-UTUUJKYUIFLV","ownId":"jeff233","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-CNNA08IDNTK2","installmentCount":1,"fundingInstrument":{"method":"BOLETO","brand":"BOLETO"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-UTUUJKYUIFLV"}},"createdAt":"2017-09-20T11:19:30-0300","updatedAt":"2017-09-20T11:32:02-0300"},{"id":"ORD-30QPFYSTBUNT","ownId":null,"status":"WAITING","blocked":false,"amount":{"total":16100,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"eqfy
        da silva","email":"eqfy@gmail.com"},"items":[{"product":null}],"payments":[{"id":"PAY-ZL8HETC0X3C9","installmentCount":1,"fundingInstrument":{"method":"CREDIT_CARD","brand":"VISA"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-30QPFYSTBUNT"}},"createdAt":"2017-09-20T12:20:08-0300","updatedAt":"2017-09-20T12:20:12-0300"},{"id":"ORD-C97C2F78TE9D","ownId":null,"status":"WAITING","blocked":false,"amount":{"total":28300,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"andre
        caridade","email":"andreaacaridade@gmail.com"},"items":[{"product":null}],"payments":[{"id":"PAY-GNMDQ61DK2BF","installmentCount":1,"fundingInstrument":{"method":"CREDIT_CARD","brand":"VISA"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-C97C2F78TE9D"}},"createdAt":"2017-09-20T11:51:25-0300","updatedAt":"2017-09-20T11:51:31-0300"},{"id":"ORD-FFE11GVAMQDX","ownId":"4973711","status":"WAITING","blocked":false,"amount":{"total":9990,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"jo�o
        rafael campos","email":"jrafael_campossilva@hotmail.com"},"items":[{"product":null}],"payments":[{"id":"PAY-JVRTZ4LYQK2A","installmentCount":1,"fundingInstrument":{"method":"BOLETO","brand":null}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-FFE11GVAMQDX"}},"createdAt":"2017-09-20T06:01:23-0300","updatedAt":"2017-09-20T06:01:23-0300"},{"id":"ORD-4YLZM9YFK69O","ownId":"4973710","status":"WAITING","blocked":false,"amount":{"total":9990,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"jo�o
        rafael campos","email":"jrafael_campossilva@hotmail.com"},"items":[{"product":null}],"payments":[{"id":"PAY-J6IROCT2R6VI","installmentCount":1,"fundingInstrument":{"method":"BOLETO","brand":null}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-4YLZM9YFK69O"}},"createdAt":"2017-09-20T06:01:23-0300","updatedAt":"2017-09-20T06:01:23-0300"},{"id":"ORD-G1J71QOD6MJS","ownId":null,"status":"WAITING","blocked":false,"amount":{"total":46800,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"diego","email":"d.i.r.a.m.o.s1@gmail.com"},"items":[{"product":null}],"payments":[{"id":"PAY-44YVN9RQWX4K","installmentCount":1,"fundingInstrument":{"method":"CREDIT_CARD","brand":"VISA"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-G1J71QOD6MJS"}},"createdAt":"2017-09-19T19:52:35-0300","updatedAt":"2017-09-19T19:52:37-0300"},{"id":"ORD-KCF6XSVOKO8F","ownId":null,"status":"PAID","blocked":false,"amount":{"total":104007,"addition":0,"fees":11742,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"fpf","email":"fpf.teste.pagamento@gmail.com"},"items":[{"product":"compra
        de creditos"}],"payments":[{"id":"PAY-DOE9N5KID5G8","installmentCount":3,"fundingInstrument":{"method":"CREDIT_CARD","brand":"MASTERCARD"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-KCF6XSVOKO8F"}},"createdAt":"2017-09-19T16:43:49-0300","updatedAt":"2017-09-19T16:44:43-0300"},{"id":"ORD-G6SPPJMK4YNJ","ownId":null,"status":"PAID","blocked":false,"amount":{"total":100,"addition":0,"fees":42,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"teste","email":"fpf.teste.pagamaneto@gmail.com"},"items":[{"product":"razão
        / motivo do pagamento"}],"payments":[{"id":"PAY-1TCPYUCDN52R","installmentCount":1,"fundingInstrument":{"method":"ONLINE_BANK_DEBIT","brand":"ITAU"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-G6SPPJMK4YNJ"}},"createdAt":"2017-09-19T15:59:27-0300","updatedAt":"2017-09-19T16:00:00-0300"},{"id":"ORD-2W9ULDW9DACW","ownId":null,"status":"WAITING","blocked":false,"amount":{"total":27360,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"diego","email":"d.i.r.a.mos1@gmail.com"},"items":[{"product":null}],"payments":[{"id":"PAY-MFMLPM14NP2D","installmentCount":1,"fundingInstrument":{"method":"CREDIT_CARD","brand":"VISA"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-2W9ULDW9DACW"}},"createdAt":"2017-09-19T18:46:09-0300","updatedAt":"2017-09-19T18:46:13-0300"}]}'
    http_version: 
  recorded_at: Thu, 21 Sep 2017 11:28:20 GMT
recorded_with: VCR 2.9.3