fake_stripe 0.0.10.5 → 0.0.10.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e871c18b0e2cf132981b56b2a879fc7b61d623db
4
- data.tar.gz: f6872c8b51bad23062fe754c3aa2eaddf68f6c43
3
+ metadata.gz: 10a2cf4c05b1a3c90ac7a05be5dd502d8d0cd224
4
+ data.tar.gz: ea683e8f5cefd713c30339a6c205c390663083fb
5
5
  SHA512:
6
- metadata.gz: f702d9a0f597335dff3d391611bfaec9ab005576826c8f7d24210b95aaf80fac2bf480abcf101561672c0915cc864886563e9aa6ce77ffa0ab015565853dcbd3
7
- data.tar.gz: dbb911d7cf30a13160c596f80ba546bc0aaaae0290a40063064633d720a812f011924bb8c087f94ca02fa438ff20e615476f38a00ac96bfa10310674e5d2fa60
6
+ metadata.gz: 69b3937762a83d62ceba71748de5d6d8896c7a2a58e19476951a76a37f30a8cee99c530fdcc69cb8d6f6a6b1fdf956866025f4e40b994a0a5a7fb4f41eecbe96
7
+ data.tar.gz: 4d4879697a1509f87d52602e125efd2f2bf30ffff673ab2d4767130c15749e9506a6bebdf6bf00bc80075419fa5306450adac5c0cd5b930ffc856989841b989d
@@ -8,6 +8,38 @@
8
8
  "delinquent": false,
9
9
  "metadata": {
10
10
  },
11
+ "sources": {
12
+ "object": "list",
13
+ "data": [
14
+ {
15
+ "id": "card_1234567890ABCDEFghijklmn",
16
+ "object": "card",
17
+ "address_city": null,
18
+ "address_country": null,
19
+ "address_line1": null,
20
+ "address_line1_check": null,
21
+ "address_line2": null,
22
+ "address_state": null,
23
+ "address_zip": null,
24
+ "address_zip_check": null,
25
+ "brand": "Visa",
26
+ "country": "US",
27
+ "customer": "abcdefghijklmnop",
28
+ "cvc_check": "pass",
29
+ "dynamic_last4": null,
30
+ "exp_month": 10,
31
+ "exp_year": 2016,
32
+ "funding": "credit",
33
+ "last4": "4242",
34
+ "metadata": {},
35
+ "name": null,
36
+ "tokenization_method": null
37
+ }
38
+ ],
39
+ "has_more": false,
40
+ "total_count": 1,
41
+ "url": "/v1/customers/abcdefghijklmnop/sources"
42
+ },
11
43
  "subscriptions": {
12
44
  "object": "list",
13
45
  "count": 0,
@@ -35,7 +35,7 @@
35
35
  "currency": "usd",
36
36
  "default_for_currency": true,
37
37
  "fingerprint":"axCsvGRahxD6fvu0",
38
- "last4": "1234",
38
+ "last4": "2345",
39
39
  "metadata": {},
40
40
  "routing_number": "110000000",
41
41
  "status": "new"
@@ -1,3 +1,4 @@
1
1
  require 'webmock'
2
2
  include WebMock::API
3
+ WebMock.enable!
3
4
  WebMock.disable_net_connect!(allow_localhost: true)
@@ -74,6 +74,10 @@ module FakeStripe
74
74
  json_response 200, fixture('list_cards')
75
75
  end
76
76
 
77
+ get '/v1/customers/:customer_id/sources/:id' do
78
+ json_response 200, fixture('retrieve_card')
79
+ end
80
+
77
81
  # Subscriptions
78
82
  post '/v1/customers/:customer_id/subscriptions' do
79
83
  FakeStripe.subscription_count += 1
@@ -1,3 +1,3 @@
1
1
  module FakeStripe
2
- VERSION = '0.0.10.5'
2
+ VERSION = '0.0.10.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fake_stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10.5
4
+ version: 0.0.10.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harlow Ward
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-20 00:00:00.000000000 Z
11
+ date: 2016-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara