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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a5e048f96fb5846bce047fe559ef780bbad33602
4
- data.tar.gz: ef9f5324aaf724ccf29f85fe865bec18bbfe4ac6
2
+ SHA256:
3
+ metadata.gz: 28ef72c5a8d46156b810b15235a8841cfaf9c619c84671b154d9b42a86e5ab97
4
+ data.tar.gz: 6ddcb3a8b531850b9ea82172a14e4b046c2b7384cc53036b85d684dd2c54994c
5
5
  SHA512:
6
- metadata.gz: 35941ab08da89b63a24c8ec10d04c3c76e007e6c2c12860d16343e80a38adcce7026f0e426a76bf8ddb804bd6c7a695d0fe106e5a6d1c0d19fb75e2de4d9d116
7
- data.tar.gz: 1ceee23871eadc95c7a9223f30fa24027d31733c7b61f1f247f2c49c9a49ced7f515e41750f399a502c0b586c27a2ffb587ff7a7597839eb25d15d7f1c333706
6
+ metadata.gz: 9be5d5375da5bb88fd518e6f17fc2c1b4b2dc30eb7a2a624e2e4056a2c1e2b8c3186c240292a8ddea3f92336fd8ff093b81c24a1facba3d2235548dc9332b1f4
7
+ data.tar.gz: 0b2ea9ec12eb4ca0ac9ceb3c3376ae2683c181485e49b7583ba25d85ecad1fa85bd6172f636a737968968a3c3c45e4dfde3f8262480ffd3ee944e98bc5dfc208
@@ -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
 
@@ -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
@@ -0,0 +1,11 @@
1
+ module Myob
2
+ module Api
3
+ module Model
4
+ class EmployeePaymentDetail < Base
5
+ def model_route
6
+ 'Contact/EmployeePaymentDetails'
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Myob
2
+ module Api
3
+ module Model
4
+ class SuperannuationCategory < Base
5
+ def model_route
6
+ 'Payroll/PayrollCategory/Superannuation'
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Myob
2
+ module Api
3
+ module Model
4
+ class SuperannuationFund < Base
5
+ def model_route
6
+ '/Payroll/SuperannuationFund'
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Myob
2
+ module Api
3
+ module Model
4
+ class TaxTable < Base
5
+ def model_route
6
+ 'Payroll/PayrollCategory/TaxTable'
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,5 +1,5 @@
1
1
  module Myob
2
2
  module Api
3
- VERSION = "0.10.1"
3
+ VERSION = "0.10.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.10.1
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: 2016-03-22 00:00:00.000000000 Z
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
- rubyforge_project:
111
- rubygems_version: 2.4.5.1
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: []