uphold 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/.rubocop.yml +32 -0
- data/.travis.yml +13 -0
- data/Gemfile +10 -0
- data/LICENSE.txt +22 -0
- data/README.md +335 -0
- data/Rakefile +14 -0
- data/lib/uphold/api/auth_token.rb +17 -0
- data/lib/uphold/api/card.rb +36 -0
- data/lib/uphold/api/contact.rb +34 -0
- data/lib/uphold/api/endpoints.rb +26 -0
- data/lib/uphold/api/private_transaction.rb +58 -0
- data/lib/uphold/api/public_transaction.rb +23 -0
- data/lib/uphold/api/ticker.rb +23 -0
- data/lib/uphold/api/transparency.rb +15 -0
- data/lib/uphold/api/user.rb +23 -0
- data/lib/uphold/api.rb +22 -0
- data/lib/uphold/client.rb +14 -0
- data/lib/uphold/entities/asset.rb +9 -0
- data/lib/uphold/entities/auth_token.rb +9 -0
- data/lib/uphold/entities/base_entity.rb +27 -0
- data/lib/uphold/entities/card.rb +15 -0
- data/lib/uphold/entities/contact.rb +13 -0
- data/lib/uphold/entities/error.rb +8 -0
- data/lib/uphold/entities/ledger_entry.rb +10 -0
- data/lib/uphold/entities/oauth_error.rb +9 -0
- data/lib/uphold/entities/phone.rb +12 -0
- data/lib/uphold/entities/ticker.rb +10 -0
- data/lib/uphold/entities/transaction.rb +17 -0
- data/lib/uphold/entities/user.rb +18 -0
- data/lib/uphold/helpers.rb +23 -0
- data/lib/uphold/options.rb +39 -0
- data/lib/uphold/pagination.rb +9 -0
- data/lib/uphold/request.rb +70 -0
- data/lib/uphold/request_data.rb +7 -0
- data/lib/uphold/version.rb +3 -0
- data/lib/uphold.rb +46 -0
- data/spec/fixtures/vcr_cassettes/ledger.yml +56 -0
- data/spec/fixtures/vcr_cassettes/me/card.yml +61 -0
- data/spec/fixtures/vcr_cassettes/me/cards.yml +67 -0
- data/spec/fixtures/vcr_cassettes/me/contact.yml +61 -0
- data/spec/fixtures/vcr_cassettes/me/contacts.yml +61 -0
- data/spec/fixtures/vcr_cassettes/me/created_card.yml +61 -0
- data/spec/fixtures/vcr_cassettes/me/created_contact.yml +61 -0
- data/spec/fixtures/vcr_cassettes/me/phones.yml +61 -0
- data/spec/fixtures/vcr_cassettes/me/transactions/cancel.yml +61 -0
- data/spec/fixtures/vcr_cassettes/me/transactions/commit.yml +62 -0
- data/spec/fixtures/vcr_cassettes/me/transactions/create.yml +61 -0
- data/spec/fixtures/vcr_cassettes/me/transactions/create_waiting_cancel.yml +118 -0
- data/spec/fixtures/vcr_cassettes/me/transactions/create_waiting_resend.yml +118 -0
- data/spec/fixtures/vcr_cassettes/me/transactions/resend.yml +61 -0
- data/spec/fixtures/vcr_cassettes/me.yml +185 -0
- data/spec/fixtures/vcr_cassettes/pats.yml +61 -0
- data/spec/fixtures/vcr_cassettes/reserve/transaction.yml +60 -0
- data/spec/fixtures/vcr_cassettes/reserve/transactions.yml +60 -0
- data/spec/fixtures/vcr_cassettes/tickers.yml +60 -0
- data/spec/fixtures/vcr_cassettes/transparency.yml +60 -0
- data/spec/integration/api/auth_token_spec.rb +20 -0
- data/spec/integration/api/card_spec.rb +47 -0
- data/spec/integration/api/contact_spec.rb +53 -0
- data/spec/integration/api/private_transactions_spec.rb +74 -0
- data/spec/integration/api/public_transaction_spec.rb +35 -0
- data/spec/integration/api/ticker_spec.rb +21 -0
- data/spec/integration/api/transparency_spec.rb +33 -0
- data/spec/integration/api/user_spec.rb +32 -0
- data/spec/spec_helper.rb +26 -0
- data/spec/support/vcr.rb +8 -0
- data/spec/support/webmock.rb +11 -0
- data/spec/unit/api/auth_spec.rb +21 -0
- data/spec/unit/api/card_spec.rb +47 -0
- data/spec/unit/api/contact_spec.rb +53 -0
- data/spec/unit/api/private_transaction_spec.rb +114 -0
- data/spec/unit/api/public_transaction_spec.rb +34 -0
- data/spec/unit/api/ticker_spec.rb +34 -0
- data/spec/unit/api/transparency_spec.rb +33 -0
- data/spec/unit/api/user_spec.rb +33 -0
- data/spec/unit/client_spec.rb +33 -0
- data/spec/unit/entities/base_entity_spec.rb +36 -0
- data/spec/unit/helper_spec.rb +37 -0
- data/spec/unit/request_spec.rb +94 -0
- data/uphold.gemspec +30 -0
- metadata +296 -0
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.uphold.com/v0/me/contacts/6a0fc9d7-605b-43a3-8675-f1188ab2e005
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer <UPHOLD_AUTH_TOKEN>
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Server:
|
18
|
+
- cloudflare-nginx
|
19
|
+
Date:
|
20
|
+
- Tue, 27 Jan 2015 16:41:56 GMT
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Content-Length:
|
24
|
+
- '167'
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Set-Cookie:
|
28
|
+
- __cfduid=d9f24e313812b27fdf5f37800f659dab41422376915; expires=Wed, 27-Jan-16
|
29
|
+
16:41:55 GMT; path=/; domain=.uphold.com; HttpOnly
|
30
|
+
X-Content-Security-Policy:
|
31
|
+
- default-src "none"
|
32
|
+
Content-Security-Policy:
|
33
|
+
- default-src "none"
|
34
|
+
X-Webkit-Csp:
|
35
|
+
- default-src "none"
|
36
|
+
Strict-Transport-Security:
|
37
|
+
- max-age=31536000
|
38
|
+
X-Xss-Protection:
|
39
|
+
- 1; mode=block
|
40
|
+
X-Content-Type-Options:
|
41
|
+
- nosniff
|
42
|
+
- nosniff
|
43
|
+
X-Frame-Options:
|
44
|
+
- DENY
|
45
|
+
X-Uphold-Request-Id:
|
46
|
+
- d3df9134-d3bc-47b3-b1ea-11e17d87fe32
|
47
|
+
X-Ratelimit-Limit:
|
48
|
+
- '300'
|
49
|
+
X-Ratelimit-Remaining:
|
50
|
+
- '297'
|
51
|
+
X-Ratelimit-Reset:
|
52
|
+
- '1422377193'
|
53
|
+
Cf-Ray:
|
54
|
+
- 1af66689f1b80ded-MAD
|
55
|
+
body:
|
56
|
+
encoding: UTF-8
|
57
|
+
string: '{"id":"6a0fc9d7-605b-43a3-8675-f1188ab2e005","firstName":null,"lastName":null,"company":"Group
|
58
|
+
Buddies","emails":["mpalhas@groupbuddies.com"],"addresses":[],"name":""}'
|
59
|
+
http_version:
|
60
|
+
recorded_at: Tue, 27 Jan 2015 16:41:56 GMT
|
61
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.uphold.com/v0/me/contacts
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer <UPHOLD_AUTH_TOKEN>
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Server:
|
18
|
+
- cloudflare-nginx
|
19
|
+
Date:
|
20
|
+
- Tue, 27 Jan 2015 16:41:55 GMT
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Content-Length:
|
24
|
+
- '169'
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Set-Cookie:
|
28
|
+
- __cfduid=d9f24e313812b27fdf5f37800f659dab41422376915; expires=Wed, 27-Jan-16
|
29
|
+
16:41:55 GMT; path=/; domain=.uphold.com; HttpOnly
|
30
|
+
X-Content-Security-Policy:
|
31
|
+
- default-src "none"
|
32
|
+
Content-Security-Policy:
|
33
|
+
- default-src "none"
|
34
|
+
X-Webkit-Csp:
|
35
|
+
- default-src "none"
|
36
|
+
Strict-Transport-Security:
|
37
|
+
- max-age=31536000
|
38
|
+
X-Xss-Protection:
|
39
|
+
- 1; mode=block
|
40
|
+
X-Content-Type-Options:
|
41
|
+
- nosniff
|
42
|
+
- nosniff
|
43
|
+
X-Frame-Options:
|
44
|
+
- DENY
|
45
|
+
X-Uphold-Request-Id:
|
46
|
+
- 6e96600b-1022-4e3a-9df5-83dfd2bd6150
|
47
|
+
X-Ratelimit-Limit:
|
48
|
+
- '300'
|
49
|
+
X-Ratelimit-Remaining:
|
50
|
+
- '298'
|
51
|
+
X-Ratelimit-Reset:
|
52
|
+
- '1422377193'
|
53
|
+
Cf-Ray:
|
54
|
+
- 1af666882fd50ded-MAD
|
55
|
+
body:
|
56
|
+
encoding: UTF-8
|
57
|
+
string: '[{"id":"6a0fc9d7-605b-43a3-8675-f1188ab2e005","firstName":null,"lastName":null,"company":"Group
|
58
|
+
Buddies","emails":["mpalhas@groupbuddies.com"],"addresses":[],"name":""}]'
|
59
|
+
http_version:
|
60
|
+
recorded_at: Tue, 27 Jan 2015 16:41:55 GMT
|
61
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.uphold.com/v0/me/cards
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: label=New%20card¤cy=EUR
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer <UPHOLD_AUTH_TOKEN>
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Server:
|
18
|
+
- cloudflare-nginx
|
19
|
+
Date:
|
20
|
+
- Tue, 27 Jan 2015 14:23:48 GMT
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Content-Length:
|
24
|
+
- '292'
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Set-Cookie:
|
28
|
+
- __cfduid=d5a964a17a821406ad532e22554362ae01422368627; expires=Wed, 27-Jan-16
|
29
|
+
14:23:47 GMT; path=/; domain=.uphold.com; HttpOnly
|
30
|
+
X-Content-Security-Policy:
|
31
|
+
- default-src "none"
|
32
|
+
Content-Security-Policy:
|
33
|
+
- default-src "none"
|
34
|
+
X-Webkit-Csp:
|
35
|
+
- default-src "none"
|
36
|
+
Strict-Transport-Security:
|
37
|
+
- max-age=31536000
|
38
|
+
X-Xss-Protection:
|
39
|
+
- 1; mode=block
|
40
|
+
X-Content-Type-Options:
|
41
|
+
- nosniff
|
42
|
+
- nosniff
|
43
|
+
X-Frame-Options:
|
44
|
+
- DENY
|
45
|
+
X-Uphold-Request-Id:
|
46
|
+
- fcb84723-e476-46aa-a1b3-41b70286f5e9
|
47
|
+
X-Ratelimit-Limit:
|
48
|
+
- '300'
|
49
|
+
X-Ratelimit-Remaining:
|
50
|
+
- '297'
|
51
|
+
X-Ratelimit-Reset:
|
52
|
+
- '1422368769'
|
53
|
+
Cf-Ray:
|
54
|
+
- 1af59c34d1bf0db7-MAD
|
55
|
+
body:
|
56
|
+
encoding: UTF-8
|
57
|
+
string: '{"id":"2249bb71-e255-4b00-a1bc-a0fcc869aa0a","address":{"bitcoin":"1KKEyb2fs5oeGKaycoa7EJRB9dWNUh2zu7"},"label":"New
|
58
|
+
card","currency":"EUR","balance":"0.00","available":"0.00","lastTransactionAt":null,"position":8,"addresses":[{"id":"1KKEyb2fs5oeGKaycoa7EJRB9dWNUh2zu7","network":"bitcoin"}]}'
|
59
|
+
http_version:
|
60
|
+
recorded_at: Tue, 27 Jan 2015 14:23:48 GMT
|
61
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.uphold.com/v0/me/contacts
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: firstName=first-name&lastName=last-name&emails[]=fake%40email.com&company=company-name
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer <UPHOLD_AUTH_TOKEN>
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Server:
|
18
|
+
- cloudflare-nginx
|
19
|
+
Date:
|
20
|
+
- Tue, 27 Jan 2015 17:05:39 GMT
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Content-Length:
|
24
|
+
- '191'
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Set-Cookie:
|
28
|
+
- __cfduid=d872e6b02659cad8e480ae5aeac6d04ad1422378339; expires=Wed, 27-Jan-16
|
29
|
+
17:05:39 GMT; path=/; domain=.uphold.com; HttpOnly
|
30
|
+
X-Content-Security-Policy:
|
31
|
+
- default-src "none"
|
32
|
+
Content-Security-Policy:
|
33
|
+
- default-src "none"
|
34
|
+
X-Webkit-Csp:
|
35
|
+
- default-src "none"
|
36
|
+
Strict-Transport-Security:
|
37
|
+
- max-age=31536000
|
38
|
+
X-Xss-Protection:
|
39
|
+
- 1; mode=block
|
40
|
+
X-Content-Type-Options:
|
41
|
+
- nosniff
|
42
|
+
- nosniff
|
43
|
+
X-Frame-Options:
|
44
|
+
- DENY
|
45
|
+
X-Uphold-Request-Id:
|
46
|
+
- 8862a788-7e9b-4553-b816-41cfaecf515a
|
47
|
+
X-Ratelimit-Limit:
|
48
|
+
- '300'
|
49
|
+
X-Ratelimit-Remaining:
|
50
|
+
- '299'
|
51
|
+
X-Ratelimit-Reset:
|
52
|
+
- '1422378639'
|
53
|
+
Cf-Ray:
|
54
|
+
- 1af6894bf6100ded-MAD
|
55
|
+
body:
|
56
|
+
encoding: UTF-8
|
57
|
+
string: '{"id":"6a223e0d-8345-4153-9cc9-298ab5cab048","firstName":"first-name","lastName":"last-name","company":"company-name","emails":["fake@email.com"],"addresses":[],"name":"first-name
|
58
|
+
last-name"}'
|
59
|
+
http_version:
|
60
|
+
recorded_at: Tue, 27 Jan 2015 17:05:39 GMT
|
61
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.uphold.com/v0/me/phones
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer <UPHOLD_AUTH_TOKEN>
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Server:
|
18
|
+
- cloudflare-nginx
|
19
|
+
Date:
|
20
|
+
- Tue, 27 Jan 2015 14:02:27 GMT
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Content-Length:
|
24
|
+
- '183'
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Set-Cookie:
|
28
|
+
- __cfduid=de6483e85a5f2cc494b822c9956f7490b1422367347; expires=Wed, 27-Jan-16
|
29
|
+
14:02:27 GMT; path=/; domain=.uphold.com; HttpOnly
|
30
|
+
X-Content-Security-Policy:
|
31
|
+
- default-src "none"
|
32
|
+
Content-Security-Policy:
|
33
|
+
- default-src "none"
|
34
|
+
X-Webkit-Csp:
|
35
|
+
- default-src "none"
|
36
|
+
Strict-Transport-Security:
|
37
|
+
- max-age=31536000
|
38
|
+
X-Xss-Protection:
|
39
|
+
- 1; mode=block
|
40
|
+
X-Content-Type-Options:
|
41
|
+
- nosniff
|
42
|
+
- nosniff
|
43
|
+
X-Frame-Options:
|
44
|
+
- DENY
|
45
|
+
X-Uphold-Request-Id:
|
46
|
+
- b2d98db4-a2f6-4a4b-9e23-f6db41e7bc22
|
47
|
+
X-Ratelimit-Limit:
|
48
|
+
- '300'
|
49
|
+
X-Ratelimit-Remaining:
|
50
|
+
- '297'
|
51
|
+
X-Ratelimit-Reset:
|
52
|
+
- '1422367553'
|
53
|
+
Cf-Ray:
|
54
|
+
- 1af57cefe53f0ded-MAD
|
55
|
+
body:
|
56
|
+
encoding: UTF-8
|
57
|
+
string: '[{"id":"ecd5d5fa-dc92-4bb9-994a-1aca75dbb173","verified":"true","primary":"true","e164Masked":"+XXXXXXXXXX49","nationalMasked":"XXX
|
58
|
+
XXX X49","internationalMasked":"+XXX XXX XXX X49"}]'
|
59
|
+
http_version:
|
60
|
+
recorded_at: Tue, 27 Jan 2015 14:02:27 GMT
|
61
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.uphold.com/v0/me/cards/a4feff08-2977-40f8-a339-4f546ae5c7e2/transactions/9522034e-b844-4c89-8ee3-008ba042fa20/cancel
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer <UPHOLD_AUTH_TOKEN>
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Server:
|
18
|
+
- cloudflare-nginx
|
19
|
+
Date:
|
20
|
+
- Wed, 28 Jan 2015 13:18:15 GMT
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Content-Length:
|
24
|
+
- '802'
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Set-Cookie:
|
28
|
+
- __cfduid=d701fd87d67065d84089323c65d92f3951422451095; expires=Thu, 28-Jan-16
|
29
|
+
13:18:15 GMT; path=/; domain=.uphold.com; HttpOnly
|
30
|
+
X-Content-Security-Policy:
|
31
|
+
- default-src "none"
|
32
|
+
Content-Security-Policy:
|
33
|
+
- default-src "none"
|
34
|
+
X-Webkit-Csp:
|
35
|
+
- default-src "none"
|
36
|
+
Strict-Transport-Security:
|
37
|
+
- max-age=31536000
|
38
|
+
X-Xss-Protection:
|
39
|
+
- 1; mode=block
|
40
|
+
X-Content-Type-Options:
|
41
|
+
- nosniff
|
42
|
+
- nosniff
|
43
|
+
X-Frame-Options:
|
44
|
+
- DENY
|
45
|
+
X-Uphold-Request-Id:
|
46
|
+
- 180e56c3-3a75-4a5b-af96-6b4969196097
|
47
|
+
X-Ratelimit-Limit:
|
48
|
+
- '300'
|
49
|
+
X-Ratelimit-Remaining:
|
50
|
+
- '289'
|
51
|
+
X-Ratelimit-Reset:
|
52
|
+
- '1422451344'
|
53
|
+
Cf-Ray:
|
54
|
+
- 1afd7990f3340ddb-MAD
|
55
|
+
body:
|
56
|
+
encoding: UTF-8
|
57
|
+
string: '{"id":"9522034e-b844-4c89-8ee3-008ba042fa20","type":"transfer","message":null,"denomination":{"pair":"BTCBTC","rate":"1.00","amount":"0.0001","currency":"BTC"},"origin":{"base":"0.0001","commission":"0.00","fee":"0.00","amount":"0.0001","CardId":"a4feff08-2977-40f8-a339-4f546ae5c7e2","currency":"BTC","description":"Luis
|
58
|
+
Ferreira","rate":"1.00","sources":[{"id":"e6615095-8a90-483a-b58b-c46391308a53","amount":"0.0001"}],"type":"card","username":"zamith"},"destination":{"base":"0.0001","commission":"0.00","fee":"0.00","amount":"0.0001","currency":"BTC","description":"non-user@example.com","rate":"1.00","type":"email"},"status":"cancelled","params":{"type":"invite","pair":"BTCBTC","margin":"0.00","rate":"1.00","currency":"BTC","progress":"0","ttl":"30000"},"createdAt":"2015-01-28T13:18:14.904Z"}'
|
59
|
+
http_version:
|
60
|
+
recorded_at: Wed, 28 Jan 2015 13:18:17 GMT
|
61
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.uphold.com/v0/me/cards/a4feff08-2977-40f8-a339-4f546ae5c7e2/transactions/135a0708-898c-4de4-a5a0-58a463e0d7ab/commit
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer <UPHOLD_AUTH_TOKEN>
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Server:
|
18
|
+
- cloudflare-nginx
|
19
|
+
Date:
|
20
|
+
- Wed, 28 Jan 2015 13:17:57 GMT
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Content-Length:
|
24
|
+
- '864'
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Set-Cookie:
|
28
|
+
- __cfduid=d9beb753192cd3b08bf168e721c2fa1dd1422451077; expires=Thu, 28-Jan-16
|
29
|
+
13:17:57 GMT; path=/; domain=.uphold.com; HttpOnly
|
30
|
+
X-Content-Security-Policy:
|
31
|
+
- default-src "none"
|
32
|
+
Content-Security-Policy:
|
33
|
+
- default-src "none"
|
34
|
+
X-Webkit-Csp:
|
35
|
+
- default-src "none"
|
36
|
+
Strict-Transport-Security:
|
37
|
+
- max-age=31536000
|
38
|
+
X-Xss-Protection:
|
39
|
+
- 1; mode=block
|
40
|
+
X-Content-Type-Options:
|
41
|
+
- nosniff
|
42
|
+
- nosniff
|
43
|
+
X-Frame-Options:
|
44
|
+
- DENY
|
45
|
+
X-Uphold-Request-Id:
|
46
|
+
- cc08d6d2-812a-444a-90ea-d9ff20f35944
|
47
|
+
X-Ratelimit-Limit:
|
48
|
+
- '300'
|
49
|
+
X-Ratelimit-Remaining:
|
50
|
+
- '292'
|
51
|
+
X-Ratelimit-Reset:
|
52
|
+
- '1422451344'
|
53
|
+
Cf-Ray:
|
54
|
+
- 1afd79231c580dc3-MAD
|
55
|
+
body:
|
56
|
+
encoding: UTF-8
|
57
|
+
string: '{"id":"135a0708-898c-4de4-a5a0-58a463e0d7ab","type":"transfer","message":null,"denomination":{"pair":"BTCBTC","rate":"1.00","amount":"0.0001","currency":"BTC"},"origin":{"base":"0.0001","commission":"0.00","fee":"0.00","amount":"0.0001","CardId":"a4feff08-2977-40f8-a339-4f546ae5c7e2","currency":"BTC","description":"Luis
|
58
|
+
Ferreira","rate":"1.00","sources":[{"id":"e6615095-8a90-483a-b58b-c46391308a53","amount":"0.0001"}],"type":"card","username":"zamith"},"destination":{"base":"0.0001","commission":"0.00","fee":"0.00","amount":"0.0001","CardId":"a0e20123-47c8-4784-9e71-0defb34d18a7","currency":"BTC","description":"Luis
|
59
|
+
Ferreira","rate":"1.00","type":"card","username":"zamith"},"status":"completed","params":{"type":"transfer","pair":"BTCBTC","margin":"0.00","rate":"1.00","currency":"BTC","progress":"1","ttl":"30000"},"createdAt":"2015-01-28T13:17:57.729Z"}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Wed, 28 Jan 2015 13:17:59 GMT
|
62
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.uphold.com/v0/me/cards/a4feff08-2977-40f8-a339-4f546ae5c7e2/transactions
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: card_id=a4feff08-2977-40f8-a339-4f546ae5c7e2&denomination[currency]=BTC&denomination[amount]=0.0001&destination=a0e20123-47c8-4784-9e71-0defb34d18a7
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer <UPHOLD_AUTH_TOKEN>
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 202
|
15
|
+
message: Accepted
|
16
|
+
headers:
|
17
|
+
Server:
|
18
|
+
- cloudflare-nginx
|
19
|
+
Date:
|
20
|
+
- Wed, 28 Jan 2015 13:17:57 GMT
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Content-Length:
|
24
|
+
- '728'
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Set-Cookie:
|
28
|
+
- __cfduid=d1a4b1ce786bc8db4b5c6c29748ec7a521422451077; expires=Thu, 28-Jan-16
|
29
|
+
13:17:57 GMT; path=/; domain=.uphold.com; HttpOnly
|
30
|
+
X-Content-Security-Policy:
|
31
|
+
- default-src "none"
|
32
|
+
Content-Security-Policy:
|
33
|
+
- default-src "none"
|
34
|
+
X-Webkit-Csp:
|
35
|
+
- default-src "none"
|
36
|
+
Strict-Transport-Security:
|
37
|
+
- max-age=31536000
|
38
|
+
X-Xss-Protection:
|
39
|
+
- 1; mode=block
|
40
|
+
X-Content-Type-Options:
|
41
|
+
- nosniff
|
42
|
+
X-Frame-Options:
|
43
|
+
- DENY
|
44
|
+
X-Uphold-Request-Id:
|
45
|
+
- 2e8345c2-eca1-4fa8-ae13-63e029ee064d
|
46
|
+
X-Ratelimit-Limit:
|
47
|
+
- '300'
|
48
|
+
X-Ratelimit-Remaining:
|
49
|
+
- '293'
|
50
|
+
X-Ratelimit-Reset:
|
51
|
+
- '1422451344'
|
52
|
+
Cf-Ray:
|
53
|
+
- 1afd7920f30f0dd5-MAD
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"id":"135a0708-898c-4de4-a5a0-58a463e0d7ab","type":"transfer","denomination":{"amount":"0.0001","currency":"BTC","rate":"1.00","pair":"BTCBTC"},"origin":{"base":"0.0001","commission":"0.00","fee":"0.00","amount":"0.0001","CardId":"a4feff08-2977-40f8-a339-4f546ae5c7e2","currency":"BTC","description":"Luis
|
57
|
+
Ferreira","rate":"1.00","sources":[],"type":"card","username":"zamith"},"destination":{"base":"0.0001","commission":"0.00","fee":"0.00","amount":"0.0001","CardId":"a0e20123-47c8-4784-9e71-0defb34d18a7","currency":"BTC","description":"Luis
|
58
|
+
Ferreira","rate":"1.00","type":"card","username":"zamith"},"status":"pending","params":{"type":"transfer","pair":"BTCBTC","margin":"0.00","rate":"1.00","currency":"BTC","ttl":30000}}'
|
59
|
+
http_version:
|
60
|
+
recorded_at: Wed, 28 Jan 2015 13:17:59 GMT
|
61
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,118 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.uphold.com/v0/me/cards/a4feff08-2977-40f8-a339-4f546ae5c7e2/transactions
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: card_id=a4feff08-2977-40f8-a339-4f546ae5c7e2&denomination[currency]=BTC&denomination[amount]=0.0001&destination=non-user%40example.com
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer <UPHOLD_AUTH_TOKEN>
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 202
|
15
|
+
message: Accepted
|
16
|
+
headers:
|
17
|
+
Server:
|
18
|
+
- cloudflare-nginx
|
19
|
+
Date:
|
20
|
+
- Wed, 28 Jan 2015 13:18:14 GMT
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
Content-Length:
|
24
|
+
- '666'
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Set-Cookie:
|
28
|
+
- __cfduid=d2dd7854c414490d1a059bb01b033a4481422451094; expires=Thu, 28-Jan-16
|
29
|
+
13:18:14 GMT; path=/; domain=.uphold.com; HttpOnly
|
30
|
+
X-Content-Security-Policy:
|
31
|
+
- default-src "none"
|
32
|
+
Content-Security-Policy:
|
33
|
+
- default-src "none"
|
34
|
+
X-Webkit-Csp:
|
35
|
+
- default-src "none"
|
36
|
+
Strict-Transport-Security:
|
37
|
+
- max-age=31536000
|
38
|
+
X-Xss-Protection:
|
39
|
+
- 1; mode=block
|
40
|
+
X-Content-Type-Options:
|
41
|
+
- nosniff
|
42
|
+
X-Frame-Options:
|
43
|
+
- DENY
|
44
|
+
X-Uphold-Request-Id:
|
45
|
+
- 3710bf77-cba3-4b7e-9783-7e70c076e502
|
46
|
+
X-Ratelimit-Limit:
|
47
|
+
- '300'
|
48
|
+
X-Ratelimit-Remaining:
|
49
|
+
- '291'
|
50
|
+
X-Ratelimit-Reset:
|
51
|
+
- '1422451344'
|
52
|
+
Cf-Ray:
|
53
|
+
- 1afd798c4f560ddb-MAD
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"id":"9522034e-b844-4c89-8ee3-008ba042fa20","type":"transfer","denomination":{"amount":"0.0001","currency":"BTC","rate":"1.00","pair":"BTCBTC"},"origin":{"base":"0.0001","commission":"0.00","fee":"0.00","amount":"0.0001","CardId":"a4feff08-2977-40f8-a339-4f546ae5c7e2","currency":"BTC","description":"Luis
|
57
|
+
Ferreira","rate":"1.00","sources":[],"type":"card","username":"zamith"},"destination":{"base":"0.0001","commission":"0.00","fee":"0.00","amount":"0.0001","currency":"BTC","description":"non-user@example.com","rate":"1.00","type":"email"},"status":"pending","params":{"type":"invite","pair":"BTCBTC","margin":"0.00","rate":"1.00","currency":"BTC","ttl":30000}}'
|
58
|
+
http_version:
|
59
|
+
recorded_at: Wed, 28 Jan 2015 13:18:16 GMT
|
60
|
+
- request:
|
61
|
+
method: post
|
62
|
+
uri: https://api.uphold.com/v0/me/cards/a4feff08-2977-40f8-a339-4f546ae5c7e2/transactions/9522034e-b844-4c89-8ee3-008ba042fa20/commit
|
63
|
+
body:
|
64
|
+
encoding: UTF-8
|
65
|
+
string: ''
|
66
|
+
headers:
|
67
|
+
Authorization:
|
68
|
+
- Bearer <UPHOLD_AUTH_TOKEN>
|
69
|
+
response:
|
70
|
+
status:
|
71
|
+
code: 200
|
72
|
+
message: OK
|
73
|
+
headers:
|
74
|
+
Server:
|
75
|
+
- cloudflare-nginx
|
76
|
+
Date:
|
77
|
+
- Wed, 28 Jan 2015 13:18:15 GMT
|
78
|
+
Content-Type:
|
79
|
+
- application/json; charset=utf-8
|
80
|
+
Content-Length:
|
81
|
+
- '800'
|
82
|
+
Connection:
|
83
|
+
- keep-alive
|
84
|
+
Set-Cookie:
|
85
|
+
- __cfduid=d5e4844a98f43335bc1a59dba9c48d3c01422451094; expires=Thu, 28-Jan-16
|
86
|
+
13:18:14 GMT; path=/; domain=.uphold.com; HttpOnly
|
87
|
+
X-Content-Security-Policy:
|
88
|
+
- default-src "none"
|
89
|
+
Content-Security-Policy:
|
90
|
+
- default-src "none"
|
91
|
+
X-Webkit-Csp:
|
92
|
+
- default-src "none"
|
93
|
+
Strict-Transport-Security:
|
94
|
+
- max-age=31536000
|
95
|
+
X-Xss-Protection:
|
96
|
+
- 1; mode=block
|
97
|
+
X-Content-Type-Options:
|
98
|
+
- nosniff
|
99
|
+
- nosniff
|
100
|
+
X-Frame-Options:
|
101
|
+
- DENY
|
102
|
+
X-Uphold-Request-Id:
|
103
|
+
- 739776e9-604d-47be-a5e7-4a3225b99664
|
104
|
+
X-Ratelimit-Limit:
|
105
|
+
- '300'
|
106
|
+
X-Ratelimit-Remaining:
|
107
|
+
- '290'
|
108
|
+
X-Ratelimit-Reset:
|
109
|
+
- '1422451344'
|
110
|
+
Cf-Ray:
|
111
|
+
- 1afd798e56240dd5-MAD
|
112
|
+
body:
|
113
|
+
encoding: UTF-8
|
114
|
+
string: '{"id":"9522034e-b844-4c89-8ee3-008ba042fa20","type":"transfer","message":null,"denomination":{"pair":"BTCBTC","rate":"1.00","amount":"0.0001","currency":"BTC"},"origin":{"base":"0.0001","commission":"0.00","fee":"0.00","amount":"0.0001","CardId":"a4feff08-2977-40f8-a339-4f546ae5c7e2","currency":"BTC","description":"Luis
|
115
|
+
Ferreira","rate":"1.00","sources":[{"id":"e6615095-8a90-483a-b58b-c46391308a53","amount":"0.0001"}],"type":"card","username":"zamith"},"destination":{"base":"0.0001","commission":"0.00","fee":"0.00","amount":"0.0001","currency":"BTC","description":"non-user@example.com","rate":"1.00","type":"email"},"status":"waiting","params":{"type":"invite","pair":"BTCBTC","margin":"0.00","rate":"1.00","currency":"BTC","progress":"0","ttl":"30000"},"createdAt":"2015-01-28T13:18:14.904Z"}'
|
116
|
+
http_version:
|
117
|
+
recorded_at: Wed, 28 Jan 2015 13:18:16 GMT
|
118
|
+
recorded_with: VCR 2.9.3
|