myob-api 0.2.1 → 0.2.2

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: 9ef80a14f547ae468f20fa07170184aca8417eb7
4
- data.tar.gz: 4161ecc3956d6a4dc9a3c4882a6d9948300a7660
3
+ metadata.gz: d66aa77bf1173e2b44bbd7977654489c9903b2bd
4
+ data.tar.gz: e3dfa8bf1acccac654215efe28e7d5ffe13a3e1c
5
5
  SHA512:
6
- metadata.gz: c06514b379ebdaccaa94fd4f3d9427b3f5669ed36e99b475a23a3c479f59e6bae0facdda3c65110b12575648db07b63f745299c18ce24c7f05f239326169bfc7
7
- data.tar.gz: a6eea9fe94c3e77d5aa529d28164f6134a7ad70ffafe872deb312786718b01116d4b99a8a2dd143990f0a57d163c72c7256936701e5b9a2f7d685782c5b70b9e
6
+ metadata.gz: 2623f2575b66d319c4175fdff26eee880a52118ace35f28bb1d3a4d04185ed51d77b5b7ad546aaaa4e9b488339824938941d85b1b4e5793cd2e1d5463ad1403b
7
+ data.tar.gz: 2109efaa47871dd63191a835566d3b0212a3f6382d44f2a4f64e83dbe2ba26d0c2c86d39af0a83ed7a4a35a5966db8663b5cd616aa2a47dfe8a9c85d383436ef
data/README.md CHANGED
@@ -120,6 +120,12 @@ Return a list of all employees
120
120
 
121
121
  api_client.employee.all
122
122
 
123
+ #### Invoices
124
+
125
+ Return a list of all invoices
126
+
127
+ api_client.invoice.all
128
+
123
129
  #### Creating an entity
124
130
 
125
131
  To create a new entity, call #save on its model, passing through a hash that represents the entity. Refer to the MYOB API documentation for required fields.
@@ -11,6 +11,8 @@ require 'myob/api/models/customer'
11
11
  require 'myob/api/models/employee'
12
12
  require 'myob/api/models/employee_payroll_details'
13
13
 
14
+ require 'myob/api/models/invoice'
15
+
14
16
  require 'myob/api/models/payroll_category'
15
17
  require 'myob/api/models/wage'
16
18
 
@@ -17,7 +17,9 @@ module Myob
17
17
  model :Customer
18
18
  model :Employee
19
19
  model :EmployeePayrollDetail
20
-
20
+
21
+ model :Invoice
22
+
21
23
  model :PayrollCategory
22
24
  model :Wage
23
25
 
@@ -0,0 +1,11 @@
1
+ module Myob
2
+ module Api
3
+ module Model
4
+ class Invoice < Myob::Api::Model::Base
5
+ def model_route
6
+ 'Sale/Invoice'
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.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myob-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Lumley
@@ -75,6 +75,7 @@ files:
75
75
  - lib/myob/api/models/customer.rb
76
76
  - lib/myob/api/models/employee.rb
77
77
  - lib/myob/api/models/employee_payroll_details.rb
78
+ - lib/myob/api/models/invoice.rb
78
79
  - lib/myob/api/models/payroll_category.rb
79
80
  - lib/myob/api/models/timesheet.rb
80
81
  - lib/myob/api/models/wage.rb