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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b5c6c10d87f68b4e989cf51a01ed71f86b9e46a
|
4
|
+
data.tar.gz: 2a40c0379d1ce0be0a43c3c4535be66449f561d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6eef510765a90d1b45e9b18b5a30a0a20d2d5a43593efd2e35fd6e6d9729bfd2e96ad4e3626cc5e8aef9718bb16bfd272cb102b28b919aa92bd9a509a7f62e75
|
7
|
+
data.tar.gz: 931ad46776a4a726bf0ce96c4fd6a364f4f66854ffd6a368783975c5fe50113de254037a49910b2d1afea55d7825b54c9c6d4dd2846453e32ffdbaae38651117
|
@@ -72,7 +72,6 @@ require "gotransverse-tract-api/product/product_price"
|
|
72
72
|
require "gotransverse-tract-api/product/one_time_product_price"
|
73
73
|
require "gotransverse-tract-api/product/product_tag"
|
74
74
|
require "gotransverse-tract-api/product/recurring_product_price"
|
75
|
-
require "gotransverse-tract-api/product/usage_rule"
|
76
75
|
|
77
76
|
require "gotransverse-tract-api/service/service"
|
78
77
|
require "gotransverse-tract-api/service/service_device_inventory_item"
|
@@ -227,6 +227,12 @@ module GoTransverseTractApi
|
|
227
227
|
ba_details.delete_if{|k,v| v.nil?}
|
228
228
|
end
|
229
229
|
|
230
|
+
def get_query_params(params, options={})
|
231
|
+
params.merge!(options) if(options.present?)
|
232
|
+
|
233
|
+
params
|
234
|
+
end
|
235
|
+
|
230
236
|
def get_addresses(entity)
|
231
237
|
addresses = {
|
232
238
|
attributes: {}
|
@@ -8,50 +8,68 @@ module GoTransverseTractApi
|
|
8
8
|
|
9
9
|
#
|
10
10
|
# @param {Long} eid
|
11
|
-
# @param {
|
11
|
+
# @param {Hash} options
|
12
12
|
#
|
13
|
-
def find_by_eid eid,
|
14
|
-
|
13
|
+
def find_by_eid eid, options=nil
|
14
|
+
return nil unless eid.present?
|
15
|
+
|
16
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
|
17
|
+
GoTransverseTractApi.get_response_for(self, params)
|
15
18
|
end
|
16
19
|
|
17
20
|
#
|
18
|
-
# @param {Long}
|
19
|
-
# @param {
|
21
|
+
# @param {Long} billing_account_eid
|
22
|
+
# @param {Hash} options
|
20
23
|
#
|
21
|
-
def
|
22
|
-
|
24
|
+
def find_by_billing_account_eid billing_account_eid, options=nil
|
25
|
+
return nil unless billing_account_eid.present?
|
26
|
+
|
27
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({billing_account_eid: billing_account_eid}, options)
|
28
|
+
GoTransverseTractApi.get_response_for(self, params)
|
23
29
|
end
|
24
30
|
|
25
31
|
#
|
26
|
-
# @param {Long}
|
27
|
-
# @param {
|
32
|
+
# @param {Long} account_num
|
33
|
+
# @param {Hash} options
|
28
34
|
#
|
29
|
-
def
|
30
|
-
|
35
|
+
def find_by_account_num account_num, options=nil
|
36
|
+
return nil unless account_num.present?
|
37
|
+
|
38
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({account_num: account_num}, options)
|
39
|
+
GoTransverseTractApi.get_response_for(self, params)
|
31
40
|
end
|
32
41
|
|
33
42
|
#
|
34
43
|
# @param {Long} invoice_num
|
35
|
-
# @param {
|
44
|
+
# @param {Hash} options
|
36
45
|
#
|
37
|
-
def find_by_invoice_num invoice_num,
|
38
|
-
|
46
|
+
def find_by_invoice_num invoice_num, options=nil
|
47
|
+
return nil unless invoice_num.present?
|
48
|
+
|
49
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({invoice_num: invoice_num}, options)
|
50
|
+
GoTransverseTractApi.get_response_for(self, params)
|
39
51
|
end
|
40
52
|
|
41
53
|
#
|
42
54
|
# @param {Long} invoice_eid
|
43
|
-
# @param {
|
55
|
+
# @param {Hash} options
|
44
56
|
#
|
45
|
-
def find_by_invoice_eid invoice_eid,
|
46
|
-
|
57
|
+
def find_by_invoice_eid invoice_eid, options=nil
|
58
|
+
return nil unless invoice_eid.present?
|
59
|
+
|
60
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({invoice_eid: invoice_eid}, options)
|
61
|
+
GoTransverseTractApi.get_response_for(self, params)
|
47
62
|
end
|
48
63
|
|
49
64
|
#
|
50
65
|
# @param {String} status
|
51
|
-
# @param {
|
66
|
+
# @param {Hash} options
|
52
67
|
#
|
53
|
-
def find_by_status status,
|
54
|
-
|
68
|
+
def find_by_status status, options=nil
|
69
|
+
return nil unless status.present?
|
70
|
+
|
71
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({status: status}, options)
|
72
|
+
GoTransverseTractApi.get_response_for(self, params)
|
55
73
|
end
|
56
74
|
|
57
75
|
#
|
@@ -8,18 +8,24 @@ module GoTransverseTractApi
|
|
8
8
|
|
9
9
|
#
|
10
10
|
# @param {Long} eid
|
11
|
-
# @param {
|
11
|
+
# @param {Hash} options
|
12
12
|
#
|
13
|
-
def find_by_eid eid,
|
14
|
-
|
13
|
+
def find_by_eid eid, options=nil
|
14
|
+
return nil unless eid.present?
|
15
|
+
|
16
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
|
17
|
+
GoTransverseTractApi.get_response_for(self, params)
|
15
18
|
end
|
16
19
|
|
17
20
|
#
|
18
21
|
# @param {Long} adjustment_eid
|
19
|
-
# @param {
|
22
|
+
# @param {Hash} options
|
20
23
|
#
|
21
|
-
def find_by_adjustment_eid adjustment_eid,
|
22
|
-
|
24
|
+
def find_by_adjustment_eid adjustment_eid, options=nil
|
25
|
+
return nil unless adjustment_eid.present?
|
26
|
+
|
27
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({adjustment_eid: adjustment_eid}, options)
|
28
|
+
GoTransverseTractApi.get_response_for(self, params)
|
23
29
|
end
|
24
30
|
|
25
31
|
end
|
@@ -6,40 +6,56 @@ 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} status
|
31
|
-
# @param {
|
41
|
+
# @param {Hash} options
|
32
42
|
#
|
33
|
-
def find_by_status status,
|
34
|
-
|
43
|
+
def find_by_status status, options=nil
|
44
|
+
return nil unless status.present?
|
45
|
+
|
46
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({status: status}, options)
|
47
|
+
GoTransverseTractApi.get_response_for(self, params)
|
35
48
|
end
|
36
49
|
|
37
50
|
#
|
38
51
|
# @param {Boolean} credit_only
|
39
|
-
# @param {
|
52
|
+
# @param {Hash} options
|
40
53
|
#
|
41
|
-
def find_by_credit_only credit_only,
|
42
|
-
|
54
|
+
def find_by_credit_only credit_only, options=nil
|
55
|
+
return nil unless credit_only.present?
|
56
|
+
|
57
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({credit_only: credit_only}, options)
|
58
|
+
GoTransverseTractApi.get_response_for(self, params)
|
43
59
|
end
|
44
60
|
|
45
61
|
end
|
@@ -5,136 +5,189 @@ module GoTransverseTractApi
|
|
5
5
|
class BillingAccount
|
6
6
|
|
7
7
|
class << self
|
8
|
-
|
9
|
-
|
8
|
+
|
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)
|
10
15
|
end
|
11
16
|
|
12
17
|
#
|
13
18
|
# @param {Long} eid
|
14
|
-
# @param {
|
19
|
+
# @param {Hash} options
|
15
20
|
#
|
16
|
-
def find_by_eid eid,
|
17
|
-
|
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)
|
18
26
|
end
|
19
27
|
|
20
28
|
#
|
21
29
|
# @param {Long} account_num
|
22
|
-
# @param {
|
30
|
+
# @param {Hash} options
|
23
31
|
#
|
24
|
-
def find_by_account_num account_num,
|
25
|
-
|
32
|
+
def find_by_account_num account_num, options=nil
|
33
|
+
return nil unless account_num.present?
|
34
|
+
|
35
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({account_num: account_num}, options)
|
36
|
+
GoTransverseTractApi.get_response_for(self, params)
|
26
37
|
end
|
27
38
|
|
28
39
|
#
|
29
40
|
# @param {Long} external_account_num
|
30
|
-
# @param {
|
41
|
+
# @param {Hash} options
|
31
42
|
#
|
32
|
-
def find_by_external_account_num external_account_num,
|
33
|
-
|
43
|
+
def find_by_external_account_num external_account_num, options=nil
|
44
|
+
return nil unless external_account_num.present?
|
45
|
+
|
46
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({external_account_num: external_account_num}, options)
|
47
|
+
GoTransverseTractApi.get_response_for(self, params)
|
34
48
|
end
|
35
49
|
|
36
50
|
#
|
37
51
|
# @param {Long} party_eid
|
38
|
-
# @param {
|
52
|
+
# @param {Hash} options
|
39
53
|
#
|
40
|
-
def find_by_party_eid party_eid,
|
41
|
-
|
54
|
+
def find_by_party_eid party_eid, options=nil
|
55
|
+
return nil unless party_eid.present?
|
56
|
+
|
57
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({party_eid: party_eid}, options)
|
58
|
+
GoTransverseTractApi.get_response_for(self, params)
|
42
59
|
end
|
43
60
|
|
44
61
|
#
|
45
62
|
# @param {String} status
|
46
|
-
# @param {
|
63
|
+
# @param {Hash} options
|
47
64
|
#
|
48
|
-
def find_by_status status,
|
49
|
-
|
65
|
+
def find_by_status status, options=nil
|
66
|
+
return nil unless status.present?
|
67
|
+
|
68
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({status: status}, options)
|
69
|
+
GoTransverseTractApi.get_response_for(self, params)
|
50
70
|
end
|
51
71
|
|
52
72
|
#
|
53
73
|
# @param {String} email_address
|
54
|
-
# @param {
|
74
|
+
# @param {Hash} options
|
55
75
|
#
|
56
|
-
def find_by_email_address email_address,
|
57
|
-
|
76
|
+
def find_by_email_address email_address, options=nil
|
77
|
+
return nil unless email_address.present?
|
78
|
+
|
79
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({email_address: email_address}, options)
|
80
|
+
GoTransverseTractApi.get_response_for(self, params)
|
58
81
|
end
|
59
82
|
|
60
83
|
#
|
61
84
|
# @param {Long} billing_account_category_eid
|
62
|
-
# @param {
|
85
|
+
# @param {Hash} options
|
63
86
|
#
|
64
|
-
def find_by_billing_account_category_eid billing_account_category_eid,
|
65
|
-
|
87
|
+
def find_by_billing_account_category_eid billing_account_category_eid, options=nil
|
88
|
+
return nil unless billing_account_category_eid.present?
|
89
|
+
|
90
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({billing_account_category_eid: billing_account_category_eid}, options)
|
91
|
+
GoTransverseTractApi.get_response_for(self, params)
|
66
92
|
end
|
67
93
|
|
68
94
|
#
|
69
95
|
# @param {Long} purchase_order_number
|
70
|
-
# @param {
|
96
|
+
# @param {Hash} options
|
71
97
|
#
|
72
|
-
def
|
73
|
-
|
98
|
+
def find_by_purchase_order_num purchase_order_number, options=nil
|
99
|
+
return nil unless purchase_order_number.present?
|
100
|
+
|
101
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({purchase_order_number: purchase_order_number}, options)
|
102
|
+
GoTransverseTractApi.get_response_for(self, params)
|
74
103
|
end
|
75
104
|
|
76
105
|
#
|
77
106
|
# @param {Long} order_num
|
78
|
-
# @param {
|
107
|
+
# @param {Hash} options
|
79
108
|
#
|
80
|
-
def find_by_order_num order_num,
|
81
|
-
|
109
|
+
def find_by_order_num order_num, options=nil
|
110
|
+
return nil unless order_num.present?
|
111
|
+
|
112
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({order_num: order_num}, options)
|
113
|
+
GoTransverseTractApi.get_response_for(self, params)
|
82
114
|
end
|
83
115
|
|
84
116
|
#
|
85
117
|
# @param {Long} custom_field_value_eid
|
86
|
-
# @param {
|
118
|
+
# @param {Hash} options
|
87
119
|
#
|
88
|
-
def find_by_custom_field_value_eid custom_field_value_eid,
|
89
|
-
|
120
|
+
def find_by_custom_field_value_eid custom_field_value_eid, options=nil
|
121
|
+
return nil unless custom_field_value_eid.present?
|
122
|
+
|
123
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({custom_field_value_eid: custom_field_value_eid}, options)
|
124
|
+
GoTransverseTractApi.get_response_for(self, params)
|
90
125
|
end
|
91
126
|
|
92
127
|
#
|
93
128
|
# @param {String} bill_type
|
94
|
-
# @param {
|
129
|
+
# @param {Hash} options
|
95
130
|
#
|
96
|
-
def find_by_bill_type bill_type,
|
97
|
-
|
131
|
+
def find_by_bill_type bill_type, options=nil
|
132
|
+
return nil unless bill_type.present?
|
133
|
+
|
134
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({bill_type: bill_type}, options)
|
135
|
+
GoTransverseTractApi.get_response_for(self, params)
|
98
136
|
end
|
99
137
|
|
100
138
|
#
|
101
139
|
# @param {String} referral
|
102
|
-
# @param {
|
140
|
+
# @param {Hash} options
|
103
141
|
#
|
104
|
-
def find_by_referral referral,
|
105
|
-
|
142
|
+
def find_by_referral referral, options=nil
|
143
|
+
return nil unless referral.present?
|
144
|
+
|
145
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({referral: referral}, options)
|
146
|
+
GoTransverseTractApi.get_response_for(self, params)
|
106
147
|
end
|
107
148
|
|
108
149
|
#
|
109
150
|
# @param {Long} billing_account_segment_eid
|
110
|
-
# @param {
|
151
|
+
# @param {Hash} options
|
111
152
|
#
|
112
|
-
def find_by_billing_account_segment_eid billing_account_segment_eid,
|
113
|
-
|
153
|
+
def find_by_billing_account_segment_eid billing_account_segment_eid, options=nil
|
154
|
+
return nil unless billing_account_segment_eid.present?
|
155
|
+
|
156
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({billing_account_segment_eid: billing_account_segment_eid}, options)
|
157
|
+
GoTransverseTractApi.get_response_for(self, params)
|
114
158
|
end
|
115
159
|
|
116
160
|
#
|
117
161
|
# @param {String} currency_type
|
118
|
-
# @param {
|
162
|
+
# @param {Hash} options
|
119
163
|
#
|
120
|
-
def find_by_currency_type currency_type,
|
121
|
-
|
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)
|
122
169
|
end
|
123
170
|
|
124
171
|
#
|
125
172
|
# @param {Long} product_eid
|
126
|
-
# @param {
|
173
|
+
# @param {Hash} options
|
127
174
|
#
|
128
|
-
def find_by_product_eid product_eid,
|
129
|
-
|
175
|
+
def find_by_product_eid product_eid, options=nil
|
176
|
+
return nil unless product_eid.present?
|
177
|
+
|
178
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_eid: product_eid}, options)
|
179
|
+
GoTransverseTractApi.get_response_for(self, params)
|
130
180
|
end
|
131
181
|
|
132
182
|
#
|
133
183
|
# @param {Long} service_eid
|
134
|
-
# @param {
|
184
|
+
# @param {Hash} options
|
135
185
|
#
|
136
|
-
def find_by_service_eid service_eid,
|
137
|
-
|
186
|
+
def find_by_service_eid service_eid, options=nil
|
187
|
+
return nil unless service_eid.present?
|
188
|
+
|
189
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({service_eid: service_eid}, options)
|
190
|
+
GoTransverseTractApi.get_response_for(self, params)
|
138
191
|
end
|
139
192
|
|
140
193
|
#
|