quickbooks-ruby-oauth2 0.6.1 → 0.6.1.1

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,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c9c2d528c57e9e6d09996f5074a207f9ed11c52c8f41b1577d8a659e1b803bc
4
- data.tar.gz: 900287d6e0a8d4a86065d89d657c32bb821dfc28503ac4203ffefd55f2fb1250
3
+ metadata.gz: 5536d3516a09dba9ec03fb410d1485a3b7bab4c5562a3e9218ce982010c1cf38
4
+ data.tar.gz: 8b458c16ce9aededf1eba951ecf011052e0dc0f6f7cb275bf13bc38c9aec3452
5
5
  SHA512:
6
- metadata.gz: 11486f7112333779da49608738d6ce7affd6fc37aed76d8f0ffe3483c09f25d454b6b35a80b82d679e2c13cbc0cfa2f5e1038548369820ea8590821d2d61813a
7
- data.tar.gz: 9b30b67dcc88b031a685abea47ac9b24883f012da7d75ab7b49e8c47c28b6bbb8115aead480f2fcc9cfd3951a0b6880322900b21273195ba669c5c0249e87e28
6
+ metadata.gz: 1228ef2b0369be2940adc065e2b4d43131dd6bc9b6cc6460cc3fa84f3e0ad7f85a47be9164dc790c5c20103ec2e03fd643d4e5ce3752c3b52aa506cb395d7a7b
7
+ data.tar.gz: 4c750422f2ab739595e136fdb2fd7824445a119633d65c55a0e3f28bb65e4fc238c424fe4a59dc17a81c519f7b005d6959e280d35989949947c49ed0990d2607
@@ -0,0 +1,8 @@
1
+ module Quickbooks
2
+ module Model
3
+ class CustomerIncome < BaseModelJSON
4
+ REST_RESOURCE = "reports/CustomerIncome"
5
+ end
6
+ end
7
+ end
8
+
@@ -0,0 +1,8 @@
1
+ module Quickbooks
2
+ module Model
3
+ class CustomerSales < BaseModelJSON
4
+ REST_RESOURCE = "reports/CustomerSales"
5
+ end
6
+ end
7
+ end
8
+
@@ -0,0 +1,7 @@
1
+ module Quickbooks
2
+ module Model
3
+ class ProfitAndLoss < BaseModelJSON
4
+ REST_RESOURCE = "reports/ProfitAndLoss"
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,11 @@
1
+ module Quickbooks
2
+ module Service
3
+ class CustomerIncome < BaseServiceJSON
4
+ private
5
+
6
+ def model
7
+ Quickbooks::Model::CustomerIncome
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Quickbooks
2
+ module Service
3
+ class CustomerSales < BaseServiceJSON
4
+ private
5
+
6
+ def model
7
+ Quickbooks::Model::CustomerSales
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Quickbooks
2
+ module Service
3
+ class ProfitAndLoss < BaseServiceJSON
4
+ private
5
+
6
+ def model
7
+ Quickbooks::Model::ProfitAndLoss
8
+ end
9
+ end
10
+ end
11
+ end
@@ -17,6 +17,15 @@ module Quickbooks
17
17
  end
18
18
  alias :update :create
19
19
 
20
+ def get(http_params = '', options = {})
21
+ response = do_http(:get, url_for_resource(model.resource_for_singular) + http_params, nil, options)
22
+ if response.code.to_i == 200
23
+ JSON.parse(response.plain_body)
24
+ else
25
+ nil
26
+ end
27
+ end
28
+
20
29
  def delete
21
30
  raise NotImplementedError
22
31
  end
@@ -1,5 +1,5 @@
1
1
  module Quickbooks
2
2
 
3
- VERSION = "0.6.1"
3
+ VERSION = "0.6.1.1"
4
4
 
5
5
  end
@@ -122,6 +122,9 @@ require 'quickbooks/model/customer_change'
122
122
  require 'quickbooks/model/vendor_change'
123
123
  require 'quickbooks/model/item_change'
124
124
  require 'quickbooks/model/report'
125
+ require 'quickbooks/model/profit_and_loss'
126
+ require 'quickbooks/model/customer_income'
127
+ require 'quickbooks/model/customer_sales'
125
128
  require 'quickbooks/model/credit_memo_change'
126
129
  require 'quickbooks/model/payment_change'
127
130
  require 'quickbooks/model/transfer'
@@ -176,6 +179,9 @@ require 'quickbooks/util/multipart'
176
179
  require 'quickbooks/service/vendor_change'
177
180
  require 'quickbooks/service/item_change'
178
181
  require 'quickbooks/service/reports'
182
+ require 'quickbooks/service/profit_and_loss'
183
+ require 'quickbooks/service/customer_income'
184
+ require 'quickbooks/service/customer_sales'
179
185
  require 'quickbooks/service/credit_memo_change'
180
186
  require 'quickbooks/service/payment_change'
181
187
  require 'quickbooks/service/transfer'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quickbooks-ruby-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamil Sobieraj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-12 00:00:00.000000000 Z
11
+ date: 2018-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth
@@ -215,6 +215,8 @@ files:
215
215
  - lib/quickbooks/model/custom_field.rb
216
216
  - lib/quickbooks/model/customer.rb
217
217
  - lib/quickbooks/model/customer_change.rb
218
+ - lib/quickbooks/model/customer_income.rb
219
+ - lib/quickbooks/model/customer_sales.rb
218
220
  - lib/quickbooks/model/definition.rb
219
221
  - lib/quickbooks/model/delivery_info.rb
220
222
  - lib/quickbooks/model/department.rb
@@ -260,6 +262,7 @@ files:
260
262
  - lib/quickbooks/model/payment_method.rb
261
263
  - lib/quickbooks/model/physical_address.rb
262
264
  - lib/quickbooks/model/preferences.rb
265
+ - lib/quickbooks/model/profit_and_loss.rb
263
266
  - lib/quickbooks/model/purchase.rb
264
267
  - lib/quickbooks/model/purchase_line_item.rb
265
268
  - lib/quickbooks/model/purchase_order.rb
@@ -307,6 +310,8 @@ files:
307
310
  - lib/quickbooks/service/credit_memo_change.rb
308
311
  - lib/quickbooks/service/customer.rb
309
312
  - lib/quickbooks/service/customer_change.rb
313
+ - lib/quickbooks/service/customer_income.rb
314
+ - lib/quickbooks/service/customer_sales.rb
310
315
  - lib/quickbooks/service/department.rb
311
316
  - lib/quickbooks/service/deposit.rb
312
317
  - lib/quickbooks/service/employee.rb
@@ -321,6 +326,7 @@ files:
321
326
  - lib/quickbooks/service/payment_change.rb
322
327
  - lib/quickbooks/service/payment_method.rb
323
328
  - lib/quickbooks/service/preferences.rb
329
+ - lib/quickbooks/service/profit_and_loss.rb
324
330
  - lib/quickbooks/service/purchase.rb
325
331
  - lib/quickbooks/service/purchase_order.rb
326
332
  - lib/quickbooks/service/refund_receipt.rb