caren-api 0.5.12 → 0.5.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.12
1
+ 0.5.13
data/caren-api.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "caren-api"
8
- s.version = "0.5.12"
8
+ s.version = "0.5.13"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andre Foeken"]
data/lib/caren/caren.rb CHANGED
@@ -151,7 +151,7 @@ module Caren
151
151
  hash = hash["caren_objects"]
152
152
  end
153
153
  Caren::Api.supported_incoming_objects.each do |key,klass|
154
- objects << (hash[key]||hash[key.to_s]||[]).map{ |h| klass.new(h) }
154
+ objects << (hash[key]||hash[key.to_s]||[]).map{ |h| klass.init_dependent_objects(klass.new(h)) }
155
155
  end
156
156
  return objects.flatten
157
157
  end
@@ -162,7 +162,7 @@ module Caren
162
162
  Caren::Api.supported_incoming_single_objects.each do |key, klass|
163
163
  object = hash[key] || hash[key.to_s]
164
164
  if object
165
- return klass.new(object)
165
+ return klass.init_dependent_objects(klass.new(object))
166
166
  end
167
167
  end
168
168
  end
@@ -76,6 +76,7 @@ class Caren::Store::Invoice < Caren::Base
76
76
  shipping_address.purpose = 'shipping' if shipping_address
77
77
 
78
78
  {
79
+ :status => self.status,
79
80
  :external_id => self.external_id,
80
81
  :person_id => self.person_id,
81
82
  :external_person_id => self.external_person_id,
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caren-api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 12
10
- version: 0.5.12
9
+ - 13
10
+ version: 0.5.13
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andre Foeken