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
@@ -4,32 +4,45 @@ module GoTransverseTractApi
|
|
4
4
|
|
5
5
|
class ProductTag
|
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
|
-
# @param {
|
13
|
-
# @param {
|
16
|
+
# @param {String} name
|
17
|
+
# @param {Hash} options
|
14
18
|
#
|
15
|
-
def self.
|
16
|
-
|
19
|
+
def self.find_by_name name, option=nil
|
20
|
+
return nil unless name.present?
|
21
|
+
|
22
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({name: name}, options)
|
23
|
+
GoTransverseTractApi.get_response_for(self, params)
|
17
24
|
end
|
18
25
|
|
19
26
|
#
|
20
|
-
# @param {
|
21
|
-
# @param {
|
27
|
+
# @param {Long} eid
|
28
|
+
# @param {Hash} options
|
22
29
|
#
|
23
|
-
def self.
|
24
|
-
|
30
|
+
def self.find_by_eid eid, options=nil
|
31
|
+
return nil unless eid.present?
|
32
|
+
|
33
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
|
34
|
+
GoTransverseTractApi.get_response_for(self, params)
|
25
35
|
end
|
26
36
|
|
27
37
|
#
|
28
38
|
# @param {Long} product_eid
|
29
|
-
# @param {
|
39
|
+
# @param {Hash} options
|
30
40
|
#
|
31
|
-
def self.find_by_product_eid product_eid,
|
32
|
-
|
41
|
+
def self.find_by_product_eid product_eid, options=nil
|
42
|
+
return nil unless product_eid.present?
|
43
|
+
|
44
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_eid: product_eid}, options)
|
45
|
+
GoTransverseTractApi.get_response_for(self, params)
|
33
46
|
end
|
34
47
|
|
35
48
|
end
|
@@ -8,58 +8,79 @@ module GoTransverseTractApi
|
|
8
8
|
|
9
9
|
#
|
10
10
|
# @param {Long} recurrence_period
|
11
|
-
# @param {
|
11
|
+
# @param {Hash} options
|
12
12
|
#
|
13
|
-
def find_by_recurrence_period recurrence_period,
|
14
|
-
|
13
|
+
def find_by_recurrence_period recurrence_period, options=nil
|
14
|
+
return nil unless recurrence_period.present?
|
15
|
+
|
16
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({recurrence_period: recurrence_period}, options)
|
17
|
+
GoTransverseTractApi.get_response_for(self, params)
|
15
18
|
end
|
16
19
|
|
17
20
|
#
|
18
21
|
# @param {Long} recurrence_amount
|
19
|
-
# @param {
|
22
|
+
# @param {Hash} options
|
20
23
|
#
|
21
|
-
def find_by_recurrence_amount recurrence_amount,
|
22
|
-
|
24
|
+
def find_by_recurrence_amount recurrence_amount, options=nil
|
25
|
+
return nil unless recurrence_amount.present?
|
26
|
+
|
27
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({recurrence_amount: recurrence_amount}, options)
|
28
|
+
GoTransverseTractApi.get_response_for(self, params)
|
23
29
|
end
|
24
30
|
|
25
31
|
#
|
26
32
|
# @param {Boolean} recurring_payment_required
|
27
|
-
# @param {
|
33
|
+
# @param {Hash} options
|
28
34
|
#
|
29
|
-
def find_by_recurring_payment_required recurring_payment_required,
|
30
|
-
|
35
|
+
def find_by_recurring_payment_required recurring_payment_required, options=nil
|
36
|
+
return nil unless recurring_payment_required.present?
|
37
|
+
|
38
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({recurring_payment_required: recurring_payment_required}, options)
|
39
|
+
GoTransverseTractApi.get_response_for(self, params)
|
31
40
|
end
|
32
41
|
|
33
42
|
#
|
34
43
|
# @param {Boolean} bill_in_advance
|
35
|
-
# @param {
|
44
|
+
# @param {Hash} options
|
36
45
|
#
|
37
|
-
def find_by_bill_in_advance bill_in_advance,
|
38
|
-
|
46
|
+
def find_by_bill_in_advance bill_in_advance, options=nil
|
47
|
+
return nil unless bill_in_advance.present?
|
48
|
+
|
49
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({bill_in_advance: bill_in_advance}, options)
|
50
|
+
GoTransverseTractApi.get_response_for(self, params)
|
39
51
|
end
|
40
52
|
|
41
53
|
#
|
42
54
|
# @param {Boolean} prorated_on_cancel
|
43
|
-
# @param {
|
55
|
+
# @param {Hash} options
|
44
56
|
#
|
45
|
-
def find_by_prorated_on_cancel prorated_on_cancel,
|
46
|
-
|
57
|
+
def find_by_prorated_on_cancel prorated_on_cancel, options=nil
|
58
|
+
return nil unless prorated_on_cancel.present?
|
59
|
+
|
60
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({prorated_on_cancel: prorated_on_cancel}, options)
|
61
|
+
GoTransverseTractApi.get_response_for(self, params)
|
47
62
|
end
|
48
63
|
|
49
64
|
#
|
50
65
|
# @param {Boolean} prorated_on_order
|
51
|
-
# @param {
|
66
|
+
# @param {Hash} options
|
52
67
|
#
|
53
|
-
def find_by_prorated_on_order prorated_on_order,
|
54
|
-
|
68
|
+
def find_by_prorated_on_order prorated_on_order, options=nil
|
69
|
+
return nil unless prorated_on_order.present?
|
70
|
+
|
71
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({prorated_on_order: prorated_on_order}, options)
|
72
|
+
GoTransverseTractApi.get_response_for(self, params)
|
55
73
|
end
|
56
74
|
|
57
75
|
#
|
58
76
|
# @param {Boolean} prorated_on_order_no_charge
|
59
|
-
# @param {
|
77
|
+
# @param {Hash} options
|
60
78
|
#
|
61
|
-
def find_by_prorated_on_order_no_charge prorated_on_order_no_charge,
|
62
|
-
|
79
|
+
def find_by_prorated_on_order_no_charge prorated_on_order_no_charge, options=nil
|
80
|
+
return nil unless prorated_on_order_no_charge.present?
|
81
|
+
|
82
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({prorated_on_order_no_charge: prorated_on_order_no_charge}, options)
|
83
|
+
GoTransverseTractApi.get_response_for(self, params)
|
63
84
|
end
|
64
85
|
|
65
86
|
#
|
@@ -8,82 +8,111 @@ module GoTransverseTractApi
|
|
8
8
|
|
9
9
|
#
|
10
10
|
# @param {Long} eid
|
11
|
-
# @param {
|
11
|
+
# @param {Hash} options
|
12
12
|
#
|
13
|
-
def
|
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} product_eid
|
19
|
-
# @param {
|
22
|
+
# @param {Hash} options
|
20
23
|
#
|
21
|
-
def find_by_product_eid product_eid,
|
22
|
-
|
24
|
+
def find_by_product_eid product_eid, options=nil
|
25
|
+
return nil unless product_eid.present?
|
26
|
+
|
27
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_eid: product_eid}, options)
|
28
|
+
GoTransverseTractApi.get_response_for(self, params)
|
23
29
|
end
|
24
30
|
|
25
|
-
#
|
26
31
|
# @param {Long} custom_field_value_eid
|
27
|
-
# @param {
|
32
|
+
# @param {Hash} options
|
28
33
|
#
|
29
|
-
def find_by_custom_field_value_eid custom_field_value_eid,
|
30
|
-
|
34
|
+
def find_by_custom_field_value_eid custom_field_value_eid, options=nil
|
35
|
+
return nil unless custom_field_value_eid.present?
|
36
|
+
|
37
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({custom_field_value_eid: custom_field_value_eid}, options)
|
38
|
+
GoTransverseTractApi.get_response_for(self, params)
|
31
39
|
end
|
32
40
|
|
33
41
|
#
|
34
42
|
# @param {Long} parent_eid
|
35
|
-
# @param {
|
43
|
+
# @param {Hash} options
|
36
44
|
#
|
37
|
-
def
|
38
|
-
|
45
|
+
def find_by_parent_eid parent_eid, options=nil
|
46
|
+
return nil unless parent_eid.present?
|
47
|
+
|
48
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({parent_eid: parent_eid}, options)
|
49
|
+
GoTransverseTractApi.get_response_for(self, params)
|
39
50
|
end
|
40
51
|
|
41
52
|
#
|
42
53
|
# @param {Long} billing_account_eid
|
43
|
-
# @param {
|
54
|
+
# @param {Hash} options
|
44
55
|
#
|
45
|
-
def find_by_billing_account_eid billing_account_eid,
|
46
|
-
|
56
|
+
def find_by_billing_account_eid billing_account_eid, options=nil
|
57
|
+
return nil unless billing_account_eid.present?
|
58
|
+
|
59
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({billing_account_eid: billing_account_eid}, options)
|
60
|
+
GoTransverseTractApi.get_response_for(self, params)
|
47
61
|
end
|
48
62
|
|
49
63
|
#
|
50
64
|
# @param {Long} agreement_eid
|
51
|
-
# @param {
|
65
|
+
# @param {Hash} options
|
52
66
|
#
|
53
|
-
def find_by_agreement_eid agreement_eid,
|
54
|
-
|
67
|
+
def find_by_agreement_eid agreement_eid, options=nil
|
68
|
+
return nil unless agreement_eid.present?
|
69
|
+
|
70
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({agreement_eid: agreement_eid}, options)
|
71
|
+
GoTransverseTractApi.get_response_for(self, params)
|
55
72
|
end
|
56
73
|
|
57
74
|
#
|
58
75
|
# @param {Long} account_num
|
59
|
-
# @param {
|
76
|
+
# @param {Hash} options
|
60
77
|
#
|
61
|
-
def find_by_account_num account_num,
|
62
|
-
|
78
|
+
def find_by_account_num account_num, options=nil
|
79
|
+
return nil unless account_num.present?
|
80
|
+
|
81
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({account_num: account_num}, options)
|
82
|
+
GoTransverseTractApi.get_response_for(self, params)
|
63
83
|
end
|
64
84
|
|
65
85
|
#
|
66
86
|
# @param {Long} external_account_num
|
67
|
-
# @param {
|
87
|
+
# @param {Hash} options
|
68
88
|
#
|
69
|
-
def find_by_external_account_num external_account_num,
|
70
|
-
|
89
|
+
def find_by_external_account_num external_account_num, options=nil
|
90
|
+
return nil unless external_account_num.present?
|
91
|
+
|
92
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({external_account_num: external_account_num}, options)
|
93
|
+
GoTransverseTractApi.get_response_for(self, params)
|
71
94
|
end
|
72
95
|
|
73
96
|
#
|
74
97
|
# @param {Long} service_resource_identifier
|
75
|
-
# @param {
|
98
|
+
# @param {Hash} options
|
76
99
|
#
|
77
|
-
def find_by_service_resource_identifier service_resource_identifier,
|
78
|
-
|
100
|
+
def find_by_service_resource_identifier service_resource_identifier, options=nil
|
101
|
+
return nil unless service_resource_identifier.present?
|
102
|
+
|
103
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({service_resource_identifier: service_resource_identifier}, options)
|
104
|
+
GoTransverseTractApi.get_response_for(self, params)
|
79
105
|
end
|
80
106
|
|
81
107
|
#
|
82
108
|
# @param {Long} renewal_count
|
83
|
-
# @param {
|
109
|
+
# @param {Hash} options
|
84
110
|
#
|
85
|
-
def find_by_renewal_count renewal_count,
|
86
|
-
|
111
|
+
def find_by_renewal_count renewal_count, options=nil
|
112
|
+
return nil unless renewal_count.present?
|
113
|
+
|
114
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({renewal_count: renewal_count}, options)
|
115
|
+
GoTransverseTractApi.get_response_for(self, params)
|
87
116
|
end
|
88
117
|
|
89
118
|
#
|
@@ -8,34 +8,46 @@ module GoTransverseTractApi
|
|
8
8
|
|
9
9
|
#
|
10
10
|
# @param {Long} eid
|
11
|
-
# @param {
|
11
|
+
# @param {Hash} options
|
12
12
|
#
|
13
|
-
def
|
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} product_eid
|
19
|
-
# @param {
|
22
|
+
# @param {Hash} options
|
20
23
|
#
|
21
|
-
def find_by_product_eid product_eid,
|
22
|
-
|
24
|
+
def find_by_product_eid product_eid, options=nil
|
25
|
+
return nil unless product_eid.present?
|
26
|
+
|
27
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_eid: product_eid}, options)
|
28
|
+
GoTransverseTractApi.get_response_for(self, params)
|
23
29
|
end
|
24
30
|
|
25
31
|
#
|
26
32
|
# @param {String} status
|
27
|
-
# @param {
|
33
|
+
# @param {Hash} options
|
28
34
|
#
|
29
|
-
def find_by_status status,
|
30
|
-
|
35
|
+
def find_by_status status, options=nil
|
36
|
+
return nil unless status.present?
|
37
|
+
|
38
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({status: status}, options)
|
39
|
+
GoTransverseTractApi.get_response_for(self, params)
|
31
40
|
end
|
32
41
|
|
33
42
|
#
|
34
43
|
# @param {Long} serial_number
|
35
|
-
# @param {
|
44
|
+
# @param {Hash} options
|
36
45
|
#
|
37
|
-
def self.find_by_serial_number serial_number,
|
38
|
-
|
46
|
+
def self.find_by_serial_number serial_number, options=nil
|
47
|
+
return nil unless serial_number.present?
|
48
|
+
|
49
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({serial_number: serial_number}, options)
|
50
|
+
GoTransverseTractApi.get_response_for(self, params)
|
39
51
|
end
|
40
52
|
|
41
53
|
end
|
@@ -8,42 +8,57 @@ module GoTransverseTractApi
|
|
8
8
|
|
9
9
|
#
|
10
10
|
# @param {Long} eid
|
11
|
-
# @param {
|
11
|
+
# @param {Hash} options
|
12
12
|
#
|
13
|
-
def
|
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} service_eid
|
19
|
-
# @param {
|
22
|
+
# @param {Hash} options
|
20
23
|
#
|
21
|
-
def find_by_service_eid service_eid,
|
22
|
-
|
24
|
+
def find_by_service_eid service_eid, options=nil
|
25
|
+
return nil unless service_eid.present?
|
26
|
+
|
27
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({service_eid: service_eid}, options)
|
28
|
+
GoTransverseTractApi.get_response_for(self, params)
|
23
29
|
end
|
24
30
|
|
25
31
|
#
|
26
32
|
# @param {Date} start_date
|
27
|
-
# @param {
|
33
|
+
# @param {Hash} options
|
28
34
|
#
|
29
|
-
def find_by_start_date start_date,
|
30
|
-
|
35
|
+
def find_by_start_date start_date, options=nil
|
36
|
+
return nil unless start_date.present?
|
37
|
+
|
38
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({start_date: start_date}, options)
|
39
|
+
GoTransverseTractApi.get_response_for(self, params)
|
31
40
|
end
|
32
41
|
|
33
42
|
#
|
34
43
|
# @param {Date} end_date
|
35
|
-
# @param {
|
44
|
+
# @param {Hash} options
|
36
45
|
#
|
37
|
-
def find_by_end_date end_date,
|
38
|
-
|
46
|
+
def find_by_end_date end_date, options=nil
|
47
|
+
return nil unless end_date.present?
|
48
|
+
|
49
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({end_date: end_date}, options)
|
50
|
+
GoTransverseTractApi.get_response_for(self, params)
|
39
51
|
end
|
40
52
|
|
41
53
|
#
|
42
54
|
# @param {Boolean} closed
|
43
|
-
# @param {
|
55
|
+
# @param {Hash} options
|
44
56
|
#
|
45
|
-
def find_by_closed closed,
|
46
|
-
|
57
|
+
def find_by_closed closed, options=nil
|
58
|
+
return nil unless closed.present?
|
59
|
+
|
60
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({closed: closed}, options)
|
61
|
+
GoTransverseTractApi.get_response_for(self, params)
|
47
62
|
end
|
48
63
|
|
49
64
|
end
|
@@ -8,42 +8,57 @@ module GoTransverseTractApi
|
|
8
8
|
|
9
9
|
#
|
10
10
|
# @param {Long} eid
|
11
|
-
# @param {
|
11
|
+
# @param {Hash} options
|
12
12
|
#
|
13
|
-
def
|
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} service_eid
|
19
|
-
# @param {
|
22
|
+
# @param {Hash} options
|
20
23
|
#
|
21
|
-
def find_by_service_eid service_eid,
|
22
|
-
|
24
|
+
def find_by_service_eid service_eid, options=nil
|
25
|
+
return nil unless service_eid.present?
|
26
|
+
|
27
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({service_eid: service_eid}, options)
|
28
|
+
GoTransverseTractApi.get_response_for(self, params)
|
23
29
|
end
|
24
30
|
|
25
31
|
#
|
26
32
|
# @param {Date} start_date
|
27
|
-
# @param {
|
33
|
+
# @param {Hash} options
|
28
34
|
#
|
29
|
-
def find_by_start_date start_date,
|
30
|
-
|
35
|
+
def find_by_start_date start_date, options=nil
|
36
|
+
return nil unless start_date.present?
|
37
|
+
|
38
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({start_date: start_date}, options)
|
39
|
+
GoTransverseTractApi.get_response_for(self, params)
|
31
40
|
end
|
32
41
|
|
33
42
|
#
|
34
43
|
# @param {Date} end_date
|
35
|
-
# @param {
|
44
|
+
# @param {Hash} options
|
36
45
|
#
|
37
|
-
def find_by_end_date end_date,
|
38
|
-
|
46
|
+
def find_by_end_date end_date, options=nil
|
47
|
+
return nil unless end_date.present?
|
48
|
+
|
49
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({end_date: end_date}, options)
|
50
|
+
GoTransverseTractApi.get_response_for(self, params)
|
39
51
|
end
|
40
52
|
|
41
53
|
#
|
42
54
|
# @param {Long} recurrence_period
|
43
|
-
# @param {
|
55
|
+
# @param {Hash} options
|
44
56
|
#
|
45
|
-
def find_by_recurrence_period recurrence_period,
|
46
|
-
|
57
|
+
def find_by_recurrence_period recurrence_period, options=nil
|
58
|
+
return nil unless recurrence_period.present?
|
59
|
+
|
60
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({recurrence_period: recurrence_period}, options)
|
61
|
+
GoTransverseTractApi.get_response_for(self, params)
|
47
62
|
end
|
48
63
|
|
49
64
|
end
|