caren-api 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/caren-api.gemspec +1 -1
- data/lib/caren/store/invoice.rb +2 -0
- data/lib/caren/store/line_item.rb +2 -0
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.4
|
data/caren-api.gemspec
CHANGED
data/lib/caren/store/invoice.rb
CHANGED
@@ -2,6 +2,7 @@ class Caren::Store::Invoice < Caren::Base
|
|
2
2
|
|
3
3
|
def self.keys
|
4
4
|
[:id, # Integer (Caren id)
|
5
|
+
:external_id, # Integer (Your id)
|
5
6
|
:person_id, # Integer (Caren person id)
|
6
7
|
:reference, # String
|
7
8
|
:requires_account, # Boolean
|
@@ -60,6 +61,7 @@ class Caren::Store::Invoice < Caren::Base
|
|
60
61
|
shipping_address.purpose = 'shipping' if shipping_address
|
61
62
|
|
62
63
|
{
|
64
|
+
:external_id => self.external_id,
|
63
65
|
:person_id => self.person_id,
|
64
66
|
:reference => self.reference,
|
65
67
|
:requires_account => self.requires_account,
|
@@ -2,6 +2,7 @@ class Caren::Store::LineItem < Caren::Base
|
|
2
2
|
|
3
3
|
def self.keys
|
4
4
|
[:id, # Integer (Caren id)
|
5
|
+
:external_id, # Integer (Your id)
|
5
6
|
:sku, # String
|
6
7
|
:invoice_id, # Integer (caren invoice id)
|
7
8
|
:billable_id, # Integer (caren billable id)
|
@@ -25,6 +26,7 @@ class Caren::Store::LineItem < Caren::Base
|
|
25
26
|
def as_xml
|
26
27
|
{
|
27
28
|
:id => self.id,
|
29
|
+
:external_id => self.external_id,
|
28
30
|
:sku => self.sku,
|
29
31
|
:billable_id => self.billable_id,
|
30
32
|
:currency => self.currency,
|
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:
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 4
|
10
|
+
version: 0.5.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andre Foeken
|