gotransverse-tract-api 0.5.2 → 0.5.3
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 +1 -6
- data/lib/gotransverse-tract-api/api_data.rb +1 -0
- data/lib/gotransverse-tract-api/billing_account/adjustment.rb +18 -12
- data/lib/gotransverse-tract-api/billing_account/adjustment_application.rb +6 -4
- data/lib/gotransverse-tract-api/billing_account/adjustment_reason.rb +12 -8
- data/lib/gotransverse-tract-api/billing_account/billing_account.rb +54 -38
- data/lib/gotransverse-tract-api/billing_account/counter.rb +24 -16
- data/lib/gotransverse-tract-api/billing_account/custom_field.rb +15 -10
- data/lib/gotransverse-tract-api/billing_account/custom_field_value.rb +47 -22
- data/lib/gotransverse-tract-api/billing_account/invoice.rb +27 -18
- data/lib/gotransverse-tract-api/billing_account/invoice_item.rb +9 -6
- data/lib/gotransverse-tract-api/billing_account/invoice_item_charge.rb +3 -2
- data/lib/gotransverse-tract-api/billing_account/payment.rb +21 -14
- data/lib/gotransverse-tract-api/billing_account/reason.rb +9 -6
- data/lib/gotransverse-tract-api/billing_account/recurring_payment.rb +9 -6
- data/lib/gotransverse-tract-api/billing_account/refund.rb +24 -16
- data/lib/gotransverse-tract-api/billing_account/scheduled_charge.rb +29 -8
- data/lib/gotransverse-tract-api/billing_account/standard_invoice_adjustment_application.rb +6 -4
- data/lib/gotransverse-tract-api/general_ledger/general_ledger.rb +10 -7
- data/lib/gotransverse-tract-api/general_ledger/gl_account.rb +13 -9
- data/lib/gotransverse-tract-api/general_ledger/gl_account_category.rb +10 -7
- data/lib/gotransverse-tract-api/general_ledger/gl_accounting_entry.rb +18 -12
- data/lib/gotransverse-tract-api/general_ledger/gl_accounting_transaction.rb +21 -14
- data/lib/gotransverse-tract-api/general_ledger/gl_adjustment_accounting_transaction.rb +21 -14
- data/lib/gotransverse-tract-api/general_ledger/gl_aggregate_batch.rb +18 -12
- data/lib/gotransverse-tract-api/general_ledger/gl_aggregate_entry.rb +15 -10
- data/lib/gotransverse-tract-api/general_ledger/gl_transaction_batch.rb +15 -10
- data/lib/gotransverse-tract-api/order/adjustment_category.rb +9 -6
- data/lib/gotransverse-tract-api/order/agreement.rb +24 -16
- data/lib/gotransverse-tract-api/order/bill_cycle.rb +15 -10
- data/lib/gotransverse-tract-api/order/billing_account_category.rb +9 -6
- data/lib/gotransverse-tract-api/order/order_item.rb +31 -18
- data/lib/gotransverse-tract-api/order/order_item_charge.rb +21 -14
- data/lib/gotransverse-tract-api/order/organization.rb +9 -6
- data/lib/gotransverse-tract-api/order/party_category.rb +12 -8
- data/lib/gotransverse-tract-api/order/payment_term.rb +12 -8
- data/lib/gotransverse-tract-api/order/people.rb +12 -8
- data/lib/gotransverse-tract-api/order/product_relation.rb +9 -6
- data/lib/gotransverse-tract-api/order/renewal_order.rb +30 -20
- data/lib/gotransverse-tract-api/order/sales_order.rb +31 -20
- data/lib/gotransverse-tract-api/product/action.rb +7 -5
- data/lib/gotransverse-tract-api/product/billing_account_segment_field.rb +15 -10
- data/lib/gotransverse-tract-api/product/discount.rb +15 -10
- data/lib/gotransverse-tract-api/product/discount_category.rb +9 -6
- data/lib/gotransverse-tract-api/product/discount_code.rb +30 -20
- data/lib/gotransverse-tract-api/product/discount_identifier.rb +9 -6
- data/lib/gotransverse-tract-api/product/one_time_product_price.rb +3 -2
- data/lib/gotransverse-tract-api/product/operation.rb +6 -5
- data/lib/gotransverse-tract-api/product/operation_attribute.rb +7 -5
- data/lib/gotransverse-tract-api/product/price_list.rb +6 -4
- data/lib/gotransverse-tract-api/product/product.rb +37 -25
- data/lib/gotransverse-tract-api/product/product_price.rb +21 -14
- data/lib/gotransverse-tract-api/product/product_price_range.rb +18 -12
- data/lib/gotransverse-tract-api/product/product_tag.rb +9 -6
- data/lib/gotransverse-tract-api/product/recurring_product_price.rb +56 -14
- data/lib/gotransverse-tract-api/product/usage_rule.rb +7 -5
- data/lib/gotransverse-tract-api/service/service.rb +30 -20
- data/lib/gotransverse-tract-api/service/service_device_inventory_item.rb +12 -8
- data/lib/gotransverse-tract-api/service/service_period.rb +15 -10
- data/lib/gotransverse-tract-api/service/service_price.rb +15 -10
- data/lib/gotransverse-tract-api/service/service_price_range.rb +6 -4
- data/lib/gotransverse-tract-api/service/service_resource.rb +21 -14
- data/lib/gotransverse-tract-api/service/service_resource_category.rb +22 -6
- data/lib/gotransverse-tract-api/usage/global_usage_rule.rb +9 -6
- data/lib/gotransverse-tract-api/usage/order_item_usage_rule.rb +47 -6
- data/lib/gotransverse-tract-api/usage/product_usage_rule.rb +41 -8
- data/lib/gotransverse-tract-api/usage/rate_table.rb +6 -4
- data/lib/gotransverse-tract-api/usage/service_usage_rule.rb +9 -6
- data/lib/gotransverse-tract-api/usage/usage_event.rb +15 -10
- data/lib/gotransverse-tract-api/usage/usage_lookup_table.rb +9 -6
- data/lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb +12 -8
- data/lib/gotransverse-tract-api/usage/usage_price_category.rb +6 -4
- data/lib/gotransverse-tract-api/{order → usage}/usage_rate.rb +1 -2
- data/lib/gotransverse-tract-api/usage/usage_rule.rb +6 -4
- data/lib/gotransverse-tract-api/version.rb +1 -1
- data/spec/gotransverse-tract-api/billing_account/adjustment_spec.rb +1 -1
- data/spec/gotransverse-tract-api/billing_account/billing_account_spec.rb +14 -0
- data/spec/gotransverse-tract-api/billing_account/counter_spec.rb +1 -1
- data/spec/gotransverse-tract-api/billing_account/invoice_spec.rb +1 -1
- data/spec/gotransverse-tract-api/billing_account/payment_spec.rb +1 -1
- data/spec/gotransverse-tract-api/billing_account/refund_spec.rb +1 -1
- data/spec/gotransverse-tract-api/general_ledger/gl_aggregate_batch_spec.rb +1 -1
- data/spec/gotransverse-tract-api/general_ledger/gl_transaction_batch_spec.rb +1 -1
- data/spec/gotransverse-tract-api/order/order_item_spec.rb +2 -4
- data/spec/gotransverse-tract-api/order/organization_spec.rb +2 -4
- data/spec/gotransverse-tract-api/order/people_spec.rb +1 -5
- data/spec/gotransverse-tract-api/service/service_resource_spec.rb +1 -1
- data/spec/gotransverse-tract-api/service/service_spec.rb +1 -1
- data/spec/gotransverse-tract-api/{order → usage}/order_item_usage_rule_spec.rb +3 -2
- data/spec/gotransverse-tract-api/{order → usage}/product_usage_rule_spec.rb +1 -1
- metadata +7 -12
- data/lib/gotransverse-tract-api/order/order_item_usage_rule.rb +0 -65
- data/lib/gotransverse-tract-api/order/product_usage_rule.rb +0 -49
- data/lib/gotransverse-tract-api/order/recurring_product_price.rb +0 -48
- data/lib/gotransverse-tract-api/order/scheduled_charge.rb +0 -26
- data/lib/gotransverse-tract-api/product/service_resource_category.rb +0 -20
@@ -12,37 +12,42 @@ module GoTransverseTractApi
|
|
12
12
|
|
13
13
|
#
|
14
14
|
# @param {Long} eid
|
15
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
15
16
|
#
|
16
|
-
def find_by_eid eid
|
17
|
-
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
17
|
+
def find_by_eid eid, query_scope=nil
|
18
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid, queryScope: query_scope})
|
18
19
|
end
|
19
20
|
|
20
21
|
#
|
21
22
|
# @param {String} name
|
23
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
22
24
|
#
|
23
|
-
def find_by_name name
|
24
|
-
GoTransverseTractApi.get_response_for(self, {name: name})
|
25
|
+
def find_by_name name, query_scope=nil
|
26
|
+
GoTransverseTractApi.get_response_for(self, {name: name, queryScope: query_scope})
|
25
27
|
end
|
26
28
|
|
27
29
|
#
|
28
30
|
# @param {String} type
|
31
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
29
32
|
#
|
30
|
-
def find_by_type type
|
31
|
-
GoTransverseTractApi.get_response_for(self, {type: type})
|
33
|
+
def find_by_type type, query_scope=nil
|
34
|
+
GoTransverseTractApi.get_response_for(self, {type: type, queryScope: query_scope})
|
32
35
|
end
|
33
36
|
|
34
37
|
#
|
35
38
|
# @param {Boolean} enabled
|
39
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
36
40
|
#
|
37
|
-
def find_by_enabled enabled
|
38
|
-
GoTransverseTractApi.get_response_for(self, {enabled: enabled})
|
41
|
+
def find_by_enabled enabled, query_scope=nil
|
42
|
+
GoTransverseTractApi.get_response_for(self, {enabled: enabled, queryScope: query_scope})
|
39
43
|
end
|
40
44
|
|
41
45
|
#
|
42
46
|
# @param {Boolean} searchable
|
47
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
43
48
|
#
|
44
|
-
def find_by_searchable searchable
|
45
|
-
GoTransverseTractApi.get_response_for(self, {searchable: searchable})
|
49
|
+
def find_by_searchable searchable, query_scope=nil
|
50
|
+
GoTransverseTractApi.get_response_for(self, {searchable: searchable, queryScope: query_scope})
|
46
51
|
end
|
47
52
|
|
48
53
|
end
|
@@ -12,81 +12,106 @@ module GoTransverseTractApi
|
|
12
12
|
|
13
13
|
#
|
14
14
|
# @param {Long} eid
|
15
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
15
16
|
#
|
16
|
-
def find_by_eid eid
|
17
|
-
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
17
|
+
def find_by_eid eid, query_scope=nil
|
18
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid, queryScope: query_scope})
|
18
19
|
end
|
19
20
|
|
20
21
|
#
|
21
22
|
# @param {Long} account_num
|
23
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
22
24
|
#
|
23
|
-
def find_by_account_num account_num
|
24
|
-
GoTransverseTractApi.get_response_for(self, {account_num: account_num})
|
25
|
+
def find_by_account_num account_num, query_scope=nil
|
26
|
+
GoTransverseTractApi.get_response_for(self, {account_num: account_num, queryScope: query_scope})
|
25
27
|
end
|
26
28
|
|
27
29
|
#
|
28
30
|
# @param {Long} external_account_num
|
31
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
29
32
|
#
|
30
|
-
def find_by_external_account_num external_account_num
|
31
|
-
GoTransverseTractApi.get_response_for(self, {external_account_num: external_account_num})
|
33
|
+
def find_by_external_account_num external_account_num, query_scope=nil
|
34
|
+
GoTransverseTractApi.get_response_for(self, {external_account_num: external_account_num, queryScope: query_scope})
|
32
35
|
end
|
33
36
|
|
34
37
|
#
|
35
38
|
# @param {Long} billing_account_eid
|
39
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
36
40
|
#
|
37
|
-
def find_by_billing_account_eid billing_account_eid
|
38
|
-
GoTransverseTractApi.get_response_for(self, {billing_account_eid: billing_account_eid})
|
41
|
+
def find_by_billing_account_eid billing_account_eid, query_scope=nil
|
42
|
+
GoTransverseTractApi.get_response_for(self, {billing_account_eid: billing_account_eid, queryScope: query_scope})
|
39
43
|
end
|
40
44
|
|
41
45
|
#
|
42
46
|
# @param {Long} custom_field_eid
|
47
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
43
48
|
#
|
44
|
-
def find_by_custom_field_eid custom_field_eid
|
45
|
-
GoTransverseTractApi.get_response_for(self, {custom_field_eid: custom_field_eid})
|
49
|
+
def find_by_custom_field_eid custom_field_eid, query_scope=nil
|
50
|
+
GoTransverseTractApi.get_response_for(self, {custom_field_eid: custom_field_eid, queryScope: query_scope})
|
46
51
|
end
|
47
52
|
|
48
53
|
#
|
49
54
|
# @param {Long} order_eid
|
55
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
50
56
|
#
|
51
|
-
def find_by_order_eid order_eid
|
52
|
-
GoTransverseTractApi.get_response_for(self, {order_eid: order_eid})
|
57
|
+
def find_by_order_eid order_eid, query_scope=nil
|
58
|
+
GoTransverseTractApi.get_response_for(self, {order_eid: order_eid, queryScope: query_scope})
|
53
59
|
end
|
54
60
|
|
55
61
|
#
|
56
62
|
# @param {Long} service_eid
|
63
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
57
64
|
#
|
58
|
-
def find_by_service_eid service_eid
|
59
|
-
GoTransverseTractApi.get_response_for(self, {service_eid: service_eid})
|
65
|
+
def find_by_service_eid service_eid, query_scope=nil
|
66
|
+
GoTransverseTractApi.get_response_for(self, {service_eid: service_eid, queryScope: query_scope})
|
60
67
|
end
|
61
68
|
|
62
69
|
#
|
63
70
|
# @param {Long} order_item_eid
|
71
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
64
72
|
#
|
65
|
-
def find_by_order_item_eid order_item_eid
|
66
|
-
GoTransverseTractApi.get_response_for(self, {order_item_eid: order_item_eid})
|
73
|
+
def find_by_order_item_eid order_item_eid, query_scope=nil
|
74
|
+
GoTransverseTractApi.get_response_for(self, {order_item_eid: order_item_eid, queryScope: query_scope})
|
67
75
|
end
|
68
76
|
|
69
77
|
#
|
70
78
|
# @param {Long} order_num
|
79
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
71
80
|
#
|
72
|
-
def find_by_order_num order_num
|
73
|
-
GoTransverseTractApi.get_response_for(self, {order_num: order_num})
|
81
|
+
def find_by_order_num order_num, query_scope=nil
|
82
|
+
GoTransverseTractApi.get_response_for(self, {order_num: order_num, queryScope: query_scope})
|
74
83
|
end
|
75
84
|
|
76
85
|
#
|
77
86
|
# @param {String} custom_field_name
|
87
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
78
88
|
#
|
79
|
-
def find_by_custom_field_name custom_field_name
|
80
|
-
GoTransverseTractApi.get_response_for(self, {custom_field_name: custom_field_name})
|
89
|
+
def find_by_custom_field_name custom_field_name, query_scope=nil
|
90
|
+
GoTransverseTractApi.get_response_for(self, {custom_field_name: custom_field_name, queryScope: query_scope})
|
81
91
|
end
|
82
92
|
|
83
93
|
#
|
84
94
|
# @param {Long} value
|
95
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
85
96
|
#
|
86
|
-
def find_by_value value
|
87
|
-
GoTransverseTractApi.get_response_for(self, {value: value})
|
97
|
+
def find_by_value value, query_scope=nil
|
98
|
+
GoTransverseTractApi.get_response_for(self, {value: value, queryScope: query_scope})
|
88
99
|
end
|
89
100
|
|
101
|
+
#
|
102
|
+
# @param {Hash} obj (Order or Service or Billing Account)
|
103
|
+
#
|
104
|
+
def get_custom_field_values(obj={})
|
105
|
+
custom_field_values = {
|
106
|
+
attributes: {},
|
107
|
+
customFieldValue: {
|
108
|
+
attributes: {value: obj[:custom_field_value][:value]},
|
109
|
+
customField: {eid: obj[:custom_field_value][:custom_field][:eid]}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
custom_field_values
|
114
|
+
end
|
90
115
|
end
|
91
116
|
|
92
117
|
end
|
@@ -8,67 +8,76 @@ module GoTransverseTractApi
|
|
8
8
|
|
9
9
|
#
|
10
10
|
# @param {Long} eid
|
11
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
11
12
|
#
|
12
|
-
def find_by_eid eid
|
13
|
-
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
13
|
+
def find_by_eid eid, query_scope=nil
|
14
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid, queryScope: query_scope})
|
14
15
|
end
|
15
16
|
|
16
17
|
#
|
17
18
|
# @param {Long} account_num
|
19
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
18
20
|
#
|
19
|
-
def find_by_account_num account_num
|
20
|
-
GoTransverseTractApi.get_response_for(self, {account_num: account_num})
|
21
|
+
def find_by_account_num account_num, query_scope=nil
|
22
|
+
GoTransverseTractApi.get_response_for(self, {account_num: account_num, queryScope: query_scope})
|
21
23
|
end
|
22
24
|
|
23
25
|
#
|
24
26
|
# @param {Long} billing_account_eid
|
27
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
25
28
|
#
|
26
|
-
def find_by_billing_account_eid billing_account_eid
|
27
|
-
GoTransverseTractApi.get_response_for(self, {billing_account_eid: billing_account_eid})
|
29
|
+
def find_by_billing_account_eid billing_account_eid, query_scope=nil
|
30
|
+
GoTransverseTractApi.get_response_for(self, {billing_account_eid: billing_account_eid, queryScope: query_scope})
|
28
31
|
end
|
29
32
|
|
30
33
|
#
|
31
34
|
# @param {Long} invoice_num
|
35
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
32
36
|
#
|
33
|
-
def find_by_invoice_num invoice_num
|
34
|
-
GoTransverseTractApi.get_response_for(self, {invoice_num: invoice_num})
|
37
|
+
def find_by_invoice_num invoice_num, query_scope=nil
|
38
|
+
GoTransverseTractApi.get_response_for(self, {invoice_num: invoice_num, queryScope: query_scope})
|
35
39
|
end
|
36
40
|
|
37
41
|
#
|
38
42
|
# @param {Long} event_eid
|
43
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
39
44
|
#
|
40
|
-
def find_by_event_eid event_eid
|
41
|
-
GoTransverseTractApi.get_response_for(self, {event_eid: event_eid})
|
45
|
+
def find_by_event_eid event_eid, query_scope=nil
|
46
|
+
GoTransverseTractApi.get_response_for(self, {event_eid: event_eid, queryScope: query_scope})
|
42
47
|
end
|
43
48
|
|
44
49
|
#
|
45
50
|
# @param {String} status
|
51
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
46
52
|
#
|
47
|
-
def find_by_status status
|
48
|
-
GoTransverseTractApi.get_response_for(self, {status: status})
|
53
|
+
def find_by_status status, query_scope=nil
|
54
|
+
GoTransverseTractApi.get_response_for(self, {status: status, queryScope: query_scope})
|
49
55
|
end
|
50
56
|
|
51
57
|
#
|
52
58
|
# @param {DateTime} occurred_on
|
59
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
53
60
|
#
|
54
|
-
def find_by_occurred_on occurred_on
|
55
|
-
GoTransverseTractApi.get_response_for(self, {occurred_on: occurred_on})
|
61
|
+
def find_by_occurred_on occurred_on, query_scope=nil
|
62
|
+
GoTransverseTractApi.get_response_for(self, {occurred_on: occurred_on, queryScope: query_scope})
|
56
63
|
end
|
57
64
|
|
58
65
|
#
|
59
66
|
# @param {Long} adjustment_eid
|
67
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
60
68
|
#
|
61
|
-
def find_by_adjustment_eid adjustment_eid
|
62
|
-
GoTransverseTractApi.get_response_for(self, {adjustment_eid: adjustment_eid})
|
69
|
+
def find_by_adjustment_eid adjustment_eid, query_scope=nil
|
70
|
+
GoTransverseTractApi.get_response_for(self, {adjustment_eid: adjustment_eid, queryScope: query_scope})
|
63
71
|
end
|
64
72
|
|
65
73
|
#
|
66
74
|
# @param {DateTime} where_invoice
|
75
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
67
76
|
#
|
68
77
|
# Example
|
69
78
|
# whereInvoice=(occurredOn gte '2011-06-15' and occurredOn lte '2011-07-13')
|
70
|
-
def find_by_where_invoice where_invoice
|
71
|
-
GoTransverseTractApi.get_response_for(self, {where_invoice: where_invoice})
|
79
|
+
def find_by_where_invoice where_invoice, query_scope=nil
|
80
|
+
GoTransverseTractApi.get_response_for(self, {where_invoice: where_invoice, queryScope: query_scope})
|
72
81
|
end
|
73
82
|
|
74
83
|
#
|
@@ -8,23 +8,26 @@ module GoTransverseTractApi
|
|
8
8
|
|
9
9
|
#
|
10
10
|
# @param {Long} eid
|
11
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
11
12
|
#
|
12
|
-
def find_by_eid eid
|
13
|
-
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
13
|
+
def find_by_eid eid, query_scope=nil
|
14
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid, queryScope: query_scope})
|
14
15
|
end
|
15
16
|
|
16
17
|
#
|
17
18
|
# @param {Long} invoice_num
|
19
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
18
20
|
#
|
19
|
-
def find_by_invoice_num invoice_num
|
20
|
-
GoTransverseTractApi.get_response_for(self, {invoice_num: invoice_num})
|
21
|
+
def find_by_invoice_num invoice_num, query_scope=nil
|
22
|
+
GoTransverseTractApi.get_response_for(self, {invoice_num: invoice_num, queryScope: query_scope})
|
21
23
|
end
|
22
24
|
|
23
25
|
#
|
24
26
|
# @param {Long} invoice_eid
|
27
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
25
28
|
#
|
26
|
-
def find_by_invoice_eid invoice_eid
|
27
|
-
GoTransverseTractApi.get_response_for(self, {invoice_eid: invoice_eid})
|
29
|
+
def find_by_invoice_eid invoice_eid, query_scope=nil
|
30
|
+
GoTransverseTractApi.get_response_for(self, {invoice_eid: invoice_eid, queryScope: query_scope})
|
28
31
|
end
|
29
32
|
|
30
33
|
end
|
@@ -8,9 +8,10 @@ module GoTransverseTractApi
|
|
8
8
|
|
9
9
|
#
|
10
10
|
# @param {Long} invoice_item_eid
|
11
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
11
12
|
#
|
12
|
-
def find_by_invoice_item_eid invoice_item_eid
|
13
|
-
GoTransverseTractApi.get_response_for(self, {invoice_item_eid: invoice_item_eid})
|
13
|
+
def find_by_invoice_item_eid invoice_item_eid, query_scope=nil
|
14
|
+
GoTransverseTractApi.get_response_for(self, {invoice_item_eid: invoice_item_eid, queryScope: query_scope})
|
14
15
|
end
|
15
16
|
|
16
17
|
end
|
@@ -6,51 +6,58 @@ module GoTransverseTractApi
|
|
6
6
|
|
7
7
|
#
|
8
8
|
# @param {Long} eid
|
9
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
9
10
|
#
|
10
|
-
def self.find_by_eid eid
|
11
|
-
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
11
|
+
def self.find_by_eid eid, query_scope=nil
|
12
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid, queryScope: query_scope})
|
12
13
|
end
|
13
14
|
|
14
15
|
#
|
15
16
|
# @param {String} account_num
|
17
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
16
18
|
#
|
17
|
-
def self.find_by_account_num account_num
|
18
|
-
GoTransverseTractApi.get_response_for(self, {account_num: account_num})
|
19
|
+
def self.find_by_account_num account_num, query_scope=nil
|
20
|
+
GoTransverseTractApi.get_response_for(self, {account_num: account_num, queryScope: query_scope})
|
19
21
|
end
|
20
22
|
|
21
23
|
#
|
22
24
|
# @param {Long} billing_account_eid
|
25
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
23
26
|
#
|
24
|
-
def self.find_by_billing_account_eid billing_account_eid
|
25
|
-
GoTransverseTractApi.get_response_for(self, {billing_account_eid: billing_account_eid})
|
27
|
+
def self.find_by_billing_account_eid billing_account_eid, query_scope=nil
|
28
|
+
GoTransverseTractApi.get_response_for(self, {billing_account_eid: billing_account_eid, queryScope: query_scope})
|
26
29
|
end
|
27
30
|
|
28
31
|
#
|
29
32
|
# @param {DateTime} occured_on
|
33
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
30
34
|
#
|
31
|
-
def self.find_by_occured_on occured_on
|
32
|
-
GoTransverseTractApi.get_response_for(self, {occured_on: occured_on})
|
35
|
+
def self.find_by_occured_on occured_on, query_scope=nil
|
36
|
+
GoTransverseTractApi.get_response_for(self, {occured_on: occured_on, queryScope: query_scope})
|
33
37
|
end
|
34
38
|
|
35
39
|
#
|
36
40
|
# @param {String} reference
|
41
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
37
42
|
#
|
38
|
-
def self.find_by_reference reference
|
39
|
-
GoTransverseTractApi.get_response_for(self, {reference: reference})
|
43
|
+
def self.find_by_reference reference, query_scope=nil
|
44
|
+
GoTransverseTractApi.get_response_for(self, {reference: reference, queryScope: query_scope})
|
40
45
|
end
|
41
46
|
|
42
47
|
#
|
43
48
|
# @param {String} status
|
49
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
44
50
|
#
|
45
|
-
def self.find_by_status status
|
46
|
-
GoTransverseTractApi.get_response_for(self, {status: status})
|
51
|
+
def self.find_by_status status, query_scope=nil
|
52
|
+
GoTransverseTractApi.get_response_for(self, {status: status, queryScope: query_scope})
|
47
53
|
end
|
48
54
|
|
49
55
|
#
|
50
56
|
# @param {String} authorization
|
57
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
51
58
|
#
|
52
|
-
def self.find_by_authorization authorization
|
53
|
-
GoTransverseTractApi.get_response_for(self, {authorization: authorization})
|
59
|
+
def self.find_by_authorization authorization, query_scope=nil
|
60
|
+
GoTransverseTractApi.get_response_for(self, {authorization: authorization, queryScope: query_scope})
|
54
61
|
end
|
55
62
|
|
56
63
|
#
|
@@ -12,23 +12,26 @@ module GoTransverseTractApi
|
|
12
12
|
|
13
13
|
#
|
14
14
|
# @param {Long} eid
|
15
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
15
16
|
#
|
16
|
-
def find_by_eid eid
|
17
|
-
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
17
|
+
def find_by_eid eid, query_scope=nil
|
18
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid, queryScope: query_scope})
|
18
19
|
end
|
19
20
|
|
20
21
|
#
|
21
22
|
# @param {String} name
|
23
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
22
24
|
#
|
23
|
-
def find_by_name name
|
24
|
-
GoTransverseTractApi.get_response_for(self, {name: name})
|
25
|
+
def find_by_name name, query_scope=nil
|
26
|
+
GoTransverseTractApi.get_response_for(self, {name: name, queryScope: query_scope})
|
25
27
|
end
|
26
28
|
|
27
29
|
#
|
28
30
|
# @param {String} type
|
31
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
29
32
|
#
|
30
|
-
def find_by_type type
|
31
|
-
GoTransverseTractApi.get_response_for(self, {type: type})
|
33
|
+
def find_by_type type, query_scope=nil
|
34
|
+
GoTransverseTractApi.get_response_for(self, {type: type, queryScope: query_scope})
|
32
35
|
end
|
33
36
|
|
34
37
|
end
|
@@ -12,23 +12,26 @@ module GoTransverseTractApi
|
|
12
12
|
|
13
13
|
#
|
14
14
|
# @param {Long} eid
|
15
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
15
16
|
#
|
16
|
-
def find_by_eid eid
|
17
|
-
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
17
|
+
def find_by_eid eid, query_scope=nil
|
18
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid, queryScope: query_scope})
|
18
19
|
end
|
19
20
|
|
20
21
|
#
|
21
22
|
# @param {Long} account_num
|
23
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
22
24
|
#
|
23
|
-
def find_by_account_num account_num
|
24
|
-
GoTransverseTractApi.get_response_for(self, {account_num: account_num,
|
25
|
+
def find_by_account_num account_num, query_scope=nil
|
26
|
+
GoTransverseTractApi.get_response_for(self, {account_num: account_num, queryScope: query_scope})
|
25
27
|
end
|
26
28
|
|
27
29
|
#
|
28
30
|
# @param {Long} billing_account_eid
|
31
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
29
32
|
#
|
30
|
-
def find_by_billing_account_eid billing_account_eid
|
31
|
-
GoTransverseTractApi.get_response_for(self, {billing_account_eid: billing_account_eid})
|
33
|
+
def find_by_billing_account_eid billing_account_eid, query_scope=nil
|
34
|
+
GoTransverseTractApi.get_response_for(self, {billing_account_eid: billing_account_eid, queryScope: query_scope})
|
32
35
|
end
|
33
36
|
|
34
37
|
end
|