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
@@ -8,66 +8,90 @@ 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} 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 {String} name
|
27
|
-
# @param {
|
33
|
+
# @param {Hash} options
|
28
34
|
#
|
29
|
-
def find_by_name name,
|
30
|
-
|
35
|
+
def find_by_name name, options=nil
|
36
|
+
return nil unless name.present?
|
37
|
+
|
38
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({name: name}, options)
|
39
|
+
GoTransverseTractApi.get_response_for(self, params)
|
31
40
|
end
|
32
41
|
|
33
42
|
#
|
34
43
|
# @param {String} status
|
35
|
-
# @param {
|
44
|
+
# @param {Hash} options
|
36
45
|
#
|
37
|
-
def find_by_status status,
|
38
|
-
|
46
|
+
def find_by_status status, options=nil
|
47
|
+
return nil unless status.present?
|
48
|
+
|
49
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({status: status}, options)
|
50
|
+
GoTransverseTractApi.get_response_for(self, params)
|
39
51
|
end
|
40
52
|
|
41
53
|
#
|
42
54
|
# @param {String} type
|
43
|
-
# @param {
|
55
|
+
# @param {Hash} options
|
44
56
|
#
|
45
|
-
def find_by_type type,
|
46
|
-
|
57
|
+
def find_by_type type, options=nil
|
58
|
+
return nil unless type.present?
|
59
|
+
|
60
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({type: type}, options)
|
61
|
+
GoTransverseTractApi.get_response_for(self, params)
|
47
62
|
end
|
48
63
|
|
49
64
|
#
|
50
65
|
# @param {String} entity_relation_type
|
51
|
-
# @param {
|
66
|
+
# @param {Hash} options
|
52
67
|
#
|
53
|
-
def find_by_entity_relation_type entity_relation_type,
|
54
|
-
|
68
|
+
def find_by_entity_relation_type entity_relation_type, options=nil
|
69
|
+
return nil unless entity_relation_type.present?
|
70
|
+
|
71
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({entity_relation_type: entity_relation_type}, options)
|
72
|
+
GoTransverseTractApi.get_response_for(self, params)
|
55
73
|
end
|
56
74
|
|
57
75
|
#
|
58
|
-
# @param {
|
59
|
-
# @param {
|
76
|
+
# @param {Date} from_date
|
77
|
+
# @param {Hash} options
|
60
78
|
#
|
61
|
-
def find_by_from_date from_date,
|
62
|
-
|
79
|
+
def find_by_from_date from_date, options=nil
|
80
|
+
return nil unless from_date.present?
|
81
|
+
|
82
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({from_date: from_date}, options)
|
83
|
+
GoTransverseTractApi.get_response_for(self, params)
|
63
84
|
end
|
64
85
|
|
65
86
|
#
|
66
|
-
# @param {
|
67
|
-
# @param {
|
87
|
+
# @param {Date} thru_date
|
88
|
+
# @param {Hash} options
|
68
89
|
#
|
69
|
-
def find_by_thru_date thru_date,
|
70
|
-
|
90
|
+
def find_by_thru_date thru_date, options=nil
|
91
|
+
return nil unless thru_date.present?
|
92
|
+
|
93
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({thru_date: thru_date}, options)
|
94
|
+
GoTransverseTractApi.get_response_for(self, params)
|
71
95
|
end
|
72
96
|
|
73
97
|
#
|
@@ -6,48 +6,67 @@ 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} type
|
31
|
-
# @param {
|
41
|
+
# @param {Hash} options
|
32
42
|
#
|
33
|
-
def find_by_type type,
|
34
|
-
|
43
|
+
def find_by_type type, options=nil
|
44
|
+
return nil unless type.present?
|
45
|
+
|
46
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({type: type}, options)
|
47
|
+
GoTransverseTractApi.get_response_for(self, params)
|
35
48
|
end
|
36
49
|
|
37
50
|
#
|
38
51
|
# @param {Boolean} enabled
|
39
|
-
# @param {
|
52
|
+
# @param {Hash} options
|
40
53
|
#
|
41
|
-
def find_by_enabled enabled,
|
42
|
-
|
54
|
+
def find_by_enabled enabled, options=nil
|
55
|
+
return nil unless enabled.present?
|
56
|
+
|
57
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({enabled: enabled}, options)
|
58
|
+
GoTransverseTractApi.get_response_for(self, params)
|
43
59
|
end
|
44
60
|
|
45
61
|
#
|
46
62
|
# @param {Boolean} searchable
|
47
|
-
# @param {
|
63
|
+
# @param {Hash} options
|
48
64
|
#
|
49
|
-
def find_by_searchable searchable,
|
50
|
-
|
65
|
+
def find_by_searchable searchable, options=nil
|
66
|
+
return nil unless searchable.present?
|
67
|
+
|
68
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({searchable: searchable}, options)
|
69
|
+
GoTransverseTractApi.get_response_for(self, params)
|
51
70
|
end
|
52
71
|
|
53
72
|
end
|
@@ -6,96 +6,133 @@ 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 {Long} account_num
|
23
|
-
# @param {
|
30
|
+
# @param {Hash} options
|
24
31
|
#
|
25
|
-
def find_by_account_num account_num,
|
26
|
-
|
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)
|
27
37
|
end
|
28
38
|
|
29
39
|
#
|
30
40
|
# @param {Long} external_account_num
|
31
|
-
# @param {
|
41
|
+
# @param {Hash} options
|
32
42
|
#
|
33
|
-
def find_by_external_account_num external_account_num,
|
34
|
-
|
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)
|
35
48
|
end
|
36
49
|
|
37
50
|
#
|
38
51
|
# @param {Long} billing_account_eid
|
39
|
-
# @param {
|
52
|
+
# @param {Hash} options
|
40
53
|
#
|
41
|
-
def find_by_billing_account_eid billing_account_eid,
|
42
|
-
|
54
|
+
def find_by_billing_account_eid billing_account_eid, options=nil
|
55
|
+
return nil unless billing_account_eid.present?
|
56
|
+
|
57
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({billing_account_eid: billing_account_eid}, options)
|
58
|
+
GoTransverseTractApi.get_response_for(self, params)
|
43
59
|
end
|
44
60
|
|
45
61
|
#
|
46
62
|
# @param {Long} custom_field_eid
|
47
|
-
# @param {
|
63
|
+
# @param {Hash} options
|
48
64
|
#
|
49
|
-
def find_by_custom_field_eid custom_field_eid,
|
50
|
-
|
65
|
+
def find_by_custom_field_eid custom_field_eid, options=nil
|
66
|
+
return nil unless custom_field_eid.present?
|
67
|
+
|
68
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({custom_field_eid: custom_field_eid}, options)
|
69
|
+
GoTransverseTractApi.get_response_for(self, params)
|
51
70
|
end
|
52
71
|
|
53
72
|
#
|
54
73
|
# @param {Long} order_eid
|
55
|
-
# @param {
|
74
|
+
# @param {Hash} options
|
56
75
|
#
|
57
|
-
def find_by_order_eid order_eid,
|
58
|
-
|
76
|
+
def find_by_order_eid order_eid, options=nil
|
77
|
+
return nil unless order_eid.present?
|
78
|
+
|
79
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({order_eid: order_eid}, options)
|
80
|
+
GoTransverseTractApi.get_response_for(self, params)
|
59
81
|
end
|
60
82
|
|
61
83
|
#
|
62
84
|
# @param {Long} service_eid
|
63
|
-
# @param {
|
85
|
+
# @param {Hash} options
|
64
86
|
#
|
65
|
-
def find_by_service_eid service_eid,
|
66
|
-
|
87
|
+
def find_by_service_eid service_eid, options=nil
|
88
|
+
return nil unless service_eid.present?
|
89
|
+
|
90
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({service_eid: service_eid}, options)
|
91
|
+
GoTransverseTractApi.get_response_for(self, params)
|
67
92
|
end
|
68
93
|
|
69
94
|
#
|
70
95
|
# @param {Long} order_item_eid
|
71
|
-
# @param {
|
96
|
+
# @param {Hash} options
|
72
97
|
#
|
73
|
-
def find_by_order_item_eid order_item_eid,
|
74
|
-
|
98
|
+
def find_by_order_item_eid order_item_eid, options=nil
|
99
|
+
return nil unless order_item_eid.present?
|
100
|
+
|
101
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({order_item_eid: order_item_eid}, options)
|
102
|
+
GoTransverseTractApi.get_response_for(self, params)
|
75
103
|
end
|
76
104
|
|
77
105
|
#
|
78
106
|
# @param {Long} order_num
|
79
|
-
# @param {
|
107
|
+
# @param {Hash} options
|
80
108
|
#
|
81
|
-
def find_by_order_num order_num,
|
82
|
-
|
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)
|
83
114
|
end
|
84
115
|
|
85
116
|
#
|
86
117
|
# @param {String} custom_field_name
|
87
|
-
# @param {
|
118
|
+
# @param {Hash} options
|
88
119
|
#
|
89
|
-
def find_by_custom_field_name custom_field_name,
|
90
|
-
|
120
|
+
def find_by_custom_field_name custom_field_name, options=nil
|
121
|
+
return nil unless custom_field_name.present?
|
122
|
+
|
123
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({custom_field_name: custom_field_name}, options)
|
124
|
+
GoTransverseTractApi.get_response_for(self, params)
|
91
125
|
end
|
92
126
|
|
93
127
|
#
|
94
128
|
# @param {Long} value
|
95
|
-
# @param {
|
129
|
+
# @param {Hash} options
|
96
130
|
#
|
97
|
-
def find_by_value value,
|
98
|
-
|
131
|
+
def find_by_value value, options=nil
|
132
|
+
return nil unless value.present?
|
133
|
+
|
134
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({value: value}, options)
|
135
|
+
GoTransverseTractApi.get_response_for(self, params)
|
99
136
|
end
|
100
137
|
|
101
138
|
#
|
@@ -8,76 +8,103 @@ 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} account_num
|
19
|
-
# @param {
|
22
|
+
# @param {Hash} options
|
20
23
|
#
|
21
|
-
def find_by_account_num account_num,
|
22
|
-
|
24
|
+
def find_by_account_num account_num, options=nil
|
25
|
+
return nil unless account_num.present?
|
26
|
+
|
27
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({account_num: account_num}, options)
|
28
|
+
GoTransverseTractApi.get_response_for(self, params)
|
23
29
|
end
|
24
30
|
|
25
31
|
#
|
26
32
|
# @param {Long} billing_account_eid
|
27
|
-
# @param {
|
33
|
+
# @param {Hash} options
|
28
34
|
#
|
29
|
-
def find_by_billing_account_eid billing_account_eid,
|
30
|
-
|
35
|
+
def find_by_billing_account_eid billing_account_eid, options=nil
|
36
|
+
return nil unless billing_account_eid.present?
|
37
|
+
|
38
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({billing_account_eid: billing_account_eid}, 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} event_eid
|
43
|
-
# @param {
|
55
|
+
# @param {Hash} options
|
44
56
|
#
|
45
|
-
def find_by_event_eid event_eid,
|
46
|
-
|
57
|
+
def find_by_event_eid event_eid, options=nil
|
58
|
+
return nil unless event_eid.present?
|
59
|
+
|
60
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({event_eid: event_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
|
#
|
58
76
|
# @param {DateTime} occurred_on
|
59
|
-
# @param {
|
77
|
+
# @param {Hash} options
|
60
78
|
#
|
61
|
-
def find_by_occurred_on occurred_on,
|
62
|
-
|
79
|
+
def find_by_occurred_on occurred_on, options=nil
|
80
|
+
return nil unless occurred_on.present?
|
81
|
+
|
82
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({occurred_on: occurred_on}, options)
|
83
|
+
GoTransverseTractApi.get_response_for(self, params)
|
63
84
|
end
|
64
85
|
|
65
86
|
#
|
66
87
|
# @param {Long} adjustment_eid
|
67
|
-
# @param {
|
88
|
+
# @param {Hash} options
|
68
89
|
#
|
69
|
-
def find_by_adjustment_eid adjustment_eid,
|
70
|
-
|
90
|
+
def find_by_adjustment_eid adjustment_eid, options=nil
|
91
|
+
return nil unless adjustment_eid.present?
|
92
|
+
|
93
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({adjustment_eid: adjustment_eid}, options)
|
94
|
+
GoTransverseTractApi.get_response_for(self, params)
|
71
95
|
end
|
72
96
|
|
73
97
|
#
|
74
98
|
# @param {DateTime} where_invoice
|
75
|
-
# @param {
|
99
|
+
# @param {Hash} options
|
76
100
|
#
|
77
101
|
# Example
|
78
102
|
# whereInvoice=(occurredOn gte '2011-06-15' and occurredOn lte '2011-07-13')
|
79
|
-
def find_by_where_invoice where_invoice,
|
80
|
-
|
103
|
+
def find_by_where_invoice where_invoice, options=nil
|
104
|
+
return nil unless where_invoice.present?
|
105
|
+
|
106
|
+
params ||= GoTransverseTractApi::ApiData.new.get_query_params({where_invoice: where_invoice}, options)
|
107
|
+
GoTransverseTractApi.get_response_for(self, params)
|
81
108
|
end
|
82
109
|
|
83
110
|
#
|