myob-api 0.5 → 0.6

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: 9492d1cdfcf367d1adfb50d086b630f336788f58
4
- data.tar.gz: c4930cc61ab41a41293e6d8d09d51aea127f1c2b
3
+ metadata.gz: 0589b034162107e25124c705d7d3c56f583333c6
4
+ data.tar.gz: cb6242b832c5c83c7cbce02046dbb22d266c52ba
5
5
  SHA512:
6
- metadata.gz: 5e663173467a6f0bb6735017112087918b634dea1d299eeea146a5eaec4fdeac1aa7cedaf2e1feb19e022341817e70573917b1d177b91a35ae097d0cc3b3e44c
7
- data.tar.gz: 8bcc7679fb03f451b8de79806a849718ac6bb4faf7be04d7240aba07087a1dcf78d8cfcc7b9e2b05255634baa5a56339cdca2308f3c46a337329061989e0d8a7
6
+ metadata.gz: ed42a4380bea398bcfb01699f5e3fb2cfabd76edd8b0a4a8daed59177e3e6d9dc0c101d5a67cefd9ff8c20a875b80119cb5b3be87e0d91039c6e38338160e974
7
+ data.tar.gz: 3c8ed3b9c3e079a664c462d83fdfbf27e39d5ef1158d91b4e6fc4ceee70e3867d5af0069bd7fe5fdd645a6741d3b346d1f4c150cc4785427e020441be0f58650
@@ -24,6 +24,8 @@ require 'myob/api/models/wage'
24
24
 
25
25
  require 'myob/api/models/timesheet'
26
26
 
27
+ require 'myob/api/models/general_ledger'
28
+
27
29
  require 'myob/api/models/employee_payroll_advice'
28
30
 
29
31
  require 'myob/api/client'
@@ -9,28 +9,7 @@ module Myob
9
9
  attr_reader :current_company_file, :client
10
10
 
11
11
  def initialize(options)
12
- model :CompanyFile
13
-
14
- model :CurrentUser
15
- model :Company
16
-
17
- model :Contact
18
- model :Customer
19
- model :Employee
20
- model :EmployeePayrollDetail
21
- model :EmployeeStandardPay
22
-
23
- model :EmployeePayrollAdvice
24
-
25
- model :Invoice
26
- model :InvoiceItem
27
-
28
- model :PayrollCategory
29
- model :Wage
30
-
31
- model :Timesheet
32
-
33
- model :EmployeePayrollAdvice
12
+ Myob::Api::Model::Base.subclasses.each {|c| model(c.name.split("::").last)}
34
13
 
35
14
  @redirect_uri = options[:redirect_uri]
36
15
  @consumer = options[:consumer]
@@ -0,0 +1,89 @@
1
+ module Myob
2
+ module Api
3
+ module Model
4
+ class GeneralLedger < Base
5
+ def model_route
6
+ 'GeneralLedger'
7
+ end
8
+ end
9
+
10
+ class Account < Base
11
+ def model_route
12
+ 'GeneralLedger/Account'
13
+ end
14
+ end
15
+
16
+ class AccountBudget < Base
17
+ def model_route
18
+ 'GeneralLedger/AccountBudget'
19
+ end
20
+ end
21
+
22
+ class AccountingProperties < Base
23
+ def model_route
24
+ 'GeneralLedger/AccountingProperties'
25
+ end
26
+ end
27
+
28
+ class AccountRegister < Base
29
+ def model_route
30
+ 'GeneralLedger/AccountRegister'
31
+ end
32
+ end
33
+
34
+ class Category < Base
35
+ def model_route
36
+ 'GeneralLedger/Category'
37
+ end
38
+ end
39
+
40
+ class CategoryRegister < Base
41
+ def model_route
42
+ 'GeneralLedger/CategoryRegister'
43
+ end
44
+ end
45
+
46
+ class GeneralJournal < Base
47
+ def model_route
48
+ 'GeneralLedger/GeneralJournal'
49
+ end
50
+ end
51
+
52
+ class Job < Base
53
+ def model_route
54
+ 'GeneralLedger/Job'
55
+ end
56
+ end
57
+
58
+ class JobBudget < Base
59
+ def model_route
60
+ 'GeneralLedger/JobBudget'
61
+ end
62
+ end
63
+
64
+ class JobRegister < Base
65
+ def model_route
66
+ 'GeneralLedger/JobRegister'
67
+ end
68
+ end
69
+
70
+ class JournalTransaction < Base
71
+ def model_route
72
+ 'GeneralLedger/JournalTransaction'
73
+ end
74
+ end
75
+
76
+ class LinkedAccount < Base
77
+ def model_route
78
+ 'GeneralLedger/LinkedAccount'
79
+ end
80
+ end
81
+
82
+ class TaxCode < Base
83
+ def model_route
84
+ 'GeneralLedger/TaxCode'
85
+ end
86
+ end
87
+ end
88
+ end
89
+ end
@@ -1,5 +1,5 @@
1
1
  module Myob
2
2
  module Api
3
- VERSION = "0.5"
3
+ VERSION = "0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myob-api
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.5'
4
+ version: '0.6'
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Lumley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-10 00:00:00.000000000 Z
11
+ date: 2015-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2
@@ -78,6 +78,7 @@ files:
78
78
  - lib/myob/api/models/employee_payroll_advice.rb
79
79
  - lib/myob/api/models/employee_payroll_details.rb
80
80
  - lib/myob/api/models/employee_standard_pay.rb
81
+ - lib/myob/api/models/general_ledger.rb
81
82
  - lib/myob/api/models/invoice.rb
82
83
  - lib/myob/api/models/invoice_item.rb
83
84
  - lib/myob/api/models/payroll_category.rb