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 +8 -8
- data/lib/quickeebooks.rb +2 -0
- data/lib/quickeebooks/online/model/sales_term.rb +34 -0
- data/lib/quickeebooks/online/service/sales_term.rb +13 -0
- data/lib/quickeebooks/version.rb +1 -1
- metadata +4 -16
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGY2YmJmMjg3MmU2OWQwNzNlMTk5NzM3YmFkYTVlODdlN2I2Njc5Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzllNzE0OTI3ZjUwYzQ1MWQ4NzczYzE0NmRmZGQyMDNlYzkxYjhiNQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2VhOTU0ZTJiZGNiNmFlMTFiODg1MjA3N2E5ZmVhNTliYTFhYTBmOGVkOGQw
|
10
|
+
YjFiZDdjZDY1ODRjMTBiNGJjNTdkODMxMmRiYzBmZTRhZWQyZjljMzIxOWIw
|
11
|
+
YjJkZjkxNWFkNTA5MDk1MjhiNjE3ZTU2MmZjYmFhZWViYWJmMzA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDUyMzcwMzNlYWZkYmM3OTkxMGMwMjVmMjlhMzI4ZTVjNTY2MTI3YWUwNzVj
|
14
|
+
Y2Q0YzFlYWRkOTNkMDE5MmQyZjg1NmFkYmUxNTA4YjQ3NGJiMjRlYjZlMDEy
|
15
|
+
OGE5OWViMzNjMjliZGFmMGZiMTNkN2M3ZjY3N2MwNjRiNDI5ODE=
|
data/lib/quickeebooks.rb
CHANGED
@@ -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
|
data/lib/quickeebooks/version.rb
CHANGED
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.
|
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-
|
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
|