intacctrb 0.8.2 → 0.8.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.
- checksums.yaml +5 -5
- data/Gemfile.lock +1 -1
- data/lib/intacctrb/bill.rb +11 -6
- data/lib/intacctrb/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 54fd88104cc4b9b7c58b2b3f5eec2744bd52c1c5
|
4
|
+
data.tar.gz: 0a210d34c5258a08ff1907e5a8cff48ba38cf4d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ccb198bec2f07590d0494e02bba9733c8f2aeaee8daf7113586e1a0719db188aaf504054767d0c228c6825e765aa9f48782b9f5dc6f057240a3c164d53d7123
|
7
|
+
data.tar.gz: b78f44e1b6a13c09ee2112b29a99c7006feb7b87ecf5be1910a05e1cf0dfee7d6622b3f021ce3ea905528ef93b146449bae73cdb05081a495ae516b6606aa8b0
|
data/Gemfile.lock
CHANGED
data/lib/intacctrb/bill.rb
CHANGED
@@ -24,7 +24,7 @@ module IntacctRB
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def update
|
27
|
-
raise 'You must pass an id to update a bill' unless object.intacct_id.present?
|
27
|
+
raise IntacctRB::Exceptions::Bill.new('You must pass an id to update a bill') unless object.intacct_id.present?
|
28
28
|
|
29
29
|
send_xml('update') do |xml|
|
30
30
|
xml.function(controlid: "f1") {
|
@@ -37,22 +37,27 @@ module IntacctRB
|
|
37
37
|
end
|
38
38
|
|
39
39
|
if !successful?
|
40
|
-
raise(response.at('//error//description2'))
|
40
|
+
raise IntacctRB::Exceptions::Bill.new(response.at('//error//description2'))
|
41
41
|
end
|
42
42
|
|
43
43
|
object.intacct_id
|
44
44
|
end
|
45
45
|
|
46
46
|
def delete
|
47
|
-
|
47
|
+
return false unless object.intacct_id.present?
|
48
48
|
|
49
49
|
send_xml('delete') do |xml|
|
50
|
-
xml.function(controlid: "
|
51
|
-
xml.
|
50
|
+
xml.function(controlid: "f1") {
|
51
|
+
xml.delete {
|
52
|
+
xml.object 'APBILL'
|
53
|
+
xml.keys object.intacct_id
|
54
|
+
}
|
52
55
|
}
|
53
56
|
end
|
54
57
|
|
55
|
-
successful?
|
58
|
+
if !successful?
|
59
|
+
raise IntacctRB::Exceptions::Bill.new(response.at('//error//description2'))
|
60
|
+
end
|
56
61
|
end
|
57
62
|
|
58
63
|
def get_list(options = {})
|
data/lib/intacctrb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: intacctrb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Hale
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -218,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
218
|
version: '0'
|
219
219
|
requirements: []
|
220
220
|
rubyforge_project:
|
221
|
-
rubygems_version: 2.
|
221
|
+
rubygems_version: 2.6.11
|
222
222
|
signing_key:
|
223
223
|
specification_version: 4
|
224
224
|
summary: Ruby Intacct API Client
|