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 +4 -4
- data/lib/myob-api.rb +2 -0
- data/lib/myob/api/client.rb +1 -22
- data/lib/myob/api/models/general_ledger.rb +89 -0
- data/lib/myob/api/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0589b034162107e25124c705d7d3c56f583333c6
|
4
|
+
data.tar.gz: cb6242b832c5c83c7cbce02046dbb22d266c52ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed42a4380bea398bcfb01699f5e3fb2cfabd76edd8b0a4a8daed59177e3e6d9dc0c101d5a67cefd9ff8c20a875b80119cb5b3be87e0d91039c6e38338160e974
|
7
|
+
data.tar.gz: 3c8ed3b9c3e079a664c462d83fdfbf27e39d5ef1158d91b4e6fc4ceee70e3867d5af0069bd7fe5fdd645a6741d3b346d1f4c150cc4785427e020441be0f58650
|
data/lib/myob-api.rb
CHANGED
data/lib/myob/api/client.rb
CHANGED
@@ -9,28 +9,7 @@ module Myob
|
|
9
9
|
attr_reader :current_company_file, :client
|
10
10
|
|
11
11
|
def initialize(options)
|
12
|
-
model
|
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
|
data/lib/myob/api/version.rb
CHANGED
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.
|
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:
|
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
|