quickeebooks 0.1.21 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzMyNzQ0MWM2MjBkZTBhMWQ3YmYzNWE0ODIyYjIxMWUzMGQ2NDViNg==
4
+ OGY2YmJmMjg3MmU2OWQwNzNlMTk5NzM3YmFkYTVlODdlN2I2Njc5Zg==
5
5
  data.tar.gz: !binary |-
6
- ZmM0NTI4NWUxODExODVjZWY5NTAwZjAwNmU3ZmNhNjQxM2E1MDFkMQ==
6
+ MzllNzE0OTI3ZjUwYzQ1MWQ4NzczYzE0NmRmZGQyMDNlYzkxYjhiNQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ODQ5NWZhNjBlZmY1M2RkMzdmM2YxODlkMmZkMDdmM2VlYWE3M2FkMGVlNDA5
10
- NWFkZmRlZDVhN2E3ZmEzNDM5MTBkMmQyMTA2ZWU1NjIzYjA3NDYyZTFmMzhj
11
- Y2NmYWRlYzU0ODcwMDQ5YWY5OTYwYjM0ZmZmNGQ3MTZmMzlmZGM=
9
+ Y2VhOTU0ZTJiZGNiNmFlMTFiODg1MjA3N2E5ZmVhNTliYTFhYTBmOGVkOGQw
10
+ YjFiZDdjZDY1ODRjMTBiNGJjNTdkODMxMmRiYzBmZTRhZWQyZjljMzIxOWIw
11
+ YjJkZjkxNWFkNTA5MDk1MjhiNjE3ZTU2MmZjYmFhZWViYWJmMzA=
12
12
  data.tar.gz: !binary |-
13
- M2M5OWQ1NTViYzJhN2MzZjZlNzdkYjc4MmFmOTE0MzdiZTcyY2ZlMzQwZWI4
14
- NTlhMjA2ZDE1NzM5ODkxMTU2YTE1MGUxYjU2N2M0NTIwZGMwZjk2OWE2YzNj
15
- YzE3Mzg2ODlhMWYwYjNhOTg3ZGVkYjUyNzE4NDI4MDVjMDBmOWI=
13
+ NDUyMzcwMzNlYWZkYmM3OTkxMGMwMjVmMjlhMzI4ZTVjNTY2MTI3YWUwNzVj
14
+ Y2Q0YzFlYWRkOTNkMDE5MmQyZjg1NmFkYmUxNTA4YjQ3NGJiMjRlYjZlMDEy
15
+ OGE5OWViMzNjMjliZGFmMGZiMTNkN2M3ZjY3N2MwNjRiNDI5ODE=
@@ -111,6 +111,7 @@ require 'quickeebooks/online/model/vendor'
111
111
  require 'quickeebooks/online/model/sales_receipt'
112
112
  require 'quickeebooks/online/model/sales_receipt_line_item'
113
113
  require 'quickeebooks/online/model/sales_receipt_header'
114
+ require 'quickeebooks/online/model/sales_term'
114
115
  require 'quickeebooks/online/model/journal_entry'
115
116
  require 'quickeebooks/online/model/journal_entry_line_item'
116
117
  require 'quickeebooks/online/model/journal_entry_header'
@@ -142,6 +143,7 @@ require 'quickeebooks/online/service/payment_method'
142
143
  require 'quickeebooks/online/service/access_token'
143
144
  require 'quickeebooks/online/service/vendor'
144
145
  require 'quickeebooks/online/service/sales_receipt'
146
+ require 'quickeebooks/online/service/sales_term'
145
147
  require 'quickeebooks/online/service/journal_entry'
146
148
  require 'quickeebooks/online/service/employee'
147
149
  require 'quickeebooks/online/service/time_activity'
@@ -0,0 +1,34 @@
1
+ # see https://ipp.developer.intuit.com/0010_Intuit_Partner_Platform/0050_Data_Services/0400_QuickBooks_Online/CompanyMetaData
2
+ require "quickeebooks"
3
+ require "quickeebooks/online/model/meta_data"
4
+ require "quickeebooks/online/model/id"
5
+
6
+ module Quickeebooks
7
+ module Online
8
+ module Model
9
+ class SalesTerm < Quickeebooks::Online::Model::IntuitType
10
+
11
+ include ActiveModel::Validations
12
+ include OnlineEntityModel
13
+
14
+ XML_NODE = "SalesTerm"
15
+ REST_RESOURCE = "sales-term"
16
+
17
+ xml_accessor :due_days, :from => 'DueDays', :as => Integer
18
+ xml_accessor :discount_days, :from => 'DiscountDays'
19
+ xml_accessor :discount_precent, :from => 'DiscountPercent', :as => Float
20
+ xml_accessor :day_of_monthe_due, :from => 'DayOfMonthDue', :as => Integer
21
+ xml_accessor :due_next_month_days, :from => 'DueNextMonthDays', :as => Integer
22
+ xml_accessor :discount_day_of_month, :from => 'DiscountDayOfMonth', :as => Integer
23
+ xml_accessor :date_discount_percent, :from => 'DateDiscountPercent', :as => Float
24
+
25
+ validates_length_of :name, :minimum => 1
26
+
27
+
28
+ def to_xml_ns(options = {})
29
+ to_xml_inject_ns('SalesTerm', options)
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,13 @@
1
+ require 'quickeebooks/online/service/service_base'
2
+ require 'quickeebooks/common/service_crud'
3
+ require 'nokogiri'
4
+
5
+ module Quickeebooks
6
+ module Online
7
+ module Service
8
+ class SalesTerm < ServiceBase
9
+ include ServiceCRUD
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,5 +1,5 @@
1
1
  module Quickeebooks
2
2
 
3
- VERSION = "0.1.21"
3
+ VERSION = "0.1.22"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quickeebooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
4
+ version: 0.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Caughlan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-08 00:00:00.000000000 Z
11
+ date: 2013-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: roxml
@@ -94,20 +94,6 @@ dependencies:
94
94
  - - ! '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: rr
99
- prerelease: false
100
- requirement: !ruby/object:Gem::Requirement
101
- requirements:
102
- - - ~>
103
- - !ruby/object:Gem::Version
104
- version: 1.0.2
105
- type: :development
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ~>
109
- - !ruby/object:Gem::Version
110
- version: 1.0.2
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: rspec
113
99
  prerelease: false
@@ -220,6 +206,7 @@ files:
220
206
  - lib/quickeebooks/online/model/sales_receipt.rb
221
207
  - lib/quickeebooks/online/model/sales_receipt_header.rb
222
208
  - lib/quickeebooks/online/model/sales_receipt_line_item.rb
209
+ - lib/quickeebooks/online/model/sales_term.rb
223
210
  - lib/quickeebooks/online/model/time_activity.rb
224
211
  - lib/quickeebooks/online/model/time_activity_employee.rb
225
212
  - lib/quickeebooks/online/model/time_activity_vendor.rb
@@ -245,6 +232,7 @@ files:
245
232
  - lib/quickeebooks/online/service/payment.rb
246
233
  - lib/quickeebooks/online/service/payment_method.rb
247
234
  - lib/quickeebooks/online/service/sales_receipt.rb
235
+ - lib/quickeebooks/online/service/sales_term.rb
248
236
  - lib/quickeebooks/online/service/service_base.rb
249
237
  - lib/quickeebooks/online/service/sort.rb
250
238
  - lib/quickeebooks/online/service/time_activity.rb