kashflow_soap 0.0.2 → 0.0.3
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/lib/kashflow_soap.rb +6 -7
- metadata +3 -2
data/lib/kashflow_soap.rb
CHANGED
@@ -31,8 +31,8 @@ class KashflowSoap
|
|
31
31
|
|
32
32
|
if status == "NO" && status_detail == "Incorrect username or password"
|
33
33
|
raise KashflowAuthenticationError
|
34
|
-
else
|
35
|
-
result
|
34
|
+
else
|
35
|
+
result
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
@@ -65,9 +65,9 @@ class KashflowSoap
|
|
65
65
|
def get_invoice id
|
66
66
|
invoice = call :get_invoice, {InvoiceNumber: id.to_s}
|
67
67
|
if invoice && invoice[:invoice_dbid] != "0"
|
68
|
-
invoice
|
69
|
-
else
|
70
|
-
raise StandardError
|
68
|
+
invoice
|
69
|
+
else
|
70
|
+
raise StandardError
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
@@ -92,6 +92,5 @@ class KashflowSoap
|
|
92
92
|
def method_missing m, message = nil
|
93
93
|
call m, message
|
94
94
|
end
|
95
|
-
|
96
|
-
class KashflowAuthenticationError < StandardError; end
|
97
95
|
end
|
96
|
+
class KashflowAuthenticationError < StandardError; end
|
metadata
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kashflow_soap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Ed Clements
|
9
9
|
- Stephan Yu
|
10
|
+
- Nicola Ferri
|
10
11
|
autorequire:
|
11
12
|
bindir: bin
|
12
13
|
cert_chain: []
|
13
|
-
date: 2015-
|
14
|
+
date: 2015-10-07 00:00:00.000000000 Z
|
14
15
|
dependencies: []
|
15
16
|
description:
|
16
17
|
email: ed.clements@gmail.com
|