gotransverse-tract-api 0.1.1 → 0.1.2
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/lib/gotransverse-tract-api/product/product.rb +110 -78
- data/lib/gotransverse-tract-api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e136ed93de32f0dc8a13c76f362f9cdd24ad4457
|
4
|
+
data.tar.gz: b0f04900756ca56d5721773f80e51ef4890274ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa9de324e988989664f018d6c2dd9eb9ff41deed33c5cba7391f41427df4988dfa9838f29bb9fd3efcd355134a1e7a812a208926668374fefa336b69e0394096
|
7
|
+
data.tar.gz: ab8c0bc5acf68940438afca5339727faeed5703aaf484441328410523771545ddfa3cb0dfcb091f88f62f9e58fca8cf52c8e2bd839e5bf3d8337b923bdfffb57
|
@@ -4,85 +4,117 @@ module GoTransverseTractApi
|
|
4
4
|
|
5
5
|
class Product
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
7
|
+
class << self
|
8
|
+
|
9
|
+
def find_all
|
10
|
+
GoTransverseTractApi.get_response_for(self)
|
11
|
+
end
|
12
|
+
|
13
|
+
#
|
14
|
+
# @param {Long} eid
|
15
|
+
#
|
16
|
+
def find_by_eid eid
|
17
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
18
|
+
end
|
19
|
+
|
20
|
+
#
|
21
|
+
# @param {String} name
|
22
|
+
#
|
23
|
+
def find_by_name name
|
24
|
+
GoTransverseTractApi.get_response_for(self, {name: name})
|
25
|
+
end
|
26
|
+
|
27
|
+
#
|
28
|
+
# @param {String} internal_name
|
29
|
+
#
|
30
|
+
def find_by_internal_name internal_name
|
31
|
+
GoTransverseTractApi.get_response_for(self, {internal_name: internal_name})
|
32
|
+
end
|
33
|
+
|
34
|
+
#
|
35
|
+
# @param {String} external_product_number
|
36
|
+
#
|
37
|
+
def find_by_external_product_number external_product_number
|
38
|
+
GoTransverseTractApi.get_response_for(self, {external_product_number: external_product_number})
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# @param {String} sku
|
43
|
+
#
|
44
|
+
def find_by_sku sku
|
45
|
+
GoTransverseTractApi.get_response_for(self, {sku: sku})
|
46
|
+
end
|
47
|
+
|
48
|
+
#
|
49
|
+
# @param {String} product_type_code
|
50
|
+
#
|
51
|
+
def find_by_product_type_code product_type_code
|
52
|
+
GoTransverseTractApi.get_response_for(self, {product_type_code: product_type_code})
|
53
|
+
end
|
54
|
+
|
55
|
+
#
|
56
|
+
# @param {String} product_state
|
57
|
+
#
|
58
|
+
def find_by_product_state product_state
|
59
|
+
GoTransverseTractApi.get_response_for(self, {product_state: product_state})
|
60
|
+
end
|
61
|
+
|
62
|
+
#
|
63
|
+
# @param {Long} service_resource_category_eid
|
64
|
+
#
|
65
|
+
def find_by_service_resource_category_eid service_resource_category_eid
|
66
|
+
GoTransverseTractApi.get_response_for(self, {service_resource_category_eid: service_resource_category_eid})
|
67
|
+
end
|
68
|
+
|
69
|
+
#
|
70
|
+
# @param {String} service_resource_category_name
|
71
|
+
#
|
72
|
+
def find_by_service_resource_category_name service_resource_category_name
|
73
|
+
GoTransverseTractApi.get_response_for(self, {service_resource_category_name: service_resource_category_name})
|
74
|
+
end
|
75
|
+
|
76
|
+
#
|
77
|
+
# @param {Long} product_category_eid
|
78
|
+
#
|
79
|
+
def find_by_product_category_eid product_category_eid
|
80
|
+
GoTransverseTractApi.get_response_for(self, {product_category_eid: product_category_eid})
|
81
|
+
end
|
82
|
+
|
83
|
+
#
|
84
|
+
# @param {String} product_category_name
|
85
|
+
#
|
86
|
+
def find_by_product_category_name product_category_name
|
87
|
+
GoTransverseTractApi.get_response_for(self, {product_category_name: product_category_name})
|
88
|
+
end
|
89
|
+
|
90
|
+
#
|
91
|
+
# @param {Long} price_list_eid
|
92
|
+
#
|
93
|
+
def find_by_price_list_eid price_list_eid
|
94
|
+
GoTransverseTractApi.get_response_for(self, {price_list_eid: price_list_eid})
|
95
|
+
end
|
96
|
+
|
97
|
+
#
|
98
|
+
# @param {Boolean} price_list_is_master
|
99
|
+
#
|
100
|
+
def find_by_price_list_is_master price_list_is_master
|
101
|
+
GoTransverseTractApi.get_response_for(self, {price_list_is_master: price_list_is_master})
|
102
|
+
end
|
103
|
+
|
104
|
+
#
|
105
|
+
# @param {String} currency_type
|
106
|
+
#
|
107
|
+
def find_by_currency_type currency_type
|
108
|
+
GoTransverseTractApi.get_response_for(self, {currency_type: currency_type})
|
109
|
+
end
|
110
|
+
|
111
|
+
#
|
112
|
+
# @param {Long} product_tag_eid
|
113
|
+
#
|
114
|
+
def find_by_product_tag_eid product_tag_eid
|
115
|
+
GoTransverseTractApi.get_response_for(self, {product_tag_eid: product_tag_eid})
|
116
|
+
end
|
80
117
|
|
81
|
-
#
|
82
|
-
# @param {Boolean} price_list_is_master
|
83
|
-
#
|
84
|
-
def self.find_by_price_list_is_master price_list_is_master
|
85
|
-
GoTransverseTractApi.get_response_for(self, {price_list_is_master: price_list_is_master})
|
86
118
|
end
|
87
119
|
|
88
120
|
end
|