remitano 1.5.5 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +37 -16
- data/lib/remitano/client/merchant_charges.rb +14 -1
- data/lib/remitano/client/merchant_withdrawals.rb +16 -2
- data/lib/remitano/client/net.rb +6 -2
- data/lib/remitano/version.rb +1 -1
- data/spec/client/merchant_charges_spec.rb +39 -0
- data/spec/client/merchant_withdrawals_spec.rb +39 -0
- data/spec/fixtures/vcr_cassettes/Remitano_Client_merchant_charges/_list/filter_by_status/returns_status_matched_merchant_charges.yml +48 -0
- data/spec/fixtures/vcr_cassettes/Remitano_Client_merchant_charges/_list/page_and_per_page_specified/returns_merchant_charges_in_specified_page.yml +48 -0
- data/spec/fixtures/vcr_cassettes/Remitano_Client_merchant_charges/_list/returns_merchant_charges.yml +69 -0
- data/spec/fixtures/vcr_cassettes/Remitano_Client_merchant_withdrawals/_list/filter_by_status/returns_status_matched_merchant_withdrawals.yml +48 -0
- data/spec/fixtures/vcr_cassettes/Remitano_Client_merchant_withdrawals/_list/page_and_per_page_specified/returns_merchant_withdrawals_in_specified_page.yml +48 -0
- data/spec/fixtures/vcr_cassettes/Remitano_Client_merchant_withdrawals/_list/returns_merchant_withdrawals.yml +48 -0
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34973115a01c7b005902119e7adbf748130ba88f224f81be0a2ecac0e0a78544
|
4
|
+
data.tar.gz: f04109457353f091b68aedc943fde5ecdc68e5a0d465f490b399e2ddfd25ae1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff0e05643c0b35aa85e60b513f0b1a82c5fa56a0daee2cd2c96f72aa57a89213920e15bb995d916b76b90a62badcdbeffa5be5e92352c3736006a1619728a9a8
|
7
|
+
data.tar.gz: 6d581031bac6439af1bf4719b12a861dfd3a4d23077e776ad1ee02c865b1a2ed8d482d8713bf7d6264e91ea9d7153589c2474090cbc719ff8e36aada1b4b2380
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -47,27 +47,36 @@ client = Remitano::Client.new(
|
|
47
47
|
### Payment gateway
|
48
48
|
Visit https://developers.remitano.com/api-explorer - Merchant section for more information.
|
49
49
|
#### Charges
|
50
|
-
##### Get
|
50
|
+
##### Get charge with remitano id
|
51
51
|
```ruby
|
52
52
|
client.merchant_charges.get(id)
|
53
53
|
```
|
54
|
-
##### Create
|
54
|
+
##### Create charge
|
55
55
|
```ruby
|
56
56
|
client.merchant_charges.create(
|
57
57
|
coin_currency: "usdt",
|
58
58
|
coin_amount: 10.99,
|
59
|
-
cancelled_or_completed_callback_url: "https://example.com/payments/callback?id=example",
|
60
|
-
description: "Example charge"
|
59
|
+
cancelled_or_completed_callback_url: "https://example.com/payments/callback?id=example", # optional
|
60
|
+
description: "Example charge" # optional
|
61
61
|
)
|
62
62
|
```
|
63
63
|
Note: For now, we only support `usdt` as the price coin currency.
|
64
64
|
|
65
|
+
##### Get paginated charge list
|
66
|
+
```ruby
|
67
|
+
client.merchant_charges.list(
|
68
|
+
status: "completed", # optional
|
69
|
+
page: 2, # optional
|
70
|
+
per_page: 25 # optional
|
71
|
+
)
|
72
|
+
```
|
73
|
+
|
65
74
|
#### Withdrawals
|
66
|
-
##### Get
|
75
|
+
##### Get withdrawal with remitano id
|
67
76
|
```ruby
|
68
77
|
client.merchant_withdrawals.get(id)
|
69
78
|
```
|
70
|
-
##### Create
|
79
|
+
##### Create withdrawal
|
71
80
|
1. Withdraw to external coin address
|
72
81
|
```ruby
|
73
82
|
client.merchant_withdrawals.create(
|
@@ -75,9 +84,9 @@ client.merchant_withdrawals.create(
|
|
75
84
|
coin_currency: "xrp",
|
76
85
|
coin_amount: 10.99,
|
77
86
|
receiver_pay_fee: true, # defines who will be charged for the withdrawal fee
|
78
|
-
cancelled_or_completed_callback_url: "http://sample.com/123/callback",
|
87
|
+
cancelled_or_completed_callback_url: "http://sample.com/123/callback", # optional
|
79
88
|
coin_address: "rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD0",
|
80
|
-
destination_tag: 1710676231 #
|
89
|
+
destination_tag: 1710676231 # optional, required when coin_currency is xrp
|
81
90
|
)
|
82
91
|
```
|
83
92
|
2. Withdraw to other remitano account
|
@@ -92,16 +101,28 @@ client.merchant_withdrawals.create(
|
|
92
101
|
remitano_phone_number: "+234 1 123 4567"
|
93
102
|
)
|
94
103
|
```
|
95
|
-
|
96
|
-
#### Callbacks
|
97
|
-
When Charge or Withdrawal is changed to completed or cancelled in our system, we will send
|
98
|
-
a POST callback request to `object.cancelled_or_completed_callback_url` with following
|
99
|
-
request json body:
|
104
|
+
##### Get paginated withdrawal list
|
100
105
|
```ruby
|
101
|
-
|
106
|
+
client.merchant_withdrawals.list(
|
107
|
+
status: "completed", # optional
|
108
|
+
page: 2, # optional
|
109
|
+
per_page: 25 # optional
|
110
|
+
)
|
102
111
|
```
|
103
|
-
|
104
|
-
|
112
|
+
|
113
|
+
#### Callbacks
|
114
|
+
##### Charges
|
115
|
+
Whenever a charge is changed to completed or cancelled in our system:
|
116
|
+
- we will send a POST request to `charge.cancelled_or_completed_callback_url` with `remitano_id` param.
|
117
|
+
- if user is still on our site, we will also redirect user to `object.cancelled_or_completed_callback_url` with `remitano_id` param (GET request).
|
118
|
+
|
119
|
+
After receiving these callbacks, you could call `client.merchant_charges.get(params[:remitano_id])` to get the updated information and process accordingly.
|
120
|
+
|
121
|
+
##### Withdrawals
|
122
|
+
Whenever a withdrawal is changed to completed or cancelled in our system:
|
123
|
+
- we will send a POST request to `withdrawal.cancelled_or_completed_callback_url` with `remitano_id` param.
|
124
|
+
|
125
|
+
After receiving these callbacks, you could call `client.merchant_withdrawals.get(params[:remitano_id])` to get the updated information and process accordingly.
|
105
126
|
|
106
127
|
### Errors
|
107
128
|
When receiving non 200-299 http code, a Remitano::Client::Request::RequestError will be raised.
|
@@ -12,7 +12,7 @@ module Remitano
|
|
12
12
|
config.net.get("/merchant/merchant_charges/#{id}").execute
|
13
13
|
end
|
14
14
|
|
15
|
-
def create(coin_currency:, coin_amount:, cancelled_or_completed_callback_url
|
15
|
+
def create(coin_currency:, coin_amount:, cancelled_or_completed_callback_url: nil, description: nil)
|
16
16
|
config.net.post(
|
17
17
|
"/merchant/merchant_charges",
|
18
18
|
coin_currency: coin_currency,
|
@@ -21,5 +21,18 @@ module Remitano
|
|
21
21
|
description: description
|
22
22
|
).execute
|
23
23
|
end
|
24
|
+
|
25
|
+
def list(status: nil, page: nil, per_page: nil)
|
26
|
+
params = {
|
27
|
+
status: status,
|
28
|
+
page: page,
|
29
|
+
per_page: per_page
|
30
|
+
}
|
31
|
+
params.reject! { |_k, v| v.nil? }
|
32
|
+
config.net.get(
|
33
|
+
"/merchant/merchant_charges",
|
34
|
+
params
|
35
|
+
).execute
|
36
|
+
end
|
24
37
|
end
|
25
38
|
end
|
@@ -13,8 +13,9 @@ module Remitano
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def create(
|
16
|
-
merchant_withdrawal_ref:, coin_currency:, coin_amount:, receiver_pay_fee:,
|
17
|
-
|
16
|
+
merchant_withdrawal_ref:, coin_currency:, coin_amount:, receiver_pay_fee:,
|
17
|
+
cancelled_or_completed_callback_url: nil, coin_address: nil, destination_tag: nil,
|
18
|
+
remitano_username: nil, remitano_phone_number: nil
|
18
19
|
)
|
19
20
|
withdrawal = config.net.post(
|
20
21
|
"/merchant/merchant_withdrawals",
|
@@ -34,5 +35,18 @@ module Remitano
|
|
34
35
|
|
35
36
|
withdrawal
|
36
37
|
end
|
38
|
+
|
39
|
+
def list(status: nil, page: nil, per_page: nil)
|
40
|
+
params = {
|
41
|
+
status: status,
|
42
|
+
page: page,
|
43
|
+
per_page: per_page
|
44
|
+
}
|
45
|
+
params.reject! { |_k, v| v.nil? }
|
46
|
+
config.net.get(
|
47
|
+
"/merchant/merchant_withdrawals",
|
48
|
+
params
|
49
|
+
).execute
|
50
|
+
end
|
37
51
|
end
|
38
52
|
end
|
data/lib/remitano/client/net.rb
CHANGED
@@ -85,8 +85,12 @@ module Remitano
|
|
85
85
|
|
86
86
|
usec = Time.now.usec
|
87
87
|
if method == :get
|
88
|
-
|
89
|
-
|
88
|
+
uri = URI(path)
|
89
|
+
request_params = URI.decode_www_form(uri.query || "")
|
90
|
+
request_params.concat(params.to_a)
|
91
|
+
request_params << ["usec", usec]
|
92
|
+
uri.query = URI.encode_www_form(request_params)
|
93
|
+
path = uri.to_s
|
90
94
|
else
|
91
95
|
params[:usec] = usec
|
92
96
|
options[:payload] = params.to_json
|
data/lib/remitano/version.rb
CHANGED
@@ -67,4 +67,43 @@ describe "Remitano::Client#merchant_charges" do
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
end
|
70
|
+
|
71
|
+
describe "#list", :vcr do
|
72
|
+
it "returns merchant charges" do
|
73
|
+
client = Remitano::Client.default
|
74
|
+
|
75
|
+
result = client.merchant_charges.list
|
76
|
+
expect(result["merchant_charges"].count).to eq 25
|
77
|
+
expect(result["merchant_charges"].pluck("status").uniq).to match_array(%w[pending cancelled])
|
78
|
+
expect(result["meta"]["current_page"]).to eq 1
|
79
|
+
expect(result["meta"]["per_page"]).to eq 25
|
80
|
+
expect(result["meta"]["total_pages"]).to eq 3
|
81
|
+
end
|
82
|
+
|
83
|
+
context "filter by status" do
|
84
|
+
it "returns status matched merchant charges" do
|
85
|
+
client = Remitano::Client.default
|
86
|
+
|
87
|
+
result = client.merchant_charges.list(status: "completed")
|
88
|
+
expect(result["merchant_charges"].count).to eq 8
|
89
|
+
expect(result["merchant_charges"].pluck("status").uniq).to eq(["completed"])
|
90
|
+
expect(result["meta"]["current_page"]).to eq 1
|
91
|
+
expect(result["meta"]["per_page"]).to eq 25
|
92
|
+
expect(result["meta"]["total_pages"]).to eq 1
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
context "page and per_page specified" do
|
97
|
+
it "returns merchant charges in specified page" do
|
98
|
+
client = Remitano::Client.default
|
99
|
+
|
100
|
+
result = client.merchant_charges.list(status: "completed", page: 2, per_page: 3)
|
101
|
+
expect(result["merchant_charges"].count).to eq 3
|
102
|
+
expect(result["merchant_charges"].pluck("status").uniq).to eq(["completed"])
|
103
|
+
expect(result["meta"]["current_page"]).to eq 2
|
104
|
+
expect(result["meta"]["per_page"]).to eq 3
|
105
|
+
expect(result["meta"]["total_pages"]).to eq 3
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
70
109
|
end
|
@@ -112,4 +112,43 @@ describe "Remitano::Client#merchant_withdrawals" do
|
|
112
112
|
end
|
113
113
|
end
|
114
114
|
end
|
115
|
+
|
116
|
+
describe "#list", :vcr do
|
117
|
+
it "returns merchant withdrawals" do
|
118
|
+
client = Remitano::Client.default
|
119
|
+
|
120
|
+
result = client.merchant_withdrawals.list
|
121
|
+
expect(result["merchant_withdrawals"].count).to eq 18
|
122
|
+
expect(result["merchant_withdrawals"].pluck("status").uniq).to match_array(%w[pending processing cancelled])
|
123
|
+
expect(result["meta"]["current_page"]).to eq 1
|
124
|
+
expect(result["meta"]["per_page"]).to eq 25
|
125
|
+
expect(result["meta"]["total_pages"]).to eq 1
|
126
|
+
end
|
127
|
+
|
128
|
+
context "filter by status" do
|
129
|
+
it "returns status matched merchant withdrawals" do
|
130
|
+
client = Remitano::Client.default
|
131
|
+
|
132
|
+
result = client.merchant_withdrawals.list(status: "cancelled")
|
133
|
+
expect(result["merchant_withdrawals"].count).to eq 9
|
134
|
+
expect(result["merchant_withdrawals"].pluck("status").uniq).to eq(["cancelled"])
|
135
|
+
expect(result["meta"]["current_page"]).to eq 1
|
136
|
+
expect(result["meta"]["per_page"]).to eq 25
|
137
|
+
expect(result["meta"]["total_pages"]).to eq 1
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
context "page and per_page specified" do
|
142
|
+
it "returns merchant withdrawals in specified page" do
|
143
|
+
client = Remitano::Client.default
|
144
|
+
|
145
|
+
result = client.merchant_withdrawals.list(status: "cancelled", page: 2, per_page: 5)
|
146
|
+
expect(result["merchant_withdrawals"].count).to eq 4
|
147
|
+
expect(result["merchant_withdrawals"].pluck("status").uniq).to eq(["cancelled"])
|
148
|
+
expect(result["meta"]["current_page"]).to eq 2
|
149
|
+
expect(result["meta"]["per_page"]).to eq 5
|
150
|
+
expect(result["meta"]["total_pages"]).to eq 2
|
151
|
+
end
|
152
|
+
end
|
153
|
+
end
|
115
154
|
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: REMITANO_SERVER/api/v1/merchant/merchant_charges?status=completed&usec=0
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*"
|
12
|
+
User-Agent:
|
13
|
+
- rest-client/2.1.0 (darwin18.6.0 x86_64) ruby/2.4.3p205
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Date:
|
17
|
+
- Tue, 08 Jun 2021 06:49:26 GMT
|
18
|
+
Authorization:
|
19
|
+
- APIAuth REMITANO_KEY:aQQiAZ1K7tet68cWt/n+IwwTt7o=
|
20
|
+
Accept-Encoding:
|
21
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
22
|
+
Host:
|
23
|
+
- localhost:3100
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Etag:
|
32
|
+
- W/"0eee76969e9662634530acc17c48665d"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- f0654cfe-ce14-4a43-9fc8-a1d7cdea0c6a
|
37
|
+
X-Runtime:
|
38
|
+
- '0.075517'
|
39
|
+
Vary:
|
40
|
+
- Origin
|
41
|
+
Content-Length:
|
42
|
+
- '2805'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"merchant_charges":[{"id":22,"coin_currency":"usdt","coin_amount":10.99,"status":"completed","ref":"MDR5588788611","description":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=22","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR5588788611","created_at_timestamp":1621497377,"expired_at_timestamp":0,"payer_name":"buyer"},{"id":21,"coin_currency":"usdt","coin_amount":10.99,"status":"completed","ref":"MDR7006193288","description":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=21","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR7006193288","created_at_timestamp":1621401988,"expired_at_timestamp":0,"payer_name":null},{"id":19,"coin_currency":"usdt","coin_amount":100.0,"status":"completed","ref":"MDR1248236781","description":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=19","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR1248236781","created_at_timestamp":1620093168,"expired_at_timestamp":0,"payer_name":"buyer"},{"id":18,"coin_currency":"usdt","coin_amount":100.0,"status":"completed","ref":"MDR8901116264","description":null,"cancelled_or_completed_callback_url":null,"remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR8901116264","created_at_timestamp":1620092660,"expired_at_timestamp":0,"payer_name":"buyer"},{"id":17,"coin_currency":"usdt","coin_amount":100.0,"status":"completed","ref":"MDR9240267766","description":null,"cancelled_or_completed_callback_url":null,"remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR9240267766","created_at_timestamp":1620092056,"expired_at_timestamp":0,"payer_name":"sugaro"},{"id":16,"coin_currency":"usdt","coin_amount":10.0,"status":"completed","ref":"MDR7154137395","description":null,"cancelled_or_completed_callback_url":null,"remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR7154137395","created_at_timestamp":1620091757,"expired_at_timestamp":0,"payer_name":"buyer"},{"id":13,"coin_currency":"usdt","coin_amount":100.0,"status":"completed","ref":"MDR6305734111","description":null,"cancelled_or_completed_callback_url":null,"remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR6305734111","created_at_timestamp":1620090431,"expired_at_timestamp":0,"payer_name":"buyer"},{"id":8,"coin_currency":"usdt","coin_amount":100.0,"status":"completed","ref":"MDR1870115800","description":null,"cancelled_or_completed_callback_url":null,"remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR1870115800","created_at_timestamp":1620088257,"expired_at_timestamp":0,"payer_name":"buyer"}],"meta":{"per_page":25,"current_page":1,"next_page":null,"prev_page":null,"total_pages":1,"total_items":8}}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Tue, 08 Jun 2021 06:49:26 GMT
|
48
|
+
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: REMITANO_SERVER/api/v1/merchant/merchant_charges?page=2&per_page=3&status=completed&usec=0
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*"
|
12
|
+
User-Agent:
|
13
|
+
- rest-client/2.1.0 (darwin18.6.0 x86_64) ruby/2.4.3p205
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Date:
|
17
|
+
- Tue, 08 Jun 2021 06:49:26 GMT
|
18
|
+
Authorization:
|
19
|
+
- APIAuth REMITANO_KEY:X0TGKy7wn9lH4IHnejfBm0xrr7k=
|
20
|
+
Accept-Encoding:
|
21
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
22
|
+
Host:
|
23
|
+
- localhost:3100
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Etag:
|
32
|
+
- W/"e9484324073706b8fdd781700b7935ff"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- 6931336d-5464-4ffa-8ca5-1cd30c905f19
|
37
|
+
X-Runtime:
|
38
|
+
- '0.122597'
|
39
|
+
Vary:
|
40
|
+
- Origin
|
41
|
+
Content-Length:
|
42
|
+
- '1078'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"merchant_charges":[{"id":18,"coin_currency":"usdt","coin_amount":100.0,"status":"completed","ref":"MDR8901116264","description":null,"cancelled_or_completed_callback_url":null,"remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR8901116264","created_at_timestamp":1620092660,"expired_at_timestamp":0,"payer_name":"buyer"},{"id":17,"coin_currency":"usdt","coin_amount":100.0,"status":"completed","ref":"MDR9240267766","description":null,"cancelled_or_completed_callback_url":null,"remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR9240267766","created_at_timestamp":1620092056,"expired_at_timestamp":0,"payer_name":"sugaro"},{"id":16,"coin_currency":"usdt","coin_amount":10.0,"status":"completed","ref":"MDR7154137395","description":null,"cancelled_or_completed_callback_url":null,"remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR7154137395","created_at_timestamp":1620091757,"expired_at_timestamp":0,"payer_name":"buyer"}],"meta":{"per_page":3,"current_page":2,"next_page":3,"prev_page":1,"total_pages":3,"total_items":8}}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Tue, 08 Jun 2021 06:49:26 GMT
|
48
|
+
recorded_with: VCR 4.0.0
|
data/spec/fixtures/vcr_cassettes/Remitano_Client_merchant_charges/_list/returns_merchant_charges.yml
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: REMITANO_SERVER/api/v1/merchant/merchant_charges?usec=0
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*"
|
12
|
+
User-Agent:
|
13
|
+
- rest-client/2.1.0 (darwin18.6.0 x86_64) ruby/2.4.3p205
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Date:
|
17
|
+
- Tue, 08 Jun 2021 06:49:25 GMT
|
18
|
+
Authorization:
|
19
|
+
- APIAuth REMITANO_KEY:GOXtX2NfJlg/vrrrY4rIA5LwqNg=
|
20
|
+
Accept-Encoding:
|
21
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
22
|
+
Host:
|
23
|
+
- localhost:3100
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Etag:
|
32
|
+
- W/"1d7030bc9fe4320d2727b528737ae332"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- a31bbda0-95c0-4e86-8bbe-94db7ed4e7c8
|
37
|
+
X-Runtime:
|
38
|
+
- '0.125626'
|
39
|
+
Vary:
|
40
|
+
- Origin
|
41
|
+
Content-Length:
|
42
|
+
- '9190'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"merchant_charges":[{"id":68,"coin_currency":"usdt","coin_amount":1.5,"status":"cancelled","ref":"MDR9524587944","description":"Test
|
46
|
+
2","cancelled_or_completed_callback_url":"http://localhost:3000/charges/3/callback?remitano_id=68","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR9524587944","created_at_timestamp":1622530696,"expired_at_timestamp":1622697250,"payer_name":"buyer"},{"id":67,"coin_currency":"usdt","coin_amount":1.5,"status":"pending","ref":"MDR1272205449","description":"Test
|
47
|
+
2","cancelled_or_completed_callback_url":"http://localhost:3000/charges/2/callback?remitano_id=67","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR1272205449","created_at_timestamp":1622530666,"expired_at_timestamp":1622531566,"payer_name":null},{"id":66,"coin_currency":"usdt","coin_amount":1.5,"status":"pending","ref":"MDR3434518800","description":"Test","cancelled_or_completed_callback_url":"http://localhost:3000/charges/1/callback?remitano_id=66","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR3434518800","created_at_timestamp":1622530570,"expired_at_timestamp":1622531470,"payer_name":null},{"id":65,"coin_currency":"usdt","coin_amount":1.5,"status":"pending","ref":"MDR8081755459","description":"Test","cancelled_or_completed_callback_url":"http://localhost:3000/charges/1/callback?remitano_id=65","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR8081755459","created_at_timestamp":1622530332,"expired_at_timestamp":1622531232,"payer_name":null},{"id":64,"coin_currency":"usdt","coin_amount":10.99,"status":"pending","ref":"MDR1341467273","description":"Example
|
48
|
+
charge","cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=64","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR1341467273","created_at_timestamp":1622393545,"expired_at_timestamp":0,"payer_name":null},{"id":63,"coin_currency":"usdt","coin_amount":10.99,"status":"pending","ref":"MDR4027222151","description":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=63","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR4027222151","created_at_timestamp":1622185022,"expired_at_timestamp":0,"payer_name":null},{"id":62,"coin_currency":"usdt","coin_amount":10.99,"status":"pending","ref":"MDR0842867617","description":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=62","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR0842867617","created_at_timestamp":1622184982,"expired_at_timestamp":0,"payer_name":null},{"id":61,"coin_currency":"usdt","coin_amount":79.99,"status":"pending","ref":"MDR0436862806","description":"Bag
|
49
|
+
(model D700, white)","cancelled_or_completed_callback_url":"https://example.com/123?remitano_id=61","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR0436862806","created_at_timestamp":1622172198,"expired_at_timestamp":0,"payer_name":"buyer"},{"id":60,"coin_currency":"usdt","coin_amount":79.99,"status":"pending","ref":"MDR7797902493","description":"Bag
|
50
|
+
(model D700, white)","cancelled_or_completed_callback_url":"https://example.com/123?remitano_id=60","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR7797902493","created_at_timestamp":1622172143,"expired_at_timestamp":0,"payer_name":"buyer"},{"id":59,"coin_currency":"usdt","coin_amount":79.99,"status":"pending","ref":"MDR8752689492","description":"Bag
|
51
|
+
(model D700, white)","cancelled_or_completed_callback_url":"https://example.com/123?remitano_id=59","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR8752689492","created_at_timestamp":1622172062,"expired_at_timestamp":0,"payer_name":"buyer"},{"id":58,"coin_currency":"usdt","coin_amount":79.99,"status":"pending","ref":"MDR6769804271","description":"Bag
|
52
|
+
(model D700, white)","cancelled_or_completed_callback_url":"https://example.com/123?remitano_id=58","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR6769804271","created_at_timestamp":1622171943,"expired_at_timestamp":0,"payer_name":"buyer"},{"id":57,"coin_currency":"usdt","coin_amount":79.99,"status":"pending","ref":"MDR9403236023","description":"Bag
|
53
|
+
(model D700, white)","cancelled_or_completed_callback_url":"https://example.com/123?remitano_id=57","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR9403236023","created_at_timestamp":1622171859,"expired_at_timestamp":0,"payer_name":"buyer"},{"id":56,"coin_currency":"usdt","coin_amount":79.99,"status":"pending","ref":"MDR4802890056","description":"Bag
|
54
|
+
(model D700, white)","cancelled_or_completed_callback_url":"https://example.com/123?remitano_id=56","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR4802890056","created_at_timestamp":1622171830,"expired_at_timestamp":0,"payer_name":"buyer"},{"id":55,"coin_currency":"usdt","coin_amount":80.02,"status":"pending","ref":"MDR9662454902","description":"Bag
|
55
|
+
D700 white","cancelled_or_completed_callback_url":"google.com?remitano_id=55","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR9662454902","created_at_timestamp":1622171220,"expired_at_timestamp":0,"payer_name":"buyer"},{"id":54,"coin_currency":"usdt","coin_amount":80.02,"status":"pending","ref":"MDR7447307122","description":"Bag
|
56
|
+
D700 white","cancelled_or_completed_callback_url":"google.com?remitano_id=54","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR7447307122","created_at_timestamp":1622170528,"expired_at_timestamp":0,"payer_name":"buyer"},{"id":53,"coin_currency":"usdt","coin_amount":80.02,"status":"pending","ref":"MDR8615923499","description":"Bag
|
57
|
+
D700 white","cancelled_or_completed_callback_url":"google.com?remitano_id=53","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR8615923499","created_at_timestamp":1622115928,"expired_at_timestamp":0,"payer_name":"buyer"},{"id":52,"coin_currency":"usdt","coin_amount":80.02,"status":"pending","ref":"MDR8867140935","description":"Bag
|
58
|
+
D700 white","cancelled_or_completed_callback_url":"google.com?remitano_id=52","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR8867140935","created_at_timestamp":1622114093,"expired_at_timestamp":0,"payer_name":"buyer"},{"id":51,"coin_currency":"usdt","coin_amount":80.02,"status":"pending","ref":"MDR3345666844","description":"Bag
|
59
|
+
D700 white","cancelled_or_completed_callback_url":"google.com?remitano_id=51","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR3345666844","created_at_timestamp":1622114078,"expired_at_timestamp":0,"payer_name":"buyer"},{"id":50,"coin_currency":"usdt","coin_amount":80.02,"status":"pending","ref":"MDR7894014215","description":"Bag
|
60
|
+
D700 white","cancelled_or_completed_callback_url":"google.com?remitano_id=50","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR7894014215","created_at_timestamp":1622114053,"expired_at_timestamp":0,"payer_name":"buyer"},{"id":49,"coin_currency":"usdt","coin_amount":80.02,"status":"pending","ref":"MDR1461537249","description":"Bag
|
61
|
+
D700 white","cancelled_or_completed_callback_url":"google.com?remitano_id=49","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR1461537249","created_at_timestamp":1622114048,"expired_at_timestamp":0,"payer_name":"buyer"},{"id":48,"coin_currency":"usdt","coin_amount":80.02,"status":"pending","ref":"MDR7560852060","description":"Bag
|
62
|
+
D700 white","cancelled_or_completed_callback_url":"google.com?remitano_id=48","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR7560852060","created_at_timestamp":1622113980,"expired_at_timestamp":0,"payer_name":"buyer"},{"id":47,"coin_currency":"usdt","coin_amount":80.02,"status":"pending","ref":"MDR2426394496","description":"Bag
|
63
|
+
D700 white","cancelled_or_completed_callback_url":"google.com?remitano_id=47","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR2426394496","created_at_timestamp":1622113969,"expired_at_timestamp":0,"payer_name":"buyer"},{"id":46,"coin_currency":"usdt","coin_amount":80.02,"status":"pending","ref":"MDR3169255662","description":"Bag
|
64
|
+
D700 white","cancelled_or_completed_callback_url":"google.com?remitano_id=46","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR3169255662","created_at_timestamp":1622113940,"expired_at_timestamp":0,"payer_name":"buyer"},{"id":45,"coin_currency":"usdt","coin_amount":80.02,"status":"pending","ref":"MDR2546037859","description":"Bag
|
65
|
+
D700 white","cancelled_or_completed_callback_url":"google.com?remitano_id=45","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR2546037859","created_at_timestamp":1622113934,"expired_at_timestamp":0,"payer_name":"buyer"},{"id":44,"coin_currency":"usdt","coin_amount":80.02,"status":"pending","ref":"MDR9221071840","description":"Bag
|
66
|
+
D700 white","cancelled_or_completed_callback_url":"google.com?remitano_id=44","remitano_payment_url":"http://localhost:3200/payment_gateway/pay/MDR9221071840","created_at_timestamp":1622113925,"expired_at_timestamp":0,"payer_name":"buyer"}],"meta":{"per_page":25,"current_page":1,"next_page":2,"prev_page":null,"total_pages":3,"total_items":66}}'
|
67
|
+
http_version:
|
68
|
+
recorded_at: Tue, 08 Jun 2021 06:49:25 GMT
|
69
|
+
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: REMITANO_SERVER/api/v1/merchant/merchant_withdrawals?status=cancelled&usec=0
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*"
|
12
|
+
User-Agent:
|
13
|
+
- rest-client/2.1.0 (darwin18.6.0 x86_64) ruby/2.4.3p205
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Date:
|
17
|
+
- Tue, 08 Jun 2021 07:12:43 GMT
|
18
|
+
Authorization:
|
19
|
+
- APIAuth REMITANO_KEY:dvZaj4IWAkyJEqGWbElqtIBhyo0=
|
20
|
+
Accept-Encoding:
|
21
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
22
|
+
Host:
|
23
|
+
- localhost:3100
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Etag:
|
32
|
+
- W/"a542ce47161a2ed6412ad8c8613f1d87"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- 5dac952d-9ebe-4aa9-88b1-638a8a611e5c
|
37
|
+
X-Runtime:
|
38
|
+
- '0.045170'
|
39
|
+
Vary:
|
40
|
+
- Origin
|
41
|
+
Content-Length:
|
42
|
+
- '4394'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"merchant_withdrawals":[{"id":9,"ref":"MWR0306837501","merchant_withdrawal_ref":"akh9r1h29e9","status":"cancelled","coin_amount":10.99,"coin_currency":"xrp","coin_fee":0.0,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=9","created_at_timestamp":1621495169},{"id":8,"ref":"MWR8385898424","merchant_withdrawal_ref":"akh9r1h29e8","status":"cancelled","coin_amount":10.99,"coin_currency":"xrp","coin_fee":0.0,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=8","created_at_timestamp":1621495025},{"id":7,"ref":"MWR2026538351","merchant_withdrawal_ref":"akh9r1h29e7","status":"cancelled","coin_amount":10.99,"coin_currency":"xrp","coin_fee":0.0,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=7","created_at_timestamp":1621417290},{"id":6,"ref":"MWR7700295628","merchant_withdrawal_ref":"akh9r1h29e6","status":"cancelled","coin_amount":10.99,"coin_currency":"xrp","coin_fee":0.0,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=6","created_at_timestamp":1621417259},{"id":5,"ref":"MWR8624499987","merchant_withdrawal_ref":"akh9r1h29e4","status":"cancelled","coin_amount":10.99,"coin_currency":"xrp","coin_fee":0.0,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=5","created_at_timestamp":1621416869},{"id":4,"ref":"MWR5644211320","merchant_withdrawal_ref":"akh9r1h29e3","status":"cancelled","coin_amount":10.99,"coin_currency":"xrp","coin_fee":0.0,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=4","created_at_timestamp":1621416824},{"id":3,"ref":"MWR8738142345","merchant_withdrawal_ref":"akh9r1h29e2","status":"cancelled","coin_amount":10.99,"coin_currency":"xrp","coin_fee":0.0,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=3","created_at_timestamp":1621416603},{"id":2,"ref":"MWR9023143621","merchant_withdrawal_ref":"akh9r1h29e1","status":"cancelled","coin_amount":10.99,"coin_currency":"xrp","coin_fee":0.0,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=2","created_at_timestamp":1621416518},{"id":1,"ref":"MWR1774298352","merchant_withdrawal_ref":"mwr2","status":"cancelled","coin_amount":100.0,"coin_currency":"usdt","coin_fee":0.0,"receiver_pay_fee":null,"action_confirmation_id":null,"otp_counter":null,"coin_address":"3BDS42pbFgxDn9uMSCBiWE5BcWFBVPPCAA","destination_tag":null,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://dummy.com/111?remitano_id=1","created_at_timestamp":1621401962}],"meta":{"per_page":25,"current_page":1,"next_page":null,"prev_page":null,"total_pages":1,"total_items":9}}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Tue, 08 Jun 2021 07:12:43 GMT
|
48
|
+
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: REMITANO_SERVER/api/v1/merchant/merchant_withdrawals?page=2&per_page=5&status=cancelled&usec=0
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*"
|
12
|
+
User-Agent:
|
13
|
+
- rest-client/2.1.0 (darwin18.6.0 x86_64) ruby/2.4.3p205
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Date:
|
17
|
+
- Tue, 08 Jun 2021 07:12:43 GMT
|
18
|
+
Authorization:
|
19
|
+
- APIAuth REMITANO_KEY:nZJeqi3MCdBUJ8t9qui0LD3H91E=
|
20
|
+
Accept-Encoding:
|
21
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
22
|
+
Host:
|
23
|
+
- localhost:3100
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Etag:
|
32
|
+
- W/"61d1a094de087217f80a3f40fc1c6c0a"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- 16a5acce-658a-4e4c-a01d-bdcc3a2f108e
|
37
|
+
X-Runtime:
|
38
|
+
- '0.042926'
|
39
|
+
Vary:
|
40
|
+
- Origin
|
41
|
+
Content-Length:
|
42
|
+
- '2010'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"merchant_withdrawals":[{"id":4,"ref":"MWR5644211320","merchant_withdrawal_ref":"akh9r1h29e3","status":"cancelled","coin_amount":10.99,"coin_currency":"xrp","coin_fee":0.0,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=4","created_at_timestamp":1621416824},{"id":3,"ref":"MWR8738142345","merchant_withdrawal_ref":"akh9r1h29e2","status":"cancelled","coin_amount":10.99,"coin_currency":"xrp","coin_fee":0.0,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=3","created_at_timestamp":1621416603},{"id":2,"ref":"MWR9023143621","merchant_withdrawal_ref":"akh9r1h29e1","status":"cancelled","coin_amount":10.99,"coin_currency":"xrp","coin_fee":0.0,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=2","created_at_timestamp":1621416518},{"id":1,"ref":"MWR1774298352","merchant_withdrawal_ref":"mwr2","status":"cancelled","coin_amount":100.0,"coin_currency":"usdt","coin_fee":0.0,"receiver_pay_fee":null,"action_confirmation_id":null,"otp_counter":null,"coin_address":"3BDS42pbFgxDn9uMSCBiWE5BcWFBVPPCAA","destination_tag":null,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://dummy.com/111?remitano_id=1","created_at_timestamp":1621401962}],"meta":{"per_page":5,"current_page":2,"next_page":null,"prev_page":1,"total_pages":2,"total_items":9}}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Tue, 08 Jun 2021 07:12:43 GMT
|
48
|
+
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: REMITANO_SERVER/api/v1/merchant/merchant_withdrawals?usec=0
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*"
|
12
|
+
User-Agent:
|
13
|
+
- rest-client/2.1.0 (darwin18.6.0 x86_64) ruby/2.4.3p205
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Date:
|
17
|
+
- Tue, 08 Jun 2021 07:12:43 GMT
|
18
|
+
Authorization:
|
19
|
+
- APIAuth REMITANO_KEY:e3hDs38TZKaROuGeajNbwEuFGz4=
|
20
|
+
Accept-Encoding:
|
21
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
22
|
+
Host:
|
23
|
+
- localhost:3100
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Etag:
|
32
|
+
- W/"f61a3e2e50f7d1d56b819689f689c496"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- 16d718c8-5687-4c87-940d-7bc5e4b69040
|
37
|
+
X-Runtime:
|
38
|
+
- '0.052219'
|
39
|
+
Vary:
|
40
|
+
- Origin
|
41
|
+
Content-Length:
|
42
|
+
- '8748'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"merchant_withdrawals":[{"id":18,"ref":"MWR1926186585","merchant_withdrawal_ref":"akh9r1h29e19","status":"processing","coin_amount":10.99,"coin_currency":"xrp","coin_fee":2.0e-05,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=18","created_at_timestamp":1622185568},{"id":17,"ref":"MWR1411523474","merchant_withdrawal_ref":"akh9r1h29e18","status":"processing","coin_amount":10.99,"coin_currency":"xrp","coin_fee":2.0e-05,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=17","created_at_timestamp":1622185453},{"id":16,"ref":"MWR2896281444","merchant_withdrawal_ref":"akh9r1h29e16","status":"processing","coin_amount":10.99,"coin_currency":"xrp","coin_fee":2.0e-05,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=16","created_at_timestamp":1621786247},{"id":15,"ref":"MWR4599154046","merchant_withdrawal_ref":"akh9r1h29e15","status":"processing","coin_amount":10.99,"coin_currency":"xrp","coin_fee":2.0e-05,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=15","created_at_timestamp":1621786177},{"id":14,"ref":"MWR7435074055","merchant_withdrawal_ref":"akh9r1h29e14","status":"processing","coin_amount":10.99,"coin_currency":"xrp","coin_fee":2.0e-05,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=14","created_at_timestamp":1621497678},{"id":13,"ref":"MWR2408040692","merchant_withdrawal_ref":"akh9r1h29e13","status":"processing","coin_amount":10.99,"coin_currency":"xrp","coin_fee":2.0e-05,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=13","created_at_timestamp":1621497086},{"id":12,"ref":"MWR2187365563","merchant_withdrawal_ref":"akh9r1h29e12","status":"processing","coin_amount":10.99,"coin_currency":"xrp","coin_fee":2.0e-05,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=12","created_at_timestamp":1621496363},{"id":11,"ref":"MWR6984988898","merchant_withdrawal_ref":"akh9r1h29e11","status":"processing","coin_amount":10.99,"coin_currency":"xrp","coin_fee":2.0e-05,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=11","created_at_timestamp":1621495878},{"id":10,"ref":"MWR7809335939","merchant_withdrawal_ref":"akh9r1h29e10","status":"pending","coin_amount":10.99,"coin_currency":"xrp","coin_fee":2.0e-05,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=10","created_at_timestamp":1621495864},{"id":9,"ref":"MWR0306837501","merchant_withdrawal_ref":"akh9r1h29e9","status":"cancelled","coin_amount":10.99,"coin_currency":"xrp","coin_fee":0.0,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=9","created_at_timestamp":1621495169},{"id":8,"ref":"MWR8385898424","merchant_withdrawal_ref":"akh9r1h29e8","status":"cancelled","coin_amount":10.99,"coin_currency":"xrp","coin_fee":0.0,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=8","created_at_timestamp":1621495025},{"id":7,"ref":"MWR2026538351","merchant_withdrawal_ref":"akh9r1h29e7","status":"cancelled","coin_amount":10.99,"coin_currency":"xrp","coin_fee":0.0,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=7","created_at_timestamp":1621417290},{"id":6,"ref":"MWR7700295628","merchant_withdrawal_ref":"akh9r1h29e6","status":"cancelled","coin_amount":10.99,"coin_currency":"xrp","coin_fee":0.0,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=6","created_at_timestamp":1621417259},{"id":5,"ref":"MWR8624499987","merchant_withdrawal_ref":"akh9r1h29e4","status":"cancelled","coin_amount":10.99,"coin_currency":"xrp","coin_fee":0.0,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=5","created_at_timestamp":1621416869},{"id":4,"ref":"MWR5644211320","merchant_withdrawal_ref":"akh9r1h29e3","status":"cancelled","coin_amount":10.99,"coin_currency":"xrp","coin_fee":0.0,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=4","created_at_timestamp":1621416824},{"id":3,"ref":"MWR8738142345","merchant_withdrawal_ref":"akh9r1h29e2","status":"cancelled","coin_amount":10.99,"coin_currency":"xrp","coin_fee":0.0,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=3","created_at_timestamp":1621416603},{"id":2,"ref":"MWR9023143621","merchant_withdrawal_ref":"akh9r1h29e1","status":"cancelled","coin_amount":10.99,"coin_currency":"xrp","coin_fee":0.0,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback?remitano_id=2","created_at_timestamp":1621416518},{"id":1,"ref":"MWR1774298352","merchant_withdrawal_ref":"mwr2","status":"cancelled","coin_amount":100.0,"coin_currency":"usdt","coin_fee":0.0,"receiver_pay_fee":null,"action_confirmation_id":null,"otp_counter":null,"coin_address":"3BDS42pbFgxDn9uMSCBiWE5BcWFBVPPCAA","destination_tag":null,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://dummy.com/111?remitano_id=1","created_at_timestamp":1621401962}],"meta":{"per_page":25,"current_page":1,"next_page":null,"prev_page":null,"total_pages":1,"total_items":18}}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Tue, 08 Jun 2021 07:12:43 GMT
|
48
|
+
recorded_with: VCR 4.0.0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remitano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Phuong Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -279,10 +279,16 @@ files:
|
|
279
279
|
- spec/fixtures/vcr_cassettes/Remitano_Client_merchant_charges/_create/valid_params/returns_created_charge.yml
|
280
280
|
- spec/fixtures/vcr_cassettes/Remitano_Client_merchant_charges/_get/object_exists/returns_charge_data.yml
|
281
281
|
- spec/fixtures/vcr_cassettes/Remitano_Client_merchant_charges/_get/object_not_found/raises_error.yml
|
282
|
+
- spec/fixtures/vcr_cassettes/Remitano_Client_merchant_charges/_list/filter_by_status/returns_status_matched_merchant_charges.yml
|
283
|
+
- spec/fixtures/vcr_cassettes/Remitano_Client_merchant_charges/_list/page_and_per_page_specified/returns_merchant_charges_in_specified_page.yml
|
284
|
+
- spec/fixtures/vcr_cassettes/Remitano_Client_merchant_charges/_list/returns_merchant_charges.yml
|
282
285
|
- spec/fixtures/vcr_cassettes/Remitano_Client_merchant_withdrawals/_create/invalid_params/raises_error.yml
|
283
286
|
- spec/fixtures/vcr_cassettes/Remitano_Client_merchant_withdrawals/_create/valid_params/auto_confirms_withdrawal_with_htop_and_returns_created_withdrawal.yml
|
284
287
|
- spec/fixtures/vcr_cassettes/Remitano_Client_merchant_withdrawals/_get/object_exists/returns_withdrawal_data.yml
|
285
288
|
- spec/fixtures/vcr_cassettes/Remitano_Client_merchant_withdrawals/_get/object_not_found/raises_error.yml
|
289
|
+
- spec/fixtures/vcr_cassettes/Remitano_Client_merchant_withdrawals/_list/filter_by_status/returns_status_matched_merchant_withdrawals.yml
|
290
|
+
- spec/fixtures/vcr_cassettes/Remitano_Client_merchant_withdrawals/_list/page_and_per_page_specified/returns_merchant_withdrawals_in_specified_page.yml
|
291
|
+
- spec/fixtures/vcr_cassettes/Remitano_Client_merchant_withdrawals/_list/returns_merchant_withdrawals.yml
|
286
292
|
- spec/fixtures/vcr_cassettes/remitano/coin_accounts/me.yml
|
287
293
|
- spec/fixtures/vcr_cassettes/remitano/fiat_accounts/me.yml
|
288
294
|
- spec/fixtures/vcr_cassettes/remitano/my_offers/sell.yml
|