quickbooks-ruby 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/quickbooks-ruby.rb +2 -0
- data/lib/quickbooks/model/company_info.rb +27 -0
- data/lib/quickbooks/service/company_info.rb +17 -0
- data/lib/quickbooks/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29ef312218c64559e66c1e6809607a401580e890
|
4
|
+
data.tar.gz: 0289d2568a1693c609eac8180be21f1b89bd605b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bef7a00293d97267adad435239a57c0f477ec5985c291c8251c8084e5776ce9179e490f54cc0d6d84f4488ff0ee8b83973dc26133709ad1c0289aaa299584c9
|
7
|
+
data.tar.gz: 687fb9ba0c4d6ec042f644864430ab5987b9ef07e60df23715326e43202e71d3e0bff606717c871a79dd9a3be43fc65c9b7c6f80645c775aa75096f52d915330
|
data/lib/quickbooks-ruby.rb
CHANGED
@@ -34,6 +34,7 @@ require 'quickbooks/model/physical_address'
|
|
34
34
|
require 'quickbooks/model/linked_transaction'
|
35
35
|
require 'quickbooks/model/invoice_line_item'
|
36
36
|
require 'quickbooks/model/invoice'
|
37
|
+
require 'quickbooks/model/company_info'
|
37
38
|
require 'quickbooks/model/customer'
|
38
39
|
require 'quickbooks/model/sales_receipt'
|
39
40
|
require 'quickbooks/model/payment_method'
|
@@ -48,6 +49,7 @@ require 'quickbooks/model/bill_payment'
|
|
48
49
|
#== Services
|
49
50
|
require 'quickbooks/service/base_service'
|
50
51
|
require 'quickbooks/service/service_crud'
|
52
|
+
require 'quickbooks/service/company_info'
|
51
53
|
require 'quickbooks/service/customer'
|
52
54
|
require 'quickbooks/service/invoice'
|
53
55
|
require 'quickbooks/service/item'
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module Quickbooks
|
2
|
+
module Model
|
3
|
+
class CompanyInfo < BaseModel
|
4
|
+
XML_COLLECTION_NODE = "CompanyInfo"
|
5
|
+
XML_NODE = "CompanyInfo"
|
6
|
+
REST_RESOURCE = 'companyinfo'
|
7
|
+
|
8
|
+
xml_name XML_NODE
|
9
|
+
xml_accessor :id, :from => 'Id', :as => Integer
|
10
|
+
xml_accessor :sync_token, :from => 'SyncToken', :as => Integer
|
11
|
+
xml_accessor :meta_data, :from => 'MetaData', :as => MetaData
|
12
|
+
xml_accessor :company_name, :from => 'CompanyName'
|
13
|
+
xml_accessor :legal_name, :from => 'LegalName'
|
14
|
+
xml_accessor :company_address, :from => 'CompanyAddr', :as => PhysicalAddress
|
15
|
+
xml_accessor :customer_communication_address, :from => 'CustomerCommunicationAddr', :as => PhysicalAddress
|
16
|
+
xml_accessor :legal_address, :from => 'LegalAddr', :as => PhysicalAddress
|
17
|
+
xml_accessor :primary_phone, :from => 'PrimaryPhone', :as => TelephoneNumber
|
18
|
+
xml_accessor :company_start_date, :from => 'CompanyStartDate', :as => DateTime
|
19
|
+
xml_accessor :employer_id, :from => 'EmployerId'
|
20
|
+
xml_accessor :fiscal_year_start_month, :from => 'FiscalYearStartMonth'
|
21
|
+
xml_accessor :country, :from => 'Country'
|
22
|
+
xml_accessor :email, :from => 'Email', :as => EmailAddress
|
23
|
+
xml_accessor :web_site, :from => 'WebAddr', :as => WebSiteAddress
|
24
|
+
xml_accessor :supported_languages, :from => 'SupportedLanguages'
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/lib/quickbooks/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quickbooks-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Caughlan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oauth
|
@@ -181,6 +181,7 @@ files:
|
|
181
181
|
- lib/quickbooks/model/bill_payment_credit_card.rb
|
182
182
|
- lib/quickbooks/model/bill_payment_line_item.rb
|
183
183
|
- lib/quickbooks/model/check_payment.rb
|
184
|
+
- lib/quickbooks/model/company_info.rb
|
184
185
|
- lib/quickbooks/model/credit_card_payment.rb
|
185
186
|
- lib/quickbooks/model/credit_memo.rb
|
186
187
|
- lib/quickbooks/model/custom_field.rb
|
@@ -205,6 +206,7 @@ files:
|
|
205
206
|
- lib/quickbooks/service/base_service.rb
|
206
207
|
- lib/quickbooks/service/bill.rb
|
207
208
|
- lib/quickbooks/service/bill_payment.rb
|
209
|
+
- lib/quickbooks/service/company_info.rb
|
208
210
|
- lib/quickbooks/service/credit_memo.rb
|
209
211
|
- lib/quickbooks/service/customer.rb
|
210
212
|
- lib/quickbooks/service/invoice.rb
|