gotransverse-tract-api 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gotransverse-tract-api.rb +0 -1
- data/lib/gotransverse-tract-api/api_data.rb +6 -0
- data/lib/gotransverse-tract-api/billing_account/adjustment.rb +38 -20
- data/lib/gotransverse-tract-api/billing_account/adjustment_application.rb +12 -6
- data/lib/gotransverse-tract-api/billing_account/adjustment_reason.rb +30 -14
- data/lib/gotransverse-tract-api/billing_account/billing_account.rb +103 -50
- data/lib/gotransverse-tract-api/billing_account/counter.rb +50 -26
- data/lib/gotransverse-tract-api/billing_account/custom_field.rb +36 -17
- data/lib/gotransverse-tract-api/billing_account/custom_field_value.rb +72 -35
- data/lib/gotransverse-tract-api/billing_account/invoice.rb +54 -27
- data/lib/gotransverse-tract-api/billing_account/invoice_item.rb +18 -9
- data/lib/gotransverse-tract-api/billing_account/invoice_item_charge.rb +6 -3
- data/lib/gotransverse-tract-api/billing_account/payment.rb +44 -23
- data/lib/gotransverse-tract-api/billing_account/reason.rb +24 -11
- data/lib/gotransverse-tract-api/billing_account/recurring_payment.rb +24 -11
- data/lib/gotransverse-tract-api/billing_account/refund.rb +30 -43
- data/lib/gotransverse-tract-api/billing_account/scheduled_charge.rb +30 -14
- data/lib/gotransverse-tract-api/billing_account/standard_invoice_adjustment_application.rb +12 -6
- data/lib/gotransverse-tract-api/general_ledger/general_ledger.rb +42 -25
- data/lib/gotransverse-tract-api/general_ledger/gl_account.rb +24 -12
- data/lib/gotransverse-tract-api/general_ledger/gl_account_category.rb +18 -9
- data/lib/gotransverse-tract-api/general_ledger/gl_accounting_entry.rb +36 -18
- data/lib/gotransverse-tract-api/general_ledger/gl_accounting_transaction.rb +42 -21
- data/lib/gotransverse-tract-api/general_ledger/gl_adjustment_accounting_transaction.rb +1 -61
- data/lib/gotransverse-tract-api/general_ledger/gl_aggregate_batch.rb +37 -19
- data/lib/gotransverse-tract-api/general_ledger/gl_aggregate_entry.rb +53 -34
- data/lib/gotransverse-tract-api/general_ledger/gl_invoice_accounting_transaction.rb +1 -1
- data/lib/gotransverse-tract-api/general_ledger/gl_payment_accounting_transaction.rb +1 -1
- data/lib/gotransverse-tract-api/general_ledger/gl_transaction_batch.rb +32 -17
- data/lib/gotransverse-tract-api/order/adjustment_category.rb +24 -11
- data/lib/gotransverse-tract-api/order/agreement.rb +55 -26
- data/lib/gotransverse-tract-api/order/bill_cycle.rb +36 -17
- data/lib/gotransverse-tract-api/order/billing_account_category.rb +26 -11
- data/lib/gotransverse-tract-api/order/order_item.rb +48 -24
- data/lib/gotransverse-tract-api/order/order_item_charge.rb +42 -21
- data/lib/gotransverse-tract-api/order/organization.rb +24 -11
- data/lib/gotransverse-tract-api/order/party_category.rb +30 -14
- data/lib/gotransverse-tract-api/order/payment_term.rb +33 -17
- data/lib/gotransverse-tract-api/order/people.rb +30 -14
- data/lib/gotransverse-tract-api/order/product_relation.rb +18 -9
- data/lib/gotransverse-tract-api/order/renewal_order.rb +61 -31
- data/lib/gotransverse-tract-api/order/sales_order.rb +66 -32
- data/lib/gotransverse-tract-api/product/action.rb +12 -6
- data/lib/gotransverse-tract-api/product/billing_account_segment_field.rb +30 -15
- data/lib/gotransverse-tract-api/product/discount.rb +30 -15
- data/lib/gotransverse-tract-api/product/discount_category.rb +24 -11
- data/lib/gotransverse-tract-api/product/discount_code.rb +60 -30
- data/lib/gotransverse-tract-api/product/discount_identifier.rb +24 -11
- data/lib/gotransverse-tract-api/product/one_time_product_price.rb +6 -3
- data/lib/gotransverse-tract-api/product/operation.rb +12 -5
- data/lib/gotransverse-tract-api/product/operation_attribute.rb +12 -6
- data/lib/gotransverse-tract-api/product/price_list.rb +18 -8
- data/lib/gotransverse-tract-api/product/product.rb +96 -47
- data/lib/gotransverse-tract-api/product/product_price.rb +42 -21
- data/lib/gotransverse-tract-api/product/product_price_range.rb +36 -18
- data/lib/gotransverse-tract-api/product/product_tag.rb +26 -13
- data/lib/gotransverse-tract-api/product/recurring_product_price.rb +42 -21
- data/lib/gotransverse-tract-api/service/service.rb +60 -31
- data/lib/gotransverse-tract-api/service/service_device_inventory_item.rb +24 -12
- data/lib/gotransverse-tract-api/service/service_period.rb +30 -15
- data/lib/gotransverse-tract-api/service/service_price.rb +30 -15
- data/lib/gotransverse-tract-api/service/service_price_range.rb +12 -6
- data/lib/gotransverse-tract-api/service/service_resource.rb +42 -21
- data/lib/gotransverse-tract-api/service/service_resource_category.rb +24 -11
- data/lib/gotransverse-tract-api/usage/global_usage_rule.rb +24 -11
- data/lib/gotransverse-tract-api/usage/order_item_usage_rule.rb +18 -9
- data/lib/gotransverse-tract-api/usage/product_usage_rule.rb +24 -12
- data/lib/gotransverse-tract-api/usage/rate_table.rb +12 -6
- data/lib/gotransverse-tract-api/usage/service_usage_rule.rb +18 -9
- data/lib/gotransverse-tract-api/usage/usage_event.rb +48 -24
- data/lib/gotransverse-tract-api/usage/usage_lookup_table.rb +19 -10
- data/lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb +24 -12
- data/lib/gotransverse-tract-api/usage/usage_price_category.rb +19 -9
- data/lib/gotransverse-tract-api/usage/usage_rule.rb +12 -6
- data/lib/gotransverse-tract-api/version.rb +1 -1
- data/spec/gotransverse-tract-api/order/sales_order_spec.rb +44 -0
- data/spec/gotransverse-tract-api/product/product_spec.rb +1 -1
- metadata +2 -3
- data/lib/gotransverse-tract-api/product/usage_rule.rb +0 -27
@@ -6,17 +6,24 @@ module GoTransverseTractApi
|
|
6
6
|
|
7
7
|
#
|
8
8
|
# @param {Long} eid
|
9
|
-
# @param {
|
9
|
+
# @param {Hash} options
|
10
10
|
#
|
11
|
-
def self.find_by_eid eid,
|
12
|
-
|
11
|
+
def self.find_by_eid eid, options=nil
|
12
|
+
return nil unless eid.present?
|
13
|
+
|
14
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
|
15
|
+
GoTransverseTractApi.get_response_for(self, params)
|
13
16
|
end
|
14
17
|
|
15
18
|
#
|
16
19
|
# @param {Long} action_eid
|
20
|
+
# @param {Hash} options
|
17
21
|
#
|
18
|
-
def self.find_by_action_eid action_eid,
|
19
|
-
|
22
|
+
def self.find_by_action_eid action_eid, options=nil
|
23
|
+
return nil unless action_eid.present?
|
24
|
+
|
25
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({action_eid: action_eid}, options)
|
26
|
+
GoTransverseTractApi.get_response_for(self, params)
|
20
27
|
end
|
21
28
|
|
22
29
|
end
|
@@ -6,18 +6,24 @@ module GoTransverseTractApi
|
|
6
6
|
|
7
7
|
#
|
8
8
|
# @param {Long} eid
|
9
|
-
# @param {
|
9
|
+
# @param {Hash} options
|
10
10
|
#
|
11
|
-
def self.find_by_eid eid,
|
12
|
-
|
11
|
+
def self.find_by_eid eid, options=nil
|
12
|
+
return nil unless eid.present?
|
13
|
+
|
14
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
|
15
|
+
GoTransverseTractApi.get_response_for(self, params)
|
13
16
|
end
|
14
17
|
|
15
18
|
#
|
16
19
|
# @param {Long} product_order_item_eid
|
17
|
-
# @param {
|
20
|
+
# @param {Hash} options
|
18
21
|
#
|
19
|
-
def self.find_by_product_order_item_eid product_order_item_eid,
|
20
|
-
|
22
|
+
def self.find_by_product_order_item_eid product_order_item_eid, options=nil
|
23
|
+
return nil unless product_order_item_eid.present?
|
24
|
+
|
25
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_order_item_eid: product_order_item_eid}, options)
|
26
|
+
GoTransverseTractApi.get_response_for(self, params)
|
21
27
|
end
|
22
28
|
|
23
29
|
end
|
@@ -4,24 +4,34 @@ module GoTransverseTractApi
|
|
4
4
|
|
5
5
|
class PriceList
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
#
|
8
|
+
# @param {Hash} options
|
9
|
+
#
|
10
|
+
def self.find_all options=nil
|
11
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({}, options)
|
12
|
+
GoTransverseTractApi.get_response_for(self, params)
|
9
13
|
end
|
10
14
|
|
11
15
|
#
|
12
16
|
# @param {Long} eid
|
13
|
-
# @param {
|
17
|
+
# @param {Hash} options
|
14
18
|
#
|
15
|
-
def self.find_by_eid eid,
|
16
|
-
|
19
|
+
def self.find_by_eid eid, options=nil
|
20
|
+
return nil unless eid.present?
|
21
|
+
|
22
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
|
23
|
+
GoTransverseTractApi.get_response_for(self, params)
|
17
24
|
end
|
18
25
|
|
19
26
|
#
|
20
27
|
# @param {String} name
|
21
|
-
# @param {
|
28
|
+
# @param {Hash} options
|
22
29
|
#
|
23
|
-
def self.find_by_name name,
|
24
|
-
|
30
|
+
def self.find_by_name name, option=nil
|
31
|
+
return nil unless name.present?
|
32
|
+
|
33
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({name: name}, options)
|
34
|
+
GoTransverseTractApi.get_response_for(self, params)
|
25
35
|
end
|
26
36
|
|
27
37
|
#
|
@@ -6,128 +6,177 @@ module GoTransverseTractApi
|
|
6
6
|
|
7
7
|
class << self
|
8
8
|
|
9
|
-
|
10
|
-
|
9
|
+
#
|
10
|
+
# @param {Hash} options
|
11
|
+
#
|
12
|
+
def find_all options=nil
|
13
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({}, options)
|
14
|
+
GoTransverseTractApi.get_response_for(self, params)
|
11
15
|
end
|
12
16
|
|
13
17
|
#
|
14
18
|
# @param {Long} eid
|
15
|
-
# @param {
|
19
|
+
# @param {Hash} options
|
16
20
|
#
|
17
|
-
def find_by_eid eid,
|
18
|
-
|
21
|
+
def find_by_eid eid, options=nil
|
22
|
+
return nil unless eid.present?
|
23
|
+
|
24
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
|
25
|
+
GoTransverseTractApi.get_response_for(self, params)
|
19
26
|
end
|
20
27
|
|
21
28
|
#
|
22
29
|
# @param {String} name
|
23
|
-
# @param {
|
30
|
+
# @param {Hash} options
|
24
31
|
#
|
25
|
-
def find_by_name name,
|
26
|
-
|
32
|
+
def find_by_name name, options=nil
|
33
|
+
return nil unless name.present?
|
34
|
+
|
35
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({name: name}, options)
|
36
|
+
GoTransverseTractApi.get_response_for(self, params)
|
27
37
|
end
|
28
38
|
|
29
39
|
#
|
30
40
|
# @param {String} internal_name
|
31
|
-
# @param {
|
41
|
+
# @param {Hash} options
|
32
42
|
#
|
33
|
-
def find_by_internal_name internal_name,
|
34
|
-
|
43
|
+
def find_by_internal_name internal_name, options=nil
|
44
|
+
return nil unless internal_name.present?
|
45
|
+
|
46
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({internal_name: internal_name}, options)
|
47
|
+
GoTransverseTractApi.get_response_for(self, params)
|
35
48
|
end
|
36
49
|
|
37
50
|
#
|
38
51
|
# @param {String} external_product_number
|
39
|
-
# @param {
|
52
|
+
# @param {Hash} options
|
40
53
|
#
|
41
|
-
def find_by_external_product_number external_product_number,
|
42
|
-
|
54
|
+
def find_by_external_product_number external_product_number, options=nil
|
55
|
+
return nil unless external_product_number.present?
|
56
|
+
|
57
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({external_product_number: external_product_number}, options)
|
58
|
+
GoTransverseTractApi.get_response_for(self, params)
|
43
59
|
end
|
44
60
|
|
45
61
|
#
|
46
62
|
# @param {String} sku
|
47
|
-
# @param {
|
63
|
+
# @param {Hash} options
|
48
64
|
#
|
49
|
-
def find_by_sku sku,
|
50
|
-
|
65
|
+
def find_by_sku sku, options=nil
|
66
|
+
return nil unless sku.present?
|
67
|
+
|
68
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({sku: sku}, options)
|
69
|
+
GoTransverseTractApi.get_response_for(self, params)
|
51
70
|
end
|
52
71
|
|
53
72
|
#
|
54
73
|
# @param {String} product_type_code
|
55
|
-
# @param {
|
74
|
+
# @param {Hash} options
|
56
75
|
#
|
57
|
-
def find_by_product_type_code product_type_code,
|
58
|
-
|
76
|
+
def find_by_product_type_code product_type_code, options=nil
|
77
|
+
return nil unless product_type_code.present?
|
78
|
+
|
79
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_type_code: product_type_code}, options)
|
80
|
+
GoTransverseTractApi.get_response_for(self, params)
|
59
81
|
end
|
60
82
|
|
61
83
|
#
|
62
84
|
# @param {String} product_state
|
63
|
-
# @param {
|
85
|
+
# @param {Hash} options
|
64
86
|
#
|
65
|
-
def find_by_product_state product_state,
|
66
|
-
|
87
|
+
def find_by_product_state product_state, options=nil
|
88
|
+
return nil unless product_state.present?
|
89
|
+
|
90
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_state: product_state}, options)
|
91
|
+
GoTransverseTractApi.get_response_for(self, params)
|
67
92
|
end
|
68
93
|
|
69
94
|
#
|
70
95
|
# @param {Long} service_resource_category_eid
|
71
|
-
# @param {
|
96
|
+
# @param {Hash} options
|
72
97
|
#
|
73
|
-
def find_by_service_resource_category_eid service_resource_category_eid,
|
74
|
-
|
98
|
+
def find_by_service_resource_category_eid service_resource_category_eid, options=nil
|
99
|
+
return nil unless service_resource_category_eid.present?
|
100
|
+
|
101
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({service_resource_category_eid: service_resource_category_eid}, options)
|
102
|
+
GoTransverseTractApi.get_response_for(self, params)
|
75
103
|
end
|
76
104
|
|
77
105
|
#
|
78
106
|
# @param {String} service_resource_category_name
|
79
|
-
# @param {
|
107
|
+
# @param {Hash} options
|
80
108
|
#
|
81
|
-
def find_by_service_resource_category_name service_resource_category_name,
|
82
|
-
|
109
|
+
def find_by_service_resource_category_name service_resource_category_name, options=nil
|
110
|
+
return nil unless service_resource_category_name.present?
|
111
|
+
|
112
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({service_resource_category_name: service_resource_category_name}, options)
|
113
|
+
GoTransverseTractApi.get_response_for(self, params)
|
83
114
|
end
|
84
115
|
|
85
116
|
#
|
86
117
|
# @param {Long} product_category_eid
|
87
|
-
# @param {
|
118
|
+
# @param {Hash} options
|
88
119
|
#
|
89
|
-
def find_by_product_category_eid product_category_eid,
|
90
|
-
|
120
|
+
def find_by_product_category_eid product_category_eid, options=nil
|
121
|
+
return nil unless product_category_eid.present?
|
122
|
+
|
123
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_category_eid: product_category_eid}, options)
|
124
|
+
GoTransverseTractApi.get_response_for(self, params)
|
91
125
|
end
|
92
126
|
|
93
127
|
#
|
94
128
|
# @param {String} product_category_name
|
95
|
-
# @param {
|
129
|
+
# @param {Hash} options
|
96
130
|
#
|
97
|
-
def find_by_product_category_name product_category_name,
|
98
|
-
|
131
|
+
def find_by_product_category_name product_category_name, options=nil
|
132
|
+
return nil unless product_category_name.present?
|
133
|
+
|
134
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_category_name: product_category_name}, options)
|
135
|
+
GoTransverseTractApi.get_response_for(self, params)
|
99
136
|
end
|
100
137
|
|
101
138
|
#
|
102
139
|
# @param {Long} price_list_eid
|
103
|
-
# @param {
|
140
|
+
# @param {Hash} options
|
104
141
|
#
|
105
|
-
def find_by_price_list_eid price_list_eid,
|
106
|
-
|
142
|
+
def find_by_price_list_eid price_list_eid, options=nil
|
143
|
+
return nil unless price_list_eid.present?
|
144
|
+
|
145
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({price_list_eid: price_list_eid}, options)
|
146
|
+
GoTransverseTractApi.get_response_for(self, params)
|
107
147
|
end
|
108
148
|
|
109
149
|
#
|
110
150
|
# @param {Boolean} price_list_is_master
|
111
|
-
# @param {
|
151
|
+
# @param {Hash} options
|
112
152
|
#
|
113
|
-
def find_by_price_list_is_master price_list_is_master,
|
114
|
-
|
153
|
+
def find_by_price_list_is_master price_list_is_master, options=nil
|
154
|
+
return nil unless price_list_is_master.present?
|
155
|
+
|
156
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({price_list_is_master: price_list_is_master}, options)
|
157
|
+
GoTransverseTractApi.get_response_for(self, params)
|
115
158
|
end
|
116
159
|
|
117
160
|
#
|
118
161
|
# @param {String} currency_type
|
119
|
-
# @param {
|
162
|
+
# @param {Hash} options
|
120
163
|
#
|
121
|
-
def find_by_currency_type currency_type,
|
122
|
-
|
164
|
+
def find_by_currency_type currency_type, options=nil
|
165
|
+
return nil unless currency_type.present?
|
166
|
+
|
167
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({currency_type: currency_type}, options)
|
168
|
+
GoTransverseTractApi.get_response_for(self, params)
|
123
169
|
end
|
124
170
|
|
125
171
|
#
|
126
172
|
# @param {Long} product_tag_eid
|
127
|
-
# @param {
|
173
|
+
# @param {Hash} options
|
128
174
|
#
|
129
|
-
def find_by_product_tag_eid product_tag_eid,
|
130
|
-
|
175
|
+
def find_by_product_tag_eid product_tag_eid, options=nil
|
176
|
+
return nil unless product_tag_eid.present?
|
177
|
+
|
178
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_tag_eid: product_tag_eid}, options)
|
179
|
+
GoTransverseTractApi.get_response_for(self, params)
|
131
180
|
end
|
132
181
|
|
133
182
|
#
|
@@ -6,58 +6,79 @@ module GoTransverseTractApi
|
|
6
6
|
|
7
7
|
#
|
8
8
|
# @param {Long} eid
|
9
|
-
# @param {
|
9
|
+
# @param {Hash} options
|
10
10
|
#
|
11
|
-
def self.find_by_eid eid,
|
12
|
-
|
11
|
+
def self.find_by_eid eid, options=nil
|
12
|
+
return nil unless eid.present?
|
13
|
+
|
14
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
|
15
|
+
GoTransverseTractApi.get_response_for(self, params)
|
13
16
|
end
|
14
17
|
|
15
18
|
#
|
16
19
|
# @param {Long} product_eid
|
17
|
-
# @param {
|
20
|
+
# @param {Hash} options
|
18
21
|
#
|
19
|
-
def self.find_by_product_eid product_eid,
|
20
|
-
|
22
|
+
def self.find_by_product_eid product_eid, options=nil
|
23
|
+
return nil unless product_eid.present?
|
24
|
+
|
25
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_eid: product_eid}, options)
|
26
|
+
GoTransverseTractApi.get_response_for(self, params)
|
21
27
|
end
|
22
28
|
|
23
29
|
#
|
24
30
|
# @param {DateTime} from_date
|
25
|
-
# @param {
|
31
|
+
# @param {Hash} options
|
26
32
|
#
|
27
|
-
def self.find_from_date from_date,
|
28
|
-
|
33
|
+
def self.find_from_date from_date, options=nil
|
34
|
+
return nil unless from_date.present?
|
35
|
+
|
36
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({from_date: from_date}, options)
|
37
|
+
GoTransverseTractApi.get_response_for(self, params)
|
29
38
|
end
|
30
39
|
|
31
40
|
#
|
32
41
|
# @param {DateTime} thru_date
|
33
|
-
# @param {
|
42
|
+
# @param {Hash} options
|
34
43
|
#
|
35
|
-
def self.find_thru_date thru_date,
|
36
|
-
|
44
|
+
def self.find_thru_date thru_date, options=nil
|
45
|
+
return nil unless thru_date.present?
|
46
|
+
|
47
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({thru_date: thru_date}, options)
|
48
|
+
GoTransverseTractApi.get_response_for(self, params)
|
37
49
|
end
|
38
50
|
|
39
51
|
#
|
40
52
|
# @param {Long} price_list_eid
|
41
|
-
# @param {
|
53
|
+
# @param {Hash} options
|
42
54
|
#
|
43
|
-
def self.find_by_price_list_eid price_list_eid,
|
44
|
-
|
55
|
+
def self.find_by_price_list_eid price_list_eid, options=nil
|
56
|
+
return nil unless price_list_eid.present?
|
57
|
+
|
58
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({price_list_eid: price_list_eid}, options)
|
59
|
+
GoTransverseTractApi.get_response_for(self, params)
|
45
60
|
end
|
46
61
|
|
47
62
|
#
|
48
63
|
# @param {Boolean} price_list_is_master
|
49
|
-
# @param {
|
64
|
+
# @param {Hash} options
|
50
65
|
#
|
51
|
-
def self.find_by_price_list_is_master price_list_is_master,
|
52
|
-
|
66
|
+
def self.find_by_price_list_is_master price_list_is_master, options=nil
|
67
|
+
return nil unless price_list_is_master.present?
|
68
|
+
|
69
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({price_list_is_master: price_list_is_master}, options)
|
70
|
+
GoTransverseTractApi.get_response_for(self, params)
|
53
71
|
end
|
54
72
|
|
55
73
|
#
|
56
74
|
# @param {String} currency_type
|
57
|
-
# @param {
|
75
|
+
# @param {Hash} options
|
58
76
|
#
|
59
|
-
def self.find_by_currency_type currency_type,
|
60
|
-
|
77
|
+
def self.find_by_currency_type currency_type, options=nil
|
78
|
+
return nil unless currency_type.present?
|
79
|
+
|
80
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({currency_type: currency_type}, options)
|
81
|
+
GoTransverseTractApi.get_response_for(self, params)
|
61
82
|
end
|
62
83
|
|
63
84
|
end
|
@@ -6,50 +6,68 @@ module GoTransverseTractApi
|
|
6
6
|
|
7
7
|
#
|
8
8
|
# @param {Long} eid
|
9
|
-
# @param {
|
9
|
+
# @param {Hash} options
|
10
10
|
#
|
11
|
-
def self.find_by_eid eid,
|
12
|
-
|
11
|
+
def self.find_by_eid eid, options=nil
|
12
|
+
return nil unless eid.present?
|
13
|
+
|
14
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
|
15
|
+
GoTransverseTractApi.get_response_for(self, params)
|
13
16
|
end
|
14
17
|
|
15
18
|
#
|
16
19
|
# @param {Long} product_eid
|
17
|
-
# @param {
|
20
|
+
# @param {Hash} options
|
18
21
|
#
|
19
|
-
def self.find_by_product_eid product_eid,
|
20
|
-
|
22
|
+
def self.find_by_product_eid product_eid, options=nil
|
23
|
+
return nil unless product_eid.present?
|
24
|
+
|
25
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_eid: product_eid}, options)
|
26
|
+
GoTransverseTractApi.get_response_for(self, params)
|
21
27
|
end
|
22
28
|
|
23
29
|
#
|
24
30
|
# @param {Long} product_price_eid
|
25
|
-
# @param {
|
31
|
+
# @param {Hash} options
|
26
32
|
#
|
27
|
-
def self.find_by_product_price_eid product_price_eid,
|
28
|
-
|
33
|
+
def self.find_by_product_price_eid product_price_eid, options=nil
|
34
|
+
return nil unless product_price_eid.present?
|
35
|
+
|
36
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_price_eid: product_price_eid}, options)
|
37
|
+
GoTransverseTractApi.get_response_for(self, params)
|
29
38
|
end
|
30
39
|
|
31
40
|
#
|
32
41
|
# @param {Long} price_list_eid
|
33
|
-
# @param {
|
42
|
+
# @param {Hash} options
|
34
43
|
#
|
35
|
-
def self.find_by_price_list_eid price_list_eid,
|
36
|
-
|
44
|
+
def self.find_by_price_list_eid price_list_eid, options=nil
|
45
|
+
return nil unless price_list_eid.present?
|
46
|
+
|
47
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({price_list_eid: price_list_eid}, options)
|
48
|
+
GoTransverseTractApi.get_response_for(self, params)
|
37
49
|
end
|
38
50
|
|
39
51
|
#
|
40
52
|
# @param {Boolean} price_list_is_master
|
41
|
-
# @param {
|
53
|
+
# @param {Hash} options
|
42
54
|
#
|
43
|
-
def self.find_by_price_list_is_master price_list_is_master,
|
44
|
-
|
55
|
+
def self.find_by_price_list_is_master price_list_is_master, options=nil
|
56
|
+
return nil unless price_list_is_master.present?
|
57
|
+
|
58
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({price_list_is_master: price_list_is_master}, options)
|
59
|
+
GoTransverseTractApi.get_response_for(self, params)
|
45
60
|
end
|
46
61
|
|
47
62
|
#
|
48
63
|
# @param {String} currency_type
|
49
|
-
# @param {
|
64
|
+
# @param {Hash} options
|
50
65
|
#
|
51
|
-
def self.find_by_currency_type currency_type,
|
52
|
-
|
66
|
+
def self.find_by_currency_type currency_type, options=nil
|
67
|
+
return nil unless currency_type.present?
|
68
|
+
|
69
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({currency_type: currency_type}, options)
|
70
|
+
GoTransverseTractApi.get_response_for(self, params)
|
53
71
|
end
|
54
72
|
|
55
73
|
end
|