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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2551f351313de20062141ecefecb34d978593a27
4
- data.tar.gz: 812f7319325c66eea93175963e5dfcc90a27c10d
3
+ metadata.gz: 29ef312218c64559e66c1e6809607a401580e890
4
+ data.tar.gz: 0289d2568a1693c609eac8180be21f1b89bd605b
5
5
  SHA512:
6
- metadata.gz: cee4a16a48605113b8abf11127a6acb09463ce13e0cfa1bd2fa28d8195f658cce2944b534dd0a08cc96584199d45b14408e37c932062e4ff676203e373d50821
7
- data.tar.gz: c10ccc62ea309b00eb521b459738b51a16834031a13f57021e4b32a4bfb04aca2974b15ea394f556c4642fd448eec91556fce84e807545f71332d75cb044a143
6
+ metadata.gz: 0bef7a00293d97267adad435239a57c0f477ec5985c291c8251c8084e5776ce9179e490f54cc0d6d84f4488ff0ee8b83973dc26133709ad1c0289aaa299584c9
7
+ data.tar.gz: 687fb9ba0c4d6ec042f644864430ab5987b9ef07e60df23715326e43202e71d3e0bff606717c871a79dd9a3be43fc65c9b7c6f80645c775aa75096f52d915330
@@ -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
@@ -0,0 +1,17 @@
1
+ module Quickbooks
2
+ module Service
3
+ class CompanyInfo < BaseService
4
+ include ServiceCrud
5
+
6
+ private
7
+
8
+ def default_model_query
9
+ "SELECT * FROM CompanyInfo"
10
+ end
11
+
12
+ def model
13
+ Quickbooks::Model::CompanyInfo
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,5 +1,5 @@
1
1
  module Quickbooks
2
2
 
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
 
5
5
  end
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.3
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-04 00:00:00.000000000 Z
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