moip2 0.1.4 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +644 -0
  3. data/.travis.yml +14 -3
  4. data/CONTRIBUTING.md +42 -0
  5. data/Gemfile +1 -1
  6. data/Gemfile.lock +25 -6
  7. data/Guardfile +1 -2
  8. data/README.md +373 -74
  9. data/Rakefile +2 -2
  10. data/changelog.md +36 -0
  11. data/lib/moip2/accounts_api.rb +27 -0
  12. data/lib/moip2/api.rb +25 -2
  13. data/lib/moip2/auth/basic.rb +2 -5
  14. data/lib/moip2/auth/oauth.rb +0 -3
  15. data/lib/moip2/client.rb +45 -31
  16. data/lib/moip2/connect_api.rb +41 -0
  17. data/lib/moip2/customer_api.rb +16 -2
  18. data/lib/moip2/exceptions/invalid_enviroment_error.rb +0 -2
  19. data/lib/moip2/invoice_api.rb +8 -3
  20. data/lib/moip2/keys_api.rb +14 -14
  21. data/lib/moip2/multi_order_api.rb +1 -3
  22. data/lib/moip2/multi_payment_api.rb +1 -1
  23. data/lib/moip2/notifications_api.rb +33 -0
  24. data/lib/moip2/order_api.rb +18 -3
  25. data/lib/moip2/payment_api.rb +11 -1
  26. data/lib/moip2/refund_api.rb +5 -4
  27. data/lib/moip2/resource/account.rb +12 -0
  28. data/lib/moip2/resource/connect.rb +9 -0
  29. data/lib/moip2/resource/credit_card.rb +12 -0
  30. data/lib/moip2/resource/customer.rb +0 -4
  31. data/lib/moip2/resource/invoice.rb +0 -2
  32. data/lib/moip2/resource/keys.rb +1 -3
  33. data/lib/moip2/resource/multi_order.rb +2 -6
  34. data/lib/moip2/resource/multi_payment.rb +1 -3
  35. data/lib/moip2/resource/notification.rb +12 -0
  36. data/lib/moip2/resource/order.rb +0 -4
  37. data/lib/moip2/resource/payment.rb +0 -4
  38. data/lib/moip2/resource/refund.rb +1 -2
  39. data/lib/moip2/resource/webhooks.rb +11 -13
  40. data/lib/moip2/response.rb +7 -7
  41. data/lib/moip2/util/filters_encoder.rb +28 -0
  42. data/lib/moip2/version.rb +1 -1
  43. data/lib/moip2/webhooks_api.rb +16 -16
  44. data/lib/moip2.rb +10 -5
  45. data/moip2.gemspec +21 -7
  46. data/spec/moip2/accounts_api_spec.rb +189 -0
  47. data/spec/moip2/api_spec.rb +22 -4
  48. data/spec/moip2/auth/basic_spec.rb +8 -4
  49. data/spec/moip2/auth/oauth_spec.rb +4 -4
  50. data/spec/moip2/client_spec.rb +20 -27
  51. data/spec/moip2/connect_api_spec.rb +68 -0
  52. data/spec/moip2/customer_api_spec.rb +147 -72
  53. data/spec/moip2/invoice_spec.rb +51 -32
  54. data/spec/moip2/keys_spec.rb +16 -18
  55. data/spec/moip2/multi_order_api_spec.rb +99 -108
  56. data/spec/moip2/multi_payment_api_spec.rb +8 -11
  57. data/spec/moip2/notifications_api_spec.rb +104 -0
  58. data/spec/moip2/order_api_spec.rb +100 -20
  59. data/spec/moip2/payment_api_spec.rb +77 -17
  60. data/spec/moip2/refund_api_spec.rb +2 -4
  61. data/spec/moip2/resource/order_spec.rb +24 -28
  62. data/spec/moip2/response_spec.rb +0 -8
  63. data/spec/moip2/webhooks_spec.rb +18 -21
  64. data/spec/moip2_spec.rb +6 -13
  65. data/spec/spec_helper.rb +24 -10
  66. data/vcr_cassettes/_create_invoice.yml +42 -0
  67. data/vcr_cassettes/_get_invoice.yml +41 -0
  68. data/vcr_cassettes/account_doesnt_exist.yml +44 -0
  69. data/vcr_cassettes/account_exists.yml +46 -0
  70. data/vcr_cassettes/accounts_show_existent.yml +50 -0
  71. data/vcr_cassettes/accounts_show_nonexistent.yml +42 -0
  72. data/vcr_cassettes/cancel_payment.yml +43 -0
  73. data/vcr_cassettes/capture_payment.yml +42 -0
  74. data/vcr_cassettes/create_account_success_company.yml +87 -0
  75. data/vcr_cassettes/create_account_success_standalone.yml +74 -0
  76. data/vcr_cassettes/create_credit_card_customer.yml +41 -0
  77. data/vcr_cassettes/create_invoice.yml +10 -16
  78. data/vcr_cassettes/create_notification.yml +38 -0
  79. data/vcr_cassettes/create_notification_app.yml +38 -0
  80. data/vcr_cassettes/delete_credit_card_customer.yml +40 -0
  81. data/vcr_cassettes/delete_nonexistent_credit_card_customer.yml +40 -0
  82. data/vcr_cassettes/delete_nonexistent_notification.yml +40 -0
  83. data/vcr_cassettes/delete_notification.yml +36 -0
  84. data/vcr_cassettes/find_all_orders_filters.yml +56 -0
  85. data/vcr_cassettes/find_all_orders_limit.yml +48 -0
  86. data/vcr_cassettes/find_all_orders_multi_filters.yml +57 -0
  87. data/vcr_cassettes/find_all_orders_no_filter.yml +56 -0
  88. data/vcr_cassettes/generate_oauth_token.yml +42 -0
  89. data/vcr_cassettes/get_invoice.yml +10 -15
  90. data/vcr_cassettes/get_keys.yml +1 -1
  91. data/vcr_cassettes/get_notification.yml +38 -0
  92. data/vcr_cassettes/get_notifications_list.yml +38 -0
  93. data/vcr_cassettes/get_payment.yml +42 -0
  94. data/vcr_cassettes/get_payment_not_found.yml +40 -0
  95. data/vcr_cassettes/get_webhooks.yml +1 -1
  96. data/vcr_cassettes/list_invoices.yml +2 -2
  97. data/vcr_cassettes/refresh_oauth_token.yml +40 -0
  98. data/vcr_cassettes/update_invoice.yml +1 -1
  99. metadata +69 -7
@@ -0,0 +1,56 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://01010101010101010101010101010101:ABABABABABABABABABABABABABABABABABABABAB@sandbox.moip.com.br/v2/orders?filters=status::in(PAID,WAITING)
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - MoipRubySDK/0.1.5 (+https://github.com/moip/moip-sdk-ruby)
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Date:
20
+ - Thu, 21 Sep 2017 11:28:16 GMT
21
+ Server:
22
+ - nginx/1.6.3
23
+ Status:
24
+ - 200 OK
25
+ Content-Type:
26
+ - application/json
27
+ Content-Length:
28
+ - '13150'
29
+ X-Content-Type-Options:
30
+ - nosniff
31
+ Vary:
32
+ - Origin
33
+ body:
34
+ encoding: UTF-8
35
+ 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
36
+ 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
37
+ 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
38
+ 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
39
+ 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
40
+ sobrenome","email":"email@cliente.com.br"},"items":[{"product":"razão / motivo
41
+ 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
42
+ 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
43
+ 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
44
+ 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
45
+ 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
46
+ sobrenome","email":"email@cliente.com.br"},"items":[{"product":"razão / motivo
47
+ 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
48
+ 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
49
+ 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
50
+ 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
51
+ 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
52
+ 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
53
+ / 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"}]}'
54
+ http_version:
55
+ recorded_at: Thu, 21 Sep 2017 11:28:20 GMT
56
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://01010101010101010101010101010101:ABABABABABABABABABABABABABABABABABABABAB@sandbox.moip.com.br/v2/orders?limit=10
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - MoipRubySDK/0.1.5 (+https://github.com/moip/moip-sdk-ruby)
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Date:
20
+ - Thu, 21 Sep 2017 11:32:12 GMT
21
+ Server:
22
+ - nginx/1.6.3
23
+ Status:
24
+ - 200 OK
25
+ Content-Type:
26
+ - application/json
27
+ Content-Length:
28
+ - '6549'
29
+ X-Content-Type-Options:
30
+ - nosniff
31
+ Vary:
32
+ - Origin
33
+ body:
34
+ encoding: UTF-8
35
+ string: '{"_links":{"next":{"href":"https://test.moip.com.br/v2/orders?filters=&limit=10&offset=10"},"previous":{"href":"https://test.moip.com.br/v2/orders?filters=&limit=10&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
36
+ 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
37
+ 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
38
+ 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
39
+ 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
40
+ 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
41
+ 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
42
+ 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
43
+ 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
44
+ 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
45
+ 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"}]}'
46
+ http_version:
47
+ recorded_at: Thu, 21 Sep 2017 11:32:16 GMT
48
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,57 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://01010101010101010101010101010101:ABABABABABABABABABABABABABABABABABABABAB@sandbox.moip.com.br/v2/orders?filters=status::in(PAID,WAITING)%7Camount::bt(500,1000)
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - MoipRubySDK/0.1.5 (+https://github.com/moip/moip-sdk-ruby)
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Date:
20
+ - Thu, 21 Sep 2017 11:58:00 GMT
21
+ Server:
22
+ - nginx/1.6.3
23
+ Status:
24
+ - 200 OK
25
+ Content-Type:
26
+ - application/json
27
+ Content-Length:
28
+ - '13279'
29
+ X-Content-Type-Options:
30
+ - nosniff
31
+ Vary:
32
+ - Origin
33
+ body:
34
+ encoding: UTF-8
35
+ 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
36
+ 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
37
+ 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
38
+ 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
39
+ 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
40
+ 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
41
+ 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
42
+ 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
43
+ 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
44
+ 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
45
+ 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
46
+ 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
47
+ 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
48
+ 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
49
+ 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
50
+ 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
51
+ 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
52
+ 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
53
+ 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
54
+ 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"}]}'
55
+ http_version:
56
+ recorded_at: Thu, 21 Sep 2017 11:58:04 GMT
57
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,56 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://01010101010101010101010101010101:ABABABABABABABABABABABABABABABABABABABAB@sandbox.moip.com.br/v2/orders
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - MoipRubySDK/0.1.5 (+https://github.com/moip/moip-sdk-ruby)
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Date:
20
+ - Thu, 21 Sep 2017 11:32:09 GMT
21
+ Server:
22
+ - nginx/1.6.3
23
+ Status:
24
+ - 200 OK
25
+ Content-Type:
26
+ - application/json
27
+ Content-Length:
28
+ - '12933'
29
+ X-Content-Type-Options:
30
+ - nosniff
31
+ Vary:
32
+ - Origin
33
+ body:
34
+ encoding: UTF-8
35
+ 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
36
+ 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
37
+ 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
38
+ 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
39
+ 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
40
+ 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
41
+ 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
42
+ 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
43
+ 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
44
+ 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
45
+ 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
46
+ 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
47
+ 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
48
+ 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
49
+ sobrenome","email":"email@cliente.com.br"},"items":[{"product":"razão / motivo
50
+ 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
51
+ 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
52
+ 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
53
+ 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"}]}'
54
+ http_version:
55
+ recorded_at: Thu, 21 Sep 2017 11:32:13 GMT
56
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://01010101010101010101010101010101:ABABABABABABABABABABABABABABABABABABABAB@connect-sandbox.moip.com.br/oauth/token
6
+ body:
7
+ encoding: US-ASCII
8
+ string: client_id=APP-Y0YCCJ5P603B&client_secret=363cdf8ab70a4c5aa08017564c08efbe&code=4efde1f89d9acc3b12124ccfded146518465e423&redirect_uri=http%3A%2F%2Flocalhost%2Fmoip%2Fcallback.php&grant_type=authorization_code
9
+ headers:
10
+ Moip-Account:
11
+ - MPA-UY765TYBL912
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ User-Agent:
15
+ - MoipRubySDK/0.1.5 (+https://github.com/moip/moip-sdk-ruby)
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Content-Type:
22
+ - application/json
23
+ Date:
24
+ - Fri, 15 Sep 2017 18:12:05 GMT
25
+ Server:
26
+ - nginx/1.13.5
27
+ Status:
28
+ - 200 OK
29
+ X-Content-Type-Options:
30
+ - nosniff
31
+ X-Powered-By:
32
+ - Phusion Passenger 5.0.26
33
+ Content-Length:
34
+ - '388'
35
+ Connection:
36
+ - keep-alive
37
+ body:
38
+ encoding: UTF-8
39
+ string: '{"accessToken":"314583f572da417ab361964111bd4d0d_v2","access_token":"314583f572da417ab361964111bd4d0d_v2","expires_in":"2027-09-15","refreshToken":"1d5dc51e71674683b4ed79cd7a988fa1_v2","refresh_token":"1d5dc51e71674683b4ed79cd7a988fa1_v2","scope":"DEFINE_PREFERENCES,MANAGE_ACCOUNT_INFO,RECEIVE_FUNDS,REFUND,RETRIEVE_FINANCIAL_INFO,TRANSFER_FUNDS","moipAccount":{"id":"MPA-8D5DBB4EF8B8"}}'
40
+ http_version:
41
+ recorded_at: Fri, 15 Sep 2017 18:12:06 GMT
42
+ recorded_with: VCR 2.9.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://sandbox.moip.com.br/v2/invoices/INV-4517A209DDA9
5
+ uri: https://sandbox.moip.com.br/v2/invoices/INV-4C26A14CF75B
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -10,32 +10,27 @@ http_interactions:
10
10
  Content-Type:
11
11
  - application/json
12
12
  Authorization:
13
- - OAuth d63tz2xwyu0ewrembove4j5cbv2otpd
13
+ - OAuth s4g8gevtyo8w4jv95nr270dutjy5mq0
14
14
  response:
15
15
  status:
16
16
  code: 200
17
17
  message: OK
18
18
  headers:
19
- Server:
20
- - nginx
21
19
  Date:
22
- - Mon, 09 Mar 2015 13:25:33 GMT
20
+ - Mon, 16 Nov 2015 15:56:31 GMT
21
+ Server:
22
+ - nginx/1.6.2
23
+ Status:
24
+ - 200 OK
23
25
  Content-Type:
24
26
  - application/json
25
27
  Content-Length:
26
- - '140'
27
- Connection:
28
- - keep-alive
29
- Status:
30
- - 200 OK
31
- Via:
32
- - 1.1 vegur
28
+ - '523'
33
29
  X-Content-Type-Options:
34
30
  - nosniff
35
31
  body:
36
32
  encoding: UTF-8
37
- string: '{"id":"INV-4517A209DDA9","amount":13470,"description":"Assinatura da
38
- aula de desenho","email":"caio.gama@moip.com.br","type":"subscription"}'
33
+ string: '{"id":"INV-4C26A14CF75B","invoiceAmount":12610,"description":"teste","customer":{"email":"vagner.vieira@moip.com.br"},"checkoutPreferences":{"fundingInstruments":{"suppressBoleto":true},"installments":[{"quantity":[1,2]}],"suppressShippingAddress":true},"status":"DELIVERED","createdAt":"2015-11-16T13:51:15.000-02:00","updatedAt":"2015-11-16T13:51:15.000-02:00","_links":{"self":{"href":"https://sandbox.moip.com.br/v2/invoice/INV-4C26A14CF75B"},"checkout":"https://checkout-sandbox.moip.com.br/invoice/INV-4C26A14CF75B"}}'
39
34
  http_version:
40
- recorded_at: Mon, 09 Mar 2015 13:25:05 GMT
35
+ recorded_at: Mon, 16 Nov 2015 15:56:31 GMT
41
36
  recorded_with: VCR 2.9.3
@@ -10,7 +10,7 @@ http_interactions:
10
10
  Content-Type:
11
11
  - application/json
12
12
  Authorization:
13
- - OAuth d63tz2xwyu0ewrembove4j5cbv2otpd
13
+ - OAuth 9fdc242631454d4c95d82e27b4127394_v2
14
14
  response:
15
15
  status:
16
16
  code: 200
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://01010101010101010101010101010101:ABABABABABABABABABABABABABABABABABABABAB@sandbox.moip.com.br/v2/preferences/notifications/NPR-1EICPJBCFS4J
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - MoipRubySDK/0.1.5 (+https://github.com/moip/moip-sdk-ruby)
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Date:
20
+ - Mon, 25 Sep 2017 13:16:21 GMT
21
+ Server:
22
+ - Apache
23
+ Status:
24
+ - 200 OK
25
+ Content-Type:
26
+ - application/json
27
+ Content-Length:
28
+ - '187'
29
+ X-Content-Type-Options:
30
+ - nosniff
31
+ Vary:
32
+ - Origin
33
+ body:
34
+ encoding: UTF-8
35
+ string: '{"events":["ORDER.*","PAYMENT.AUTHORIZED","PAYMENT.CANCELLED"],"target":"http://requestb.in/1dhjesw1","media":"WEBHOOK","token":"5877e87109cc4ef6ae9b1a181cf8a276","id":"NPR-1EICPJBCFS4J"}'
36
+ http_version:
37
+ recorded_at: Mon, 25 Sep 2017 13:16:20 GMT
38
+ recorded_with: VCR 2.9.3