moip2 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.rubocop.yml +6 -12
- data/Gemfile +0 -1
- data/Gemfile.lock +4 -4
- data/README.md +142 -14
- data/changelog.md +55 -3
- data/examples/ecommerce/payment-with-boleto.rb +129 -0
- data/examples/ecommerce/payment-with-credit-card.rb +119 -0
- data/examples/ecommerce/payment-with-hash.rb +101 -0
- data/examples/marketplace/create-classical-account-company.rb +74 -0
- data/examples/marketplace/create-classical-account-without-company.rb +47 -0
- data/examples/marketplace/moip-connect.rb +31 -0
- data/examples/marketplace/payment-with-escrow.rb +88 -0
- data/examples/marketplace/payment-with-pre-authorization.rb +87 -0
- data/examples/marketplace/shared-cart.rb +220 -0
- data/lib/moip2/api.rb +17 -2
- data/lib/moip2/balances_api.rb +18 -0
- data/lib/moip2/bank_accounts_api.rb +51 -0
- data/lib/moip2/client.rb +11 -11
- data/lib/moip2/connect_api.rb +2 -13
- data/lib/moip2/connect_client.rb +11 -0
- data/lib/moip2/entry_api.rb +21 -0
- data/lib/moip2/multi_payment_api.rb +8 -0
- data/lib/moip2/order_api.rb +2 -1
- data/lib/moip2/resource/balances.rb +12 -0
- data/lib/moip2/resource/bank_account.rb +12 -0
- data/lib/moip2/resource/entry.rb +13 -0
- data/lib/moip2/version.rb +1 -1
- data/lib/moip2/webhooks_api.rb +20 -4
- data/lib/moip2.rb +7 -0
- data/moip2.gemspec +2 -0
- data/spec/moip2/balances_api_spec.rb +22 -0
- data/spec/moip2/bank_accounts_api_spec.rb +173 -0
- data/spec/moip2/client_spec.rb +13 -76
- data/spec/moip2/connect_api_spec.rb +1 -1
- data/spec/moip2/connect_client_spec.rb +63 -0
- data/spec/moip2/customer_api_spec.rb +3 -3
- data/spec/moip2/entry_api_spec.rb +43 -0
- data/spec/moip2/multi_payment_api_spec.rb +32 -2
- data/spec/moip2/order_api_spec.rb +24 -1
- data/spec/moip2/response_spec.rb +2 -6
- data/spec/moip2/webhooks_spec.rb +87 -11
- data/spec/moip2_spec.rb +1 -1
- data/spec/spec_helper.rb +3 -14
- data/vcr_cassettes/bank_account_create_fail.yml +39 -0
- data/vcr_cassettes/bank_account_create_sucess.yml +41 -0
- data/vcr_cassettes/bank_account_deleted_existent.yml +38 -0
- data/vcr_cassettes/bank_account_deleted_nonexistent.yml +38 -0
- data/vcr_cassettes/bank_account_find_all.yml +9525 -0
- data/vcr_cassettes/bank_account_show_existent.yml +40 -0
- data/vcr_cassettes/bank_account_show_nonexistent.yml +38 -0
- data/vcr_cassettes/bank_account_update.yml +41 -0
- data/vcr_cassettes/capture_multi_payment_sucess.yml +44 -0
- data/vcr_cassettes/find_all_entries.yml +63 -0
- data/vcr_cassettes/find_all_orders_q_search.yml +39 -0
- data/vcr_cassettes/{get_webhooks.yml → find_all_webhooks.yml} +1 -1
- data/vcr_cassettes/find_all_webhooks_event.yml +42 -0
- data/vcr_cassettes/find_all_webhooks_limit.yml +48 -0
- data/vcr_cassettes/find_all_webhooks_multi_params.yml +38 -0
- data/vcr_cassettes/find_all_webhooks_no_filter.yml +58 -0
- data/vcr_cassettes/find_all_webhooks_offset.yml +58 -0
- data/vcr_cassettes/find_all_webhooks_resource_id.yml +38 -0
- data/vcr_cassettes/get_balances.yml +44 -0
- data/vcr_cassettes/show_entries.yml +43 -0
- data/vcr_cassettes/void_multi_payment_sucess.yml +46 -0
- metadata +50 -4
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://01010101010101010101010101010101:ABABABABABABABABABABABABABABABABABABABAB@sandbox.moip.com.br/v2/bankaccounts/BKA-YBG1D8FKXXMT
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
User-Agent:
|
13
|
+
- MoipRubySDK/1.0.0 (+https://github.com/moip/moip-sdk-ruby)
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Date:
|
20
|
+
- Wed, 01 Nov 2017 21:20:17 GMT
|
21
|
+
Server:
|
22
|
+
- Apache
|
23
|
+
X-Newrelic-App-Data:
|
24
|
+
- PxQFUlBXAQoTV1VaDgMOVUYdFGQHBDcQUQxLA1tMXV1dORYzVBJHNQFUZAQUFVFQVThOFAVtGAQFX11SAQUMF14WSz4XQ11WTkURJnQ1GkBIBhlRSlMWAwRXVFICAgVUSAEaEQdfVQAGBlsADA0FV1JSW1kTTVUDCEVSPA==
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Content-Length:
|
28
|
+
- '479'
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
Vary:
|
32
|
+
- Accept-Encoding,Origin
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: '{"id":"BKA-YBG1D8FKXXMT","agencyNumber":"12345","holder":{"taxDocument":{"number":"255.328.259-12","type":"CPF"},"thirdParty":false,"fullname":"Jose
|
36
|
+
Silva dos Santos"},"accountNumber":"12345678","status":"NOT_VERIFIED","createdAt":"2017-11-01T18:15:13.000-02:00","accountCheckNumber":"7","_links":{"self":{"href":"https://sandbox.moip.com.br//accounts/BKA-YBG1D8FKXXMT/bankaccounts"}},"bankName":"BANCO
|
37
|
+
BRADESCO S.A.","type":"CHECKING","agencyCheckNumber":"0","bankNumber":"237"}'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Wed, 01 Nov 2017 21:20:17 GMT
|
40
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://01010101010101010101010101010101:ABABABABABABABABABABABABABABABABABABABAB@sandbox.moip.com.br/v2/bankaccounts/BKA-F00B4R123456
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
User-Agent:
|
13
|
+
- MoipRubySDK/1.0.0 (+https://github.com/moip/moip-sdk-ruby)
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 404
|
17
|
+
message: Not Found
|
18
|
+
headers:
|
19
|
+
Date:
|
20
|
+
- Wed, 01 Nov 2017 21:20:17 GMT
|
21
|
+
Server:
|
22
|
+
- Apache
|
23
|
+
X-Newrelic-App-Data:
|
24
|
+
- PxQFUlBXAQoTV1VaDgMOVUYdFGQHBDcQUQxLA1tMXV1dORYzVBJHNQFUZAQUFVFQVThOFAVtGAQFX11SAQUMF14WSz4XQ11WTkURJnQ1GkBIBhlRSlMWAwNXWFYHAwZKVB0UAgFQWlIABlpVCQtWBwJWCUMdB1IOF1Nq
|
25
|
+
Content-Type:
|
26
|
+
- text/plain; charset=UTF-8
|
27
|
+
Content-Length:
|
28
|
+
- '0'
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
Vary:
|
32
|
+
- Accept-Encoding,Origin
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: ''
|
36
|
+
http_version:
|
37
|
+
recorded_at: Wed, 01 Nov 2017 21:20:17 GMT
|
38
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: https://01010101010101010101010101010101:ABABABABABABABABABABABABABABABABABABABAB@sandbox.moip.com.br/v2/bankaccounts/BKA-QQSVKMC06A6I
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"bankNumber":"237","agencyNumber":"54321","agencyCheckNumber":"0","accountNumber":"12345678","accountCheckNumber":"7","type":"CHECKING","holder":{"taxDocument":{"type":"CPF","number":"255.328.259-12"},"fullname":"Jose
|
9
|
+
Silva dos Santos"}}'
|
10
|
+
headers:
|
11
|
+
Content-Type:
|
12
|
+
- application/json
|
13
|
+
User-Agent:
|
14
|
+
- MoipRubySDK/1.0.0 (+https://github.com/moip/moip-sdk-ruby)
|
15
|
+
response:
|
16
|
+
status:
|
17
|
+
code: 200
|
18
|
+
message: OK
|
19
|
+
headers:
|
20
|
+
Date:
|
21
|
+
- Wed, 01 Nov 2017 21:22:41 GMT
|
22
|
+
Server:
|
23
|
+
- Apache
|
24
|
+
X-Newrelic-App-Data:
|
25
|
+
- PxQFUlBXAQoTV1VaDgMOVUYdFGQHBDcQUQxLA1tMXV1dORYzVBJHNQFUZAQUFVFQVThOFAVtGAQFX11SAQUMF14WSz4XQ1ZTXQ5wBUxBGzIxYh5DSlMWAxxUT1MBAg9RVAIaAVFeT0AFBAEEAVlWVgEHCVYBVwFURhpRAAoQXW4=
|
26
|
+
Content-Type:
|
27
|
+
- application/json
|
28
|
+
Content-Length:
|
29
|
+
- '479'
|
30
|
+
X-Content-Type-Options:
|
31
|
+
- nosniff
|
32
|
+
Vary:
|
33
|
+
- Accept-Encoding,Origin
|
34
|
+
body:
|
35
|
+
encoding: UTF-8
|
36
|
+
string: '{"id":"BKA-QQSVKMC06A6I","agencyNumber":"54321","holder":{"taxDocument":{"number":"255.328.259-12","type":"CPF"},"thirdParty":false,"fullname":"Jose
|
37
|
+
Silva dos Santos"},"accountNumber":"12345678","status":"NOT_VERIFIED","createdAt":"2017-11-01T19:20:16.000-02:00","accountCheckNumber":"7","_links":{"self":{"href":"https://sandbox.moip.com.br//accounts/BKA-QQSVKMC06A6I/bankaccounts"}},"bankName":"BANCO
|
38
|
+
BRADESCO S.A.","type":"CHECKING","agencyCheckNumber":"0","bankNumber":"237"}'
|
39
|
+
http_version:
|
40
|
+
recorded_at: Wed, 01 Nov 2017 21:22:41 GMT
|
41
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://01010101010101010101010101010101:ABABABABABABABABABABABABABABABABABABABAB@sandbox.moip.com.br/v2/multipayments/MPY-89Q4R26EKU9D/capture
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
User-Agent:
|
13
|
+
- MoipRubySDK/1.0.0 (+https://github.com/moip/moip-sdk-ruby)
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Date:
|
20
|
+
- Mon, 02 Oct 2017 13:42:53 GMT
|
21
|
+
Server:
|
22
|
+
- Apache
|
23
|
+
Status:
|
24
|
+
- 200 OK
|
25
|
+
X-Newrelic-App-Data:
|
26
|
+
- PxQFUlBXAQoTUVFWDgEDUVYTGhE1AwE2QgNWEVlbQFtcC2VOYwRAFjNTVTIDEU5aUwE9TUEDa0kJRFpHCxYCG10HVhZLZBtJWgFEPR4CUhIQQ0UERktofGMwSEAbARlWSAEYBlBeVFMGVw5OChQWVAIBAQIAWFdQVFdRV1IFDxEcAgAORFRq
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Content-Length:
|
30
|
+
- '2982'
|
31
|
+
X-Content-Type-Options:
|
32
|
+
- nosniff
|
33
|
+
Vary:
|
34
|
+
- Accept-Encoding,Origin
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: '{"id":"MPY-89Q4R26EKU9D","status":"AUTHORIZED","amount":{"total":8000,"gross":8000,"currency":"BRL"},"installmentCount":1,"payments":[{"id":"PAY-6S0IF4DBW3T7","status":"AUTHORIZED","delayCapture":true,"amount":{"total":4000,"gross":4000,"fees":289,"refunds":0,"liquid":3711,"currency":"BRL"},"installmentCount":1,"fundingInstrument":{"creditCard":{"id":"CRC-0DWSR8500SWI","brand":"VISA","first6":"401200","last4":"3335","store":true,"holder":{"birthdate":"1988-12-30","birthDate":"1988-12-30","taxDocument":{"type":"CPF","number":"33333333333"},"fullname":"Jose
|
38
|
+
Portador da Silva"}},"method":"CREDIT_CARD"},"fees":[{"type":"TRANSACTION","amount":289}],"events":[{"type":"PAYMENT.AUTHORIZED","createdAt":"2017-10-02T10:42:53.258-03"},{"type":"PAYMENT.CREATED","createdAt":"2017-10-02T10:16:12.000-03"},{"type":"PAYMENT.IN_ANALYSIS","createdAt":"2017-10-02T10:16:12.000-03"},{"type":"PAYMENT.WAITING","createdAt":"2017-10-02T10:16:12.000-03"},{"type":"PAYMENT.PRE_AUTHORIZED","createdAt":"2017-10-02T10:16:12.000-03"}],"receivers":[{"moipAccount":{"id":"MPA-1DD377B1D8FB","login":"dev.moip.1455@labs.moip.com.br","fullname":"Joaquim
|
39
|
+
Silva Silva"},"type":"PRIMARY","amount":{"total":4000,"refunds":0}}],"_links":{"self":{"href":"https://sandbox.moip.com.br/v2/payments/PAY-6S0IF4DBW3T7"},"order":{"href":"https://sandbox.moip.com.br/v2/orders/ORD-1M7GQKVQVQ9M","title":"ORD-1M7GQKVQVQ9M"}},"createdAt":"2017-10-02T10:16:12.000-03","updatedAt":"2017-10-02T10:42:53.257-03"},{"id":"PAY-DX3FGEG2EGO4","status":"AUTHORIZED","delayCapture":true,"amount":{"total":4000,"gross":4000,"fees":289,"refunds":0,"liquid":3711,"currency":"BRL"},"installmentCount":1,"fundingInstrument":{"creditCard":{"id":"CRC-0DWSR8500SWI","brand":"VISA","first6":"401200","last4":"3335","store":true,"holder":{"birthdate":"1988-12-30","birthDate":"1988-12-30","taxDocument":{"type":"CPF","number":"33333333333"},"fullname":"Jose
|
40
|
+
Portador da Silva"}},"method":"CREDIT_CARD"},"fees":[{"type":"TRANSACTION","amount":289}],"events":[{"type":"PAYMENT.AUTHORIZED","createdAt":"2017-10-02T10:42:53.259-03"},{"type":"PAYMENT.CREATED","createdAt":"2017-10-02T10:16:12.000-03"},{"type":"PAYMENT.IN_ANALYSIS","createdAt":"2017-10-02T10:16:12.000-03"},{"type":"PAYMENT.WAITING","createdAt":"2017-10-02T10:16:12.000-03"},{"type":"PAYMENT.PRE_AUTHORIZED","createdAt":"2017-10-02T10:16:12.000-03"}],"receivers":[{"moipAccount":{"id":"MPA-1DD377B1D8FB","login":"dev.moip.1455@labs.moip.com.br","fullname":"Joaquim
|
41
|
+
Silva Silva"},"type":"PRIMARY","amount":{"total":4000,"refunds":0}}],"_links":{"self":{"href":"https://sandbox.moip.com.br/v2/payments/PAY-DX3FGEG2EGO4"},"order":{"href":"https://sandbox.moip.com.br/v2/orders/ORD-0M4AWO4315VK","title":"ORD-0M4AWO4315VK"}},"createdAt":"2017-10-02T10:16:12.000-03","updatedAt":"2017-10-02T10:42:53.258-03"}],"_links":{"self":{"href":"https://sandbox.moip.com.br/v2/multipayments/MPY-89Q4R26EKU9D"},"multiorder":{"href":"https://sandbox.moip.com.br/v2/multiorders/MOR-WIJ5E6J7VERW"}}}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Mon, 02 Oct 2017 13:42:53 GMT
|
44
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sandbox.moip.com.br/v2/entries
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
Authorization:
|
13
|
+
- OAuth 9fdc242631454d4c95d82e27b4127394_v2
|
14
|
+
User-Agent:
|
15
|
+
- MoipRubySDK/1.0.0 (+https://github.com/moip/moip-sdk-ruby)
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Tue, 17 Oct 2017 15:23:30 GMT
|
23
|
+
Server:
|
24
|
+
- Apache
|
25
|
+
Status:
|
26
|
+
- 200 OK
|
27
|
+
X-Newrelic-App-Data:
|
28
|
+
- PxQFUlBXAQoTV1VaDgMEUUYdFGQHBDcQUQxLA1tMXV1dORYzVBJHNQFUZAQUFVFQVThOFAVtGAMKRURaBxVDSncnbEsaFAQcA0kJTwFQC1RcAwRUVE8IHxICVgMCVwRRBVcHUFpUAgYIQBQEWVRHV24=
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Content-Length:
|
32
|
+
- '11375'
|
33
|
+
X-Content-Type-Options:
|
34
|
+
- nosniff
|
35
|
+
Vary:
|
36
|
+
- Accept-Encoding,Origin
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: '[{"external_id":"ENT-2JHP5A593QSW","reschedule":[],"scheduledFor":"2012-08-31T16:59:36.000Z","status":"SETTLED","moipAccount":{"account":"MPA-CULBBYHD11"},"fees":[{"amount":150,"type":"TRANSACTION"}],"type":"CREDIT_CARD","grossAmount":150,"moipAccountId":4477,"updatedAt":"2014-04-16T16:16:12.000Z","id":145470,"installment":{"amount":1,"number":1},"references":[],"eventId":"PAY-AQITTDNDKBU9","createdAt":"2014-04-16T16:16:12.000Z","description":"Cartao
|
40
|
+
de credito - Pedido ORD-UF4E00XMFDL1","blocked":false,"settledAt":"2012-08-31T00:00:00.000Z","liquidAmount":0},{"external_id":"ENT-RSYUVS4C59PO","reschedule":[],"scheduledFor":"2012-09-07T00:00:00.000Z","status":"SETTLED","moipAccount":{"account":"MPA-CULBBYHD11"},"fees":[{"amount":83,"type":"TRANSACTION"}],"type":"MOIP_WALLET","grossAmount":1500,"moipAccountId":4477,"updatedAt":"2014-04-16T16:16:12.000Z","id":145466,"installment":{"amount":1,"number":1},"references":[],"eventId":"PAY-VCOEO2GV65DE","createdAt":"2014-04-16T16:16:12.000Z","description":"Conta
|
41
|
+
Moip - Pedido ORD-F4LJ3TF0ZGRN","blocked":false,"settledAt":"2012-09-07T00:00:00.000Z","liquidAmount":1417},{"external_id":"ENT-5F2HORLV5COX","reschedule":[],"scheduledFor":"2012-09-11T00:00:00.000Z","status":"SETTLED","moipAccount":{"account":"MPA-CULBBYHD11"},"fees":[{"amount":68,"type":"TRANSACTION"}],"type":"BOLETO","grossAmount":1000,"moipAccountId":4477,"updatedAt":"2014-04-16T16:16:12.000Z","id":145467,"installment":{"amount":1,"number":1},"references":[],"eventId":"PAY-WL611OIEK23Y","createdAt":"2014-04-16T16:16:12.000Z","description":"Boleto
|
42
|
+
- Pedido ORD-WER11O3QNUFX","blocked":false,"settledAt":"2012-09-11T00:00:00.000Z","liquidAmount":932},{"external_id":"ENT-C76U13FPXV74","reschedule":[],"scheduledFor":"2012-09-11T00:00:00.000Z","status":"SETTLED","moipAccount":{"account":"MPA-CULBBYHD11"},"fees":[{"amount":46,"type":"TRANSACTION"}],"type":"CREDIT_CARD","grossAmount":100,"moipAccountId":4477,"updatedAt":"2014-04-16T16:16:12.000Z","id":145468,"installment":{"amount":1,"number":1},"references":[],"eventId":"PAY-7VQ8H93FSK3Y","createdAt":"2014-04-16T16:16:12.000Z","description":"Cartao
|
43
|
+
de credito - Pedido ORD-9SJGSUE8473Y","blocked":false,"settledAt":"2012-09-11T00:00:00.000Z","liquidAmount":54},{"external_id":"ENT-Z5E7B7QPYYNV","reschedule":[],"scheduledFor":"2012-09-11T00:00:00.000Z","status":"SETTLED","moipAccount":{"account":"MPA-CULBBYHD11"},"fees":[{"amount":46,"type":"TRANSACTION"}],"type":"CREDIT_CARD","grossAmount":100,"moipAccountId":4477,"updatedAt":"2014-04-16T16:16:12.000Z","id":145469,"installment":{"amount":1,"number":1},"references":[],"eventId":"PAY-0JU3HME80YC1","createdAt":"2014-04-16T16:16:12.000Z","description":"Cartao
|
44
|
+
de credito - Pedido ORD-301971ZSKQRB","blocked":false,"settledAt":"2012-09-11T00:00:00.000Z","liquidAmount":54},{"external_id":"ENT-ENWYDD1MWAD8","reschedule":[],"scheduledFor":"2012-09-12T00:00:00.000Z","status":"SETTLED","moipAccount":{"account":"MPA-CULBBYHD11"},"fees":[{"amount":113,"type":"TRANSACTION"}],"type":"CREDIT_CARD","grossAmount":1000,"moipAccountId":4477,"updatedAt":"2014-04-16T16:16:12.000Z","id":145472,"installment":{"amount":1,"number":1},"references":[],"eventId":"PAY-9NJ1PNL2EHRU","createdAt":"2014-04-16T16:16:12.000Z","description":"Cartao
|
45
|
+
de credito - Pedido ORD-XX447G10M3BM","blocked":false,"settledAt":"2012-09-12T00:00:00.000Z","liquidAmount":887},{"external_id":"ENT-M9BQBGKA4DNB","reschedule":[],"scheduledFor":"2012-09-14T00:00:00.000Z","status":"SETTLED","moipAccount":{"account":"MPA-CULBBYHD11"},"fees":[{"amount":409,"type":"TRANSACTION"}],"type":"CREDIT_CARD","grossAmount":5000,"moipAccountId":4477,"updatedAt":"2014-04-16T16:16:12.000Z","id":145473,"installment":{"amount":1,"number":1},"references":[],"eventId":"PAY-5ESU4MQ6I71E","createdAt":"2014-04-16T16:16:12.000Z","description":"Cartao
|
46
|
+
de credito - Pedido ORD-FFQNTJXLOR06","blocked":false,"settledAt":"2012-09-14T00:00:00.000Z","liquidAmount":4591},{"external_id":"ENT-5WXU9PLX0IH8","reschedule":[],"scheduledFor":"2012-09-15T02:32:21.000Z","status":"SETTLED","moipAccount":{"account":"MPA-CULBBYHD11"},"fees":[{"amount":910,"type":"TRANSACTION"}],"type":"CREDIT_CARD","grossAmount":8446,"moipAccountId":4477,"updatedAt":"2016-12-22T13:13:01.000Z","id":33291502,"installment":{"amount":1,"number":1},"references":[{"value":"rangri_dev
|
47
|
+
1029","type":"OWN_ID"},{"value":"ORD-YGY0BQW9CYBG","type":"ORDER"}],"eventId":"PAY-Z3L2N0ZMD1LP","createdAt":"2016-12-22T13:13:01.000Z","description":"Cartao
|
48
|
+
de credito - Pedido ORD-YGY0BQW9CYBG","blocked":false,"settledAt":"2012-09-15T02:32:21.000Z","liquidAmount":7536},{"external_id":"ENT-QN3GTPU5CQJU","reschedule":[],"scheduledFor":"2012-09-16T00:00:00.000Z","status":"SETTLED","moipAccount":{"account":"MPA-CULBBYHD11"},"fees":[{"amount":300,"type":"TRANSACTION"}],"type":"BANK_DEBIT","grossAmount":9000,"moipAccountId":4477,"updatedAt":"2014-04-16T16:16:12.000Z","id":145475,"installment":{"amount":1,"number":1},"references":[],"eventId":"PAY-XIQIISI0BZYL","createdAt":"2014-04-16T16:16:12.000Z","description":"Debito
|
49
|
+
bancario - Pedido ORD-HF7PSUTLR1SA","blocked":false,"settledAt":"2012-09-16T00:00:00.000Z","liquidAmount":8700},{"external_id":"ENT-9YAE94JYVASS","reschedule":[],"scheduledFor":"2012-09-16T00:00:00.000Z","status":"SETTLED","moipAccount":{"account":"MPA-CULBBYHD11"},"fees":[{"amount":705,"type":"TRANSACTION"}],"type":"DEBIT_CARD","grossAmount":9000,"moipAccountId":4477,"updatedAt":"2014-04-16T16:16:13.000Z","id":145476,"installment":{"amount":1,"number":1},"references":[],"eventId":"PAY-VG3YFWITYQAQ","createdAt":"2014-04-16T16:16:13.000Z","description":"Cartao
|
50
|
+
de debito - Pedido ORD-NTVQAUOZPFKC","blocked":false,"settledAt":"2012-09-16T00:00:00.000Z","liquidAmount":8295},{"external_id":"ENT-AS8XUISRFBFF","reschedule":[],"scheduledFor":"2012-09-16T00:00:00.000Z","status":"SETTLED","moipAccount":{"account":"MPA-CULBBYHD11"},"fees":[{"amount":995,"type":"TRANSACTION"}],"type":"CREDIT_CARD","grossAmount":9270,"moipAccountId":4477,"updatedAt":"2014-04-16T16:16:12.000Z","id":145474,"installment":{"amount":1,"number":1},"references":[],"eventId":"PAY-Z5SDX357Y7QQ","createdAt":"2014-04-16T16:16:12.000Z","description":"Cartao
|
51
|
+
de credito - Pedido ORD-CW7XE0B85ZZF","blocked":false,"settledAt":"2012-09-16T00:00:00.000Z","liquidAmount":8275},{"external_id":"ENT-68UGZU9R7EU6","reschedule":[],"scheduledFor":"2012-09-16T00:00:00.000Z","status":"SETTLED","moipAccount":{"account":"MPA-CULBBYHD11"},"fees":[{"amount":927,"type":"TRANSACTION"}],"type":"CREDIT_CARD","grossAmount":12000,"moipAccountId":4477,"updatedAt":"2014-04-16T16:16:13.000Z","id":145477,"installment":{"amount":1,"number":1},"references":[],"eventId":"PAY-T0RUVC2MM3TM","createdAt":"2014-04-16T16:16:13.000Z","description":"Cartao
|
52
|
+
de credito - Pedido ORD-5OFOCCJ0WV59","blocked":false,"settledAt":"2012-09-16T00:00:00.000Z","liquidAmount":11073},{"external_id":"ENT-YPNQIEEFZNY4","reschedule":[],"scheduledFor":"2012-09-16T00:00:00.000Z","status":"SETTLED","moipAccount":{"account":"MPA-CULBBYHD11"},"fees":[{"amount":42,"type":"TRANSACTION"}],"type":"BOLETO","grossAmount":100,"moipAccountId":4477,"updatedAt":"2014-04-16T16:16:13.000Z","id":145478,"installment":{"amount":1,"number":1},"references":[],"eventId":"PAY-RODDG6O2MA4X","createdAt":"2014-04-16T16:16:13.000Z","description":"Boleto
|
53
|
+
- Pedido ORD-WHUYPEAIK0X9","blocked":false,"settledAt":"2012-09-16T00:00:00.000Z","liquidAmount":58},{"external_id":"ENT-OGT4CTUTUMFR","reschedule":[],"scheduledFor":"2012-09-17T00:00:00.000Z","status":"SETTLED","moipAccount":{"account":"MPA-CULBBYHD11"},"fees":[{"amount":46,"type":"TRANSACTION"}],"type":"CREDIT_CARD","grossAmount":100,"moipAccountId":4477,"updatedAt":"2014-04-16T16:16:13.000Z","id":145479,"installment":{"amount":1,"number":1},"references":[],"eventId":"PAY-XI75RK8T9GKT","createdAt":"2014-04-16T16:16:13.000Z","description":"Cartao
|
54
|
+
de credito - Pedido ORD-443TWU8RI106","blocked":false,"settledAt":"2012-09-17T00:00:00.000Z","liquidAmount":54},{"external_id":"ENT-14KM574GDXTH","reschedule":[],"scheduledFor":"2012-09-24T00:00:00.000Z","status":"SETTLED","moipAccount":{"account":"MPA-CULBBYHD11"},"fees":[{"amount":42,"type":"TRANSACTION"}],"type":"BANK_DEBIT","grossAmount":100,"moipAccountId":4477,"updatedAt":"2014-04-16T16:16:13.000Z","id":145482,"installment":{"amount":1,"number":1},"references":[],"eventId":"PAY-C8MHT5P3TS99","createdAt":"2014-04-16T16:16:13.000Z","description":"Debito
|
55
|
+
bancario - Pedido ORD-B3ZXH6A84O9T","blocked":false,"settledAt":"2012-09-24T00:00:00.000Z","liquidAmount":58},{"external_id":"ENT-HPMDTCSFBXJP","reschedule":[],"scheduledFor":"2012-09-29T00:00:00.000Z","status":"SETTLED","moipAccount":{"account":"MPA-CULBBYHD11"},"fees":[{"amount":46,"type":"TRANSACTION"}],"type":"CREDIT_CARD","grossAmount":100,"moipAccountId":4477,"updatedAt":"2014-04-16T16:16:13.000Z","id":145483,"installment":{"amount":1,"number":1},"references":[],"eventId":"PAY-EVFDAGZ2K549","createdAt":"2014-04-16T16:16:13.000Z","description":"Cartao
|
56
|
+
de credito - Pedido ORD-R1ZQTB02O0K2","blocked":false,"settledAt":"2012-09-29T00:00:00.000Z","liquidAmount":54},{"external_id":"ENT-M4UU1672IVIX","reschedule":[],"scheduledFor":"2012-10-02T00:00:00.000Z","status":"SETTLED","moipAccount":{"account":"MPA-CULBBYHD11"},"fees":[{"amount":46,"type":"TRANSACTION"}],"type":"DEBIT_CARD","grossAmount":100,"moipAccountId":4477,"updatedAt":"2014-04-16T16:16:14.000Z","id":145485,"installment":{"amount":1,"number":1},"references":[],"eventId":"PAY-8Z0RPL4KKT7U","createdAt":"2014-04-16T16:16:14.000Z","description":"Cartao
|
57
|
+
de debito - Pedido ORD-DD0U0BJNEFHR","blocked":false,"settledAt":"2012-10-02T00:00:00.000Z","liquidAmount":54},{"external_id":"ENT-MKEAX7F7VYBT","reschedule":[],"scheduledFor":"2012-10-02T00:00:00.000Z","status":"SETTLED","moipAccount":{"account":"MPA-CULBBYHD11"},"fees":[{"amount":46,"type":"TRANSACTION"}],"type":"CREDIT_CARD","grossAmount":100,"moipAccountId":4477,"updatedAt":"2014-04-16T16:16:13.000Z","id":145484,"installment":{"amount":1,"number":1},"references":[],"eventId":"PAY-HWWRUBKC3OST","createdAt":"2014-04-16T16:16:13.000Z","description":"Cartao
|
58
|
+
de credito - Pedido ORD-KSMY03Z63GD3","blocked":false,"settledAt":"2012-10-02T00:00:00.000Z","liquidAmount":54},{"external_id":"ENT-08N8MN5S36JV","reschedule":[],"scheduledFor":"2012-10-03T00:00:00.000Z","status":"SETTLED","moipAccount":{"account":"MPA-CULBBYHD11"},"fees":[{"amount":46,"type":"TRANSACTION"}],"type":"CREDIT_CARD","grossAmount":100,"moipAccountId":4477,"updatedAt":"2014-04-16T16:16:14.000Z","id":145486,"installment":{"amount":1,"number":1},"references":[],"eventId":"PAY-YFAPUA20MGKW","createdAt":"2014-04-16T16:16:14.000Z","description":"Cartao
|
59
|
+
de credito - Pedido ORD-OOYP6IPXKCDQ","blocked":false,"settledAt":"2012-10-03T00:00:00.000Z","liquidAmount":54},{"external_id":"ENT-4IW47SJQ9NQC","reschedule":[],"scheduledFor":"2012-10-04T00:00:00.000Z","status":"SETTLED","moipAccount":{"account":"MPA-CULBBYHD11"},"fees":[{"amount":46,"type":"TRANSACTION"}],"type":"CREDIT_CARD","grossAmount":100,"moipAccountId":4477,"updatedAt":"2014-04-16T16:16:14.000Z","id":145488,"installment":{"amount":1,"number":1},"references":[],"eventId":"PAY-KSF8I5EEZFF3","createdAt":"2014-04-16T16:16:14.000Z","description":"Cartao
|
60
|
+
de credito - Pedido ORD-5FOUMZVNPIVM","blocked":false,"settledAt":"2012-10-04T00:00:00.000Z","liquidAmount":54}]'
|
61
|
+
http_version:
|
62
|
+
recorded_at: Tue, 17 Oct 2017 15:23:30 GMT
|
63
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,39 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://01010101010101010101010101010101:ABABABABABABABABABABABABABABABABABABABAB@sandbox.moip.com.br/v2/orders?q=25051990
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
User-Agent:
|
13
|
+
- MoipRubySDK/1.0.0 (+https://github.com/moip/moip-sdk-ruby)
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Date:
|
20
|
+
- Wed, 27 Sep 2017 12:52:58 GMT
|
21
|
+
Server:
|
22
|
+
- nginx/1.6.3
|
23
|
+
Status:
|
24
|
+
- 200 OK
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Content-Length:
|
28
|
+
- '863'
|
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?q=25051990&filters=&limit=0&offset=0"},"previous":{"href":"https://test.moip.com.br/v2/orders?q=25051990&filters=&limit=0&offset=0"}},"summary":{"count":1,"amount":2000},"orders":[{"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
|
36
|
+
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"}]}'
|
37
|
+
http_version:
|
38
|
+
recorded_at: Wed, 27 Sep 2017 12:52:58 GMT
|
39
|
+
recorded_with: VCR 2.9.3
|
@@ -57,6 +57,6 @@ http_interactions:
|
|
57
57
|
12, 2015 7:08:48 PM"},{"id":"EVE-ZAR096ZLQ051","resourceId":"ORD-DKG99MYRX4Q1","event":"ORDER.PAID","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
58
58
|
11, 2015 7:09:02 PM"},{"id":"EVE-3ES924OCIWMO","resourceId":"PAY-Z8WI7ZQQNE20","event":"PAYMENT.AUTHORIZED","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
59
59
|
11, 2015 7:09:02 PM"}]}'
|
60
|
-
http_version:
|
60
|
+
http_version:
|
61
61
|
recorded_at: Thu, 14 May 2015 13:53:19 GMT
|
62
62
|
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sandbox.moip.com.br/v2/webhooks?event=PAYMENT.WAITING
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
Authorization:
|
13
|
+
- OAuth 9fdc242631454d4c95d82e27b4127394_v2
|
14
|
+
User-Agent:
|
15
|
+
- MoipRubySDK/1.0.0 (+https://github.com/moip/moip-sdk-ruby)
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Mon, 13 Nov 2017 20:04:19 GMT
|
23
|
+
Server:
|
24
|
+
- Apache
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Content-Length:
|
28
|
+
- '3727'
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
Vary:
|
32
|
+
- Origin
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: '{"webhooks":[{"id":"EVE-C3PSMS9LZTSD","resourceId":"PAY-XWNRC9MZTCO8","event":"PAYMENT.WAITING","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
36
|
+
13, 2015 7:08:58 PM"},{"id":"EVE-KKBSIL2U3DZ2","resourceId":"PAY-BKMBBD0BDEZP","event":"PAYMENT.WAITING","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
37
|
+
13, 2015 7:08:58 PM"},{"id":"EVE-6CVUB9TQLKKO","resourceId":"PAY-M1A3GR2L5GF6","event":"PAYMENT.WAITING","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
38
|
+
12, 2015 7:08:55 PM"},{"id":"EVE-AR52H0D3OIM3","resourceId":"PAY-RUSSO3TPNZ58","event":"PAYMENT.WAITING","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
39
|
+
12, 2015 7:08:54 PM"}]}'
|
40
|
+
http_version:
|
41
|
+
recorded_at: Mon, 13 Nov 2017 20:04:19 GMT
|
42
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sandbox.moip.com.br/v2/webhooks?limit=10
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
Authorization:
|
13
|
+
- OAuth 9fdc242631454d4c95d82e27b4127394_v2
|
14
|
+
User-Agent:
|
15
|
+
- MoipRubySDK/1.0.0 (+https://github.com/moip/moip-sdk-ruby)
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Mon, 13 Nov 2017 20:04:17 GMT
|
23
|
+
Server:
|
24
|
+
- Apache
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Content-Length:
|
28
|
+
- '1834'
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
Vary:
|
32
|
+
- Origin
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: '{"webhooks":[{"id":"EVE-DYPUJBZLJAPP","resourceId":"ORD-2M8Q09MMCCE2","event":"ORDER.PAID","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
36
|
+
13, 2015 7:09:06 PM"},{"id":"EVE-OLM7SXFQPFMH","resourceId":"PAY-XWNRC9MZTCO8","event":"PAYMENT.AUTHORIZED","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
37
|
+
13, 2015 7:09:06 PM"},{"id":"EVE-UZ6T5LIUYOSK","resourceId":"PAY-BKMBBD0BDEZP","event":"PAYMENT.IN_ANALYSIS","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
38
|
+
13, 2015 7:09:02 PM"},{"id":"EVE-DBE86H574UEN","resourceId":"PAY-XWNRC9MZTCO8","event":"PAYMENT.IN_ANALYSIS","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
39
|
+
13, 2015 7:09:01 PM"},{"id":"EVE-C3PSMS9LZTSD","resourceId":"PAY-XWNRC9MZTCO8","event":"PAYMENT.WAITING","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
40
|
+
13, 2015 7:08:58 PM"},{"id":"EVE-KKBSIL2U3DZ2","resourceId":"PAY-BKMBBD0BDEZP","event":"PAYMENT.WAITING","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
41
|
+
13, 2015 7:08:58 PM"},{"id":"EVE-OOGZLD67C4GR","resourceId":"ORD-XLPPHQNZ5ZGH","event":"ORDER.CREATED","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
42
|
+
13, 2015 7:08:51 PM"},{"id":"EVE-MAZ7BV8JR8TP","resourceId":"ORD-2M8Q09MMCCE2","event":"ORDER.CREATED","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
43
|
+
13, 2015 7:08:50 PM"},{"id":"EVE-CM30SKZSXQK3","resourceId":"ORD-PCF4FW4B3PE9","event":"ORDER.PAID","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
44
|
+
12, 2015 7:09:01 PM"},{"id":"EVE-5C791OGOLBHF","resourceId":"ORD-65HG3W408X5K","event":"ORDER.PAID","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
45
|
+
12, 2015 7:09:01 PM"}]}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Mon, 13 Nov 2017 20:04:17 GMT
|
48
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sandbox.moip.com.br/v2/webhooks?event=PAYMENT.WAITING&limit=2&offset=2&resourceId=PAY-REJJ9F12MF7R
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
Authorization:
|
13
|
+
- OAuth 9fdc242631454d4c95d82e27b4127394_v2
|
14
|
+
User-Agent:
|
15
|
+
- MoipRubySDK/1.0.0 (+https://github.com/moip/moip-sdk-ruby)
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Mon, 13 Nov 2017 20:21:16 GMT
|
23
|
+
Server:
|
24
|
+
- Apache
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Content-Length:
|
28
|
+
- '354'
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
Vary:
|
32
|
+
- Origin
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: '{"webhooks":[{"resourceId":"PAY-REJJ9F12MF7R","event":"PAYMENT.WAITING","url":"http://requestb.in/1dhjesw1","status":"FAILED","id":"EVE-JLC485YHPXMS","sentAt":"2017-11-13T20:03:03.381Z"},{"resourceId":"PAY-REJJ9F12MF7R","event":"PAYMENT.WAITING","url":"http://requestb.in/","status":"FAILED","id":"EVE-5B22VCN50HGB","sentAt":"2017-11-13T20:03:03.357Z"}]}'
|
36
|
+
http_version:
|
37
|
+
recorded_at: Mon, 13 Nov 2017 20:21:16 GMT
|
38
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,58 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sandbox.moip.com.br/v2/webhooks
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
Authorization:
|
13
|
+
- OAuth 9fdc242631454d4c95d82e27b4127394_v2
|
14
|
+
User-Agent:
|
15
|
+
- MoipRubySDK/1.0.0 (+https://github.com/moip/moip-sdk-ruby)
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Mon, 13 Nov 2017 20:04:16 GMT
|
23
|
+
Server:
|
24
|
+
- Apache
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Content-Length:
|
28
|
+
- '3727'
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
Vary:
|
32
|
+
- Origin
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: '{"webhooks":[{"id":"EVE-DYPUJBZLJAPP","resourceId":"ORD-2M8Q09MMCCE2","event":"ORDER.PAID","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
36
|
+
13, 2015 7:09:06 PM"},{"id":"EVE-OLM7SXFQPFMH","resourceId":"PAY-XWNRC9MZTCO8","event":"PAYMENT.AUTHORIZED","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
37
|
+
13, 2015 7:09:06 PM"},{"id":"EVE-UZ6T5LIUYOSK","resourceId":"PAY-BKMBBD0BDEZP","event":"PAYMENT.IN_ANALYSIS","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
38
|
+
13, 2015 7:09:02 PM"},{"id":"EVE-DBE86H574UEN","resourceId":"PAY-XWNRC9MZTCO8","event":"PAYMENT.IN_ANALYSIS","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
39
|
+
13, 2015 7:09:01 PM"},{"id":"EVE-C3PSMS9LZTSD","resourceId":"PAY-XWNRC9MZTCO8","event":"PAYMENT.WAITING","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
40
|
+
13, 2015 7:08:58 PM"},{"id":"EVE-KKBSIL2U3DZ2","resourceId":"PAY-BKMBBD0BDEZP","event":"PAYMENT.WAITING","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
41
|
+
13, 2015 7:08:58 PM"},{"id":"EVE-OOGZLD67C4GR","resourceId":"ORD-XLPPHQNZ5ZGH","event":"ORDER.CREATED","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
42
|
+
13, 2015 7:08:51 PM"},{"id":"EVE-MAZ7BV8JR8TP","resourceId":"ORD-2M8Q09MMCCE2","event":"ORDER.CREATED","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
43
|
+
13, 2015 7:08:50 PM"},{"id":"EVE-CM30SKZSXQK3","resourceId":"ORD-PCF4FW4B3PE9","event":"ORDER.PAID","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
44
|
+
12, 2015 7:09:01 PM"},{"id":"EVE-5C791OGOLBHF","resourceId":"ORD-65HG3W408X5K","event":"ORDER.PAID","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
45
|
+
12, 2015 7:09:01 PM"},{"id":"EVE-NBIW53UT95VL","resourceId":"PAY-M1A3GR2L5GF6","event":"PAYMENT.AUTHORIZED","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
46
|
+
12, 2015 7:09:00 PM"},{"id":"EVE-PSRTDV9H62R4","resourceId":"PAY-RUSSO3TPNZ58","event":"PAYMENT.AUTHORIZED","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
47
|
+
12, 2015 7:09:00 PM"},{"id":"EVE-CKNTF1IL5ARA","resourceId":"PAY-M1A3GR2L5GF6","event":"PAYMENT.IN_ANALYSIS","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
48
|
+
12, 2015 7:08:57 PM"},{"id":"EVE-UG6P1YFTGL2F","resourceId":"PAY-RUSSO3TPNZ58","event":"PAYMENT.IN_ANALYSIS","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
49
|
+
12, 2015 7:08:56 PM"},{"id":"EVE-6CVUB9TQLKKO","resourceId":"PAY-M1A3GR2L5GF6","event":"PAYMENT.WAITING","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
50
|
+
12, 2015 7:08:55 PM"},{"id":"EVE-AR52H0D3OIM3","resourceId":"PAY-RUSSO3TPNZ58","event":"PAYMENT.WAITING","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
51
|
+
12, 2015 7:08:54 PM"},{"id":"EVE-3JOZY9CJEALJ","resourceId":"ORD-65HG3W408X5K","event":"ORDER.CREATED","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
52
|
+
12, 2015 7:08:49 PM"},{"id":"EVE-PJ2IJXF1A5UL","resourceId":"ORD-PCF4FW4B3PE9","event":"ORDER.CREATED","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
53
|
+
12, 2015 7:08:48 PM"},{"id":"EVE-ZAR096ZLQ051","resourceId":"ORD-DKG99MYRX4Q1","event":"ORDER.PAID","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
54
|
+
11, 2015 7:09:02 PM"},{"id":"EVE-3ES924OCIWMO","resourceId":"PAY-Z8WI7ZQQNE20","event":"PAYMENT.AUTHORIZED","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
55
|
+
11, 2015 7:09:02 PM"}]}'
|
56
|
+
http_version:
|
57
|
+
recorded_at: Mon, 13 Nov 2017 20:04:16 GMT
|
58
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,58 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sandbox.moip.com.br/v2/webhooks?offset=10
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
Authorization:
|
13
|
+
- OAuth 9fdc242631454d4c95d82e27b4127394_v2
|
14
|
+
User-Agent:
|
15
|
+
- MoipRubySDK/1.0.0 (+https://github.com/moip/moip-sdk-ruby)
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Mon, 13 Nov 2017 20:04:18 GMT
|
23
|
+
Server:
|
24
|
+
- Apache
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Content-Length:
|
28
|
+
- '3689'
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
Vary:
|
32
|
+
- Origin
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: '{"webhooks":[{"id":"EVE-NBIW53UT95VL","resourceId":"PAY-M1A3GR2L5GF6","event":"PAYMENT.AUTHORIZED","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
36
|
+
12, 2015 7:09:00 PM"},{"id":"EVE-PSRTDV9H62R4","resourceId":"PAY-RUSSO3TPNZ58","event":"PAYMENT.AUTHORIZED","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
37
|
+
12, 2015 7:09:00 PM"},{"id":"EVE-CKNTF1IL5ARA","resourceId":"PAY-M1A3GR2L5GF6","event":"PAYMENT.IN_ANALYSIS","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
38
|
+
12, 2015 7:08:57 PM"},{"id":"EVE-UG6P1YFTGL2F","resourceId":"PAY-RUSSO3TPNZ58","event":"PAYMENT.IN_ANALYSIS","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
39
|
+
12, 2015 7:08:56 PM"},{"id":"EVE-6CVUB9TQLKKO","resourceId":"PAY-M1A3GR2L5GF6","event":"PAYMENT.WAITING","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
40
|
+
12, 2015 7:08:55 PM"},{"id":"EVE-AR52H0D3OIM3","resourceId":"PAY-RUSSO3TPNZ58","event":"PAYMENT.WAITING","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
41
|
+
12, 2015 7:08:54 PM"},{"id":"EVE-3JOZY9CJEALJ","resourceId":"ORD-65HG3W408X5K","event":"ORDER.CREATED","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
42
|
+
12, 2015 7:08:49 PM"},{"id":"EVE-PJ2IJXF1A5UL","resourceId":"ORD-PCF4FW4B3PE9","event":"ORDER.CREATED","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
43
|
+
12, 2015 7:08:48 PM"},{"id":"EVE-ZAR096ZLQ051","resourceId":"ORD-DKG99MYRX4Q1","event":"ORDER.PAID","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
44
|
+
11, 2015 7:09:02 PM"},{"id":"EVE-3ES924OCIWMO","resourceId":"PAY-Z8WI7ZQQNE20","event":"PAYMENT.AUTHORIZED","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
45
|
+
11, 2015 7:09:02 PM"},{"id":"EVE-DYPUJBZLJAPP","resourceId":"ORD-2M8Q09MMCCE2","event":"ORDER.PAID","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
46
|
+
13, 2015 7:09:06 PM"},{"id":"EVE-OLM7SXFQPFMH","resourceId":"PAY-XWNRC9MZTCO8","event":"PAYMENT.AUTHORIZED","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
47
|
+
13, 2015 7:09:06 PM"},{"id":"EVE-UZ6T5LIUYOSK","resourceId":"PAY-BKMBBD0BDEZP","event":"PAYMENT.IN_ANALYSIS","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
48
|
+
13, 2015 7:09:02 PM"},{"id":"EVE-DBE86H574UEN","resourceId":"PAY-XWNRC9MZTCO8","event":"PAYMENT.IN_ANALYSIS","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
49
|
+
13, 2015 7:09:01 PM"},{"id":"EVE-C3PSMS9LZTSD","resourceId":"PAY-XWNRC9MZTCO8","event":"PAYMENT.WAITING","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
50
|
+
13, 2015 7:08:58 PM"},{"id":"EVE-KKBSIL2U3DZ2","resourceId":"PAY-BKMBBD0BDEZP","event":"PAYMENT.WAITING","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
51
|
+
13, 2015 7:08:58 PM"},{"id":"EVE-OOGZLD67C4GR","resourceId":"ORD-XLPPHQNZ5ZGH","event":"ORDER.CREATED","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
52
|
+
13, 2015 7:08:51 PM"},{"id":"EVE-MAZ7BV8JR8TP","resourceId":"ORD-2M8Q09MMCCE2","event":"ORDER.CREATED","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
53
|
+
13, 2015 7:08:50 PM"},{"id":"EVE-CM30SKZSXQK3","resourceId":"ORD-PCF4FW4B3PE9","event":"ORDER.PAID","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
54
|
+
12, 2015 7:09:01 PM"},{"id":"EVE-5C791OGOLBHF","resourceId":"ORD-65HG3W408X5K","event":"ORDER.PAID","url":"http://www.100escolha.com/moip_suporte/","status":"CREATED","sentAt":"May
|
55
|
+
12, 2015 7:09:01 PM"}]}'
|
56
|
+
http_version:
|
57
|
+
recorded_at: Mon, 13 Nov 2017 20:04:18 GMT
|
58
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sandbox.moip.com.br/v2/webhooks?resourceId=PAY-REJJ9F12MF7R
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
Authorization:
|
13
|
+
- OAuth 9fdc242631454d4c95d82e27b4127394_v2
|
14
|
+
User-Agent:
|
15
|
+
- MoipRubySDK/1.0.0 (+https://github.com/moip/moip-sdk-ruby)
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Mon, 13 Nov 2017 20:12:07 GMT
|
23
|
+
Server:
|
24
|
+
- Apache
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Content-Length:
|
28
|
+
- '3727'
|
29
|
+
X-Content-Type-Options:
|
30
|
+
- nosniff
|
31
|
+
Vary:
|
32
|
+
- Origin
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: '{"webhooks":[{"resourceId":"PAY-REJJ9F12MF7R","event":"PAYMENT.WAITING","url":"http://loja.afipe.com.br/api/v1/notifyCheckout","status":"CREATED","id":"EVE-Y3IHX8P55I6Z","sentAt":"2017-11-13T20:03:03.429Z"},{"resourceId":"PAY-REJJ9F12MF7R","event":"PAYMENT.WAITING","url":"http://requestb.in/","status":"CREATED","id":"EVE-EGJVE34IAEB7","sentAt":"2017-11-13T20:03:03.409Z"},{"resourceId":"PAY-REJJ9F12MF7R","event":"PAYMENT.WAITING","url":"http://requestb.in/1dhjesw1","status":"CREATED","id":"EVE-JLC485YHPXMS","sentAt":"2017-11-13T20:03:03.381Z"},{"resourceId":"PAY-REJJ9F12MF7R","event":"PAYMENT.WAITING","url":"http://requestb.in/","status":"CREATED","id":"EVE-5B22VCN50HGB","sentAt":"2017-11-13T20:03:03.357Z"},{"resourceId":"PAY-REJJ9F12MF7R","event":"PAYMENT.WAITING","url":"http://amigoverdepet.com/wc-api/moip-webhook/?token=3118b12edf3f9e354dd180df3b07ac9738abe44e","status":"CREATED","id":"EVE-8XPAHRLG1K5E","sentAt":"2017-11-13T20:03:03.332Z"},{"resourceId":"PAY-REJJ9F12MF7R","event":"PAYMENT.WAITING","url":"http://requestb.in/","status":"CREATED","id":"EVE-QL1QES2FLEYJ","sentAt":"2017-11-13T20:02:59.541Z"},{"resourceId":"PAY-REJJ9F12MF7R","event":"PAYMENT.WAITING","url":"https://38a01653.ngrok.io/webhook","status":"CREATED","id":"EVE-5W5647DDW31F","sentAt":"2017-11-13T20:02:59.500Z"},{"resourceId":"PAY-REJJ9F12MF7R","event":"PAYMENT.WAITING","url":"https://38a01653.ngrok.io/webhook","status":"CREATED","id":"EVE-W0VN94HDM58C","sentAt":"2017-11-13T20:02:59.471Z"},{"resourceId":"PAY-REJJ9F12MF7R","event":"PAYMENT.WAITING","url":"https://69b4588e.ngrok.io/webhook","status":"CREATED","id":"EVE-AV347DUDO7RV","sentAt":"2017-11-13T20:02:59.444Z"},{"resourceId":"PAY-REJJ9F12MF7R","event":"PAYMENT.WAITING","url":"http://requestb.in/","status":"CREATED","id":"EVE-V48P9X7NG5Z3","sentAt":"2017-11-13T20:02:59.424Z"},{"resourceId":"PAY-REJJ9F12MF7R","event":"PAYMENT.WAITING","url":"https://moip-test.herokuapp.com/moip/response","status":"CREATED","id":"EVE-1L34Q15J7EMU","sentAt":"2017-11-13T20:02:59.408Z"},{"resourceId":"PAY-REJJ9F12MF7R","event":"PAYMENT.WAITING","url":"https://38a01653.ngrok.io/webhook","status":"CREATED","id":"EVE-57ZSBNOQ0FGB","sentAt":"2017-11-13T20:02:59.401Z"},{"resourceId":"PAY-REJJ9F12MF7R","event":"PAYMENT.WAITING","url":"https://38a01653.ngrok.io/webhook","status":"CREATED","id":"EVE-WE3GE80DPILD","sentAt":"2017-11-13T20:02:59.366Z"},{"resourceId":"PAY-REJJ9F12MF7R","event":"PAYMENT.WAITING","url":"https://moipapp-dbereis.herokuapp.com/webhook","status":"CREATED","id":"EVE-ZNVD6SB3QUYD","sentAt":"2017-11-13T20:02:59.336Z"},{"resourceId":"PAY-REJJ9F12MF7R","event":"PAYMENT.WAITING","url":"https://moip-test.herokuapp.com/moip/response","status":"CREATED","id":"EVE-HZNK8FZ585WV","sentAt":"2017-11-13T20:02:59.301Z"},{"resourceId":"PAY-REJJ9F12MF7R","event":"PAYMENT.WAITING","url":"http://loja.afipe.com.br/api/v1/notifyCheckout","status":"CREATED","id":"EVE-HQUG8DA85WZW","sentAt":"2017-11-13T20:02:53.734Z"},{"resourceId":"PAY-REJJ9F12MF7R","event":"PAYMENT.WAITING","url":"http://loja.afipe.com.br/api/v1/notifyCheckout","status":"CREATED","id":"EVE-B1H5RTAADJFD","sentAt":"2017-11-13T20:02:53.724Z"},{"resourceId":"PAY-REJJ9F12MF7R","event":"PAYMENT.WAITING","url":"http://loja.afipe.com.br/api/v1/notifyCheckout","status":"CREATED","id":"EVE-YZU8ZMB1PQH1","sentAt":"2017-11-13T20:02:53.704Z"},{"resourceId":"PAY-REJJ9F12MF7R","event":"PAYMENT.WAITING","url":"https://requestb.in/1d3axec1","status":"CREATED","id":"EVE-VCCM0I5SO79Q","sentAt":"2017-11-13T20:02:53.703Z"},{"resourceId":"PAY-REJJ9F12MF7R","event":"PAYMENT.WAITING","url":"http://loja.afipe.com.br/api/v1/notifyCheckout","status":"CREATED","id":"EVE-JKXO7HRXK521","sentAt":"2017-11-13T20:02:53.685Z"}]}'
|
36
|
+
http_version:
|
37
|
+
recorded_at: Mon, 13 Nov 2017 20:12:07 GMT
|
38
|
+
recorded_with: VCR 2.9.3
|