ey_services_fake 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -78,6 +78,14 @@ module EyServicesFake
78
78
  {}.to_json
79
79
  end
80
80
 
81
+ put '/api/1/service_accounts/:service_account_id/provisioned_service/:provisioned_service_id' do |service_account_id, provisioned_service_id|
82
+ service_account = ServiceAccount.get!(service_account_id)
83
+ provisioned_service = service_account.provisioned_services.detect{ |ps| ps.id.to_s == provisioned_service_id.to_s}
84
+ atts = JSON.parse(request.body.read)["provisioned_service"]
85
+ provisioned_service.update_attributes(atts)
86
+ {}.to_json
87
+ end
88
+
81
89
  post '/api/1/partners/:partner_id/services/:service_id/service_accounts/:service_account_id/invoices' do |partner_id, service_id, service_account_id|
82
90
  invoice_params = JSON.parse(request.body.read)["invoice"]
83
91
  unless invoice_params['total_amount_cents'].is_a?(Fixnum)
@@ -1,3 +1,3 @@
1
1
  module EyServicesFake
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ey_services_fake
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jacob Burkhart & Josh Lane
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-01 00:00:00 Z
18
+ date: 2011-11-03 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: sinatra