moip2 1.2.1 → 1.3.1
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/Gemfile.lock +1 -1
- data/PULL_REQUEST_TEMPLATE.md +13 -0
- data/README.md +106 -1
- data/changelog.md +21 -1
- data/examples/marketplace/create-classical-account-company.rb +4 -2
- data/examples/marketplace/create-classical-account-without-company.rb +4 -1
- data/lib/moip2.rb +3 -0
- data/lib/moip2/accounts_api.rb +14 -2
- data/lib/moip2/api.rb +4 -0
- data/lib/moip2/entry_api.rb +1 -1
- data/lib/moip2/payment_api.rb +4 -0
- data/lib/moip2/resource/escrow.rb +9 -0
- data/lib/moip2/resource/transfer.rb +9 -0
- data/lib/moip2/transfer_api.rb +50 -0
- data/lib/moip2/version.rb +1 -1
- data/spec/moip2/accounts_api_spec.rb +24 -4
- data/spec/moip2/payment_api_spec.rb +14 -0
- data/spec/moip2/transfers_spec.rb +155 -0
- data/vcr_cassettes/account_doesnt_exist_for_email.yml +44 -0
- data/vcr_cassettes/account_doesnt_exist_for_tax_document.yml +44 -0
- data/vcr_cassettes/account_exists_for_email.yml +46 -0
- data/vcr_cassettes/account_exists_for_tax_document.yml +46 -0
- data/vcr_cassettes/create_transfer_success.yml +44 -0
- data/vcr_cassettes/find_all_transfers_filters.yml +80 -0
- data/vcr_cassettes/find_all_transfers_limit.yml +56 -0
- data/vcr_cassettes/find_all_transfers_multi_params.yml +42 -0
- data/vcr_cassettes/find_all_transfers_no_query_params.yml +76 -0
- data/vcr_cassettes/find_all_transfers_offset.yml +79 -0
- data/vcr_cassettes/find_all_transfers_status.yml +76 -0
- data/vcr_cassettes/get_transfer.yml +83 -0
- data/vcr_cassettes/get_transfer_not_found.yml +42 -0
- data/vcr_cassettes/release_escrow.yml +43 -0
- data/vcr_cassettes/revert_transfer.yml +42 -0
- metadata +24 -3
@@ -0,0 +1,155 @@
|
|
1
|
+
describe Moip2::TransferApi do
|
2
|
+
let(:transfer_api) { described_class.new(sandbox_client) }
|
3
|
+
|
4
|
+
context "#create" do
|
5
|
+
let(:created_transfer) do
|
6
|
+
VCR.use_cassette("create_transfer_success") do
|
7
|
+
transfer_api.create(
|
8
|
+
amount: 500,
|
9
|
+
transferInstrument: {
|
10
|
+
method: "BANK_ACCOUNT",
|
11
|
+
bankAccount: {
|
12
|
+
type: "CHECKING",
|
13
|
+
bankNumber: "001",
|
14
|
+
agencyNumber: "1111",
|
15
|
+
agencyCheckNumber: "2",
|
16
|
+
accountNumber: "9999",
|
17
|
+
accountCheckNumber: "8",
|
18
|
+
holder: {
|
19
|
+
fullname: "Nome do Portador",
|
20
|
+
taxDocument: {
|
21
|
+
type: "CPF",
|
22
|
+
number: "22222222222",
|
23
|
+
},
|
24
|
+
},
|
25
|
+
},
|
26
|
+
},
|
27
|
+
)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
it "creates a transfer" do
|
32
|
+
expect(created_transfer.id).to eq("TRA-4PGNZ7KOFN4G")
|
33
|
+
end
|
34
|
+
|
35
|
+
it "returns a Transfer object" do
|
36
|
+
expect(created_transfer).to be_a(Moip2::Resource::Transfer)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe "#show" do
|
41
|
+
let (:transfer_id) { "TRA-4PGNZ7KOFN4G" }
|
42
|
+
|
43
|
+
let(:response) do
|
44
|
+
VCR.use_cassette("get_transfer") do
|
45
|
+
transfer_api.show(transfer_id)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
it { expect(response.id).to eq transfer_id }
|
50
|
+
|
51
|
+
context "when transfer is not found" do
|
52
|
+
let(:response) do
|
53
|
+
VCR.use_cassette("get_transfer_not_found") do
|
54
|
+
transfer_api.show("TRA-INVALID")
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
it "raises a NotFound" do
|
59
|
+
expect { response }.to raise_error Moip2::NotFoundError
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe "#find_all" do
|
65
|
+
context "when passing no query params" do
|
66
|
+
subject(:response) do
|
67
|
+
VCR.use_cassette("find_all_transfers_no_query_params") do
|
68
|
+
transfer_api.find_all
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
it { expect(response).to be_a(Moip2::Resource::Transfer) }
|
73
|
+
it { expect(response.transfers.size).to eq(20) }
|
74
|
+
it { expect(response.transfers.first).to be_a(Moip2::Resource::Transfer) }
|
75
|
+
it { expect(response.transfers.first.id).to eq("TRA-4PGNZ7KOFN4G") }
|
76
|
+
end
|
77
|
+
|
78
|
+
context "when passing limit" do
|
79
|
+
subject(:response) do
|
80
|
+
VCR.use_cassette("find_all_transfers_limit") do
|
81
|
+
transfer_api.find_all(limit: 10)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
it { expect(response).to be_a(Moip2::Resource::Transfer) }
|
86
|
+
it { expect(response.transfers.size).to eq(10) }
|
87
|
+
it { expect(response.transfers.first).to be_a(Moip2::Resource::Transfer) }
|
88
|
+
it { expect(response.transfers.first.id).to eq("TRA-4PGNZ7KOFN4G") }
|
89
|
+
end
|
90
|
+
|
91
|
+
context "when passing offset" do
|
92
|
+
subject(:response) do
|
93
|
+
VCR.use_cassette("find_all_transfers_offset") do
|
94
|
+
transfer_api.find_all(offset: 10)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
it { expect(response).to be_a(Moip2::Resource::Transfer) }
|
99
|
+
it { expect(response.transfers.size).to eq(20) }
|
100
|
+
it { expect(response.transfers.first).to be_a(Moip2::Resource::Transfer) }
|
101
|
+
it { expect(response.transfers.first.id).to eq("TRA-CRQBMMRS4XK9") }
|
102
|
+
end
|
103
|
+
|
104
|
+
context "when passing status" do
|
105
|
+
subject(:response) do
|
106
|
+
VCR.use_cassette("find_all_transfers_status") do
|
107
|
+
transfer_api.find_all(status: "REQUESTED")
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
it { expect(response).to be_a(Moip2::Resource::Transfer) }
|
112
|
+
it { expect(response.transfers.size).to eq(20) }
|
113
|
+
it { expect(response.transfers.first).to be_a(Moip2::Resource::Transfer) }
|
114
|
+
it { expect(response.transfers.first.id).to eq("TRA-4PGNZ7KOFN4G") }
|
115
|
+
end
|
116
|
+
|
117
|
+
context "when passing filters" do
|
118
|
+
subject(:response) do
|
119
|
+
VCR.use_cassette("find_all_transfers_filters") do
|
120
|
+
transfer_api.find_all(filters: { "transferInstrument.method" => { in: ["BANK_ACCOUNT"] } })
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
it { expect(response).to be_a(Moip2::Resource::Transfer) }
|
125
|
+
it { expect(response.transfers.size).to eq(20) }
|
126
|
+
it { expect(response.transfers.first).to be_a(Moip2::Resource::Transfer) }
|
127
|
+
it { expect(response.transfers.first.id).to eq("TRA-4PGNZ7KOFN4G") }
|
128
|
+
end
|
129
|
+
|
130
|
+
context "when passing status, limit and offset" do
|
131
|
+
subject(:response) do
|
132
|
+
VCR.use_cassette("find_all_transfers_multi_params") do
|
133
|
+
transfer_api.find_all(status: "REQUESTED",
|
134
|
+
limit: 2,
|
135
|
+
offset: 2)
|
136
|
+
end
|
137
|
+
end
|
138
|
+
it { expect(response).to be_a(Moip2::Resource::Transfer) }
|
139
|
+
it { expect(response.transfers.size).to eq(2) }
|
140
|
+
it { expect(response.transfers.first).to be_a(Moip2::Resource::Transfer) }
|
141
|
+
it { expect(response.transfers.first.id).to eq("TRA-WG7MJCRAILEH") }
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
describe "#revert" do
|
146
|
+
let (:reverted_transfer) do
|
147
|
+
VCR.use_cassette("revert_transfer") do
|
148
|
+
transfer_api.reverse("TRA-B0W5FD5FCADG")
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
it { expect(reverted_transfer.id).to eq "TRA-B0W5FD5FCADG" }
|
153
|
+
it { expect(reverted_transfer.status).to eq "REVERSED" }
|
154
|
+
end
|
155
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sandbox.moip.com.br/v2/accounts/exists?email=dev.moip.0123456789@labs.moip.com.br
|
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/0.1.5 (+https://github.com/moip/moip-sdk-ruby)
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 400
|
19
|
+
message: Bad Request
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Tue, 22 Aug 2017 12:51:11 GMT
|
23
|
+
Server:
|
24
|
+
- nginx/1.6.3
|
25
|
+
Status:
|
26
|
+
- 400 Bad Request
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
X-Newrelic-App-Data:
|
30
|
+
- PxQFUlBXAQoTVVBRBAkAX1MTGhEhCQ0WQg1UDl1KG3VBBEkEHiBjK14MdhEPTk4BHwUCAVhEWRIXHlNLCxUXERBKfydsERYeA0sJTQFPA1JWAwdRVlYPAQJUVVcPCA9SUB0bAk5EBlRTAFlTCFpXAwUGWAJXWRE/
|
31
|
+
Content-Length:
|
32
|
+
- '3'
|
33
|
+
X-Content-Type-Options:
|
34
|
+
- nosniff
|
35
|
+
Vary:
|
36
|
+
- Origin
|
37
|
+
Connection:
|
38
|
+
- close
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '400'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Tue, 22 Aug 2017 12:51:11 GMT
|
44
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sandbox.moip.com.br/v2/accounts/exists?tax_document=555.000.123-40
|
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/0.1.5 (+https://github.com/moip/moip-sdk-ruby)
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 400
|
19
|
+
message: Bad Request
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Tue, 22 Aug 2017 12:51:11 GMT
|
23
|
+
Server:
|
24
|
+
- nginx/1.6.3
|
25
|
+
Status:
|
26
|
+
- 400 Bad Request
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
X-Newrelic-App-Data:
|
30
|
+
- PxQFUlBXAQoTVVBRBAkAX1MTGhEhCQ0WQg1UDl1KG3VBBEkEHiBjK14MdhEPTk4BHwUCAVhEWRIXHlNLCxUXERBKfydsERYeA0sJTQFPA1JWAwdRVlYPAQJUVVcPCA9SUB0bAk5EBlRTAFlTCFpXAwUGWAJXWRE/
|
31
|
+
Content-Length:
|
32
|
+
- '3'
|
33
|
+
X-Content-Type-Options:
|
34
|
+
- nosniff
|
35
|
+
Vary:
|
36
|
+
- Origin
|
37
|
+
Connection:
|
38
|
+
- close
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '400'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Tue, 22 Aug 2017 12:51:11 GMT
|
44
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sandbox.moip.com.br/v2/accounts/exists?email=dev.moip.1503312536@labs.moip.com.br
|
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/0.1.5 (+https://github.com/moip/moip-sdk-ruby)
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Tue, 22 Aug 2017 12:51:09 GMT
|
23
|
+
Server:
|
24
|
+
- nginx/1.6.3
|
25
|
+
Status:
|
26
|
+
- 200 OK
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
X-Newrelic-App-Data:
|
30
|
+
- PxQFUlBXAQoTVVBRBAkAX1MTGhEhCQ0WQg1UDl1KG3VBBEkEHiBjK14MdhEPTk4BHwUCAVhEWRIXHlNLCxUXERBKfydsERYeA0sJTQFPBlZXAwBQUVIIBghSVFYACBtLVR0UBwRVUFAHVA9WDw8HAABWCkNs
|
31
|
+
Expires:
|
32
|
+
- Wed, 22 Aug 2018 12:51:09 GMT
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=31536000, public
|
35
|
+
Content-Length:
|
36
|
+
- '3'
|
37
|
+
X-Content-Type-Options:
|
38
|
+
- nosniff
|
39
|
+
Vary:
|
40
|
+
- Origin
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '200'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Tue, 22 Aug 2017 12:51:10 GMT
|
46
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sandbox.moip.com.br/v2/accounts/exists?tax_document=436.130.670-21
|
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/0.1.5 (+https://github.com/moip/moip-sdk-ruby)
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Tue, 22 Aug 2017 12:51:09 GMT
|
23
|
+
Server:
|
24
|
+
- nginx/1.6.3
|
25
|
+
Status:
|
26
|
+
- 200 OK
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
X-Newrelic-App-Data:
|
30
|
+
- PxQFUlBXAQoTVVBRBAkAX1MTGhEhCQ0WQg1UDl1KG3VBBEkEHiBjK14MdhEPTk4BHwUCAVhEWRIXHlNLCxUXERBKfydsERYeA0sJTQFPBlZXAwBQUVIIBghSVFYACBtLVR0UBwRVUFAHVA9WDw8HAABWCkNs
|
31
|
+
Expires:
|
32
|
+
- Wed, 22 Aug 2018 12:51:09 GMT
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=31536000, public
|
35
|
+
Content-Length:
|
36
|
+
- '3'
|
37
|
+
X-Content-Type-Options:
|
38
|
+
- nosniff
|
39
|
+
Vary:
|
40
|
+
- Origin
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '200'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Tue, 22 Aug 2017 12:51:10 GMT
|
46
|
+
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/transfers
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"amount":500,"transferInstrument":{"method":"BANK_ACCOUNT","bankAccount":{"type":"CHECKING","bankNumber":"001","agencyNumber":"1111","agencyCheckNumber":"2","accountNumber":"9999","accountCheckNumber":"8","holder":{"fullname":"Nome
|
9
|
+
do Portador","taxDocument":{"type":"CPF","number":"22222222222"}}}}}'
|
10
|
+
headers:
|
11
|
+
Content-Type:
|
12
|
+
- application/json
|
13
|
+
User-Agent:
|
14
|
+
- MoipRubySDK/1.2.1 (+https://github.com/moip/moip-sdk-ruby)
|
15
|
+
response:
|
16
|
+
status:
|
17
|
+
code: 201
|
18
|
+
message: Created
|
19
|
+
headers:
|
20
|
+
Date:
|
21
|
+
- Thu, 11 Jan 2018 20:58:45 GMT
|
22
|
+
Server:
|
23
|
+
- Apache
|
24
|
+
Status:
|
25
|
+
- 201 Created
|
26
|
+
X-Newrelic-App-Data:
|
27
|
+
- PxQFUlBXAQoTV1VaDgMEUUYdFGQHBDcQUQxLA1tMXV1dORYzVBJHNQFUZAQUFVFQVThOFAVtGBIWUFhABAMRERBKaC1rbB0QH1UXUR1QHVVUBQVWU1UUAABVTUAEBAUDVwBSUgNeVFYIA1lbGhRSU18WXDw=
|
28
|
+
Content-Type:
|
29
|
+
- application/json
|
30
|
+
Content-Length:
|
31
|
+
- '1276'
|
32
|
+
X-Content-Type-Options:
|
33
|
+
- nosniff
|
34
|
+
Vary:
|
35
|
+
- Accept-Encoding,Origin
|
36
|
+
body:
|
37
|
+
encoding: UTF-8
|
38
|
+
string: '{"fee":0,"amount":500,"updatedAt":"2018-01-11T20:58:43.399Z","id":"TRA-4PGNZ7KOFN4G","transferInstrument":{"method":"BANK_ACCOUNT","bankAccount":{"id":"BKA-M3B94YJ939F0","agencyNumber":"1111","holder":{"taxDocument":{"number":"255.328.259-12","type":"CPF"},"fullname":"Jose
|
39
|
+
Silva dos Santos"},"accountNumber":"9999","accountCheckNumber":"8","bankName":"BANCO
|
40
|
+
DO BRASIL S.A.","type":"CHECKING","agencyCheckNumber":"2","bankNumber":"001"}},"status":"REQUESTED","events":[{"createdAt":"2018-01-11T20:58:45.000Z","description":"Requested","type":"TRANSFER.REQUESTED"}],"createdAt":"2018-01-11T20:58:43.399Z","entries":[{"external_id":"ENT-6WHMDYHN6KKN","reschedule":[],"scheduledFor":"2018-01-11T20:58:43.000Z","status":"SETTLED","moipAccount":{"account":"MPA-CULBBYHD11"},"fees":[],"type":"TRANSFER_TO_BANK_ACCOUNT","grossAmount":-500,"moipAccountId":4477,"updatedAt":"2018-01-11T20:58:45.057Z","id":36672451,"installment":{"amount":1,"number":1},"references":[],"eventId":"TRA-4PGNZ7KOFN4G","createdAt":"2018-01-11T20:58:45.028Z","description":"Transferencia
|
41
|
+
para conta bancaria - TRA-4PGNZ7KOFN4G","blocked":false,"settledAt":"2018-01-11T20:58:45.057Z","liquidAmount":-500}],"role":"PAYER","_links":{"self":{"href":"https://sandbox.moip.com.br/v2/transfers/TRA-4PGNZ7KOFN4G"}}}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Thu, 11 Jan 2018 20:58:45 GMT
|
44
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,80 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://01010101010101010101010101010101:ABABABABABABABABABABABABABABABABABABABAB@sandbox.moip.com.br/v2/transfers?filters=transferInstrument.method::in(BANK_ACCOUNT)
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
User-Agent:
|
13
|
+
- MoipRubySDK/1.2.1 (+https://github.com/moip/moip-sdk-ruby)
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Date:
|
20
|
+
- Fri, 12 Jan 2018 17:01:58 GMT
|
21
|
+
Server:
|
22
|
+
- Apache
|
23
|
+
Status:
|
24
|
+
- 200 OK
|
25
|
+
X-Newrelic-App-Data:
|
26
|
+
- PxQFUlBXAQoTV1VaDgMEUUYdFGQHBDcQUQxLA1tMXV1dORYzVBJHNQFUZAQUFVFQVThOFAVtGBIWUFhABAMRERBKfydsERYeA0sJTQFPAlBTBgFRU1UUAxxGAlUFBw9fBwFTBVMHU1UAARpOXllYQVY4
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Content-Length:
|
30
|
+
- '12363'
|
31
|
+
X-Content-Type-Options:
|
32
|
+
- nosniff
|
33
|
+
Vary:
|
34
|
+
- Accept-Encoding,Origin
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: '{"summary":{"amount":168758324,"count":11137},"transfers":[{"fee":0,"amount":500,"updatedAt":"2018-01-11T20:58:45.000Z","id":"TRA-4PGNZ7KOFN4G","transferInstrument":{"method":"BANK_ACCOUNT","bankAccount":{"id":"BKA-M3B94YJ939F0","agencyNumber":"1111","holder":{"taxDocument":{"number":"255.328.259-12","type":"CPF"},"fullname":"Jose
|
38
|
+
Silva dos Santos"},"accountNumber":"9999","accountCheckNumber":"8","bankName":"BANCO
|
39
|
+
DO BRASIL S.A.","type":"CHECKING","agencyCheckNumber":"2","bankNumber":"001"}},"status":"COMPLETED","createdAt":"2018-01-11T20:58:43.000Z","role":"PAYER","_links":{"self":{"href":"https://sandbox.moip.com.br/v2/transfers/TRA-4PGNZ7KOFN4G"}}},{"fee":0,"amount":9000,"updatedAt":"2018-01-03T18:12:31.000Z","id":"TRA-8XKL7XDBS26C","transferInstrument":{"method":"BANK_ACCOUNT","bankAccount":{"id":"BKA-EQW51MWMAO22","agencyNumber":"1111","holder":{"taxDocument":{"number":"255.328.259-12","type":"CPF"},"fullname":"Jose
|
40
|
+
Silva dos Santos"},"accountNumber":"11111111","accountCheckNumber":"1","bankName":"BANCO
|
41
|
+
DO BRASIL S.A.","type":"CHECKING","agencyCheckNumber":"1","bankNumber":"001"}},"status":"COMPLETED","createdAt":"2018-01-03T18:12:31.000Z","role":"PAYER","_links":{"self":{"href":"https://sandbox.moip.com.br/v2/transfers/TRA-8XKL7XDBS26C"}}},{"fee":0,"amount":500,"updatedAt":"2017-11-07T17:41:37.000Z","id":"TRA-A8K7B5WHRTGF","transferInstrument":{"method":"BANK_ACCOUNT","bankAccount":{"id":"BKA-DM3ALKMHL2W3","agencyNumber":"1111","holder":{"taxDocument":{"number":"255.328.259-12","type":"CPF"},"fullname":"Jose
|
42
|
+
Silva dos Santos"},"accountNumber":"9999","accountCheckNumber":"8","bankName":"BANCO
|
43
|
+
DO BRASIL S.A.","type":"CHECKING","agencyCheckNumber":"2","bankNumber":"001"}},"status":"COMPLETED","createdAt":"2017-11-07T17:41:36.000Z","role":"PAYER","_links":{"self":{"href":"https://sandbox.moip.com.br/v2/transfers/TRA-A8K7B5WHRTGF"}}},{"fee":0,"amount":500,"updatedAt":"2017-11-01T11:18:19.000Z","id":"TRA-ZVLYJWEGTUNA","transferInstrument":{"method":"BANK_ACCOUNT","bankAccount":{"id":"BKA-22IFEOPZJAJB","agencyNumber":"1111","holder":{"taxDocument":{"number":"255.328.259-12","type":"CPF"},"fullname":"Jose
|
44
|
+
Silva dos Santos"},"accountNumber":"9999","accountCheckNumber":"8","bankName":"BANCO
|
45
|
+
DO BRASIL S.A.","type":"CHECKING","agencyCheckNumber":"2","bankNumber":"001"}},"status":"COMPLETED","createdAt":"2017-11-01T11:18:19.000Z","role":"PAYER","_links":{"self":{"href":"https://sandbox.moip.com.br/v2/transfers/TRA-ZVLYJWEGTUNA"}}},{"fee":0,"amount":1000,"updatedAt":"2017-10-31T16:38:48.000Z","id":"TRA-YXA9ADVTQ18P","transferInstrument":{"method":"BANK_ACCOUNT","bankAccount":{"id":"BKA-F52NFFUZDWLW","agencyNumber":"1111","holder":{"taxDocument":{"number":"255.328.259-12","type":"CPF"},"fullname":"Jose
|
46
|
+
Silva dos Santos"},"accountNumber":"9999","accountCheckNumber":"8","bankName":"BANCO
|
47
|
+
DO BRASIL S.A.","type":"CHECKING","agencyCheckNumber":"2","bankNumber":"001"}},"status":"COMPLETED","createdAt":"2017-10-31T16:38:48.000Z","role":"PAYER","_links":{"self":{"href":"https://sandbox.moip.com.br/v2/transfers/TRA-YXA9ADVTQ18P"}}},{"fee":0,"amount":1000,"updatedAt":"2017-10-31T16:36:12.000Z","id":"TRA-HBYV8MIN9PAJ","transferInstrument":{"method":"BANK_ACCOUNT","bankAccount":{"id":"BKA-R1JFFA2LBPTW","agencyNumber":"1111","holder":{"taxDocument":{"number":"255.328.259-12","type":"CPF"},"fullname":"Jose
|
48
|
+
Silva dos Santos"},"accountNumber":"9999","accountCheckNumber":"8","bankName":"BANCO
|
49
|
+
DO BRASIL S.A.","type":"CHECKING","agencyCheckNumber":"2","bankNumber":"001"}},"status":"COMPLETED","createdAt":"2017-10-31T16:36:12.000Z","role":"PAYER","_links":{"self":{"href":"https://sandbox.moip.com.br/v2/transfers/TRA-HBYV8MIN9PAJ"}}},{"fee":0,"amount":500,"updatedAt":"2017-10-30T09:38:07.000Z","id":"TRA-CRQBMMRS4XK9","transferInstrument":{"method":"BANK_ACCOUNT","bankAccount":{"id":"BKA-22IFEOPZJAJB","agencyNumber":"1111","holder":{"taxDocument":{"number":"255.328.259-12","type":"CPF"},"fullname":"Jose
|
50
|
+
Silva dos Santos"},"accountNumber":"9999","accountCheckNumber":"8","bankName":"BANCO
|
51
|
+
DO BRASIL S.A.","type":"CHECKING","agencyCheckNumber":"2","bankNumber":"001"}},"status":"COMPLETED","createdAt":"2017-10-30T09:38:07.000Z","role":"PAYER","_links":{"self":{"href":"https://sandbox.moip.com.br/v2/transfers/TRA-CRQBMMRS4XK9"}}},{"fee":0,"amount":1000,"updatedAt":"2017-10-29T20:52:03.000Z","id":"TRA-QIF4D8QIPW5T","transferInstrument":{"method":"BANK_ACCOUNT","bankAccount":{"id":"BKA-YYXOL77W6249","agencyNumber":"1111","holder":{"taxDocument":{"number":"255.328.259-12","type":"CPF"},"fullname":"Jose
|
52
|
+
Silva dos Santos"},"accountNumber":"9999","accountCheckNumber":"8","bankName":"BANCO
|
53
|
+
DO BRASIL S.A.","type":"CHECKING","agencyCheckNumber":"2","bankNumber":"001"}},"status":"COMPLETED","createdAt":"2017-10-29T20:52:03.000Z","role":"PAYER","_links":{"self":{"href":"https://sandbox.moip.com.br/v2/transfers/TRA-QIF4D8QIPW5T"}}},{"fee":0,"amount":1000,"updatedAt":"2017-10-29T20:25:02.000Z","id":"TRA-18UC7OQVJAZL","transferInstrument":{"method":"BANK_ACCOUNT","bankAccount":{"id":"BKA-Z5AQ0I4GIF9W","agencyNumber":"1111","holder":{"taxDocument":{"number":"255.328.259-12","type":"CPF"},"fullname":"Jose
|
54
|
+
Silva dos Santos"},"accountNumber":"9999","accountCheckNumber":"8","bankName":"BANCO
|
55
|
+
DO BRASIL S.A.","type":"CHECKING","agencyCheckNumber":"2","bankNumber":"001"}},"status":"COMPLETED","createdAt":"2017-10-29T20:25:02.000Z","role":"PAYER","_links":{"self":{"href":"https://sandbox.moip.com.br/v2/transfers/TRA-18UC7OQVJAZL"}}},{"fee":0,"amount":500,"updatedAt":"2017-10-29T20:18:23.000Z","id":"TRA-9HTCPSQ2IR4X","transferInstrument":{"method":"BANK_ACCOUNT","bankAccount":{"id":"BKA-290J9CJJI0ND","agencyNumber":"1111","holder":{"taxDocument":{"number":"255.328.259-12","type":"CPF"},"fullname":"Jose
|
56
|
+
Silva dos Santos"},"accountNumber":"9999","accountCheckNumber":"8","bankName":"BANCO
|
57
|
+
DO BRASIL S.A.","type":"CHECKING","agencyCheckNumber":"2","bankNumber":"001"}},"status":"COMPLETED","createdAt":"2017-10-29T20:18:23.000Z","role":"PAYER","_links":{"self":{"href":"https://sandbox.moip.com.br/v2/transfers/TRA-9HTCPSQ2IR4X"}}},{"fee":0,"amount":500,"updatedAt":"2017-10-27T16:50:27.000Z","id":"TRA-8PBO743QDU9W","transferInstrument":{"method":"BANK_ACCOUNT","bankAccount":{"id":"BKA-22IFEOPZJAJB","agencyNumber":"1111","holder":{"taxDocument":{"number":"255.328.259-12","type":"CPF"},"fullname":"Jose
|
58
|
+
Silva dos Santos"},"accountNumber":"9999","accountCheckNumber":"8","bankName":"BANCO
|
59
|
+
DO BRASIL S.A.","type":"CHECKING","agencyCheckNumber":"2","bankNumber":"001"}},"status":"COMPLETED","createdAt":"2017-10-27T16:50:27.000Z","role":"PAYER","_links":{"self":{"href":"https://sandbox.moip.com.br/v2/transfers/TRA-8PBO743QDU9W"}}},{"fee":0,"amount":500,"updatedAt":"2017-10-27T12:39:33.000Z","id":"TRA-J2J6UVF9IGDT","transferInstrument":{"method":"BANK_ACCOUNT","bankAccount":{"id":"BKA-22IFEOPZJAJB","agencyNumber":"1111","holder":{"taxDocument":{"number":"255.328.259-12","type":"CPF"},"fullname":"Jose
|
60
|
+
Silva dos Santos"},"accountNumber":"9999","accountCheckNumber":"8","bankName":"BANCO
|
61
|
+
DO BRASIL S.A.","type":"CHECKING","agencyCheckNumber":"2","bankNumber":"001"}},"status":"COMPLETED","createdAt":"2017-10-27T12:39:33.000Z","role":"PAYER","_links":{"self":{"href":"https://sandbox.moip.com.br/v2/transfers/TRA-J2J6UVF9IGDT"}}},{"fee":0,"amount":500,"updatedAt":"2017-10-27T10:58:36.000Z","id":"TRA-H6EJFHL0VT5O","transferInstrument":{"method":"BANK_ACCOUNT","bankAccount":{"id":"BKA-22IFEOPZJAJB","agencyNumber":"1111","holder":{"taxDocument":{"number":"255.328.259-12","type":"CPF"},"fullname":"Jose
|
62
|
+
Silva dos Santos"},"accountNumber":"9999","accountCheckNumber":"8","bankName":"BANCO
|
63
|
+
DO BRASIL S.A.","type":"CHECKING","agencyCheckNumber":"2","bankNumber":"001"}},"status":"COMPLETED","createdAt":"2017-10-27T10:58:36.000Z","role":"PAYER","_links":{"self":{"href":"https://sandbox.moip.com.br/v2/transfers/TRA-H6EJFHL0VT5O"}}},{"fee":0,"amount":500,"updatedAt":"2017-10-27T10:02:28.000Z","id":"TRA-HYGPCMW4OFVK","transferInstrument":{"method":"BANK_ACCOUNT","bankAccount":{"id":"BKA-22IFEOPZJAJB","agencyNumber":"1111","holder":{"taxDocument":{"number":"255.328.259-12","type":"CPF"},"fullname":"Jose
|
64
|
+
Silva dos Santos"},"accountNumber":"9999","accountCheckNumber":"8","bankName":"BANCO
|
65
|
+
DO BRASIL S.A.","type":"CHECKING","agencyCheckNumber":"2","bankNumber":"001"}},"status":"COMPLETED","createdAt":"2017-10-27T10:02:28.000Z","role":"PAYER","_links":{"self":{"href":"https://sandbox.moip.com.br/v2/transfers/TRA-HYGPCMW4OFVK"}}},{"fee":0,"amount":500,"updatedAt":"2017-10-27T09:45:26.000Z","id":"TRA-EUIOZMSQXCDO","transferInstrument":{"method":"BANK_ACCOUNT","bankAccount":{"id":"BKA-22IFEOPZJAJB","agencyNumber":"1111","holder":{"taxDocument":{"number":"255.328.259-12","type":"CPF"},"fullname":"Jose
|
66
|
+
Silva dos Santos"},"accountNumber":"9999","accountCheckNumber":"8","bankName":"BANCO
|
67
|
+
DO BRASIL S.A.","type":"CHECKING","agencyCheckNumber":"2","bankNumber":"001"}},"status":"COMPLETED","createdAt":"2017-10-27T09:45:26.000Z","role":"PAYER","_links":{"self":{"href":"https://sandbox.moip.com.br/v2/transfers/TRA-EUIOZMSQXCDO"}}},{"fee":0,"amount":500,"updatedAt":"2017-10-27T09:40:34.000Z","id":"TRA-0C6NM48A19J0","transferInstrument":{"method":"BANK_ACCOUNT","bankAccount":{"id":"BKA-22IFEOPZJAJB","agencyNumber":"1111","holder":{"taxDocument":{"number":"255.328.259-12","type":"CPF"},"fullname":"Jose
|
68
|
+
Silva dos Santos"},"accountNumber":"9999","accountCheckNumber":"8","bankName":"BANCO
|
69
|
+
DO BRASIL S.A.","type":"CHECKING","agencyCheckNumber":"2","bankNumber":"001"}},"status":"COMPLETED","createdAt":"2017-10-27T09:40:34.000Z","role":"PAYER","_links":{"self":{"href":"https://sandbox.moip.com.br/v2/transfers/TRA-0C6NM48A19J0"}}},{"fee":0,"amount":500,"updatedAt":"2017-10-26T19:01:11.000Z","id":"TRA-SDGPYR52OMAU","transferInstrument":{"method":"BANK_ACCOUNT","bankAccount":{"id":"BKA-22IFEOPZJAJB","agencyNumber":"1111","holder":{"taxDocument":{"number":"255.328.259-12","type":"CPF"},"fullname":"Jose
|
70
|
+
Silva dos Santos"},"accountNumber":"9999","accountCheckNumber":"8","bankName":"BANCO
|
71
|
+
DO BRASIL S.A.","type":"CHECKING","agencyCheckNumber":"2","bankNumber":"001"}},"status":"COMPLETED","createdAt":"2017-10-26T19:01:11.000Z","role":"PAYER","_links":{"self":{"href":"https://sandbox.moip.com.br/v2/transfers/TRA-SDGPYR52OMAU"}}},{"fee":0,"amount":500,"updatedAt":"2017-10-26T18:34:27.000Z","id":"TRA-HOOGEFHN9BXB","transferInstrument":{"method":"BANK_ACCOUNT","bankAccount":{"id":"BKA-22IFEOPZJAJB","agencyNumber":"1111","holder":{"taxDocument":{"number":"255.328.259-12","type":"CPF"},"fullname":"Jose
|
72
|
+
Silva dos Santos"},"accountNumber":"9999","accountCheckNumber":"8","bankName":"BANCO
|
73
|
+
DO BRASIL S.A.","type":"CHECKING","agencyCheckNumber":"2","bankNumber":"001"}},"status":"COMPLETED","createdAt":"2017-10-26T18:34:27.000Z","role":"PAYER","_links":{"self":{"href":"https://sandbox.moip.com.br/v2/transfers/TRA-HOOGEFHN9BXB"}}},{"fee":0,"amount":500,"updatedAt":"2017-10-25T11:27:48.000Z","id":"TRA-LTYUIB87T8T3","transferInstrument":{"method":"BANK_ACCOUNT","bankAccount":{"id":"BKA-22IFEOPZJAJB","agencyNumber":"1111","holder":{"taxDocument":{"number":"255.328.259-12","type":"CPF"},"fullname":"Jose
|
74
|
+
Silva dos Santos"},"accountNumber":"9999","accountCheckNumber":"8","bankName":"BANCO
|
75
|
+
DO BRASIL S.A.","type":"CHECKING","agencyCheckNumber":"2","bankNumber":"001"}},"status":"COMPLETED","createdAt":"2017-10-25T11:27:48.000Z","role":"PAYER","_links":{"self":{"href":"https://sandbox.moip.com.br/v2/transfers/TRA-LTYUIB87T8T3"}}},{"fee":0,"amount":500,"updatedAt":"2017-10-25T10:56:33.000Z","id":"TRA-UEXEDZ9QGUHP","transferInstrument":{"method":"BANK_ACCOUNT","bankAccount":{"id":"BKA-22IFEOPZJAJB","agencyNumber":"1111","holder":{"taxDocument":{"number":"255.328.259-12","type":"CPF"},"fullname":"Jose
|
76
|
+
Silva dos Santos"},"accountNumber":"9999","accountCheckNumber":"8","bankName":"BANCO
|
77
|
+
DO BRASIL S.A.","type":"CHECKING","agencyCheckNumber":"2","bankNumber":"001"}},"status":"COMPLETED","createdAt":"2017-10-25T10:56:33.000Z","role":"PAYER","_links":{"self":{"href":"https://sandbox.moip.com.br/v2/transfers/TRA-UEXEDZ9QGUHP"}}}],"_links":{"previous":{"href":"https://sandbox.moip.com.br/v2/transfers?filters=transferInstrument.method::in(BANK_ACCOUNT)&offset=0&limit=20"},"next":{"href":"https://sandbox.moip.com.br/v2/transfers?filters=transferInstrument.method::in(BANK_ACCOUNT)&offset=20&limit=20"}}}'
|
78
|
+
http_version:
|
79
|
+
recorded_at: Fri, 12 Jan 2018 17:01:58 GMT
|
80
|
+
recorded_with: VCR 2.9.3
|