fake_stripe 0.0.10.1 → 0.0.10.2

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: c63b9aadcb147043b1633f1b144e432684020307
4
- data.tar.gz: f2a54083608ae1dd9aa4f0d788010bdb13adedb7
3
+ metadata.gz: 04059425370d51a062b9ebe3745c0392a631fc77
4
+ data.tar.gz: a38cb02d1fb8a3262fec7070cc72301086bcdf2c
5
5
  SHA512:
6
- metadata.gz: aa3f8fd21bddceb5f7b7ffe3899e47da3fc885ee3e19213d77668730b1e331a114a3ca7c65003ab22d4cf8439b3223b2b0225a934d5929617bbfd355258839f8
7
- data.tar.gz: 5304e3619fe15ea9e0776bea15fe0999a789159bd26fe5f2d14a4f952834e51ed94cd4cd6c15bb191401cfebe8a5b625ffc67a0b312e412f42ab9574301c032d
6
+ metadata.gz: d4ee074b17a4517d46006b8e849e3db6aee85441ab195daa89f92080ddd9bb09adfd7ad7ce177147168f94809de8d2959ba83fbfd175401ab5b10ea55f674001
7
+ data.tar.gz: 4dd66e0fba224106aec97e8f2572cf572c612a920cb5225d119304c222fbf85d66dee1b950ee9a018037999683dd413ce7750dfe287a521aea12cf2984396228
@@ -15,5 +15,25 @@
15
15
  ],
16
16
  "default_currency": "usd",
17
17
  "country": "US",
18
- "object": "account"
18
+ "object": "account",
19
+ "bank_accounts": {
20
+ "object": "list",
21
+ "total_count": 1,
22
+ "has_more": false,
23
+ "url": "/v1/accounts/acct_1032D82eZvKYlo2C/external_accounts",
24
+ "data": [{
25
+ "id":"ba_16ndClBdETbGCbQrGski5zps",
26
+ "object":"bank_account",
27
+ "last4":"1234",
28
+ "country":"US",
29
+ "currency":"usd",
30
+ "status":"new",
31
+ "fingerprint":"axCsvGRahxD6fvu0",
32
+ "routing_number":"110000000",
33
+ "bank_name":"STRIPE TEST BANK",
34
+ "account":"acct_28ndDlB5ETbGCaQr",
35
+ "default_for_currency":true,
36
+ "metadata":{}
37
+ }]
38
+ }
19
39
  }
@@ -0,0 +1,110 @@
1
+ {
2
+ "id": "acct_1032D82eZvKYlo2C",
3
+ "email": "bob@example.com",
4
+ "statement_descriptor": null,
5
+ "display_name": "Stripe.com",
6
+ "timezone": "US/Pacific",
7
+ "details_submitted": false,
8
+ "charges_enabled": false,
9
+ "transfers_enabled": false,
10
+ "currencies_supported": [
11
+ "usd",
12
+ "aed",
13
+ "afn",
14
+ "..."
15
+ ],
16
+ "default_currency": "usd",
17
+ "country": "US",
18
+ "object": "account",
19
+ "business_name": "Stripe.com",
20
+ "business_url": null,
21
+ "support_phone": null,
22
+ "business_logo": null,
23
+ "managed": false,
24
+ "product_description": null,
25
+ "debit_negative_balances": true,
26
+ "bank_accounts": {
27
+ "object": "list",
28
+ "total_count": 1,
29
+ "has_more": false,
30
+ "url": "/v1/accounts/acct_1032D82eZvKYlo2C/external_accounts",
31
+ "data": [{
32
+ "id":"ba_16ndClBdETbGCbQrGski5xad",
33
+ "object":"bank_account",
34
+ "last4":"2345",
35
+ "country":"US",
36
+ "currency":"usd",
37
+ "status":"new",
38
+ "fingerprint":"axCsvGRahxD6fvu0",
39
+ "routing_number":"110000000",
40
+ "bank_name":"STRIPE TEST BANK",
41
+ "account":"acct_39ndDlB5ETbGCsWt",
42
+ "default_for_currency":true,
43
+ "metadata":{}
44
+ }]
45
+ },
46
+ "verification": {
47
+ "fields_needed": [
48
+ "bank_account",
49
+ "business_url",
50
+ "product_description",
51
+ "support_phone",
52
+ "tos_acceptance.date",
53
+ "tos_acceptance.ip"
54
+ ],
55
+ "due_by": null,
56
+ "disabled_reason": "fields_needed"
57
+ },
58
+ "transfer_schedule": {
59
+ "delay_days": 7,
60
+ "interval": "daily"
61
+ },
62
+ "decline_charge_on": {
63
+ "cvc_failure": false,
64
+ "avs_failure": false
65
+ },
66
+ "tos_acceptance": {
67
+ "ip": null,
68
+ "date": null,
69
+ "user_agent": null
70
+ },
71
+ "legal_entity": {
72
+ "type": null,
73
+ "business_name": null,
74
+ "address": {
75
+ "line1": null,
76
+ "line2": null,
77
+ "city": null,
78
+ "state": null,
79
+ "postal_code": null,
80
+ "country": "US"
81
+ },
82
+ "first_name": null,
83
+ "last_name": null,
84
+ "personal_address": {
85
+ "line1": null,
86
+ "line2": null,
87
+ "city": null,
88
+ "state": null,
89
+ "postal_code": null,
90
+ "country": null
91
+ },
92
+ "dob": {
93
+ "day": null,
94
+ "month": null,
95
+ "year": null
96
+ },
97
+ "additional_owners": null,
98
+ "verification": {
99
+ "status": "unverified",
100
+ "document": null,
101
+ "details": null
102
+ },
103
+ "personal_id_number_provided": false,
104
+ "ssn_last_4_provided": false
105
+ },
106
+ "keys": {
107
+ "secret": "sk_test_sZNZe3vkCcTaOHv5fcZKzqdj",
108
+ "publishable": "pk_test_ahej4zmobxbm5NAH3tD3fCjM"
109
+ }
110
+ }
@@ -268,10 +268,18 @@ module FakeStripe
268
268
  json_response 200, fixture('retrieve_account')
269
269
  end
270
270
 
271
+ get '/v1/accounts/:account_id' do
272
+ json_response 200, fixture('retrieve_account')
273
+ end
274
+
271
275
  post "/v1/accounts" do
272
276
  json_response 201, fixture("create_account")
273
277
  end
274
278
 
279
+ post "/v1/accounts/:account_id" do
280
+ json_response 201, fixture("update_account")
281
+ end
282
+
275
283
  # Balance
276
284
  get '/v1/balance' do
277
285
  json_response 200, fixture('retrieve_balance')
@@ -1,3 +1,3 @@
1
1
  module FakeStripe
2
- VERSION = '0.0.10.1'
2
+ VERSION = '0.0.10.2'
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.1
4
+ version: 0.0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harlow Ward
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-21 00:00:00.000000000 Z
11
+ date: 2015-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -173,6 +173,7 @@ files:
173
173
  - lib/fake_stripe/fixtures/retrieve_token.json
174
174
  - lib/fake_stripe/fixtures/retrieve_transfer.json
175
175
  - lib/fake_stripe/fixtures/retrieve_upcoming_invoice.json
176
+ - lib/fake_stripe/fixtures/update_account.json
176
177
  - lib/fake_stripe/fixtures/update_card.json
177
178
  - lib/fake_stripe/fixtures/update_charge.json
178
179
  - lib/fake_stripe/fixtures/update_customer.json