intacctrb 0.8.2 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: e1fbd9e16c1817673c4f6dc62e0a41c6ae1f0af03822890e446a794cd8b2e3f5
4
- data.tar.gz: 0e527be7c3ef0b4e2726f93ac6230ae56d8524c61eea8c1ae7fb02e89888d110
2
+ SHA1:
3
+ metadata.gz: 54fd88104cc4b9b7c58b2b3f5eec2744bd52c1c5
4
+ data.tar.gz: 0a210d34c5258a08ff1907e5a8cff48ba38cf4d8
5
5
  SHA512:
6
- metadata.gz: 21979091add64a6ff8e6e10d3de7068a3ab4912ea591a14e450ddfb36c8cf2fb80a824feec09f55a99dfe4c39d74528a74fe28498d7fbe822fff4a2aa03d8eed
7
- data.tar.gz: 23f6a4fee2c2317b8cd6af0ec44b891a6b91b0d55b9e2e0d56e19a22f8ac9dbde098d474469fb095ed10f6a8bb0f2a158ff43e8239cc138dc6299a006960e34b
6
+ metadata.gz: 2ccb198bec2f07590d0494e02bba9733c8f2aeaee8daf7113586e1a0719db188aaf504054767d0c228c6825e765aa9f48782b9f5dc6f057240a3c164d53d7123
7
+ data.tar.gz: b78f44e1b6a13c09ee2112b29a99c7006feb7b87ecf5be1910a05e1cf0dfee7d6622b3f021ce3ea905528ef93b146449bae73cdb05081a495ae516b6606aa8b0
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- intacctrb (0.8.2)
4
+ intacctrb (0.8.3)
5
5
  hooks
6
6
  nokogiri
7
7
 
@@ -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
- # return false unless object.intacct_system_id.present?
47
+ return false unless object.intacct_id.present?
48
48
 
49
49
  send_xml('delete') do |xml|
50
- xml.function(controlid: "1") {
51
- xml.delete_bill(externalkey: "false", key: object.intacct_key)
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 = {})
@@ -1,3 +1,3 @@
1
1
  module IntacctRB
2
- VERSION = "0.8.2"
2
+ VERSION = "0.8.3"
3
3
  end
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.2
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-19 00:00:00.000000000 Z
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.7.6
221
+ rubygems_version: 2.6.11
222
222
  signing_key:
223
223
  specification_version: 4
224
224
  summary: Ruby Intacct API Client