xero_gateway 2.1.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +3 -11
- data/README.md +212 -0
- data/Rakefile +0 -1
- data/lib/oauth/oauth_consumer.rb +25 -9
- data/lib/xero_gateway.rb +5 -1
- data/lib/xero_gateway/address.rb +29 -27
- data/lib/xero_gateway/bank_transaction.rb +11 -3
- data/lib/xero_gateway/base_record.rb +97 -0
- data/lib/xero_gateway/contact_group.rb +87 -0
- data/lib/xero_gateway/currency.rb +8 -54
- data/lib/xero_gateway/dates.rb +4 -0
- data/lib/xero_gateway/exceptions.rb +14 -13
- data/lib/xero_gateway/gateway.rb +90 -5
- data/lib/xero_gateway/http.rb +16 -8
- data/lib/xero_gateway/invoice.rb +9 -3
- data/lib/xero_gateway/item.rb +27 -0
- data/lib/xero_gateway/line_item_calculations.rb +3 -3
- data/lib/xero_gateway/manual_journal.rb +5 -2
- data/lib/xero_gateway/organisation.rb +22 -73
- data/lib/xero_gateway/payment.rb +22 -9
- data/lib/xero_gateway/phone.rb +2 -0
- data/lib/xero_gateway/report.rb +95 -0
- data/lib/xero_gateway/response.rb +12 -7
- data/lib/xero_gateway/tax_rate.rb +13 -61
- data/lib/xero_gateway/tracking_category.rb +39 -13
- data/lib/xero_gateway/version.rb +3 -0
- data/test/integration/get_items_test.rb +25 -0
- data/test/integration/get_payments_test.rb +54 -0
- data/test/test_helper.rb +51 -16
- data/test/unit/address_test.rb +34 -0
- data/test/unit/bank_transaction_test.rb +7 -0
- data/test/unit/contact_group_test.rb +47 -0
- data/test/unit/contact_test.rb +35 -16
- data/test/unit/credit_note_test.rb +2 -2
- data/test/unit/gateway_test.rb +170 -1
- data/test/unit/invoice_test.rb +27 -7
- data/test/unit/item_test.rb +51 -0
- data/test/unit/organisation_test.rb +1 -0
- data/test/unit/payment_test.rb +18 -11
- data/test/unit/report_test.rb +78 -0
- data/xero_gateway.gemspec +29 -13
- metadata +176 -89
- data/README.textile +0 -357
- data/init.rb +0 -1
@@ -0,0 +1,51 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), '../test_helper.rb')
|
2
|
+
|
3
|
+
class ItemTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
# Tests that a item can be converted into XML that Xero can understand, and then converted back to a item
|
6
|
+
def test_build_and_parse_xml
|
7
|
+
item = create_test_item
|
8
|
+
|
9
|
+
# Generate the XML message
|
10
|
+
item_as_xml = item.to_xml
|
11
|
+
|
12
|
+
# Parse the XML message and retrieve the account element
|
13
|
+
item_element = REXML::XPath.first(REXML::Document.new(item_as_xml), "/Item")
|
14
|
+
|
15
|
+
# Build a new account from the XML
|
16
|
+
result_item = XeroGateway::Item.from_xml(item_element)
|
17
|
+
|
18
|
+
# Check the account details
|
19
|
+
assert_equal item, result_item
|
20
|
+
end
|
21
|
+
|
22
|
+
def test_load_item_xml
|
23
|
+
xml_text = File.read("test/stub_responses/item.xml")
|
24
|
+
xml_doc = REXML::Document.new(xml_text)
|
25
|
+
xml = REXML::XPath.first(xml_doc, "/Item")
|
26
|
+
|
27
|
+
item = XeroGateway::Item.from_xml(xml)
|
28
|
+
|
29
|
+
assert_equal "19b79d12-0ae1-496e-9649-cbd04b15c7c5", item.item_id
|
30
|
+
assert_equal "Merino-2011-LG", item.code
|
31
|
+
assert_equal "Full Tracked Item", item.name
|
32
|
+
assert_equal "2011 Merino Sweater - LARGE", item.description
|
33
|
+
assert_equal "2011 Merino Sweater - LARGE", item.purchase_description
|
34
|
+
assert_equal 149.0, item.purchase_details_unit_price
|
35
|
+
assert_equal "300", item.purchase_details_account_code
|
36
|
+
assert_equal 299.0, item.sales_details_unit_price
|
37
|
+
assert_equal "200", item.sales_details_account_code
|
38
|
+
end
|
39
|
+
|
40
|
+
|
41
|
+
private
|
42
|
+
|
43
|
+
def create_test_item
|
44
|
+
XeroGateway::Item.new.tap do |item|
|
45
|
+
item.code = "Merino-2011-LG"
|
46
|
+
item.name = "Full Tracked Item"
|
47
|
+
item.purchase_details_unit_price = 149.0
|
48
|
+
item.purchase_details_account_code = "300"
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
data/test/unit/payment_test.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require File.join(File.dirname(__FILE__), '../test_helper.rb')
|
2
2
|
|
3
3
|
class PaymentTest < Test::Unit::TestCase
|
4
|
+
include TestHelper
|
4
5
|
|
5
6
|
# Tests that a payment can be converted into XML that Xero can understand, and then converted back to a payment
|
6
7
|
def test_build_and_parse_xml
|
@@ -19,16 +20,22 @@ class PaymentTest < Test::Unit::TestCase
|
|
19
20
|
assert_equal payment, result_payment
|
20
21
|
end
|
21
22
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
payment.
|
28
|
-
|
29
|
-
payment.
|
30
|
-
payment.
|
31
|
-
payment.
|
23
|
+
context "creating test payment" do
|
24
|
+
should "create a test payment" do
|
25
|
+
payment = create_test_payment
|
26
|
+
|
27
|
+
assert_equal 'a99a9aaa-9999-99a9-9aa9-aaaaaa9a9999', payment.payment_id
|
28
|
+
assert_equal 'ACCRECPAYMENT', payment.payment_type
|
29
|
+
assert_equal Date.today.to_time, payment.date
|
30
|
+
assert payment.updated_at.is_a? Time
|
31
|
+
assert_equal 1000.0, payment.amount
|
32
|
+
assert_equal '12345', payment.reference
|
33
|
+
assert_equal 1.0, payment.currency_rate
|
34
|
+
assert_equal 'i99i9iii-9999-99i9-9ii9-iiiiii9i9999', payment.invoice_id
|
35
|
+
assert_equal 'INV-0001', payment.invoice_number
|
36
|
+
assert_equal 'o99o9ooo-9999-99o9-9oo9-oooooo9o9999', payment.account_id
|
37
|
+
assert payment.reconciled?
|
32
38
|
end
|
33
39
|
end
|
34
|
-
|
40
|
+
|
41
|
+
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), '../test_helper.rb')
|
2
|
+
|
3
|
+
class ReportTest < Test::Unit::TestCase
|
4
|
+
include TestHelper
|
5
|
+
include REXML
|
6
|
+
|
7
|
+
context "creating report object" do
|
8
|
+
should "create bank statement" do
|
9
|
+
report = create_test_report_bank_statement
|
10
|
+
assert_equal 'BankStatement', report.report_id
|
11
|
+
assert_equal 'BankStatement', report.report_name
|
12
|
+
assert_equal 'BankStatement', report.report_type
|
13
|
+
assert report.report_titles.is_a? Array
|
14
|
+
assert report.report_date.is_a? Date
|
15
|
+
assert report.updated_at.is_a? Time
|
16
|
+
assert report.column_names.is_a? Array
|
17
|
+
assert report.body.is_a? Array
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
context :from_xml do
|
22
|
+
setup do
|
23
|
+
xml_response = get_file("reports/bank_statement.xml")
|
24
|
+
xml_response.gsub!(/\n +/,'')
|
25
|
+
xml_doc = REXML::Document.new(xml_response)
|
26
|
+
xpath_report = XPath.first(xml_doc, "//Report")
|
27
|
+
@report = XeroGateway::Report.from_xml(xpath_report)
|
28
|
+
end
|
29
|
+
|
30
|
+
should "create a bank statement report" do
|
31
|
+
assert @report.is_a?(XeroGateway::Report)
|
32
|
+
assert_equal [], @report.errors
|
33
|
+
assert_equal Date.parse("27 May 2014"), @report.report_date
|
34
|
+
assert_equal "BankStatement", @report.report_id
|
35
|
+
assert_equal "Bank Statement", @report.report_name
|
36
|
+
expected_titles = ["Bank Statement", "Business Bank Account", "Demo Company (NZ)", "From 1 May 2014 to 27 May 2014"]
|
37
|
+
assert_equal expected_titles, @report.report_titles
|
38
|
+
assert_equal "BankStatement", @report.report_type
|
39
|
+
assert_equal Time.parse("2014-05-26 22:36:07 +0000").to_i, @report.updated_at.to_i
|
40
|
+
expected_names = { :column_1=>"Date", :column_2=>"Description", :column_3=>"Reference", :column_4=>"Reconciled", :column_5=>"Source", :column_6=>"Amount", :column_7=>"Balance" }
|
41
|
+
assert_equal expected_names, @report.column_names
|
42
|
+
|
43
|
+
###
|
44
|
+
# REPORT BODY
|
45
|
+
assert @report.body.is_a?(Array)
|
46
|
+
|
47
|
+
# First = Opening Balance
|
48
|
+
first_statement = @report.body.first
|
49
|
+
assert_equal "2014-05-01T00:00:00", first_statement.column_1
|
50
|
+
assert_equal "Opening Balance", first_statement.column_2
|
51
|
+
assert_equal nil, first_statement.column_3
|
52
|
+
assert_equal nil, first_statement.column_4
|
53
|
+
assert_equal nil, first_statement.column_5
|
54
|
+
assert_equal nil, first_statement.column_6
|
55
|
+
assert_equal "15461.97", first_statement.column_7
|
56
|
+
|
57
|
+
# Second = Bank Transaction/Statement
|
58
|
+
second_statement = @report.body.second
|
59
|
+
assert_equal "2014-05-01T00:00:00", second_statement.column_1
|
60
|
+
assert_equal "Ridgeway Banking Corporation", second_statement.column_2
|
61
|
+
assert_equal "Fee", second_statement.column_3
|
62
|
+
assert_equal "No", second_statement.column_4
|
63
|
+
assert_equal "Import", second_statement.column_5
|
64
|
+
assert_equal "-15.00", second_statement.column_6
|
65
|
+
assert_equal "15446.97", second_statement.column_7
|
66
|
+
|
67
|
+
# Third
|
68
|
+
third_statement = @report.body.third
|
69
|
+
assert_equal nil, third_statement.column_2 # no description, but other attributes
|
70
|
+
assert_equal "Eft", third_statement.column_3
|
71
|
+
assert_equal "No", third_statement.column_4
|
72
|
+
assert_equal "Import", third_statement.column_5
|
73
|
+
assert_equal "-15.75", third_statement.column_6
|
74
|
+
assert_equal "15431.22", third_statement.column_7
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
end
|
data/xero_gateway.gemspec
CHANGED
@@ -1,15 +1,31 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'xero_gateway/version'
|
5
|
+
|
1
6
|
Gem::Specification.new do |s|
|
2
|
-
s.name
|
3
|
-
s.version
|
4
|
-
s.
|
5
|
-
s.
|
6
|
-
s.
|
7
|
-
s.
|
8
|
-
s.
|
9
|
-
s.
|
10
|
-
s.
|
11
|
-
|
12
|
-
s.
|
13
|
-
|
14
|
-
s.add_dependency
|
7
|
+
s.name = "xero_gateway"
|
8
|
+
s.version = XeroGateway::VERSION
|
9
|
+
s.summary = "Enables Ruby based applications to communicate with the Xero API"
|
10
|
+
s.email = ["me@nikwakelin.com", "jared@minutedock.com"]
|
11
|
+
s.homepage = "http://github.com/xero-gateway/xero_gateway"
|
12
|
+
s.description = "Enables Ruby based applications to communicate with the Xero API"
|
13
|
+
s.has_rdoc = false
|
14
|
+
s.authors = ["Tim Connor", "Nik Wakelin", "Jared Armstrong"]
|
15
|
+
s.license = "MIT"
|
16
|
+
|
17
|
+
s.files = ["Gemfile", "LICENSE", "Rakefile", "README.md", "xero_gateway.gemspec"] + Dir['**/*.rb'] + Dir['**/*.crt']
|
18
|
+
|
19
|
+
s.add_dependency "builder", ">= 3.2.2"
|
20
|
+
s.add_dependency "oauth", ">= 0.3.6"
|
21
|
+
s.add_dependency "activesupport"
|
22
|
+
|
23
|
+
s.add_development_dependency "bundler"
|
24
|
+
s.add_development_dependency "rake"
|
25
|
+
s.add_development_dependency "minitest"
|
26
|
+
s.add_development_dependency "test-unit"
|
27
|
+
s.add_development_dependency "mocha"
|
28
|
+
s.add_development_dependency "shoulda"
|
29
|
+
s.add_development_dependency "libxml-ruby"
|
30
|
+
|
15
31
|
end
|
metadata
CHANGED
@@ -1,92 +1,181 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: xero_gateway
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 2
|
8
|
-
- 1
|
9
|
-
- 0
|
10
|
-
version: 2.1.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.3.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Tim Connor
|
14
8
|
- Nik Wakelin
|
9
|
+
- Jared Armstrong
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2016-09-15 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
22
16
|
name: builder
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 15
|
30
|
-
segments:
|
31
|
-
- 2
|
32
|
-
- 1
|
33
|
-
- 2
|
34
|
-
version: 2.1.2
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - ">="
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.2.2
|
35
22
|
type: :runtime
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: oauth
|
39
23
|
prerelease: false
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: 3.2.2
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: oauth
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - ">="
|
34
|
+
- !ruby/object:Gem::Version
|
50
35
|
version: 0.3.6
|
51
36
|
type: :runtime
|
52
|
-
version_requirements: *id002
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
|
-
name: activesupport
|
55
37
|
prerelease: false
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 0.3.6
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: activesupport
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0'
|
65
50
|
type: :runtime
|
66
|
-
|
67
|
-
|
68
|
-
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: bundler
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
type: :development
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: rake
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
type: :development
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: minitest
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
type: :development
|
93
|
+
prerelease: false
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
name: test-unit
|
101
|
+
requirement: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '0'
|
106
|
+
type: :development
|
107
|
+
prerelease: false
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0'
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: mocha
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '0'
|
120
|
+
type: :development
|
121
|
+
prerelease: false
|
122
|
+
version_requirements: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: shoulda
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0'
|
141
|
+
- !ruby/object:Gem::Dependency
|
142
|
+
name: libxml-ruby
|
143
|
+
requirement: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - ">="
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '0'
|
148
|
+
type: :development
|
149
|
+
prerelease: false
|
150
|
+
version_requirements: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0'
|
155
|
+
description: Enables Ruby based applications to communicate with the Xero API
|
156
|
+
email:
|
157
|
+
- me@nikwakelin.com
|
158
|
+
- jared@minutedock.com
|
69
159
|
executables: []
|
70
|
-
|
71
160
|
extensions: []
|
72
|
-
|
73
161
|
extra_rdoc_files: []
|
74
|
-
|
75
|
-
files:
|
162
|
+
files:
|
76
163
|
- Gemfile
|
77
164
|
- LICENSE
|
165
|
+
- README.md
|
78
166
|
- Rakefile
|
79
|
-
- README.textile
|
80
|
-
- xero_gateway.gemspec
|
81
167
|
- examples/oauth.rb
|
82
168
|
- examples/partner_app.rb
|
83
|
-
- init.rb
|
84
169
|
- lib/oauth/oauth_consumer.rb
|
170
|
+
- lib/xero_gateway.rb
|
85
171
|
- lib/xero_gateway/account.rb
|
86
172
|
- lib/xero_gateway/accounts_list.rb
|
87
173
|
- lib/xero_gateway/address.rb
|
88
174
|
- lib/xero_gateway/bank_transaction.rb
|
175
|
+
- lib/xero_gateway/base_record.rb
|
176
|
+
- lib/xero_gateway/ca-certificates.crt
|
89
177
|
- lib/xero_gateway/contact.rb
|
178
|
+
- lib/xero_gateway/contact_group.rb
|
90
179
|
- lib/xero_gateway/credit_note.rb
|
91
180
|
- lib/xero_gateway/currency.rb
|
92
181
|
- lib/xero_gateway/dates.rb
|
@@ -96,6 +185,7 @@ files:
|
|
96
185
|
- lib/xero_gateway/http.rb
|
97
186
|
- lib/xero_gateway/http_encoding_helper.rb
|
98
187
|
- lib/xero_gateway/invoice.rb
|
188
|
+
- lib/xero_gateway/item.rb
|
99
189
|
- lib/xero_gateway/journal_line.rb
|
100
190
|
- lib/xero_gateway/line_item.rb
|
101
191
|
- lib/xero_gateway/line_item_calculations.rb
|
@@ -107,10 +197,11 @@ files:
|
|
107
197
|
- lib/xero_gateway/payment.rb
|
108
198
|
- lib/xero_gateway/phone.rb
|
109
199
|
- lib/xero_gateway/private_app.rb
|
200
|
+
- lib/xero_gateway/report.rb
|
110
201
|
- lib/xero_gateway/response.rb
|
111
202
|
- lib/xero_gateway/tax_rate.rb
|
112
203
|
- lib/xero_gateway/tracking_category.rb
|
113
|
-
- lib/xero_gateway.rb
|
204
|
+
- lib/xero_gateway/version.rb
|
114
205
|
- test/integration/accounts_list_test.rb
|
115
206
|
- test/integration/create_bank_transaction_test.rb
|
116
207
|
- test/integration/create_contact_test.rb
|
@@ -128,9 +219,11 @@ files:
|
|
128
219
|
- test/integration/get_currencies_test.rb
|
129
220
|
- test/integration/get_invoice_test.rb
|
130
221
|
- test/integration/get_invoices_test.rb
|
222
|
+
- test/integration/get_items_test.rb
|
131
223
|
- test/integration/get_manual_journal_test.rb
|
132
224
|
- test/integration/get_manual_journals_test.rb
|
133
225
|
- test/integration/get_organisation_test.rb
|
226
|
+
- test/integration/get_payments_test.rb
|
134
227
|
- test/integration/get_tax_rates_test.rb
|
135
228
|
- test/integration/get_tracking_categories_test.rb
|
136
229
|
- test/integration/update_bank_transaction_test.rb
|
@@ -139,51 +232,45 @@ files:
|
|
139
232
|
- test/integration/update_manual_journal_test.rb
|
140
233
|
- test/test_helper.rb
|
141
234
|
- test/unit/account_test.rb
|
235
|
+
- test/unit/address_test.rb
|
142
236
|
- test/unit/bank_transaction_test.rb
|
237
|
+
- test/unit/contact_group_test.rb
|
143
238
|
- test/unit/contact_test.rb
|
144
239
|
- test/unit/credit_note_test.rb
|
145
240
|
- test/unit/currency_test.rb
|
146
241
|
- test/unit/gateway_test.rb
|
147
242
|
- test/unit/invoice_test.rb
|
243
|
+
- test/unit/item_test.rb
|
148
244
|
- test/unit/manual_journal_test.rb
|
149
245
|
- test/unit/oauth_test.rb
|
150
246
|
- test/unit/organisation_test.rb
|
151
247
|
- test/unit/payment_test.rb
|
248
|
+
- test/unit/report_test.rb
|
152
249
|
- test/unit/tax_rate_test.rb
|
153
250
|
- test/unit/tracking_category_test.rb
|
154
|
-
-
|
155
|
-
homepage: http://github.com/
|
156
|
-
licenses:
|
157
|
-
|
251
|
+
- xero_gateway.gemspec
|
252
|
+
homepage: http://github.com/xero-gateway/xero_gateway
|
253
|
+
licenses:
|
254
|
+
- MIT
|
255
|
+
metadata: {}
|
158
256
|
post_install_message:
|
159
257
|
rdoc_options: []
|
160
|
-
|
161
|
-
require_paths:
|
258
|
+
require_paths:
|
162
259
|
- lib
|
163
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
164
|
-
|
165
|
-
requirements:
|
260
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
166
262
|
- - ">="
|
167
|
-
- !ruby/object:Gem::Version
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
version: "0"
|
172
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
173
|
-
none: false
|
174
|
-
requirements:
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0'
|
265
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
266
|
+
requirements:
|
175
267
|
- - ">="
|
176
|
-
- !ruby/object:Gem::Version
|
177
|
-
|
178
|
-
segments:
|
179
|
-
- 0
|
180
|
-
version: "0"
|
268
|
+
- !ruby/object:Gem::Version
|
269
|
+
version: '0'
|
181
270
|
requirements: []
|
182
|
-
|
183
271
|
rubyforge_project:
|
184
|
-
rubygems_version:
|
272
|
+
rubygems_version: 2.5.1
|
185
273
|
signing_key:
|
186
|
-
specification_version:
|
187
|
-
summary: Enables
|
274
|
+
specification_version: 4
|
275
|
+
summary: Enables Ruby based applications to communicate with the Xero API
|
188
276
|
test_files: []
|
189
|
-
|