moip/moip-sdk-ruby

View on GitHub
vcr_cassettes/find_all_orders_multi_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)%7Camount::bt(500,1000)
    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:58:00 GMT
      Server:
      - nginx/1.6.3
      Status:
      - 200 OK
      Content-Type:
      - application/json
      Content-Length:
      - '13279'
      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)|amount::bt(500,1000)&limit=0&offset=0"},"previous":{"href":"https://test.moip.com.br/v2/orders?filters=status::in(PAID,WAITING)|amount::bt(500,1000)&limit=0&offset=0"}},"summary":{"count":1420,"amount":1087515},"orders":[{"id":"ORD-DKI2LHDTBMYJ","ownId":"1244183162269105","status":"PAID","blocked":false,"amount":{"total":500,"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-4BS63TGC7I3S","installmentCount":1,"fundingInstrument":{"method":"CREDIT_CARD","brand":"VISA"}}],"events":[{"type":"PAYMENT.AUTHORIZED","createdAt":"2017-09-19T13:39:20Z"}],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-DKI2LHDTBMYJ"}},"createdAt":"2017-09-19T13:38:20-0300","updatedAt":"2017-09-21T00:20:18-0300"},{"id":"ORD-82XRXJZVVFST","ownId":"1244183162269105","status":"PAID","blocked":false,"amount":{"total":500,"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-B9CPZNDEFDFP","installmentCount":1,"fundingInstrument":{"method":"CREDIT_CARD","brand":"VISA"}}],"events":[{"type":"PAYMENT.AUTHORIZED","createdAt":"2017-09-19T13:28:10Z"}],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-82XRXJZVVFST"}},"createdAt":"2017-09-19T13:26:42-0300","updatedAt":"2017-09-21T00:20:18-0300"},{"id":"ORD-CF67EA0QEDGO","ownId":"1244183162269105","status":"PAID","blocked":false,"amount":{"total":500,"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-AMSASHI5KTXD","installmentCount":1,"fundingInstrument":{"method":"CREDIT_CARD","brand":"MASTERCARD"}}],"events":[{"type":"PAYMENT.AUTHORIZED","createdAt":"2017-09-19T11:36:15Z"}],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-CF67EA0QEDGO"}},"createdAt":"2017-09-19T11:34:06-0300","updatedAt":"2017-09-21T00:20:18-0300"},{"id":"ORD-KZWXDR80OQCN","ownId":"wflmip-126","status":"WAITING","blocked":false,"amount":{"total":1000,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"fulano
        eduardo","email":"teste.ok.ok@yahoo.com.br"},"items":[{"product":null}],"payments":[{"id":"PAY-DAVKNMM5QCDC","installmentCount":1,"fundingInstrument":{"method":"BOLETO","brand":null}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-KZWXDR80OQCN"}},"createdAt":"2017-09-18T12:50:17-0300","updatedAt":"2017-09-18T12:50:18-0300"},{"id":"ORD-U87PNX6WA5NM","ownId":"gxerri-124","status":"WAITING","blocked":false,"amount":{"total":1000,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"fulano
        eduardo","email":"teste.ok.ok@yahoo.com.br"},"items":[{"product":null}],"payments":[{"id":"PAY-DVO6GX52ZBN5","installmentCount":1,"fundingInstrument":{"method":"BOLETO","brand":null}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-U87PNX6WA5NM"}},"createdAt":"2017-09-18T11:43:07-0300","updatedAt":"2017-09-18T11:43:07-0300"},{"id":"ORD-25WMBTUGO80B","ownId":"oubamz-121","status":"WAITING","blocked":false,"amount":{"total":1000,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"fulano
        eduardo","email":"teste.ok.ok@yahoo.com.br"},"items":[{"product":null}],"payments":[{"id":"PAY-7K792VPD1N9Q","installmentCount":1,"fundingInstrument":{"method":"BOLETO","brand":null}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-25WMBTUGO80B"}},"createdAt":"2017-09-18T11:34:51-0300","updatedAt":"2017-09-18T11:34:52-0300"},{"id":"ORD-1A6Z7ZN84JDT","ownId":"glhjxc-121","status":"WAITING","blocked":false,"amount":{"total":1000,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"fulano
        eduardo","email":"teste.ok.ok@yahoo.com.br"},"items":[{"product":null}],"payments":[{"id":"PAY-S2C06KC8B291","installmentCount":1,"fundingInstrument":{"method":"BOLETO","brand":null}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-1A6Z7ZN84JDT"}},"createdAt":"2017-09-18T11:34:00-0300","updatedAt":"2017-09-18T11:34:01-0300"},{"id":"ORD-9Y42I2W3B2A8","ownId":"jgwbms-120","status":"WAITING","blocked":false,"amount":{"total":1000,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"fulano
        eduardo","email":"teste.ok.ok@yahoo.com.br"},"items":[{"product":null}],"payments":[{"id":"PAY-DCCD9IZUBPWX","installmentCount":1,"fundingInstrument":{"method":"BOLETO","brand":null}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-9Y42I2W3B2A8"}},"createdAt":"2017-09-18T11:32:40-0300","updatedAt":"2017-09-18T11:32:42-0300"},{"id":"ORD-LBEUXJMOFI0L","ownId":"uetqeq-117","status":"WAITING","blocked":false,"amount":{"total":1000,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"fulano
        eduardo","email":"teste.ok.ok@yahoo.com.br"},"items":[{"product":null}],"payments":[{"id":"PAY-4T4NRFA6QHX7","installmentCount":2,"fundingInstrument":{"method":"CREDIT_CARD","brand":"VISA"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-LBEUXJMOFI0L"}},"createdAt":"2017-09-16T17:55:45-0300","updatedAt":"2017-09-16T17:55:46-0300"},{"id":"ORD-0WMEQIM7KU4R","ownId":"bxksby-116","status":"WAITING","blocked":false,"amount":{"total":1000,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"fulano
        eduardo","email":"teste.ok.ok@yahoo.com.br"},"items":[{"product":null}],"payments":[{"id":"PAY-VHM19SCGU7WD","installmentCount":1,"fundingInstrument":{"method":"BOLETO","brand":null}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-0WMEQIM7KU4R"}},"createdAt":"2017-09-16T16:18:59-0300","updatedAt":"2017-09-16T16:19:00-0300"},{"id":"ORD-K4ARQ9EL3MZZ","ownId":"59bd7104318a3","status":"WAITING","blocked":false,"amount":{"total":1000,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"fulano
        eduardo","email":"teste.ok.ok@yahoo.com.br"},"items":[{"product":null}],"payments":[{"id":"PAY-ERNIUUB0BAGH","installmentCount":1,"fundingInstrument":{"method":"BOLETO","brand":null}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-K4ARQ9EL3MZZ"}},"createdAt":"2017-09-16T15:44:19-0300","updatedAt":"2017-09-16T15:44:19-0300"},{"id":"ORD-MDEVHUPQ9UFG","ownId":"59bd433a13c61","status":"WAITING","blocked":false,"amount":{"total":1000,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"fulano
        eduardo","email":"teste.ok.ok@yahoo.com.br"},"items":[{"product":null}],"payments":[{"id":"PAY-HPN0T2E86Y3J","installmentCount":2,"fundingInstrument":{"method":"CREDIT_CARD","brand":"VISA"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-MDEVHUPQ9UFG"}},"createdAt":"2017-09-16T12:28:58-0300","updatedAt":"2017-09-16T12:28:59-0300"},{"id":"ORD-BCVHHAWDDATJ","ownId":"59bd3c613e17a","status":"WAITING","blocked":false,"amount":{"total":1000,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"fulano
        eduardo","email":"teste.ok.ok@yahoo.com.br"},"items":[{"product":null}],"payments":[{"id":"PAY-1W6K5SLOKUXO","installmentCount":2,"fundingInstrument":{"method":"CREDIT_CARD","brand":"VISA"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-BCVHHAWDDATJ"}},"createdAt":"2017-09-16T11:59:44-0300","updatedAt":"2017-09-16T11:59:45-0300"},{"id":"ORD-LQ11QVE8JNIQ","ownId":"59bd3a3761647","status":"WAITING","blocked":false,"amount":{"total":1000,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"fulano
        eduardo","email":"teste.ok.ok@yahoo.com.br"},"items":[{"product":null}],"payments":[{"id":"PAY-9O8QQ66EWL78","installmentCount":2,"fundingInstrument":{"method":"CREDIT_CARD","brand":"VISA"}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-LQ11QVE8JNIQ"}},"createdAt":"2017-09-16T11:50:30-0300","updatedAt":"2017-09-16T11:50:31-0300"},{"id":"ORD-Z4HCZQEGZUD8","ownId":"4872754","status":"WAITING","blocked":false,"amount":{"total":1000,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"teste","email":"breno26@gmail.com"},"items":[{"product":null}],"payments":[{"id":"PAY-JUX2ITH2EV4Q","installmentCount":1,"fundingInstrument":{"method":"BOLETO","brand":null}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-Z4HCZQEGZUD8"}},"createdAt":"2017-09-15T06:01:29-0300","updatedAt":"2017-09-15T06:01:29-0300"},{"id":"ORD-NNCCAOZBT6NR","ownId":"1244183162269105","status":"PAID","blocked":false,"amount":{"total":500,"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-1S4EKRJKHG2W","installmentCount":1,"fundingInstrument":{"method":"CREDIT_CARD","brand":"MASTERCARD"}}],"events":[{"type":"PAYMENT.AUTHORIZED","createdAt":"2017-09-14T14:34:30Z"}],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-NNCCAOZBT6NR"}},"createdAt":"2017-09-14T14:31:17-0300","updatedAt":"2017-09-16T00:20:20-0300"},{"id":"ORD-XYG3H591POO9","ownId":"4853270","status":"WAITING","blocked":false,"amount":{"total":1000,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"diego
        nunes","email":"diegonunes@moiop.com.br"},"items":[{"product":null}],"payments":[{"id":"PAY-E1DWW8NU5216","installmentCount":1,"fundingInstrument":{"method":"BOLETO","brand":null}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-XYG3H591POO9"}},"createdAt":"2017-09-14T06:01:25-0300","updatedAt":"2017-09-14T06:01:25-0300"},{"id":"ORD-UZ3M50J2I8B2","ownId":"4768289","status":"WAITING","blocked":false,"amount":{"total":1000,"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-2AECD5QFSSCC","installmentCount":1,"fundingInstrument":{"method":"BOLETO","brand":null}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-UZ3M50J2I8B2"}},"createdAt":"2017-09-08T06:01:00-0300","updatedAt":"2017-09-08T06:01:00-0300"},{"id":"ORD-QGGZUAAPKXF5","ownId":"4708040","status":"WAITING","blocked":false,"amount":{"total":1000,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"gean
        saturno","email":"geansaturno@gmail.com"},"items":[{"product":null}],"payments":[{"id":"PAY-GRJLTQ87J9T7","installmentCount":1,"fundingInstrument":{"method":"BOLETO","brand":null}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-QGGZUAAPKXF5"}},"createdAt":"2017-09-01T07:03:46-0300","updatedAt":"2017-09-01T07:03:46-0300"},{"id":"ORD-WFZFD888DC4L","ownId":"4708039","status":"WAITING","blocked":false,"amount":{"total":1000,"addition":0,"fees":0,"deduction":0,"otherReceivers":0,"currency":"BRL"},"receivers":[{"type":"PRIMARY","moipAccount":{"id":"MPA-CULBBYHD11"}}],"customer":{"fullname":"willian
        marques","email":"willian.dias@noatel.com.br"},"items":[{"product":null}],"payments":[{"id":"PAY-YX823S2ZDSWP","installmentCount":1,"fundingInstrument":{"method":"BOLETO","brand":null}}],"events":[],"_links":{"self":{"href":"https://test.moip.com.br/v2/orders/ORD-WFZFD888DC4L"}},"createdAt":"2017-09-01T07:03:46-0300","updatedAt":"2017-09-01T07:03:46-0300"}]}'
    http_version: 
  recorded_at: Thu, 21 Sep 2017 11:58:04 GMT
recorded_with: VCR 2.9.3