gotransverse-tract-api 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f66583a7f52b80678cc07aa21d0c49b83467656
4
- data.tar.gz: bc03c7314b910b6cbd40e4eeecae0eec0bc4d094
3
+ metadata.gz: e20182018363ad61d9f98d987098de5c643be8c4
4
+ data.tar.gz: aee627b0846f785a4997877823783f188529bbbe
5
5
  SHA512:
6
- metadata.gz: da9c9e42ee00345cabaef8fdf8330912ebb276319f4f3a5b642d87eb640a46395081dfed5ea84d5ede6a4fa9fa7efd43c2a18e48cd48388db029134c96009068
7
- data.tar.gz: 6ee0542a4d1de37ffa5a7ba51cbece1fb1635e55834315437924827d3e67a092b418ca938f447b5b2cb42c662c52e7cc5a790dfce05fb0724e834e274ad88192
6
+ metadata.gz: fdc552bf1fe8bf4f428a1176327b324c9b3b95470b5b8b1ed29e3956a6a89ca802e2221fc80dfb1152bd49e3100439df68e31e50365f75455b2c004661ff37af
7
+ data.tar.gz: ed8dcfe4ad59c58d6d9e7062da2126e867e590f16b80a37cd1dd9b70abc61259b9dfdd96ac5a1b4e40cb57c6f739d6fcaa169d3a9c5e5fba5aa5ac1872df237e
data/README.md CHANGED
@@ -54,8 +54,10 @@ http://devdoc.gotransverse.com.php53-14.ord1-1.websitetestlink.com/Developer-Gui
54
54
  #!ruby
55
55
  GoTransverseTractApi::BillingAccount::Invoice.find_by_eid(<eid>)
56
56
 
57
- GoTransverseTractApi::Product::Product.find_all
58
- GoTransverseTractApi::Product::Product.find_by_eid(<eid>)
57
+ products = GoTransverseTractApi::Product::Product.find_all
58
+ some_product = GoTransverseTractApi::Product::Product.find_by_eid(<eid>)
59
+
60
+ Hash.from_xml(some_product.to_s)
59
61
  ```
60
62
 
61
63
  ## Version History & Changelog
@@ -93,5 +95,17 @@ Reward our developers and help us keep this project active.
93
95
 
94
96
  [![Click here to donate][2]][1]
95
97
 
96
- [1]: https://www.bountysource.com/cart?amount=5&currency=USD&team_id=gotransverse-tract-api-rails
97
- [2]: //img.shields.io/badge/donate-$5-brightgreen.svg (Click here to donate)
98
+ [1]: https://www.bountysource.com/cart?amount=100&currency=USD&team_id=gotransverse-tract-api-rails
99
+ [2]: http://img.shields.io/badge/donate-$100-brightgreen.svg (Click here to donate)
100
+
101
+ [![Click here to donate][4]][3]
102
+
103
+ [3]: https://www.bountysource.com/cart?amount=250&currency=USD&team_id=gotransverse-tract-api-rails
104
+ [4]: http://img.shields.io/badge/donate-$250-brightgreen.svg (Click here to donate)
105
+
106
+ [![Click here to donate][6]][5]
107
+
108
+ [5]: https://www.bountysource.com/cart?amount=500&currency=USD&team_id=gotransverse-tract-api-rails
109
+ [6]: http://img.shields.io/badge/donate-$500-brightgreen.svg (Click here to donate)
110
+
111
+ Or more! :)
@@ -4,6 +4,34 @@ module GoTransverseTractApi
4
4
 
5
5
  class GLAccount
6
6
 
7
+ #
8
+ # @param {Long} eid
9
+ #
10
+ def self.find_by_eid eid
11
+ GoTransverseTractApi.get_response_for(self.class, {eid: eid})
12
+ end
13
+
14
+ #
15
+ # @param {Long} general_ledger_eid
16
+ #
17
+ def self.find_by_general_ledger_eid general_ledger_eid
18
+ GoTransverseTractApi.get_response_for(self.class, {general_ledger_eid: general_ledger_eid})
19
+ end
20
+
21
+ #
22
+ # @param {String} name
23
+ #
24
+ def self.find_by_name name
25
+ GoTransverseTractApi.get_response_for(self.class, {name: name})
26
+ end
27
+
28
+ #
29
+ # @param {String} account_num
30
+ #
31
+ def self.find_by_account_num account_num
32
+ GoTransverseTractApi.get_response_for(self.class, {account_num: account_num})
33
+ end
34
+
7
35
  end
8
36
 
9
37
  end
@@ -4,6 +4,27 @@ module GoTransverseTractApi
4
4
 
5
5
  class GLAccountCategory
6
6
 
7
+ #
8
+ # @param {Long} eid
9
+ #
10
+ def self.find_by_eid eid
11
+ GoTransverseTractApi.get_response_for(self.class, {eid: eid})
12
+ end
13
+
14
+ #
15
+ # @param {String} name
16
+ #
17
+ def self.find_by_name name
18
+ GoTransverseTractApi.get_response_for(self.class, {name: name})
19
+ end
20
+
21
+ #
22
+ # @param {String} status
23
+ #
24
+ def self.find_by_status status
25
+ GoTransverseTractApi.get_response_for(self.class, {status: status})
26
+ end
27
+
7
28
  end
8
29
 
9
30
  end
@@ -4,6 +4,20 @@ module GoTransverseTractApi
4
4
 
5
5
  class GLAccountingEntry
6
6
 
7
+ #
8
+ # @param {Long} eid
9
+ #
10
+ def self.find_by_eid eid
11
+ GoTransverseTractApi.get_response_for(self.class, {eid: eid})
12
+ end
13
+
14
+ #
15
+ # @param {Long} gl_account_eid
16
+ #
17
+ def self.find_by_gl_account_eid gl_account_eid
18
+ GoTransverseTractApi.get_response_for(self.class, {gl_account_eid: gl_account_eid})
19
+ end
20
+
7
21
  end
8
22
 
9
23
  end
@@ -4,6 +4,34 @@ module GoTransverseTractApi
4
4
 
5
5
  class GLAggregateBatch
6
6
 
7
+ #
8
+ # @param {Long} eid
9
+ #
10
+ def self.find_by_eid eid
11
+ GoTransverseTractApi.get_response_for(self.class, {eid: eid})
12
+ end
13
+
14
+ #
15
+ # @param {String} status
16
+ #
17
+ def self.find_by_status status
18
+ GoTransverseTractApi.get_response_for(self.class, {status: status})
19
+ end
20
+
21
+ #
22
+ # @param {Boolean} exported
23
+ #
24
+ def self.find_by_exported exported
25
+ GoTransverseTractApi.get_response_for(self.class, {exported: exported})
26
+ end
27
+
28
+ #
29
+ # @param {DateTime} posted_on
30
+ #
31
+ def self.find_by_posted_on posted_on
32
+ GoTransverseTractApi.get_response_for(self.class, {posted_on: posted_on})
33
+ end
34
+
7
35
  end
8
36
 
9
37
  end
@@ -4,6 +4,34 @@ module GoTransverseTractApi
4
4
 
5
5
  class GLAggregateEntry
6
6
 
7
+ #
8
+ # @param {Long} eid
9
+ #
10
+ def self.find_by_eid eid
11
+ GoTransverseTractApi.get_response_for(self.class, {eid: eid})
12
+ end
13
+
14
+ #
15
+ # @param {Long} gl_account_eid
16
+ #
17
+ def self.find_by_gl_account_eid gl_account_eid
18
+ GoTransverseTractApi.get_response_for(self.class, {gl_account_eid: gl_account_eid})
19
+ end
20
+
21
+ #
22
+ # @param {Long} gl_aggregate_batch_eid
23
+ #
24
+ def self.find_by_gl_aggregate_batch_eid gl_aggregate_batch_eid
25
+ GoTransverseTractApi.get_response_for(self.class, {gl_aggregate_batch_eid: gl_aggregate_batch_eid})
26
+ end
27
+
28
+ #
29
+ # @param {DateTime} posted_on
30
+ #
31
+ def self.find_by_posted_on posted_on
32
+ GoTransverseTractApi.get_response_for(self.class, {posted_on: posted_on})
33
+ end
34
+
7
35
  end
8
36
 
9
37
  end
@@ -1,6 +1,6 @@
1
1
  module GoTransverseTractApi
2
2
 
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  TARGET_API_VERSION = "1.19"
5
5
 
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gotransverse-tract-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien DeFrance
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-30 00:00:00.000000000 Z
11
+ date: 2015-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler