gotransverse-tract-api 0.0.5 → 0.0.6
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 +4 -4
- data/README.md +15 -0
- data/lib/gotransverse-tract-api.rb +2 -1
- data/lib/gotransverse-tract-api/general_ledger/general_ledger.rb +21 -0
- data/lib/gotransverse-tract-api/order/order_item.rb +43 -1
- data/lib/gotransverse-tract-api/order/organization.rb +21 -0
- data/lib/gotransverse-tract-api/order/party_category.rb +28 -0
- data/lib/gotransverse-tract-api/order/people.rb +28 -0
- data/lib/gotransverse-tract-api/product/action.rb +14 -0
- data/lib/gotransverse-tract-api/product/operation.rb +14 -0
- data/lib/gotransverse-tract-api/product/operation_attribute.rb +25 -0
- data/lib/gotransverse-tract-api/product/price_list.rb +14 -0
- data/lib/gotransverse-tract-api/product/product_category.rb +21 -0
- data/lib/gotransverse-tract-api/product/product_price.rb +42 -0
- data/lib/gotransverse-tract-api/product/product_price_range.rb +47 -0
- data/lib/gotransverse-tract-api/product/usage_rule.rb +14 -0
- data/lib/gotransverse-tract-api/version.rb +1 -1
- metadata +4 -3
- data/lib/gotransverse-tract-api/product/price_range.rb +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49377ea24615a129d54a3049f9628661edba2ba7
|
4
|
+
data.tar.gz: 19c363994c6319fbd2d8b469fb24cf28523856b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e11eb9c7b2f195de8f5a6a27110973c49e92b0010e6cf757a72eff1b1bf3f6961f8dac6c0af900ca47fb52fef1a71782d11c5051b09fec52b6dab18cebeeadb4
|
7
|
+
data.tar.gz: 10c70d90449a29c1d5a7eb815aab78f1e0725d828fe5c8d43e404e75abb2649b76692abcaec471a87778170e0c4225dbdec671fbbaa9cfec13e267880b514f7c
|
data/README.md
CHANGED
@@ -53,6 +53,9 @@ http://devdoc.gotransverse.com.php53-14.ord1-1.websitetestlink.com/Developer-Gui
|
|
53
53
|
```
|
54
54
|
#!ruby
|
55
55
|
GoTransverseTractApi::BillingAccount::Invoice.find_by_eid(<eid>)
|
56
|
+
|
57
|
+
GoTransverseTractApi::Product::Product.find_all
|
58
|
+
GoTransverseTractApi::Product::Product.find_by_eid(<eid>)
|
56
59
|
```
|
57
60
|
|
58
61
|
## Version History & Changelog
|
@@ -80,3 +83,15 @@ Please keep version number increments under control :)
|
|
80
83
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
81
84
|
4. Push to the branch (`git push origin my-new-feature`)
|
82
85
|
5. Create a new Pull Request
|
86
|
+
|
87
|
+
|
88
|
+
## Donations
|
89
|
+
|
90
|
+
Love this project? Use it for your business?
|
91
|
+
|
92
|
+
Reward our developers and help us keep this project active.
|
93
|
+
|
94
|
+
[![Click here to donate][2]][1]
|
95
|
+
|
96
|
+
[1]: https://www.bountysource.com/cart?amount=5¤cy=USD&team_id=gotransverse-tract-api-rails
|
97
|
+
[2]: //img.shields.io/badge/donate-$5-brightgreen.svg (Click here to donate)
|
@@ -38,8 +38,9 @@ require "gotransverse-tract-api/order/sales_order"
|
|
38
38
|
|
39
39
|
require "gotransverse-tract-api/product/action"
|
40
40
|
require "gotransverse-tract-api/product/operation"
|
41
|
+
require "gotransverse-tract-api/product/operation_attribute"
|
41
42
|
require "gotransverse-tract-api/product/price_list"
|
42
|
-
require "gotransverse-tract-api/product/
|
43
|
+
require "gotransverse-tract-api/product/product_price_range"
|
43
44
|
require "gotransverse-tract-api/product/product"
|
44
45
|
require "gotransverse-tract-api/product/product_category"
|
45
46
|
require "gotransverse-tract-api/product/product_price"
|
@@ -8,6 +8,27 @@ module GoTransverseTractApi
|
|
8
8
|
GoTransverseTractApi.get_response_for(self.class)
|
9
9
|
end
|
10
10
|
|
11
|
+
#
|
12
|
+
# @param {Long} eid
|
13
|
+
#
|
14
|
+
def self.find_by_eid eid
|
15
|
+
GoTransverseTractApi.get_response_for(self.class, {eid: eid})
|
16
|
+
end
|
17
|
+
|
18
|
+
#
|
19
|
+
# @param {String} name
|
20
|
+
#
|
21
|
+
def self.find_by_name name
|
22
|
+
GoTransverseTractApi.get_response_for(self.class, {name: name})
|
23
|
+
end
|
24
|
+
|
25
|
+
#
|
26
|
+
# @param {String} status
|
27
|
+
#
|
28
|
+
def self.find_by_status status
|
29
|
+
GoTransverseTractApi.get_response_for(self.class, {status: status})
|
30
|
+
end
|
31
|
+
|
11
32
|
end
|
12
33
|
|
13
34
|
end
|
@@ -4,8 +4,50 @@ module GoTransverseTractApi
|
|
4
4
|
|
5
5
|
class OrderItem
|
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} order_eid
|
16
|
+
#
|
17
|
+
def self.find_by_order_eid order_eid
|
18
|
+
GoTransverseTractApi.get_response_for(self.class, {order_eid: order_eid})
|
19
|
+
end
|
20
|
+
|
21
|
+
#
|
22
|
+
# @param {String} order_num
|
23
|
+
#
|
24
|
+
def self.find_by_order_num order_num
|
25
|
+
GoTransverseTractApi.get_response_for(self.class, {order_num: order_num})
|
26
|
+
end
|
27
|
+
|
28
|
+
#
|
29
|
+
# @param {Long} product_eid
|
30
|
+
#
|
31
|
+
def self.find_by_product_eid product_eid
|
32
|
+
GoTransverseTractApi.get_response_for(self.class, {product_eid: product_eid})
|
33
|
+
end
|
34
|
+
|
35
|
+
#
|
36
|
+
# @param {Long} parent_order_item_eid
|
37
|
+
#
|
38
|
+
def self.find_by_parent_order_item_eid parent_order_item_eid
|
39
|
+
GoTransverseTractApi.get_response_for(self.class, {parent_order_item_eid: parent_order_item_eid})
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# @param {String} service_identifier
|
44
|
+
#
|
45
|
+
def self.find_by_service_identifier service_identifier
|
46
|
+
GoTransverseTractApi.get_response_for(self.class, {service_identifier: service_identifier})
|
47
|
+
end
|
48
|
+
|
7
49
|
end
|
8
50
|
|
9
51
|
end
|
10
52
|
|
11
|
-
end
|
53
|
+
end
|
@@ -8,6 +8,27 @@ module GoTransverseTractApi
|
|
8
8
|
GoTransverseTractApi.get_response_for(self.class)
|
9
9
|
end
|
10
10
|
|
11
|
+
#
|
12
|
+
# @param {Long} eid
|
13
|
+
#
|
14
|
+
def self.find_by_eid eid
|
15
|
+
GoTransverseTractApi.get_response_for(self.class, {eid: eid})
|
16
|
+
end
|
17
|
+
|
18
|
+
#
|
19
|
+
# @param {String} name
|
20
|
+
#
|
21
|
+
def self.find_by_name name
|
22
|
+
GoTransverseTractApi.get_response_for(self.class, {name: name})
|
23
|
+
end
|
24
|
+
|
25
|
+
#
|
26
|
+
# @param {Long} billing_account_eid
|
27
|
+
#
|
28
|
+
def self.find_by_billing_account_eid billing_account_eid
|
29
|
+
GoTransverseTractApi.get_response_for(self.class, {billing_account_eid: billing_account_eid})
|
30
|
+
end
|
31
|
+
|
11
32
|
end
|
12
33
|
|
13
34
|
end
|
@@ -4,6 +4,34 @@ module GoTransverseTractApi
|
|
4
4
|
|
5
5
|
class PartyCategory
|
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} description
|
23
|
+
#
|
24
|
+
def self.find_by_description description
|
25
|
+
GoTransverseTractApi.get_response_for(self.class, {description: description})
|
26
|
+
end
|
27
|
+
|
28
|
+
#
|
29
|
+
# @param {String} status
|
30
|
+
#
|
31
|
+
def self.find_by_status status
|
32
|
+
GoTransverseTractApi.get_response_for(self.class, {status: status})
|
33
|
+
end
|
34
|
+
|
7
35
|
end
|
8
36
|
|
9
37
|
end
|
@@ -8,6 +8,34 @@ module GoTransverseTractApi
|
|
8
8
|
GoTransverseTractApi.get_response_for(self.class)
|
9
9
|
end
|
10
10
|
|
11
|
+
#
|
12
|
+
# @param {Long} eid
|
13
|
+
#
|
14
|
+
def self.find_by_eid eid
|
15
|
+
GoTransverseTractApi.get_response_for(self.class, {eid: eid})
|
16
|
+
end
|
17
|
+
|
18
|
+
#
|
19
|
+
# @param {String} first_name
|
20
|
+
#
|
21
|
+
def self.find_by_first_name first_name
|
22
|
+
GoTransverseTractApi.get_response_for(self.class, {first_name: first_name})
|
23
|
+
end
|
24
|
+
|
25
|
+
#
|
26
|
+
# @param {String} last_name
|
27
|
+
#
|
28
|
+
def self.find_by_last_name last_name
|
29
|
+
GoTransverseTractApi.get_response_for(self.class, {last_name: last_name})
|
30
|
+
end
|
31
|
+
|
32
|
+
#
|
33
|
+
# @param {Long} billing_account_eid
|
34
|
+
#
|
35
|
+
def self.find_by_billing_account_eid billing_account_eid
|
36
|
+
GoTransverseTractApi.get_response_for(self.class, {billing_account_eid: billing_account_eid})
|
37
|
+
end
|
38
|
+
|
11
39
|
end
|
12
40
|
|
13
41
|
end
|
@@ -4,6 +4,20 @@ module GoTransverseTractApi
|
|
4
4
|
|
5
5
|
class Action
|
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} product_eid
|
16
|
+
#
|
17
|
+
def self.find_by_product_eid product_eid
|
18
|
+
GoTransverseTractApi.get_response_for(self.class, {product_eid: product_eid})
|
19
|
+
end
|
20
|
+
|
7
21
|
end
|
8
22
|
|
9
23
|
end
|
@@ -4,6 +4,20 @@ module GoTransverseTractApi
|
|
4
4
|
|
5
5
|
class Operation
|
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} action_eid
|
16
|
+
#
|
17
|
+
def self.find_by_action_eid action_eid
|
18
|
+
GoTransverseTractApi.get_response_for(self.class, {action_eid: action_eid})
|
19
|
+
end
|
20
|
+
|
7
21
|
end
|
8
22
|
|
9
23
|
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module GoTransverseTractApi
|
2
|
+
|
3
|
+
module Product
|
4
|
+
|
5
|
+
class OperationAttribute
|
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} product_order_item_eid
|
16
|
+
#
|
17
|
+
def self.find_by_product_order_item_eid product_order_item_eid
|
18
|
+
GoTransverseTractApi.get_response_for(self.class, {product_order_item_eid: product_order_item_eid})
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
@@ -8,6 +8,20 @@ module GoTransverseTractApi
|
|
8
8
|
GoTransverseTractApi.get_response_for(self.class)
|
9
9
|
end
|
10
10
|
|
11
|
+
#
|
12
|
+
# @param {Long} eid
|
13
|
+
#
|
14
|
+
def self.find_by_eid eid
|
15
|
+
GoTransverseTractApi.get_response_for(self.class, {eid: eid})
|
16
|
+
end
|
17
|
+
|
18
|
+
#
|
19
|
+
# @param {String} name
|
20
|
+
#
|
21
|
+
def self.find_by_name name
|
22
|
+
GoTransverseTractApi.get_response_for(self.class, {name: name})
|
23
|
+
end
|
24
|
+
|
11
25
|
end
|
12
26
|
|
13
27
|
end
|
@@ -8,6 +8,27 @@ module GoTransverseTractApi
|
|
8
8
|
GoTransverseTractApi.get_response_for(self.class)
|
9
9
|
end
|
10
10
|
|
11
|
+
#
|
12
|
+
# @param {Long} eid
|
13
|
+
#
|
14
|
+
def self.find_by_eid eid
|
15
|
+
GoTransverseTractApi.get_response_for(self.class, {eid: eid})
|
16
|
+
end
|
17
|
+
|
18
|
+
#
|
19
|
+
# @param {String} name
|
20
|
+
#
|
21
|
+
def self.find_by_name name
|
22
|
+
GoTransverseTractApi.get_response_for(self.class, {name: name})
|
23
|
+
end
|
24
|
+
|
25
|
+
#
|
26
|
+
# @param {String} status
|
27
|
+
#
|
28
|
+
def self.find_by_status status
|
29
|
+
GoTransverseTractApi.get_response_for(self.class, {status: status})
|
30
|
+
end
|
31
|
+
|
11
32
|
end
|
12
33
|
|
13
34
|
end
|
@@ -4,6 +4,48 @@ module GoTransverseTractApi
|
|
4
4
|
|
5
5
|
class ProductPrice
|
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} product_eid
|
16
|
+
#
|
17
|
+
def self.find_by_product_eid product_eid
|
18
|
+
GoTransverseTractApi.get_response_for(self.class, {product_eid: product_eid})
|
19
|
+
end
|
20
|
+
|
21
|
+
#
|
22
|
+
# @param {DateTime} from_date
|
23
|
+
#
|
24
|
+
def self.find_from_date from_date
|
25
|
+
GoTransverseTractApi.get_response_for(self.class, {from_date: from_date})
|
26
|
+
end
|
27
|
+
|
28
|
+
#
|
29
|
+
# @param {DateTime} thru_date
|
30
|
+
#
|
31
|
+
def self.find_thru_date thru_date
|
32
|
+
GoTransverseTractApi.get_response_for(self.class, {thru_date: thru_date})
|
33
|
+
end
|
34
|
+
|
35
|
+
#
|
36
|
+
# @param {Long} price_list_eid
|
37
|
+
#
|
38
|
+
def self.find_by_price_list_eid price_list_eid
|
39
|
+
GoTransverseTractApi.get_response_for(self.class, {price_list_eid: price_list_eid})
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# @param {Boolean} price_list_is_master
|
44
|
+
#
|
45
|
+
def self.find_by_price_list_is_master price_list_is_master
|
46
|
+
GoTransverseTractApi.get_response_for(self.class, {price_list_is_master: price_list_is_master})
|
47
|
+
end
|
48
|
+
|
7
49
|
end
|
8
50
|
|
9
51
|
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
module GoTransverseTractApi
|
2
|
+
|
3
|
+
module Product
|
4
|
+
|
5
|
+
class ProductPriceRange
|
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} product_eid
|
16
|
+
#
|
17
|
+
def self.find_by_product_eid product_eid
|
18
|
+
GoTransverseTractApi.get_response_for(self.class, {product_eid: product_eid})
|
19
|
+
end
|
20
|
+
|
21
|
+
#
|
22
|
+
# @param {Long} product_price_eid
|
23
|
+
#
|
24
|
+
def self.find_by_product_price_eid product_price_eid
|
25
|
+
GoTransverseTractApi.get_response_for(self.class, {product_price_eid: product_price_eid})
|
26
|
+
end
|
27
|
+
|
28
|
+
#
|
29
|
+
# @param {Long} price_list_eid
|
30
|
+
#
|
31
|
+
def self.find_by_price_list_eid price_list_eid
|
32
|
+
GoTransverseTractApi.get_response_for(self.class, {price_list_eid: price_list_eid})
|
33
|
+
end
|
34
|
+
|
35
|
+
#
|
36
|
+
# @param {Boolean} price_list_is_master
|
37
|
+
#
|
38
|
+
def self.find_by_price_list_is_master price_list_is_master
|
39
|
+
GoTransverseTractApi.get_response_for(self.class, {price_list_is_master: price_list_is_master})
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
|
@@ -4,6 +4,20 @@ module GoTransverseTractApi
|
|
4
4
|
|
5
5
|
class UsageRule
|
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} service_period_eid
|
16
|
+
#
|
17
|
+
def self.find_by_service_period_eid service_period_eid
|
18
|
+
GoTransverseTractApi.get_response_for(self.class, {service_period_eid: service_period_eid})
|
19
|
+
end
|
20
|
+
|
7
21
|
end
|
8
22
|
|
9
23
|
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.
|
4
|
+
version: 0.0.6
|
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-
|
11
|
+
date: 2015-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -118,11 +118,12 @@ files:
|
|
118
118
|
- lib/gotransverse-tract-api/order/sales_order.rb
|
119
119
|
- lib/gotransverse-tract-api/product/action.rb
|
120
120
|
- lib/gotransverse-tract-api/product/operation.rb
|
121
|
+
- lib/gotransverse-tract-api/product/operation_attribute.rb
|
121
122
|
- lib/gotransverse-tract-api/product/price_list.rb
|
122
|
-
- lib/gotransverse-tract-api/product/price_range.rb
|
123
123
|
- lib/gotransverse-tract-api/product/product.rb
|
124
124
|
- lib/gotransverse-tract-api/product/product_category.rb
|
125
125
|
- lib/gotransverse-tract-api/product/product_price.rb
|
126
|
+
- lib/gotransverse-tract-api/product/product_price_range.rb
|
126
127
|
- lib/gotransverse-tract-api/product/usage_rule.rb
|
127
128
|
- lib/gotransverse-tract-api/service/service.rb
|
128
129
|
- lib/gotransverse-tract-api/service/service_device_inventory_item.rb
|