agaon 0.1.0 → 0.2.0

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: 3cd3a70b7769e992af1b5991ff70847e7d57f33b
4
- data.tar.gz: 007aa63bb9eb36a39c1a1848f5534bc456ba3dcd
3
+ metadata.gz: cafee4f6c36b595ad6a521d312ffc1d5405e788a
4
+ data.tar.gz: 1c16abcf303f6c66d82a13c504f2e4c2d4c063d4
5
5
  SHA512:
6
- metadata.gz: ebb5d8bca78e05807ae09a36ff6b5eb65033bda17c949785d8e7086236a95326c0a475eae0f0e9a252ea73a97e831cbfc635e9854b4b4ae5a7fa521ddc23185e
7
- data.tar.gz: 848800d468807a8b30f9ab3f00d8f8e261fbbbd1a3e1a48364841beb46cffb909ed2ff5e3f94b3158a73fc9b505dd82466b3d78cfe29de2e9aac85e688505a2a
6
+ metadata.gz: 502edbf0aaf9aa68be34f6ebb927cee357e527a9935ee333e6f61ca1a905e43333dd61bad2219115122556a00ca6ee2651429991603c5a163b082df2672d4e4b
7
+ data.tar.gz: 5c259ed0f6a0e08316df56ec9bcf95249a6f166d28da3ef6a72b62f58220b4e8ba7555074f5cec745faa29e5448bc92c1c40a5ab16c5eb1a5ada5e3d3e187946
data/README.md CHANGED
@@ -36,31 +36,49 @@ fiken = Agaon::Client.new( username, password, company_href )
36
36
 
37
37
  ### Endpoints
38
38
 
39
+ Who Am I?:
40
+ ```ruby
41
+ fiken.who_am_i
42
+ ```
43
+ Return the user based on credentials on the Agaon Client.
44
+
45
+ Current company:
46
+ ```ruby
47
+ fiken.current_company
48
+ ```
49
+ Returns company based on set company_href on the Agaon Client.
50
+
39
51
  #### Companies
40
52
 
53
+ List:
54
+ ```ruby
55
+ fiken.companies
56
+ ```
57
+
58
+ Get:
41
59
  ```ruby
42
- companies = fiken.companies
60
+ fiken.get_company(company_href)
43
61
  ```
44
62
 
45
- #### Sales, Contacts, Accounts, Invoices
63
+ #### Accounts, Bank Accounts, Contacts, Products, Invoices, Sales
46
64
 
47
65
  Using examples for the contacts endpoint.
48
66
 
49
67
  List:
50
68
  ```ruby
51
- client.contacts
69
+ fiken.contacts
52
70
  ```
53
71
  Get:
54
72
  ```ruby
55
- client.get_contact(contact_href)
73
+ fiken.get_contact(contact_href)
56
74
  ```
57
75
  Create:
58
76
  ```ruby
59
- client.contact(contact_attributes)
77
+ fiken.contact(contact_attributes)
60
78
  ```
61
79
  Update:
62
80
  ```ruby
63
- client.contact(contact_href,contact_attributes)
81
+ fiken.contact(contact_href,contact_attributes)
64
82
  ```
65
83
 
66
84
  #### Create Invoice, Document Sending Service, Create General Journal Entry Service, Search
@@ -69,7 +87,7 @@ Using example for the create invoice endpoint.
69
87
 
70
88
  Action:
71
89
  ```ruby
72
- client.create_invoice(invoice_attributes)
90
+ fiken.create_invoice(invoice_attributes)
73
91
  ```
74
92
 
75
93
  ## Contributing
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
22
 
23
- spec.add_dependency "hyperclient"
23
+ spec.add_dependency "hyperclient", "0.8.5"
24
24
 
25
25
  spec.add_development_dependency "bundler", "~> 1.14"
26
26
  spec.add_development_dependency "rake", "~> 10.0"
@@ -1,3 +1,3 @@
1
1
  module Agaon
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agaon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Espen Antonsen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-28 00:00:00.000000000 Z
11
+ date: 2017-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hyperclient
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.8.5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 0.8.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  version: '0'
133
133
  requirements: []
134
134
  rubyforge_project:
135
- rubygems_version: 2.6.11
135
+ rubygems_version: 2.6.13
136
136
  signing_key:
137
137
  specification_version: 4
138
138
  summary: Fiken API wrapper