gotransverse-tract-api 0.7.5 → 0.8.0
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/api_data.rb +21 -2
- data/lib/gotransverse-tract-api/billing_account/adjustment.rb +6 -6
- data/lib/gotransverse-tract-api/billing_account/adjustment_application.rb +2 -2
- data/lib/gotransverse-tract-api/billing_account/adjustment_reason.rb +5 -5
- data/lib/gotransverse-tract-api/billing_account/billing_account.rb +17 -17
- data/lib/gotransverse-tract-api/billing_account/counter.rb +8 -8
- data/lib/gotransverse-tract-api/billing_account/custom_field.rb +6 -6
- data/lib/gotransverse-tract-api/billing_account/custom_field_value.rb +12 -12
- data/lib/gotransverse-tract-api/billing_account/invoice.rb +9 -9
- data/lib/gotransverse-tract-api/billing_account/invoice_item.rb +3 -3
- data/lib/gotransverse-tract-api/billing_account/invoice_item_charge.rb +1 -1
- data/lib/gotransverse-tract-api/billing_account/payment.rb +7 -7
- data/lib/gotransverse-tract-api/billing_account/reason.rb +4 -4
- data/lib/gotransverse-tract-api/billing_account/recurring_payment.rb +4 -4
- data/lib/gotransverse-tract-api/billing_account/refund.rb +5 -5
- data/lib/gotransverse-tract-api/billing_account/scheduled_charge.rb +5 -5
- data/lib/gotransverse-tract-api/billing_account/standard_invoice_adjustment_application.rb +2 -2
- 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 +6 -6
- data/lib/gotransverse-tract-api/general_ledger/gl_accounting_transaction.rb +7 -7
- data/lib/gotransverse-tract-api/general_ledger/gl_aggregate_batch.rb +6 -6
- data/lib/gotransverse-tract-api/general_ledger/gl_aggregate_entry.rb +5 -5
- data/lib/gotransverse-tract-api/general_ledger/gl_transaction_batch.rb +5 -5
- data/lib/gotransverse-tract-api/order/adjustment_category.rb +4 -4
- data/lib/gotransverse-tract-api/order/agreement.rb +9 -9
- data/lib/gotransverse-tract-api/order/bill_cycle.rb +6 -6
- data/lib/gotransverse-tract-api/order/billing_account_category.rb +4 -4
- data/lib/gotransverse-tract-api/order/order_item.rb +8 -8
- data/lib/gotransverse-tract-api/order/order_item_charge.rb +7 -7
- data/lib/gotransverse-tract-api/order/organization.rb +4 -4
- data/lib/gotransverse-tract-api/order/party_category.rb +5 -5
- data/lib/gotransverse-tract-api/order/payment_term.rb +5 -5
- data/lib/gotransverse-tract-api/order/people.rb +5 -5
- data/lib/gotransverse-tract-api/order/product_relation.rb +3 -3
- data/lib/gotransverse-tract-api/order/renewal_order.rb +10 -10
- data/lib/gotransverse-tract-api/order/sales_order.rb +11 -11
- data/lib/gotransverse-tract-api/product/action.rb +2 -2
- data/lib/gotransverse-tract-api/product/billing_account_segment_field.rb +5 -5
- data/lib/gotransverse-tract-api/product/discount.rb +5 -5
- data/lib/gotransverse-tract-api/product/discount_category.rb +4 -4
- data/lib/gotransverse-tract-api/product/discount_code.rb +10 -10
- data/lib/gotransverse-tract-api/product/discount_identifier.rb +4 -4
- data/lib/gotransverse-tract-api/product/one_time_product_price.rb +1 -1
- 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 +16 -16
- data/lib/gotransverse-tract-api/product/product_price.rb +7 -7
- data/lib/gotransverse-tract-api/product/product_price_range.rb +6 -6
- data/lib/gotransverse-tract-api/product/product_tag.rb +4 -4
- data/lib/gotransverse-tract-api/product/recurring_product_price.rb +7 -7
- data/lib/gotransverse-tract-api/service/service.rb +10 -10
- data/lib/gotransverse-tract-api/service/service_device_inventory_item.rb +4 -4
- data/lib/gotransverse-tract-api/service/service_period.rb +5 -5
- data/lib/gotransverse-tract-api/service/service_price.rb +5 -5
- data/lib/gotransverse-tract-api/service/service_price_range.rb +2 -2
- data/lib/gotransverse-tract-api/service/service_resource.rb +7 -7
- data/lib/gotransverse-tract-api/service/service_resource_category.rb +4 -4
- data/lib/gotransverse-tract-api/usage/global_usage_rule.rb +4 -4
- data/lib/gotransverse-tract-api/usage/order_item_usage_rule.rb +3 -3
- data/lib/gotransverse-tract-api/usage/product_usage_rule.rb +4 -4
- data/lib/gotransverse-tract-api/usage/rate_table.rb +2 -2
- data/lib/gotransverse-tract-api/usage/service_usage_rule.rb +3 -3
- data/lib/gotransverse-tract-api/usage/usage_event.rb +8 -8
- data/lib/gotransverse-tract-api/usage/usage_lookup_table.rb +3 -3
- data/lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb +4 -4
- data/lib/gotransverse-tract-api/usage/usage_price_category.rb +3 -3
- data/lib/gotransverse-tract-api/usage/usage_rule.rb +2 -2
- data/lib/gotransverse-tract-api/version.rb +1 -1
- data/spec/gotransverse-tract-api/billing_account/billing_account_spec.rb +51 -5
- data/spec/gotransverse-tract-api/billing_account/invoice_spec.rb +27 -1
- metadata +2 -2
@@ -10,7 +10,7 @@ module GoTransverseTractApi
|
|
10
10
|
# @param {Long} eid
|
11
11
|
# @param {Hash} options
|
12
12
|
#
|
13
|
-
def find_by_eid eid, options=
|
13
|
+
def find_by_eid eid, options={}
|
14
14
|
return nil unless eid.present?
|
15
15
|
|
16
16
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
|
@@ -21,7 +21,7 @@ module GoTransverseTractApi
|
|
21
21
|
# @param {Long} billing_account_segment_eid
|
22
22
|
# @param {Hash} options
|
23
23
|
#
|
24
|
-
def find_by_billing_account_segment_eid billing_account_segment_eid, options=
|
24
|
+
def find_by_billing_account_segment_eid billing_account_segment_eid, options={}
|
25
25
|
return nil unless billing_account_segment_eid.present?
|
26
26
|
|
27
27
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({billing_account_segment_eid: billing_account_segment_eid}, options)
|
@@ -32,7 +32,7 @@ module GoTransverseTractApi
|
|
32
32
|
# @param {String} billing_account_segment_name
|
33
33
|
# @param {Hash} options
|
34
34
|
#
|
35
|
-
def find_by_billing_account_segment_name billing_account_segment_name, options=
|
35
|
+
def find_by_billing_account_segment_name billing_account_segment_name, options={}
|
36
36
|
return nil unless billing_account_segment_name.present?
|
37
37
|
|
38
38
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({billing_account_segment_name: billing_account_segment_name}, options)
|
@@ -43,7 +43,7 @@ module GoTransverseTractApi
|
|
43
43
|
# @param {String} type
|
44
44
|
# @param {Hash} options
|
45
45
|
#
|
46
|
-
def find_by_type type, options=
|
46
|
+
def find_by_type type, options={}
|
47
47
|
return nil unless type.present?
|
48
48
|
|
49
49
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({type: type}, options)
|
@@ -54,7 +54,7 @@ module GoTransverseTractApi
|
|
54
54
|
# @param {Boolean} required
|
55
55
|
# @param {Hash} options
|
56
56
|
#
|
57
|
-
def find_by_required required, options=
|
57
|
+
def find_by_required required, options={}
|
58
58
|
return nil unless required.present?
|
59
59
|
|
60
60
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({required: required}, options)
|
@@ -10,7 +10,7 @@ module GoTransverseTractApi
|
|
10
10
|
# @param {String} type
|
11
11
|
# @param {Hash} options
|
12
12
|
#
|
13
|
-
def find_by_type type, options=
|
13
|
+
def find_by_type type, options={}
|
14
14
|
return nil unless type.present?
|
15
15
|
|
16
16
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({type: type}, options)
|
@@ -21,7 +21,7 @@ module GoTransverseTractApi
|
|
21
21
|
# @param {Long} discount_category_eid
|
22
22
|
# @param {Hash} options
|
23
23
|
#
|
24
|
-
def find_by_discount_category_eid discount_category_eid, options=
|
24
|
+
def find_by_discount_category_eid discount_category_eid, options={}
|
25
25
|
return nil unless discount_category_eid.present?
|
26
26
|
|
27
27
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({discount_category_eid: discount_category_eid}, options)
|
@@ -32,7 +32,7 @@ module GoTransverseTractApi
|
|
32
32
|
# @param {Boolean} one_time
|
33
33
|
# @param {Hash} options
|
34
34
|
#
|
35
|
-
def find_by_one_time one_time, options=
|
35
|
+
def find_by_one_time one_time, options={}
|
36
36
|
return nil unless one_time.present?
|
37
37
|
|
38
38
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({one_time: one_time}, options)
|
@@ -43,7 +43,7 @@ module GoTransverseTractApi
|
|
43
43
|
# @param {Boolean} recurring
|
44
44
|
# @param {Hash} options
|
45
45
|
#
|
46
|
-
def find_by_recurring recurring, options=
|
46
|
+
def find_by_recurring recurring, options={}
|
47
47
|
return nil unless recurring.present?
|
48
48
|
|
49
49
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({recurring: recurring}, options)
|
@@ -54,7 +54,7 @@ module GoTransverseTractApi
|
|
54
54
|
# @param {String} currency_type
|
55
55
|
# @param {Hash} options
|
56
56
|
#
|
57
|
-
def find_by_currency_type currency_type, options=
|
57
|
+
def find_by_currency_type currency_type, options={}
|
58
58
|
return nil unless currency_type.present?
|
59
59
|
|
60
60
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({currency_type: currency_type}, options)
|
@@ -7,7 +7,7 @@ module GoTransverseTractApi
|
|
7
7
|
#
|
8
8
|
# @param {Hash} options
|
9
9
|
#
|
10
|
-
def self.find_all options=
|
10
|
+
def self.find_all options={}
|
11
11
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({}, options)
|
12
12
|
GoTransverseTractApi.get_response_for(self, params)
|
13
13
|
end
|
@@ -16,7 +16,7 @@ module GoTransverseTractApi
|
|
16
16
|
# @param {Long} eid
|
17
17
|
# @param {Hash} options
|
18
18
|
#
|
19
|
-
def self.find_by_eid eid, options=
|
19
|
+
def self.find_by_eid eid, options={}
|
20
20
|
return nil unless eid.present?
|
21
21
|
|
22
22
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
|
@@ -27,7 +27,7 @@ module GoTransverseTractApi
|
|
27
27
|
# @param {String} name
|
28
28
|
# @param {Hash} options
|
29
29
|
#
|
30
|
-
def self.find_by_name name, options=
|
30
|
+
def self.find_by_name name, options={}
|
31
31
|
return nil unless name.present?
|
32
32
|
|
33
33
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({name: name}, options)
|
@@ -38,7 +38,7 @@ module GoTransverseTractApi
|
|
38
38
|
# @param {String} status
|
39
39
|
# @param {Hash} options
|
40
40
|
#
|
41
|
-
def self.find_by_status status, options=
|
41
|
+
def self.find_by_status status, options={}
|
42
42
|
return nil unless status.present?
|
43
43
|
|
44
44
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({status: status}, options)
|
@@ -8,7 +8,7 @@ module GoTransverseTractApi
|
|
8
8
|
# @param {Long} discount_charge_category_eid
|
9
9
|
# @param {Hash} options
|
10
10
|
#
|
11
|
-
def self.find_by_discount_charge_category_eid discount_charge_category_eid, options=
|
11
|
+
def self.find_by_discount_charge_category_eid discount_charge_category_eid, options={}
|
12
12
|
return nil unless discount_charge_category_eid.present?
|
13
13
|
|
14
14
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({discount_charge_category_eid: discount_charge_category_eid}, options)
|
@@ -19,7 +19,7 @@ module GoTransverseTractApi
|
|
19
19
|
# @param {DateTime} valid_from
|
20
20
|
# @param {Hash} options
|
21
21
|
#
|
22
|
-
def self.find_by_valid_from valid_from, options=
|
22
|
+
def self.find_by_valid_from valid_from, options={}
|
23
23
|
return nil unless valid_from.present?
|
24
24
|
|
25
25
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({valid_from: valid_from}, options)
|
@@ -30,7 +30,7 @@ module GoTransverseTractApi
|
|
30
30
|
# @param {DateTime} valid_to
|
31
31
|
# @param {Hash} options
|
32
32
|
#
|
33
|
-
def self.find_by_valid_to valid_to, options=
|
33
|
+
def self.find_by_valid_to valid_to, options={}
|
34
34
|
return nil unless valid_to.present?
|
35
35
|
|
36
36
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({valid_to: valid_to}, options)
|
@@ -41,7 +41,7 @@ module GoTransverseTractApi
|
|
41
41
|
# @param {Long} discount_eid
|
42
42
|
# @param {Hash} options
|
43
43
|
#
|
44
|
-
def self.find_by_discount_eid discount_eid, options=
|
44
|
+
def self.find_by_discount_eid discount_eid, options={}
|
45
45
|
return nil unless discount_eid.present?
|
46
46
|
|
47
47
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({discount_eid: discount_eid}, options)
|
@@ -52,7 +52,7 @@ module GoTransverseTractApi
|
|
52
52
|
# @param {Long} discount_identifier
|
53
53
|
# @param {Hash} options
|
54
54
|
#
|
55
|
-
def self.find_by_discount_identifier discount_identifier, options=
|
55
|
+
def self.find_by_discount_identifier discount_identifier, options={}
|
56
56
|
return nil unless discount_identifier.present?
|
57
57
|
|
58
58
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({discount_identifier: discount_identifier}, options)
|
@@ -63,7 +63,7 @@ module GoTransverseTractApi
|
|
63
63
|
# @param {Long} discount_identifier_eid
|
64
64
|
# @param {Hash} options
|
65
65
|
#
|
66
|
-
def self.find_by_discount_identifier_eid discount_identifier_eid, options=
|
66
|
+
def self.find_by_discount_identifier_eid discount_identifier_eid, options={}
|
67
67
|
return nil unless discount_identifier_eid.present?
|
68
68
|
|
69
69
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({discount_identifier_eid: discount_identifier_eid}, options)
|
@@ -74,7 +74,7 @@ module GoTransverseTractApi
|
|
74
74
|
# @param {Long} price_list_eid
|
75
75
|
# @param {Hash} options
|
76
76
|
#
|
77
|
-
def self.find_by_price_list_eid price_list_eid, options=
|
77
|
+
def self.find_by_price_list_eid price_list_eid, options={}
|
78
78
|
return nil unless price_list_eid.present?
|
79
79
|
|
80
80
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({price_list_eid: price_list_eid}, options)
|
@@ -85,7 +85,7 @@ module GoTransverseTractApi
|
|
85
85
|
# @param {String} price_list_is_master
|
86
86
|
# @param {Hash} options
|
87
87
|
#
|
88
|
-
def self.find_by_price_list_is_master price_list_is_master, options=
|
88
|
+
def self.find_by_price_list_is_master price_list_is_master, options={}
|
89
89
|
return nil unless price_list_is_master.present?
|
90
90
|
|
91
91
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({price_list_is_master: price_list_is_master}, options)
|
@@ -96,7 +96,7 @@ module GoTransverseTractApi
|
|
96
96
|
# @param {String} currency_type
|
97
97
|
# @param {Hash} options
|
98
98
|
#
|
99
|
-
def self.find_by_currency_type currency_type, options=
|
99
|
+
def self.find_by_currency_type currency_type, options={}
|
100
100
|
return nil unless currency_type.present?
|
101
101
|
|
102
102
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({currency_type: currency_type}, options)
|
@@ -107,7 +107,7 @@ module GoTransverseTractApi
|
|
107
107
|
# @param {Long} product_eid
|
108
108
|
# @param {Hash} options
|
109
109
|
#
|
110
|
-
def self.find_by_product_eid product_eid, options=
|
110
|
+
def self.find_by_product_eid product_eid, options={}
|
111
111
|
return nil unless product_eid.present?
|
112
112
|
|
113
113
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_eid: product_eid}, options)
|
@@ -9,7 +9,7 @@ module GoTransverseTractApi
|
|
9
9
|
#
|
10
10
|
# @param {Hash} options
|
11
11
|
#
|
12
|
-
def find_all options=
|
12
|
+
def find_all options={}
|
13
13
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({}, options)
|
14
14
|
GoTransverseTractApi.get_response_for(self, params)
|
15
15
|
end
|
@@ -18,7 +18,7 @@ module GoTransverseTractApi
|
|
18
18
|
# @param {Long} eid
|
19
19
|
# @param {Hash} options
|
20
20
|
#
|
21
|
-
def find_by_eid eid, options=
|
21
|
+
def find_by_eid eid, options={}
|
22
22
|
return nil unless eid.present?
|
23
23
|
|
24
24
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
|
@@ -29,7 +29,7 @@ module GoTransverseTractApi
|
|
29
29
|
# @param {Long} identifier
|
30
30
|
# @param {Hash} options
|
31
31
|
#
|
32
|
-
def find_by_identifier identifier, options=
|
32
|
+
def find_by_identifier identifier, options={}
|
33
33
|
return nil unless identifier.present?
|
34
34
|
|
35
35
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({identifier: identifier}, options)
|
@@ -40,7 +40,7 @@ module GoTransverseTractApi
|
|
40
40
|
# @param {Long} order_item_eid
|
41
41
|
# @param {Hash} options
|
42
42
|
#
|
43
|
-
def find_by_order_item_order_item_eid order_item_order_item_eid, options=
|
43
|
+
def find_by_order_item_order_item_eid order_item_order_item_eid, options={}
|
44
44
|
return nil unless order_item_eid.present?
|
45
45
|
|
46
46
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({order_item_eid: order_item_eid}, options)
|
@@ -10,7 +10,7 @@ module GoTransverseTractApi
|
|
10
10
|
# @param {Boolean} charge_during_renewal
|
11
11
|
# @param {Hash} options
|
12
12
|
#
|
13
|
-
def find_by_charge_during_renewal charge_during_renewal, options=
|
13
|
+
def find_by_charge_during_renewal charge_during_renewal, options={}
|
14
14
|
return nil unless charge_during_renewal.present?
|
15
15
|
|
16
16
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({charge_during_renewal: charge_during_renewal}, options)
|
@@ -8,7 +8,7 @@ module GoTransverseTractApi
|
|
8
8
|
# @param {Long} eid
|
9
9
|
# @param {Hash} options
|
10
10
|
#
|
11
|
-
def self.find_by_eid eid, options=
|
11
|
+
def self.find_by_eid eid, options={}
|
12
12
|
return nil unless eid.present?
|
13
13
|
|
14
14
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
|
@@ -19,7 +19,7 @@ module GoTransverseTractApi
|
|
19
19
|
# @param {Long} action_eid
|
20
20
|
# @param {Hash} options
|
21
21
|
#
|
22
|
-
def self.find_by_action_eid action_eid, options=
|
22
|
+
def self.find_by_action_eid action_eid, options={}
|
23
23
|
return nil unless action_eid.present?
|
24
24
|
|
25
25
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({action_eid: action_eid}, options)
|
@@ -8,7 +8,7 @@ module GoTransverseTractApi
|
|
8
8
|
# @param {Long} eid
|
9
9
|
# @param {Hash} options
|
10
10
|
#
|
11
|
-
def self.find_by_eid eid, options=
|
11
|
+
def self.find_by_eid eid, options={}
|
12
12
|
return nil unless eid.present?
|
13
13
|
|
14
14
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
|
@@ -19,7 +19,7 @@ module GoTransverseTractApi
|
|
19
19
|
# @param {Long} product_order_item_eid
|
20
20
|
# @param {Hash} options
|
21
21
|
#
|
22
|
-
def self.find_by_product_order_item_eid product_order_item_eid, options=
|
22
|
+
def self.find_by_product_order_item_eid product_order_item_eid, options={}
|
23
23
|
return nil unless product_order_item_eid.present?
|
24
24
|
|
25
25
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_order_item_eid: product_order_item_eid}, options)
|
@@ -7,7 +7,7 @@ module GoTransverseTractApi
|
|
7
7
|
#
|
8
8
|
# @param {Hash} options
|
9
9
|
#
|
10
|
-
def self.find_all options=
|
10
|
+
def self.find_all options={}
|
11
11
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({}, options)
|
12
12
|
GoTransverseTractApi.get_response_for(self, params)
|
13
13
|
end
|
@@ -16,7 +16,7 @@ module GoTransverseTractApi
|
|
16
16
|
# @param {Long} eid
|
17
17
|
# @param {Hash} options
|
18
18
|
#
|
19
|
-
def self.find_by_eid eid, options=
|
19
|
+
def self.find_by_eid eid, options={}
|
20
20
|
return nil unless eid.present?
|
21
21
|
|
22
22
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
|
@@ -27,7 +27,7 @@ module GoTransverseTractApi
|
|
27
27
|
# @param {String} name
|
28
28
|
# @param {Hash} options
|
29
29
|
#
|
30
|
-
def self.find_by_name name, option=
|
30
|
+
def self.find_by_name name, option={}
|
31
31
|
return nil unless name.present?
|
32
32
|
|
33
33
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({name: name}, options)
|
@@ -9,7 +9,7 @@ module GoTransverseTractApi
|
|
9
9
|
#
|
10
10
|
# @param {Hash} options
|
11
11
|
#
|
12
|
-
def find_all options=
|
12
|
+
def find_all options={}
|
13
13
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({}, options)
|
14
14
|
GoTransverseTractApi.get_response_for(self, params)
|
15
15
|
end
|
@@ -18,7 +18,7 @@ module GoTransverseTractApi
|
|
18
18
|
# @param {Long} eid
|
19
19
|
# @param {Hash} options
|
20
20
|
#
|
21
|
-
def find_by_eid eid, options=
|
21
|
+
def find_by_eid eid, options={}
|
22
22
|
return nil unless eid.present?
|
23
23
|
|
24
24
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
|
@@ -29,7 +29,7 @@ module GoTransverseTractApi
|
|
29
29
|
# @param {String} name
|
30
30
|
# @param {Hash} options
|
31
31
|
#
|
32
|
-
def find_by_name name, options=
|
32
|
+
def find_by_name name, options={}
|
33
33
|
return nil unless name.present?
|
34
34
|
|
35
35
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({name: name}, options)
|
@@ -40,7 +40,7 @@ module GoTransverseTractApi
|
|
40
40
|
# @param {String} internal_name
|
41
41
|
# @param {Hash} options
|
42
42
|
#
|
43
|
-
def find_by_internal_name internal_name, options=
|
43
|
+
def find_by_internal_name internal_name, options={}
|
44
44
|
return nil unless internal_name.present?
|
45
45
|
|
46
46
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({internal_name: internal_name}, options)
|
@@ -51,7 +51,7 @@ module GoTransverseTractApi
|
|
51
51
|
# @param {String} external_product_number
|
52
52
|
# @param {Hash} options
|
53
53
|
#
|
54
|
-
def find_by_external_product_number external_product_number, options=
|
54
|
+
def find_by_external_product_number external_product_number, options={}
|
55
55
|
return nil unless external_product_number.present?
|
56
56
|
|
57
57
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({external_product_number: external_product_number}, options)
|
@@ -62,7 +62,7 @@ module GoTransverseTractApi
|
|
62
62
|
# @param {String} sku
|
63
63
|
# @param {Hash} options
|
64
64
|
#
|
65
|
-
def find_by_sku sku, options=
|
65
|
+
def find_by_sku sku, options={}
|
66
66
|
return nil unless sku.present?
|
67
67
|
|
68
68
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({sku: sku}, options)
|
@@ -73,7 +73,7 @@ module GoTransverseTractApi
|
|
73
73
|
# @param {String} product_type_code
|
74
74
|
# @param {Hash} options
|
75
75
|
#
|
76
|
-
def find_by_product_type_code product_type_code, options=
|
76
|
+
def find_by_product_type_code product_type_code, options={}
|
77
77
|
return nil unless product_type_code.present?
|
78
78
|
|
79
79
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_type_code: product_type_code}, options)
|
@@ -84,7 +84,7 @@ module GoTransverseTractApi
|
|
84
84
|
# @param {String} product_state
|
85
85
|
# @param {Hash} options
|
86
86
|
#
|
87
|
-
def find_by_product_state product_state, options=
|
87
|
+
def find_by_product_state product_state, options={}
|
88
88
|
return nil unless product_state.present?
|
89
89
|
|
90
90
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_state: product_state}, options)
|
@@ -95,7 +95,7 @@ module GoTransverseTractApi
|
|
95
95
|
# @param {Long} service_resource_category_eid
|
96
96
|
# @param {Hash} options
|
97
97
|
#
|
98
|
-
def find_by_service_resource_category_eid service_resource_category_eid, options=
|
98
|
+
def find_by_service_resource_category_eid service_resource_category_eid, options={}
|
99
99
|
return nil unless service_resource_category_eid.present?
|
100
100
|
|
101
101
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({service_resource_category_eid: service_resource_category_eid}, options)
|
@@ -106,7 +106,7 @@ module GoTransverseTractApi
|
|
106
106
|
# @param {String} service_resource_category_name
|
107
107
|
# @param {Hash} options
|
108
108
|
#
|
109
|
-
def find_by_service_resource_category_name service_resource_category_name, options=
|
109
|
+
def find_by_service_resource_category_name service_resource_category_name, options={}
|
110
110
|
return nil unless service_resource_category_name.present?
|
111
111
|
|
112
112
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({service_resource_category_name: service_resource_category_name}, options)
|
@@ -117,7 +117,7 @@ module GoTransverseTractApi
|
|
117
117
|
# @param {Long} product_category_eid
|
118
118
|
# @param {Hash} options
|
119
119
|
#
|
120
|
-
def find_by_product_category_eid product_category_eid, options=
|
120
|
+
def find_by_product_category_eid product_category_eid, options={}
|
121
121
|
return nil unless product_category_eid.present?
|
122
122
|
|
123
123
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_category_eid: product_category_eid}, options)
|
@@ -128,7 +128,7 @@ module GoTransverseTractApi
|
|
128
128
|
# @param {String} product_category_name
|
129
129
|
# @param {Hash} options
|
130
130
|
#
|
131
|
-
def find_by_product_category_name product_category_name, options=
|
131
|
+
def find_by_product_category_name product_category_name, options={}
|
132
132
|
return nil unless product_category_name.present?
|
133
133
|
|
134
134
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_category_name: product_category_name}, options)
|
@@ -139,7 +139,7 @@ module GoTransverseTractApi
|
|
139
139
|
# @param {Long} price_list_eid
|
140
140
|
# @param {Hash} options
|
141
141
|
#
|
142
|
-
def find_by_price_list_eid price_list_eid, options=
|
142
|
+
def find_by_price_list_eid price_list_eid, options={}
|
143
143
|
return nil unless price_list_eid.present?
|
144
144
|
|
145
145
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({price_list_eid: price_list_eid}, options)
|
@@ -150,7 +150,7 @@ module GoTransverseTractApi
|
|
150
150
|
# @param {Boolean} price_list_is_master
|
151
151
|
# @param {Hash} options
|
152
152
|
#
|
153
|
-
def find_by_price_list_is_master price_list_is_master, options=
|
153
|
+
def find_by_price_list_is_master price_list_is_master, options={}
|
154
154
|
return nil unless price_list_is_master.present?
|
155
155
|
|
156
156
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({price_list_is_master: price_list_is_master}, options)
|
@@ -161,7 +161,7 @@ module GoTransverseTractApi
|
|
161
161
|
# @param {String} currency_type
|
162
162
|
# @param {Hash} options
|
163
163
|
#
|
164
|
-
def find_by_currency_type currency_type, options=
|
164
|
+
def find_by_currency_type currency_type, options={}
|
165
165
|
return nil unless currency_type.present?
|
166
166
|
|
167
167
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({currency_type: currency_type}, options)
|
@@ -172,7 +172,7 @@ module GoTransverseTractApi
|
|
172
172
|
# @param {Long} product_tag_eid
|
173
173
|
# @param {Hash} options
|
174
174
|
#
|
175
|
-
def find_by_product_tag_eid product_tag_eid, options=
|
175
|
+
def find_by_product_tag_eid product_tag_eid, options={}
|
176
176
|
return nil unless product_tag_eid.present?
|
177
177
|
|
178
178
|
params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_tag_eid: product_tag_eid}, options)
|