caren-api 0.5.10 → 0.5.12
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 +1 -1
- data/caren-api.gemspec +2 -2
- data/lib/caren/store/invoice.rb +1 -11
- metadata +4 -4
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.5.
|
|
1
|
+
0.5.12
|
data/caren-api.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "caren-api"
|
|
8
|
-
s.version = "0.5.
|
|
8
|
+
s.version = "0.5.12"
|
|
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"]
|
|
12
|
-
s.date = "2012-04-
|
|
12
|
+
s.date = "2012-04-10"
|
|
13
13
|
s.description = "You can use this gem as inspiration of the base of your connections with Caren."
|
|
14
14
|
s.email = "andre.foeken@nedap.com"
|
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/caren/store/invoice.rb
CHANGED
|
@@ -14,8 +14,7 @@ class Caren::Store::Invoice < Caren::Base
|
|
|
14
14
|
:payment_url, # String
|
|
15
15
|
:customer_email, # String
|
|
16
16
|
:email_status, # String (unsent,sent,reminder_sent)
|
|
17
|
-
:
|
|
18
|
-
:status, # String (open paid late revoked)
|
|
17
|
+
:status, # String (draft open paid late revoked)
|
|
19
18
|
:payment_method, # String
|
|
20
19
|
:payment_method_description, # String
|
|
21
20
|
:billing_address, # Store::Address(:purpose => 'billing')
|
|
@@ -66,10 +65,6 @@ class Caren::Store::Invoice < Caren::Base
|
|
|
66
65
|
self.class.from_xml session.post(self.class.mark_as_open_url(self.id), nil)
|
|
67
66
|
end
|
|
68
67
|
|
|
69
|
-
def email session
|
|
70
|
-
self.class.from_xml session.post(self.class.email_url(self.id), self.to_xml)
|
|
71
|
-
end
|
|
72
|
-
|
|
73
68
|
def self.mark_as_paid_xml method=nil, description=nil
|
|
74
69
|
body = { :payment_method_description => description, :payment_method => method }
|
|
75
70
|
return body.to_xml( :root => (self.node_root || self.class.node_root) )
|
|
@@ -88,7 +83,6 @@ class Caren::Store::Invoice < Caren::Base
|
|
|
88
83
|
:requires_account => self.requires_account,
|
|
89
84
|
:requires_payment => self.requires_payment,
|
|
90
85
|
:customer_email => self.customer_email,
|
|
91
|
-
:paid => self.paid,
|
|
92
86
|
:payment_method => self.payment_method,
|
|
93
87
|
:payment_method_description => self.payment_method_description,
|
|
94
88
|
:billing_address => self.billing_address,
|
|
@@ -141,10 +135,6 @@ class Caren::Store::Invoice < Caren::Base
|
|
|
141
135
|
def self.mark_as_paid_url id
|
|
142
136
|
"#{self.resource_url(id)}/mark_as_paid"
|
|
143
137
|
end
|
|
144
|
-
|
|
145
|
-
def self.email_url id
|
|
146
|
-
"#{self.resource_url(id)}/email"
|
|
147
|
-
end
|
|
148
138
|
|
|
149
139
|
def self.resource_location
|
|
150
140
|
"/api/pro/store/invoices"
|
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: 19
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 5
|
|
9
|
-
-
|
|
10
|
-
version: 0.5.
|
|
9
|
+
- 12
|
|
10
|
+
version: 0.5.12
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Andre Foeken
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2012-04-
|
|
18
|
+
date: 2012-04-10 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
requirement: &id001 !ruby/object:Gem::Requirement
|