myob-api 0.10.1 → 0.10.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/myob-api.rb +4 -0
- data/lib/myob/api/helpers.rb +16 -10
- data/lib/myob/api/models/employee_payment_details.rb +11 -0
- data/lib/myob/api/models/superannuation_category.rb +11 -0
- data/lib/myob/api/models/superannuation_fund.rb +11 -0
- data/lib/myob/api/models/tax_table.rb +11 -0
- data/lib/myob/api/version.rb +1 -1
- metadata +10 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 28ef72c5a8d46156b810b15235a8841cfaf9c619c84671b154d9b42a86e5ab97
|
4
|
+
data.tar.gz: 6ddcb3a8b531850b9ea82172a14e4b046c2b7384cc53036b85d684dd2c54994c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9be5d5375da5bb88fd518e6f17fc2c1b4b2dc30eb7a2a624e2e4056a2c1e2b8c3186c240292a8ddea3f92336fd8ff093b81c24a1facba3d2235548dc9332b1f4
|
7
|
+
data.tar.gz: 0b2ea9ec12eb4ca0ac9ceb3c3376ae2683c181485e49b7583ba25d85ecad1fa85bd6172f636a737968968a3c3c45e4dfde3f8262480ffd3ee944e98bc5dfc208
|
data/lib/myob-api.rb
CHANGED
@@ -7,10 +7,12 @@ require 'myob/api/models/company_file'
|
|
7
7
|
require 'myob/api/models/company'
|
8
8
|
|
9
9
|
require 'myob/api/models/current_user'
|
10
|
+
require 'myob/api/models/superannuation_fund'
|
10
11
|
|
11
12
|
require 'myob/api/models/contact'
|
12
13
|
require 'myob/api/models/customer'
|
13
14
|
require 'myob/api/models/employee'
|
15
|
+
require 'myob/api/models/employee_payment_details'
|
14
16
|
require 'myob/api/models/employee_payroll_details'
|
15
17
|
require 'myob/api/models/employee_standard_pay'
|
16
18
|
|
@@ -23,6 +25,8 @@ require 'myob/api/models/invoice_item'
|
|
23
25
|
require 'myob/api/models/payroll_category'
|
24
26
|
require 'myob/api/models/wage'
|
25
27
|
require 'myob/api/models/entitlement'
|
28
|
+
require 'myob/api/models/tax_table'
|
29
|
+
require 'myob/api/models/superannuation_category'
|
26
30
|
|
27
31
|
require 'myob/api/models/timesheet'
|
28
32
|
|
data/lib/myob/api/helpers.rb
CHANGED
@@ -1,16 +1,21 @@
|
|
1
|
-
class String
|
2
|
-
def underscore
|
3
|
-
self.gsub(/::/, '/').
|
4
|
-
gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
|
5
|
-
gsub(/([a-z\d])([A-Z])/,'\1_\2').
|
6
|
-
tr("-", "_").
|
7
|
-
downcase
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
1
|
module Myob
|
12
2
|
module Api
|
3
|
+
|
4
|
+
module RefinedString
|
5
|
+
refine String do
|
6
|
+
def underscore
|
7
|
+
self.gsub(/::/, '/').
|
8
|
+
gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
|
9
|
+
gsub(/([a-z\d])([A-Z])/,'\1_\2').
|
10
|
+
tr("-", "_").
|
11
|
+
downcase
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
13
16
|
module Helpers
|
17
|
+
using RefinedString
|
18
|
+
|
14
19
|
def model(model_name)
|
15
20
|
method_name = model_name.to_s.underscore
|
16
21
|
variable_name = "@#{method_name}_model".to_sym
|
@@ -23,5 +28,6 @@ module Myob
|
|
23
28
|
instance_variable_get(variable_name)
|
24
29
|
end
|
25
30
|
end
|
31
|
+
|
26
32
|
end
|
27
33
|
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.10.
|
4
|
+
version: 0.10.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Lumley
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oauth2
|
@@ -76,6 +76,7 @@ files:
|
|
76
76
|
- lib/myob/api/models/customer.rb
|
77
77
|
- lib/myob/api/models/customer_payment.rb
|
78
78
|
- lib/myob/api/models/employee.rb
|
79
|
+
- lib/myob/api/models/employee_payment_details.rb
|
79
80
|
- lib/myob/api/models/employee_payroll_advice.rb
|
80
81
|
- lib/myob/api/models/employee_payroll_details.rb
|
81
82
|
- lib/myob/api/models/employee_standard_pay.rb
|
@@ -84,6 +85,9 @@ files:
|
|
84
85
|
- lib/myob/api/models/invoice.rb
|
85
86
|
- lib/myob/api/models/invoice_item.rb
|
86
87
|
- lib/myob/api/models/payroll_category.rb
|
88
|
+
- lib/myob/api/models/superannuation_category.rb
|
89
|
+
- lib/myob/api/models/superannuation_fund.rb
|
90
|
+
- lib/myob/api/models/tax_table.rb
|
87
91
|
- lib/myob/api/models/timesheet.rb
|
88
92
|
- lib/myob/api/models/wage.rb
|
89
93
|
- lib/myob/api/version.rb
|
@@ -92,7 +96,7 @@ homepage: https://github.com/davidlumley/myob-api
|
|
92
96
|
licenses:
|
93
97
|
- MIT
|
94
98
|
metadata: {}
|
95
|
-
post_install_message:
|
99
|
+
post_install_message:
|
96
100
|
rdoc_options: []
|
97
101
|
require_paths:
|
98
102
|
- lib
|
@@ -107,9 +111,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
111
|
- !ruby/object:Gem::Version
|
108
112
|
version: '0'
|
109
113
|
requirements: []
|
110
|
-
|
111
|
-
|
112
|
-
signing_key:
|
114
|
+
rubygems_version: 3.1.2
|
115
|
+
signing_key:
|
113
116
|
specification_version: 4
|
114
117
|
summary: MYOB AccountRight Live API V2
|
115
118
|
test_files: []
|