xero_gateway 2.0.7 → 2.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/xero_gateway/organisation.rb +10 -7
- data/test/unit/organisation_test.rb +9 -5
- data/xero_gateway.gemspec +2 -2
- metadata +4 -4
@@ -3,13 +3,16 @@ module XeroGateway
|
|
3
3
|
|
4
4
|
unless defined? ATTRS
|
5
5
|
ATTRS = {
|
6
|
-
"Name"
|
7
|
-
"LegalName"
|
8
|
-
"PaysTax"
|
9
|
-
"Version"
|
10
|
-
"BaseCurrency"
|
11
|
-
"OrganisationType"
|
12
|
-
"
|
6
|
+
"Name" => :string, # Display name of organisation shown in Xero
|
7
|
+
"LegalName" => :string, # Organisation name shown on Reports
|
8
|
+
"PaysTax" => :boolean, # Boolean to describe if organisation is registered with a local tax authority i.e. true, false
|
9
|
+
"Version" => :string, # See Version Types
|
10
|
+
"BaseCurrency" => :string, # Default currency for organisation. See Currency types
|
11
|
+
"OrganisationType" => :string, # UNDOCUMENTED parameter, only returned for "real" (i.e non-demo) companies
|
12
|
+
"OrganisationStatus" => :string, # UNDOCUMENTED parameter
|
13
|
+
"IsDemoCompany" => :boolean, # UNDOCUMENTED parameter
|
14
|
+
"APIKey" => :string, # UNDOCUMENTED paramater, returned if organisations are linked via Xero Network
|
15
|
+
"CountryCode" => :stirng # UNDOCUMENTED parameter
|
13
16
|
}
|
14
17
|
end
|
15
18
|
|
@@ -24,11 +24,15 @@ class OrganisationTest < Test::Unit::TestCase
|
|
24
24
|
|
25
25
|
def create_test_organisation
|
26
26
|
XeroGateway::Organisation.new.tap do |org|
|
27
|
-
org.name
|
28
|
-
org.legal_name
|
29
|
-
org.pays_tax
|
30
|
-
org.version
|
31
|
-
org.base_currency
|
27
|
+
org.name = "Demo Company (NZ)"
|
28
|
+
org.legal_name = "Demo Company (NZ)"
|
29
|
+
org.pays_tax = true
|
30
|
+
org.version = "NZ"
|
31
|
+
org.base_currency = "NZD"
|
32
|
+
org.country_code = "NZ"
|
33
|
+
org.organisation_type = nil
|
34
|
+
org.organisation_status = nil
|
35
|
+
org.is_demo_company = false
|
32
36
|
end
|
33
37
|
end
|
34
38
|
end
|
data/xero_gateway.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "xero_gateway"
|
3
|
-
s.version = "2.0.
|
4
|
-
s.date = "
|
3
|
+
s.version = "2.0.8"
|
4
|
+
s.date = "2011-02-14"
|
5
5
|
s.summary = "Enables ruby based applications to communicate with the Xero API"
|
6
6
|
s.email = "tim@connorsoftware.com"
|
7
7
|
s.homepage = "http://github.com/tlconnor/xero_gateway"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xero_gateway
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.
|
9
|
+
- 8
|
10
|
+
version: 2.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tim Connor
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date:
|
19
|
+
date: 2011-02-14 00:00:00 +13:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|