gotransverse-tract-api 0.0.12 → 0.0.13
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.rb +2 -7
- data/lib/gotransverse-tract-api/billing_account/adjustment_reason.rb +1 -1
- data/lib/gotransverse-tract-api/billing_account/billing_account.rb +1 -1
- data/lib/gotransverse-tract-api/billing_account/custom_field.rb +1 -1
- data/lib/gotransverse-tract-api/billing_account/custom_field_value.rb +1 -1
- data/lib/gotransverse-tract-api/billing_account/reason.rb +1 -1
- data/lib/gotransverse-tract-api/billing_account/recurring_payment.rb +1 -1
- data/lib/gotransverse-tract-api/billing_account/refund.rb +1 -1
- data/lib/gotransverse-tract-api/billing_account/scheduled_charge.rb +1 -1
- data/lib/gotransverse-tract-api/configuration.rb +1 -1
- data/lib/gotransverse-tract-api/general/system_setting.rb +1 -1
- data/lib/gotransverse-tract-api/general_ledger/general_ledger.rb +4 -4
- data/lib/gotransverse-tract-api/general_ledger/gl_account.rb +4 -4
- data/lib/gotransverse-tract-api/general_ledger/gl_account_category.rb +3 -3
- data/lib/gotransverse-tract-api/general_ledger/gl_accounting_entry.rb +2 -2
- data/lib/gotransverse-tract-api/general_ledger/gl_aggregate_batch.rb +4 -4
- data/lib/gotransverse-tract-api/general_ledger/gl_aggregate_entry.rb +4 -4
- data/lib/gotransverse-tract-api/order/agreement.rb +1 -1
- data/lib/gotransverse-tract-api/order/bill_cycle.rb +1 -1
- data/lib/gotransverse-tract-api/order/billing_account_category.rb +1 -1
- data/lib/gotransverse-tract-api/order/order_item.rb +6 -6
- data/lib/gotransverse-tract-api/order/organization.rb +4 -4
- data/lib/gotransverse-tract-api/order/party_category.rb +4 -4
- data/lib/gotransverse-tract-api/order/people.rb +5 -5
- data/lib/gotransverse-tract-api/product/action.rb +2 -2
- data/lib/gotransverse-tract-api/product/operation.rb +2 -2
- data/lib/gotransverse-tract-api/product/operation_attribute.rb +2 -2
- data/lib/gotransverse-tract-api/product/price_list.rb +3 -3
- data/lib/gotransverse-tract-api/product/product.rb +12 -12
- data/lib/gotransverse-tract-api/product/product_category.rb +4 -4
- data/lib/gotransverse-tract-api/product/product_price.rb +6 -6
- data/lib/gotransverse-tract-api/product/product_price_range.rb +5 -5
- data/lib/gotransverse-tract-api/product/usage_rule.rb +2 -2
- data/lib/gotransverse-tract-api/service/service_resource_category.rb +1 -1
- 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: cf46f577e8734e36f771885f3389489c4654fce8
|
4
|
+
data.tar.gz: 25c3079d7656e024dbbef6c8dd6c4f66f69cca07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 060a07489fc88e898bed727c61ee76f0d904b57aa65f63f747a3fb83ad798ea1acada6dc18fcb16d3274fb7bbe099fe9c04ac0f0ac9580af33c836ab18af4ddd
|
7
|
+
data.tar.gz: 5fb36b2e97c815ce453b1e08e6fb38e7bed30c63ab66c6718528ce667e01ff1cb312669bfa66a1b389c900501f1915f2210f50a29dd81fd566dbc2f3df176d2b
|
@@ -96,7 +96,8 @@ module GoTransverseTractApi
|
|
96
96
|
# @param {Class} klass
|
97
97
|
#
|
98
98
|
def self.get_api_url_for klass
|
99
|
-
|
99
|
+
klass = klass.to_s.split("::").last
|
100
|
+
"#{GoTransverseTractApi.configuration.tract_api_url}/#{klass.camelize(:lower).pluralize}"
|
100
101
|
end
|
101
102
|
|
102
103
|
#
|
@@ -179,12 +180,6 @@ module GoTransverseTractApi
|
|
179
180
|
|
180
181
|
api_uri = URI.parse(api_url)
|
181
182
|
|
182
|
-
pp api_url
|
183
|
-
pp api_uri.scheme
|
184
|
-
|
185
|
-
api_uri.scheme = "https"
|
186
|
-
pp api_uri.scheme
|
187
|
-
|
188
183
|
http_client = HTTPClient.new
|
189
184
|
case method
|
190
185
|
when :get
|
@@ -11,7 +11,7 @@ class Configuration
|
|
11
11
|
# initialize
|
12
12
|
#
|
13
13
|
def initialize
|
14
|
-
@tract_api_url = "https://my.tractbilling.com/t/s/r/#{GoTransverseTractApi::TARGET_API_VERSION}
|
14
|
+
@tract_api_url = "https://my.tractbilling.com/t/s/r/#{GoTransverseTractApi::TARGET_API_VERSION}"
|
15
15
|
set_basic_credentials
|
16
16
|
end
|
17
17
|
|
@@ -5,28 +5,28 @@ module GoTransverseTractApi
|
|
5
5
|
class GeneralLedger
|
6
6
|
|
7
7
|
def self.find_all
|
8
|
-
GoTransverseTractApi.get_response_for(self
|
8
|
+
GoTransverseTractApi.get_response_for(self)
|
9
9
|
end
|
10
10
|
|
11
11
|
#
|
12
12
|
# @param {Long} eid
|
13
13
|
#
|
14
14
|
def self.find_by_eid eid
|
15
|
-
GoTransverseTractApi.get_response_for(self
|
15
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
16
16
|
end
|
17
17
|
|
18
18
|
#
|
19
19
|
# @param {String} name
|
20
20
|
#
|
21
21
|
def self.find_by_name name
|
22
|
-
GoTransverseTractApi.get_response_for(self
|
22
|
+
GoTransverseTractApi.get_response_for(self, {name: name})
|
23
23
|
end
|
24
24
|
|
25
25
|
#
|
26
26
|
# @param {String} status
|
27
27
|
#
|
28
28
|
def self.find_by_status status
|
29
|
-
GoTransverseTractApi.get_response_for(self
|
29
|
+
GoTransverseTractApi.get_response_for(self, {status: status})
|
30
30
|
end
|
31
31
|
|
32
32
|
end
|
@@ -8,28 +8,28 @@ module GoTransverseTractApi
|
|
8
8
|
# @param {Long} eid
|
9
9
|
#
|
10
10
|
def self.find_by_eid eid
|
11
|
-
GoTransverseTractApi.get_response_for(self
|
11
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
12
12
|
end
|
13
13
|
|
14
14
|
#
|
15
15
|
# @param {Long} general_ledger_eid
|
16
16
|
#
|
17
17
|
def self.find_by_general_ledger_eid general_ledger_eid
|
18
|
-
GoTransverseTractApi.get_response_for(self
|
18
|
+
GoTransverseTractApi.get_response_for(self, {general_ledger_eid: general_ledger_eid})
|
19
19
|
end
|
20
20
|
|
21
21
|
#
|
22
22
|
# @param {String} name
|
23
23
|
#
|
24
24
|
def self.find_by_name name
|
25
|
-
GoTransverseTractApi.get_response_for(self
|
25
|
+
GoTransverseTractApi.get_response_for(self, {name: name})
|
26
26
|
end
|
27
27
|
|
28
28
|
#
|
29
29
|
# @param {String} account_num
|
30
30
|
#
|
31
31
|
def self.find_by_account_num account_num
|
32
|
-
GoTransverseTractApi.get_response_for(self
|
32
|
+
GoTransverseTractApi.get_response_for(self, {account_num: account_num})
|
33
33
|
end
|
34
34
|
|
35
35
|
end
|
@@ -8,21 +8,21 @@ module GoTransverseTractApi
|
|
8
8
|
# @param {Long} eid
|
9
9
|
#
|
10
10
|
def self.find_by_eid eid
|
11
|
-
GoTransverseTractApi.get_response_for(self
|
11
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
12
12
|
end
|
13
13
|
|
14
14
|
#
|
15
15
|
# @param {String} name
|
16
16
|
#
|
17
17
|
def self.find_by_name name
|
18
|
-
GoTransverseTractApi.get_response_for(self
|
18
|
+
GoTransverseTractApi.get_response_for(self, {name: name})
|
19
19
|
end
|
20
20
|
|
21
21
|
#
|
22
22
|
# @param {String} status
|
23
23
|
#
|
24
24
|
def self.find_by_status status
|
25
|
-
GoTransverseTractApi.get_response_for(self
|
25
|
+
GoTransverseTractApi.get_response_for(self, {status: status})
|
26
26
|
end
|
27
27
|
|
28
28
|
end
|
@@ -8,14 +8,14 @@ module GoTransverseTractApi
|
|
8
8
|
# @param {Long} eid
|
9
9
|
#
|
10
10
|
def self.find_by_eid eid
|
11
|
-
GoTransverseTractApi.get_response_for(self
|
11
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
12
12
|
end
|
13
13
|
|
14
14
|
#
|
15
15
|
# @param {Long} gl_account_eid
|
16
16
|
#
|
17
17
|
def self.find_by_gl_account_eid gl_account_eid
|
18
|
-
GoTransverseTractApi.get_response_for(self
|
18
|
+
GoTransverseTractApi.get_response_for(self, {gl_account_eid: gl_account_eid})
|
19
19
|
end
|
20
20
|
|
21
21
|
end
|
@@ -8,28 +8,28 @@ module GoTransverseTractApi
|
|
8
8
|
# @param {Long} eid
|
9
9
|
#
|
10
10
|
def self.find_by_eid eid
|
11
|
-
GoTransverseTractApi.get_response_for(self
|
11
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
12
12
|
end
|
13
13
|
|
14
14
|
#
|
15
15
|
# @param {String} status
|
16
16
|
#
|
17
17
|
def self.find_by_status status
|
18
|
-
GoTransverseTractApi.get_response_for(self
|
18
|
+
GoTransverseTractApi.get_response_for(self, {status: status})
|
19
19
|
end
|
20
20
|
|
21
21
|
#
|
22
22
|
# @param {Boolean} exported
|
23
23
|
#
|
24
24
|
def self.find_by_exported exported
|
25
|
-
GoTransverseTractApi.get_response_for(self
|
25
|
+
GoTransverseTractApi.get_response_for(self, {exported: exported})
|
26
26
|
end
|
27
27
|
|
28
28
|
#
|
29
29
|
# @param {DateTime} posted_on
|
30
30
|
#
|
31
31
|
def self.find_by_posted_on posted_on
|
32
|
-
GoTransverseTractApi.get_response_for(self
|
32
|
+
GoTransverseTractApi.get_response_for(self, {posted_on: posted_on})
|
33
33
|
end
|
34
34
|
|
35
35
|
end
|
@@ -8,28 +8,28 @@ module GoTransverseTractApi
|
|
8
8
|
# @param {Long} eid
|
9
9
|
#
|
10
10
|
def self.find_by_eid eid
|
11
|
-
GoTransverseTractApi.get_response_for(self
|
11
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
12
12
|
end
|
13
13
|
|
14
14
|
#
|
15
15
|
# @param {Long} gl_account_eid
|
16
16
|
#
|
17
17
|
def self.find_by_gl_account_eid gl_account_eid
|
18
|
-
GoTransverseTractApi.get_response_for(self
|
18
|
+
GoTransverseTractApi.get_response_for(self, {gl_account_eid: gl_account_eid})
|
19
19
|
end
|
20
20
|
|
21
21
|
#
|
22
22
|
# @param {Long} gl_aggregate_batch_eid
|
23
23
|
#
|
24
24
|
def self.find_by_gl_aggregate_batch_eid gl_aggregate_batch_eid
|
25
|
-
GoTransverseTractApi.get_response_for(self
|
25
|
+
GoTransverseTractApi.get_response_for(self, {gl_aggregate_batch_eid: gl_aggregate_batch_eid})
|
26
26
|
end
|
27
27
|
|
28
28
|
#
|
29
29
|
# @param {DateTime} posted_on
|
30
30
|
#
|
31
31
|
def self.find_by_posted_on posted_on
|
32
|
-
GoTransverseTractApi.get_response_for(self
|
32
|
+
GoTransverseTractApi.get_response_for(self, {posted_on: posted_on})
|
33
33
|
end
|
34
34
|
|
35
35
|
end
|
@@ -8,42 +8,42 @@ module GoTransverseTractApi
|
|
8
8
|
# @param {Long} eid
|
9
9
|
#
|
10
10
|
def self.find_by_eid eid
|
11
|
-
GoTransverseTractApi.get_response_for(self
|
11
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
12
12
|
end
|
13
13
|
|
14
14
|
#
|
15
15
|
# @param {Long} order_eid
|
16
16
|
#
|
17
17
|
def self.find_by_order_eid order_eid
|
18
|
-
GoTransverseTractApi.get_response_for(self
|
18
|
+
GoTransverseTractApi.get_response_for(self, {order_eid: order_eid})
|
19
19
|
end
|
20
20
|
|
21
21
|
#
|
22
22
|
# @param {String} order_num
|
23
23
|
#
|
24
24
|
def self.find_by_order_num order_num
|
25
|
-
GoTransverseTractApi.get_response_for(self
|
25
|
+
GoTransverseTractApi.get_response_for(self, {order_num: order_num})
|
26
26
|
end
|
27
27
|
|
28
28
|
#
|
29
29
|
# @param {Long} product_eid
|
30
30
|
#
|
31
31
|
def self.find_by_product_eid product_eid
|
32
|
-
GoTransverseTractApi.get_response_for(self
|
32
|
+
GoTransverseTractApi.get_response_for(self, {product_eid: product_eid})
|
33
33
|
end
|
34
34
|
|
35
35
|
#
|
36
36
|
# @param {Long} parent_order_item_eid
|
37
37
|
#
|
38
38
|
def self.find_by_parent_order_item_eid parent_order_item_eid
|
39
|
-
GoTransverseTractApi.get_response_for(self
|
39
|
+
GoTransverseTractApi.get_response_for(self, {parent_order_item_eid: parent_order_item_eid})
|
40
40
|
end
|
41
41
|
|
42
42
|
#
|
43
43
|
# @param {String} service_identifier
|
44
44
|
#
|
45
45
|
def self.find_by_service_identifier service_identifier
|
46
|
-
GoTransverseTractApi.get_response_for(self
|
46
|
+
GoTransverseTractApi.get_response_for(self, {service_identifier: service_identifier})
|
47
47
|
end
|
48
48
|
|
49
49
|
end
|
@@ -5,28 +5,28 @@ module GoTransverseTractApi
|
|
5
5
|
class Organization
|
6
6
|
|
7
7
|
def self.find_all
|
8
|
-
GoTransverseTractApi.get_response_for(self
|
8
|
+
GoTransverseTractApi.get_response_for(self)
|
9
9
|
end
|
10
10
|
|
11
11
|
#
|
12
12
|
# @param {Long} eid
|
13
13
|
#
|
14
14
|
def self.find_by_eid eid
|
15
|
-
GoTransverseTractApi.get_response_for(self
|
15
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
16
16
|
end
|
17
17
|
|
18
18
|
#
|
19
19
|
# @param {String} name
|
20
20
|
#
|
21
21
|
def self.find_by_name name
|
22
|
-
GoTransverseTractApi.get_response_for(self
|
22
|
+
GoTransverseTractApi.get_response_for(self, {name: name})
|
23
23
|
end
|
24
24
|
|
25
25
|
#
|
26
26
|
# @param {Long} billing_account_eid
|
27
27
|
#
|
28
28
|
def self.find_by_billing_account_eid billing_account_eid
|
29
|
-
GoTransverseTractApi.get_response_for(self
|
29
|
+
GoTransverseTractApi.get_response_for(self, {billing_account_eid: billing_account_eid})
|
30
30
|
end
|
31
31
|
|
32
32
|
end
|
@@ -8,28 +8,28 @@ module GoTransverseTractApi
|
|
8
8
|
# @param {Long} eid
|
9
9
|
#
|
10
10
|
def self.find_by_eid eid
|
11
|
-
GoTransverseTractApi.get_response_for(self
|
11
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
12
12
|
end
|
13
13
|
|
14
14
|
#
|
15
15
|
# @param {String} name
|
16
16
|
#
|
17
17
|
def self.find_by_name name
|
18
|
-
GoTransverseTractApi.get_response_for(self
|
18
|
+
GoTransverseTractApi.get_response_for(self, {name: name})
|
19
19
|
end
|
20
20
|
|
21
21
|
#
|
22
22
|
# @param {String} description
|
23
23
|
#
|
24
24
|
def self.find_by_description description
|
25
|
-
GoTransverseTractApi.get_response_for(self
|
25
|
+
GoTransverseTractApi.get_response_for(self, {description: description})
|
26
26
|
end
|
27
27
|
|
28
28
|
#
|
29
29
|
# @param {String} status
|
30
30
|
#
|
31
31
|
def self.find_by_status status
|
32
|
-
GoTransverseTractApi.get_response_for(self
|
32
|
+
GoTransverseTractApi.get_response_for(self, {status: status})
|
33
33
|
end
|
34
34
|
|
35
35
|
end
|
@@ -5,35 +5,35 @@ module GoTransverseTractApi
|
|
5
5
|
class People
|
6
6
|
|
7
7
|
def self.find_all
|
8
|
-
GoTransverseTractApi.get_response_for(self
|
8
|
+
GoTransverseTractApi.get_response_for(self)
|
9
9
|
end
|
10
10
|
|
11
11
|
#
|
12
12
|
# @param {Long} eid
|
13
13
|
#
|
14
14
|
def self.find_by_eid eid
|
15
|
-
GoTransverseTractApi.get_response_for(self
|
15
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
16
16
|
end
|
17
17
|
|
18
18
|
#
|
19
19
|
# @param {String} first_name
|
20
20
|
#
|
21
21
|
def self.find_by_first_name first_name
|
22
|
-
GoTransverseTractApi.get_response_for(self
|
22
|
+
GoTransverseTractApi.get_response_for(self, {first_name: first_name})
|
23
23
|
end
|
24
24
|
|
25
25
|
#
|
26
26
|
# @param {String} last_name
|
27
27
|
#
|
28
28
|
def self.find_by_last_name last_name
|
29
|
-
GoTransverseTractApi.get_response_for(self
|
29
|
+
GoTransverseTractApi.get_response_for(self, {last_name: last_name})
|
30
30
|
end
|
31
31
|
|
32
32
|
#
|
33
33
|
# @param {Long} billing_account_eid
|
34
34
|
#
|
35
35
|
def self.find_by_billing_account_eid billing_account_eid
|
36
|
-
GoTransverseTractApi.get_response_for(self
|
36
|
+
GoTransverseTractApi.get_response_for(self, {billing_account_eid: billing_account_eid})
|
37
37
|
end
|
38
38
|
|
39
39
|
end
|
@@ -8,14 +8,14 @@ module GoTransverseTractApi
|
|
8
8
|
# @param {Long} eid
|
9
9
|
#
|
10
10
|
def self.find_by_eid eid
|
11
|
-
GoTransverseTractApi.get_response_for(self
|
11
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
12
12
|
end
|
13
13
|
|
14
14
|
#
|
15
15
|
# @param {Long} product_eid
|
16
16
|
#
|
17
17
|
def self.find_by_product_eid product_eid
|
18
|
-
GoTransverseTractApi.get_response_for(self
|
18
|
+
GoTransverseTractApi.get_response_for(self, {product_eid: product_eid})
|
19
19
|
end
|
20
20
|
|
21
21
|
end
|
@@ -8,14 +8,14 @@ module GoTransverseTractApi
|
|
8
8
|
# @param {Long} eid
|
9
9
|
#
|
10
10
|
def self.find_by_eid eid
|
11
|
-
GoTransverseTractApi.get_response_for(self
|
11
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
12
12
|
end
|
13
13
|
|
14
14
|
#
|
15
15
|
# @param {Long} action_eid
|
16
16
|
#
|
17
17
|
def self.find_by_action_eid action_eid
|
18
|
-
GoTransverseTractApi.get_response_for(self
|
18
|
+
GoTransverseTractApi.get_response_for(self, {action_eid: action_eid})
|
19
19
|
end
|
20
20
|
|
21
21
|
end
|
@@ -8,14 +8,14 @@ module GoTransverseTractApi
|
|
8
8
|
# @param {Long} eid
|
9
9
|
#
|
10
10
|
def self.find_by_eid eid
|
11
|
-
GoTransverseTractApi.get_response_for(self
|
11
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
12
12
|
end
|
13
13
|
|
14
14
|
#
|
15
15
|
# @param {Long} product_order_item_eid
|
16
16
|
#
|
17
17
|
def self.find_by_product_order_item_eid product_order_item_eid
|
18
|
-
GoTransverseTractApi.get_response_for(self
|
18
|
+
GoTransverseTractApi.get_response_for(self, {product_order_item_eid: product_order_item_eid})
|
19
19
|
end
|
20
20
|
|
21
21
|
end
|
@@ -5,21 +5,21 @@ module GoTransverseTractApi
|
|
5
5
|
class PriceList
|
6
6
|
|
7
7
|
def self.find_all
|
8
|
-
GoTransverseTractApi.get_response_for(self
|
8
|
+
GoTransverseTractApi.get_response_for(self)
|
9
9
|
end
|
10
10
|
|
11
11
|
#
|
12
12
|
# @param {Long} eid
|
13
13
|
#
|
14
14
|
def self.find_by_eid eid
|
15
|
-
GoTransverseTractApi.get_response_for(self
|
15
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
16
16
|
end
|
17
17
|
|
18
18
|
#
|
19
19
|
# @param {String} name
|
20
20
|
#
|
21
21
|
def self.find_by_name name
|
22
|
-
GoTransverseTractApi.get_response_for(self
|
22
|
+
GoTransverseTractApi.get_response_for(self, {name: name})
|
23
23
|
end
|
24
24
|
|
25
25
|
end
|
@@ -5,84 +5,84 @@ module GoTransverseTractApi
|
|
5
5
|
class Product
|
6
6
|
|
7
7
|
def self.find_all
|
8
|
-
GoTransverseTractApi.get_response_for(self
|
8
|
+
GoTransverseTractApi.get_response_for(self)
|
9
9
|
end
|
10
10
|
|
11
11
|
#
|
12
12
|
# @param {Long} eid
|
13
13
|
#
|
14
14
|
def self.find_by_eid eid
|
15
|
-
GoTransverseTractApi.get_response_for(self
|
15
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
16
16
|
end
|
17
17
|
|
18
18
|
#
|
19
19
|
# @param {String} name
|
20
20
|
#
|
21
21
|
def self.find_by_name name
|
22
|
-
GoTransverseTractApi.get_response_for(self
|
22
|
+
GoTransverseTractApi.get_response_for(self, {name: name})
|
23
23
|
end
|
24
24
|
|
25
25
|
#
|
26
26
|
# @param {String} internal_name
|
27
27
|
#
|
28
28
|
def self.find_by_internal_name internal_name
|
29
|
-
GoTransverseTractApi.get_response_for(self
|
29
|
+
GoTransverseTractApi.get_response_for(self, {internal_name: internal_name})
|
30
30
|
end
|
31
31
|
|
32
32
|
#
|
33
33
|
# @param {String} external_product_number
|
34
34
|
#
|
35
35
|
def self.find_by_external_product_number external_product_number
|
36
|
-
GoTransverseTractApi.get_response_for(self
|
36
|
+
GoTransverseTractApi.get_response_for(self, {external_product_number: external_product_number})
|
37
37
|
end
|
38
38
|
|
39
39
|
#
|
40
40
|
# @param {String} sku
|
41
41
|
#
|
42
42
|
def self.find_by_sku sku
|
43
|
-
GoTransverseTractApi.get_response_for(self
|
43
|
+
GoTransverseTractApi.get_response_for(self, {sku: sku})
|
44
44
|
end
|
45
45
|
|
46
46
|
#
|
47
47
|
# @param {String} product_type_code
|
48
48
|
#
|
49
49
|
def self.find_by_product_type_code product_type_code
|
50
|
-
GoTransverseTractApi.get_response_for(self
|
50
|
+
GoTransverseTractApi.get_response_for(self, {product_type_code: product_type_code})
|
51
51
|
end
|
52
52
|
|
53
53
|
#
|
54
54
|
# @param {String} product_state
|
55
55
|
#
|
56
56
|
def self.find_by_product_state product_state
|
57
|
-
GoTransverseTractApi.get_response_for(self
|
57
|
+
GoTransverseTractApi.get_response_for(self, {product_state: product_state})
|
58
58
|
end
|
59
59
|
|
60
60
|
#
|
61
61
|
# @param {Long} service_resource_category_eid
|
62
62
|
#
|
63
63
|
def self.find_by_service_resource_category_eid service_resource_category_eid
|
64
|
-
GoTransverseTractApi.get_response_for(self
|
64
|
+
GoTransverseTractApi.get_response_for(self, {service_resource_category_eid: service_resource_category_eid})
|
65
65
|
end
|
66
66
|
|
67
67
|
#
|
68
68
|
# @param {String} service_resource_category_name
|
69
69
|
#
|
70
70
|
def self.find_by_service_resource_category_name service_resource_category_name
|
71
|
-
GoTransverseTractApi.get_response_for(self
|
71
|
+
GoTransverseTractApi.get_response_for(self, {service_resource_category_name: service_resource_category_name})
|
72
72
|
end
|
73
73
|
|
74
74
|
#
|
75
75
|
# @param {Long} product_category_eid
|
76
76
|
#
|
77
77
|
def self.find_by_product_category_eid product_category_eid
|
78
|
-
GoTransverseTractApi.get_response_for(self
|
78
|
+
GoTransverseTractApi.get_response_for(self, {product_category_eid: product_category_eid})
|
79
79
|
end
|
80
80
|
|
81
81
|
#
|
82
82
|
# @param {Boolean} price_list_is_master
|
83
83
|
#
|
84
84
|
def self.find_by_price_list_is_master price_list_is_master
|
85
|
-
GoTransverseTractApi.get_response_for(self
|
85
|
+
GoTransverseTractApi.get_response_for(self, {price_list_is_master: price_list_is_master})
|
86
86
|
end
|
87
87
|
|
88
88
|
end
|
@@ -5,28 +5,28 @@ module GoTransverseTractApi
|
|
5
5
|
class ProductCategory
|
6
6
|
|
7
7
|
def self.find_all
|
8
|
-
GoTransverseTractApi.get_response_for(self
|
8
|
+
GoTransverseTractApi.get_response_for(self)
|
9
9
|
end
|
10
10
|
|
11
11
|
#
|
12
12
|
# @param {Long} eid
|
13
13
|
#
|
14
14
|
def self.find_by_eid eid
|
15
|
-
GoTransverseTractApi.get_response_for(self
|
15
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
16
16
|
end
|
17
17
|
|
18
18
|
#
|
19
19
|
# @param {String} name
|
20
20
|
#
|
21
21
|
def self.find_by_name name
|
22
|
-
GoTransverseTractApi.get_response_for(self
|
22
|
+
GoTransverseTractApi.get_response_for(self, {name: name})
|
23
23
|
end
|
24
24
|
|
25
25
|
#
|
26
26
|
# @param {String} status
|
27
27
|
#
|
28
28
|
def self.find_by_status status
|
29
|
-
GoTransverseTractApi.get_response_for(self
|
29
|
+
GoTransverseTractApi.get_response_for(self, {status: status})
|
30
30
|
end
|
31
31
|
|
32
32
|
end
|
@@ -8,42 +8,42 @@ module GoTransverseTractApi
|
|
8
8
|
# @param {Long} eid
|
9
9
|
#
|
10
10
|
def self.find_by_eid eid
|
11
|
-
GoTransverseTractApi.get_response_for(self
|
11
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
12
12
|
end
|
13
13
|
|
14
14
|
#
|
15
15
|
# @param {Long} product_eid
|
16
16
|
#
|
17
17
|
def self.find_by_product_eid product_eid
|
18
|
-
GoTransverseTractApi.get_response_for(self
|
18
|
+
GoTransverseTractApi.get_response_for(self, {product_eid: product_eid})
|
19
19
|
end
|
20
20
|
|
21
21
|
#
|
22
22
|
# @param {DateTime} from_date
|
23
23
|
#
|
24
24
|
def self.find_from_date from_date
|
25
|
-
GoTransverseTractApi.get_response_for(self
|
25
|
+
GoTransverseTractApi.get_response_for(self, {from_date: from_date})
|
26
26
|
end
|
27
27
|
|
28
28
|
#
|
29
29
|
# @param {DateTime} thru_date
|
30
30
|
#
|
31
31
|
def self.find_thru_date thru_date
|
32
|
-
GoTransverseTractApi.get_response_for(self
|
32
|
+
GoTransverseTractApi.get_response_for(self, {thru_date: thru_date})
|
33
33
|
end
|
34
34
|
|
35
35
|
#
|
36
36
|
# @param {Long} price_list_eid
|
37
37
|
#
|
38
38
|
def self.find_by_price_list_eid price_list_eid
|
39
|
-
GoTransverseTractApi.get_response_for(self
|
39
|
+
GoTransverseTractApi.get_response_for(self, {price_list_eid: price_list_eid})
|
40
40
|
end
|
41
41
|
|
42
42
|
#
|
43
43
|
# @param {Boolean} price_list_is_master
|
44
44
|
#
|
45
45
|
def self.find_by_price_list_is_master price_list_is_master
|
46
|
-
GoTransverseTractApi.get_response_for(self
|
46
|
+
GoTransverseTractApi.get_response_for(self, {price_list_is_master: price_list_is_master})
|
47
47
|
end
|
48
48
|
|
49
49
|
end
|
@@ -8,35 +8,35 @@ module GoTransverseTractApi
|
|
8
8
|
# @param {Long} eid
|
9
9
|
#
|
10
10
|
def self.find_by_eid eid
|
11
|
-
GoTransverseTractApi.get_response_for(self
|
11
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
12
12
|
end
|
13
13
|
|
14
14
|
#
|
15
15
|
# @param {Long} product_eid
|
16
16
|
#
|
17
17
|
def self.find_by_product_eid product_eid
|
18
|
-
GoTransverseTractApi.get_response_for(self
|
18
|
+
GoTransverseTractApi.get_response_for(self, {product_eid: product_eid})
|
19
19
|
end
|
20
20
|
|
21
21
|
#
|
22
22
|
# @param {Long} product_price_eid
|
23
23
|
#
|
24
24
|
def self.find_by_product_price_eid product_price_eid
|
25
|
-
GoTransverseTractApi.get_response_for(self
|
25
|
+
GoTransverseTractApi.get_response_for(self, {product_price_eid: product_price_eid})
|
26
26
|
end
|
27
27
|
|
28
28
|
#
|
29
29
|
# @param {Long} price_list_eid
|
30
30
|
#
|
31
31
|
def self.find_by_price_list_eid price_list_eid
|
32
|
-
GoTransverseTractApi.get_response_for(self
|
32
|
+
GoTransverseTractApi.get_response_for(self, {price_list_eid: price_list_eid})
|
33
33
|
end
|
34
34
|
|
35
35
|
#
|
36
36
|
# @param {Boolean} price_list_is_master
|
37
37
|
#
|
38
38
|
def self.find_by_price_list_is_master price_list_is_master
|
39
|
-
GoTransverseTractApi.get_response_for(self
|
39
|
+
GoTransverseTractApi.get_response_for(self, {price_list_is_master: price_list_is_master})
|
40
40
|
end
|
41
41
|
|
42
42
|
end
|
@@ -8,14 +8,14 @@ module GoTransverseTractApi
|
|
8
8
|
# @param {Long} eid
|
9
9
|
#
|
10
10
|
def self.find_by_eid eid
|
11
|
-
GoTransverseTractApi.get_response_for(self
|
11
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
12
12
|
end
|
13
13
|
|
14
14
|
#
|
15
15
|
# @param {Long} service_period_eid
|
16
16
|
#
|
17
17
|
def self.find_by_service_period_eid service_period_eid
|
18
|
-
GoTransverseTractApi.get_response_for(self
|
18
|
+
GoTransverseTractApi.get_response_for(self, {service_period_eid: service_period_eid})
|
19
19
|
end
|
20
20
|
|
21
21
|
end
|