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
@@ -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 {Long} product_eid
|
17
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
16
18
|
#
|
17
|
-
def self.find_by_product_eid product_eid
|
18
|
-
GoTransverseTractApi.get_response_for(self, {product_eid: product_eid})
|
19
|
+
def self.find_by_product_eid product_eid, query_scope=nil
|
20
|
+
GoTransverseTractApi.get_response_for(self, {product_eid: product_eid, queryScope: query_scope})
|
19
21
|
end
|
20
22
|
|
21
23
|
#
|
22
24
|
# @param {DateTime} from_date
|
25
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
23
26
|
#
|
24
|
-
def self.find_from_date from_date
|
25
|
-
GoTransverseTractApi.get_response_for(self, {from_date: from_date})
|
27
|
+
def self.find_from_date from_date, query_scope=nil
|
28
|
+
GoTransverseTractApi.get_response_for(self, {from_date: from_date, queryScope: query_scope})
|
26
29
|
end
|
27
30
|
|
28
31
|
#
|
29
32
|
# @param {DateTime} thru_date
|
33
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
30
34
|
#
|
31
|
-
def self.find_thru_date thru_date
|
32
|
-
GoTransverseTractApi.get_response_for(self, {thru_date: thru_date})
|
35
|
+
def self.find_thru_date thru_date, query_scope=nil
|
36
|
+
GoTransverseTractApi.get_response_for(self, {thru_date: thru_date, queryScope: query_scope})
|
33
37
|
end
|
34
38
|
|
35
39
|
#
|
36
40
|
# @param {Long} price_list_eid
|
41
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
37
42
|
#
|
38
|
-
def self.find_by_price_list_eid price_list_eid
|
39
|
-
GoTransverseTractApi.get_response_for(self, {price_list_eid: price_list_eid})
|
43
|
+
def self.find_by_price_list_eid price_list_eid, query_scope=nil
|
44
|
+
GoTransverseTractApi.get_response_for(self, {price_list_eid: price_list_eid, queryScope: query_scope})
|
40
45
|
end
|
41
46
|
|
42
47
|
#
|
43
48
|
# @param {Boolean} price_list_is_master
|
49
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
44
50
|
#
|
45
|
-
def self.find_by_price_list_is_master price_list_is_master
|
46
|
-
GoTransverseTractApi.get_response_for(self, {price_list_is_master: price_list_is_master})
|
51
|
+
def self.find_by_price_list_is_master price_list_is_master, query_scope=nil
|
52
|
+
GoTransverseTractApi.get_response_for(self, {price_list_is_master: price_list_is_master, queryScope: query_scope})
|
47
53
|
end
|
48
54
|
|
49
55
|
#
|
50
56
|
# @param {String} currency_type
|
57
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
51
58
|
#
|
52
|
-
def self.find_by_currency_type currency_type
|
53
|
-
GoTransverseTractApi.get_response_for(self, {currency_type: currency_type})
|
59
|
+
def self.find_by_currency_type currency_type, query_scope=nil
|
60
|
+
GoTransverseTractApi.get_response_for(self, {currency_type: currency_type, queryScope: query_scope})
|
54
61
|
end
|
55
62
|
|
56
63
|
end
|
@@ -6,44 +6,50 @@ 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 {Long} product_eid
|
17
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
16
18
|
#
|
17
|
-
def self.find_by_product_eid product_eid
|
18
|
-
GoTransverseTractApi.get_response_for(self, {product_eid: product_eid})
|
19
|
+
def self.find_by_product_eid product_eid, query_scope=nil
|
20
|
+
GoTransverseTractApi.get_response_for(self, {product_eid: product_eid, queryScope: query_scope})
|
19
21
|
end
|
20
22
|
|
21
23
|
#
|
22
24
|
# @param {Long} product_price_eid
|
25
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
23
26
|
#
|
24
|
-
def self.find_by_product_price_eid product_price_eid
|
25
|
-
GoTransverseTractApi.get_response_for(self, {product_price_eid: product_price_eid})
|
27
|
+
def self.find_by_product_price_eid product_price_eid, query_scope=nil
|
28
|
+
GoTransverseTractApi.get_response_for(self, {product_price_eid: product_price_eid, queryScope: query_scope})
|
26
29
|
end
|
27
30
|
|
28
31
|
#
|
29
32
|
# @param {Long} price_list_eid
|
33
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
30
34
|
#
|
31
|
-
def self.find_by_price_list_eid price_list_eid
|
32
|
-
GoTransverseTractApi.get_response_for(self, {price_list_eid: price_list_eid})
|
35
|
+
def self.find_by_price_list_eid price_list_eid, query_scope=nil
|
36
|
+
GoTransverseTractApi.get_response_for(self, {price_list_eid: price_list_eid, queryScope: query_scope})
|
33
37
|
end
|
34
38
|
|
35
39
|
#
|
36
40
|
# @param {Boolean} price_list_is_master
|
41
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
37
42
|
#
|
38
|
-
def self.find_by_price_list_is_master price_list_is_master
|
39
|
-
GoTransverseTractApi.get_response_for(self, {price_list_is_master: price_list_is_master})
|
43
|
+
def self.find_by_price_list_is_master price_list_is_master, query_scope=nil
|
44
|
+
GoTransverseTractApi.get_response_for(self, {price_list_is_master: price_list_is_master, queryScope: query_scope})
|
40
45
|
end
|
41
46
|
|
42
47
|
#
|
43
48
|
# @param {String} currency_type
|
49
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
44
50
|
#
|
45
|
-
def self.find_by_currency_type currency_type
|
46
|
-
GoTransverseTractApi.get_response_for(self, {currency_type: currency_type})
|
51
|
+
def self.find_by_currency_type currency_type, query_scope=nil
|
52
|
+
GoTransverseTractApi.get_response_for(self, {currency_type: currency_type, queryScope: query_scope})
|
47
53
|
end
|
48
54
|
|
49
55
|
end
|
@@ -10,23 +10,26 @@ module GoTransverseTractApi
|
|
10
10
|
|
11
11
|
#
|
12
12
|
# @param {Long} eid
|
13
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
13
14
|
#
|
14
|
-
def self.find_by_eid eid
|
15
|
-
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
15
|
+
def self.find_by_eid eid, query_scope=nil
|
16
|
+
GoTransverseTractApi.get_response_for(self, {eid: eid, queryScope: query_scope})
|
16
17
|
end
|
17
18
|
|
18
19
|
#
|
19
20
|
# @param {String} name
|
21
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
20
22
|
#
|
21
|
-
def self.find_by_name name
|
22
|
-
GoTransverseTractApi.get_response_for(self, {name: name})
|
23
|
+
def self.find_by_name name, query_scope=nil
|
24
|
+
GoTransverseTractApi.get_response_for(self, {name: name, queryScope: query_scope})
|
23
25
|
end
|
24
26
|
|
25
27
|
#
|
26
28
|
# @param {Long} product_eid
|
29
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
27
30
|
#
|
28
|
-
def self.find_by_product_eid product_eid
|
29
|
-
GoTransverseTractApi.get_response_for(self, {product_eid: product_eid})
|
31
|
+
def self.find_by_product_eid product_eid, query_scope=nil
|
32
|
+
GoTransverseTractApi.get_response_for(self, {product_eid: product_eid, queryScope: query_scope})
|
30
33
|
end
|
31
34
|
|
32
35
|
end
|
@@ -8,53 +8,95 @@ module GoTransverseTractApi
|
|
8
8
|
|
9
9
|
#
|
10
10
|
# @param {Long} recurrence_period
|
11
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
11
12
|
#
|
12
|
-
def find_by_recurrence_period recurrence_period
|
13
|
-
GoTransverseTractApi.get_response_for(self, {recurrence_period: recurrence_period})
|
13
|
+
def find_by_recurrence_period recurrence_period, query_scope=nil
|
14
|
+
GoTransverseTractApi.get_response_for(self, {recurrence_period: recurrence_period, queryScope: query_scope})
|
14
15
|
end
|
15
16
|
|
16
17
|
#
|
17
18
|
# @param {Long} recurrence_amount
|
19
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
18
20
|
#
|
19
|
-
def find_by_recurrence_amount recurrence_amount
|
20
|
-
GoTransverseTractApi.get_response_for(self, {recurrence_amount: recurrence_amount})
|
21
|
+
def find_by_recurrence_amount recurrence_amount, query_scope=nil
|
22
|
+
GoTransverseTractApi.get_response_for(self, {recurrence_amount: recurrence_amount, queryScope: query_scope})
|
21
23
|
end
|
22
24
|
|
23
25
|
#
|
24
26
|
# @param {Boolean} recurring_payment_required
|
27
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
25
28
|
#
|
26
|
-
def find_by_recurring_payment_required recurring_payment_required
|
27
|
-
GoTransverseTractApi.get_response_for(self, {recurring_payment_required: recurring_payment_required})
|
29
|
+
def find_by_recurring_payment_required recurring_payment_required, query_scope=nil
|
30
|
+
GoTransverseTractApi.get_response_for(self, {recurring_payment_required: recurring_payment_required, queryScope: query_scope})
|
28
31
|
end
|
29
32
|
|
30
33
|
#
|
31
34
|
# @param {Boolean} bill_in_advance
|
35
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
32
36
|
#
|
33
|
-
def find_by_bill_in_advance bill_in_advance
|
34
|
-
GoTransverseTractApi.get_response_for(self, {bill_in_advance: bill_in_advance})
|
37
|
+
def find_by_bill_in_advance bill_in_advance, query_scope=nil
|
38
|
+
GoTransverseTractApi.get_response_for(self, {bill_in_advance: bill_in_advance, queryScope: query_scope})
|
35
39
|
end
|
36
40
|
|
37
41
|
#
|
38
42
|
# @param {Boolean} prorated_on_cancel
|
43
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
39
44
|
#
|
40
|
-
def find_by_prorated_on_cancel prorated_on_cancel
|
41
|
-
GoTransverseTractApi.get_response_for(self, {prorated_on_cancel: prorated_on_cancel})
|
45
|
+
def find_by_prorated_on_cancel prorated_on_cancel, query_scope=nil
|
46
|
+
GoTransverseTractApi.get_response_for(self, {prorated_on_cancel: prorated_on_cancel, queryScope: query_scope})
|
42
47
|
end
|
43
48
|
|
44
49
|
#
|
45
50
|
# @param {Boolean} prorated_on_order
|
51
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
46
52
|
#
|
47
|
-
def find_by_prorated_on_order prorated_on_order
|
48
|
-
GoTransverseTractApi.get_response_for(self, {prorated_on_order: prorated_on_order})
|
53
|
+
def find_by_prorated_on_order prorated_on_order, query_scope=nil
|
54
|
+
GoTransverseTractApi.get_response_for(self, {prorated_on_order: prorated_on_order, queryScope: query_scope})
|
49
55
|
end
|
50
56
|
|
51
57
|
#
|
52
58
|
# @param {Boolean} prorated_on_order_no_charge
|
59
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
53
60
|
#
|
54
|
-
def find_by_prorated_on_order_no_charge prorated_on_order_no_charge
|
55
|
-
GoTransverseTractApi.get_response_for(self, {prorated_on_order_no_charge: prorated_on_order_no_charge})
|
61
|
+
def find_by_prorated_on_order_no_charge prorated_on_order_no_charge, query_scope=nil
|
62
|
+
GoTransverseTractApi.get_response_for(self, {prorated_on_order_no_charge: prorated_on_order_no_charge, queryScope: query_scope})
|
56
63
|
end
|
57
64
|
|
65
|
+
#
|
66
|
+
# @param {Hash} recurring_product_price
|
67
|
+
#
|
68
|
+
def get_recurring_product_price(recurring_product_price)
|
69
|
+
if recurring_product_price.has_key?('price_ranges')
|
70
|
+
price_ranges = Order::PriceRange.get_price_ranges(recurring_product_price[:price_ranges])
|
71
|
+
end
|
72
|
+
|
73
|
+
if recurring_product_price.has_key?('product_usage_rules')
|
74
|
+
product_usage_rules = Usage::ProductUsageRule.get_product_usage_rule(recurring_product_price[:product_usage_rules])
|
75
|
+
end
|
76
|
+
|
77
|
+
recurringProductPrice = {
|
78
|
+
attributes: {
|
79
|
+
fromDate: recurring_product_price[:from_date],
|
80
|
+
priceOverride: recurring_product_price[:price_override],
|
81
|
+
type: recurring_product_price[:type],
|
82
|
+
paymentOnPurchaseRequired: recurring_product_price[:payment_on_purchase_required],
|
83
|
+
recurringPaymentRequired: recurring_product_price[:recurring_payment_required],
|
84
|
+
recurrencePeriod: recurring_product_price[:recurrence_period],
|
85
|
+
recurrenceAmount: recurring_product_price[:recurrence_amount],
|
86
|
+
allowScheduledCharges: recurring_product_price[:allow_scheduled_charges],
|
87
|
+
currencyType: recurring_product_price[:currency_type],
|
88
|
+
proratedOnOrder: recurring_product_price[:prorated_on_order],
|
89
|
+
proratedOnCancel: recurring_product_price[:prorated_on_cancel],
|
90
|
+
proratedOnOrderNoCharge: recurring_product_price[:prorated_on_order_no_charge],
|
91
|
+
billInAdvance: recurring_product_price[:bill_in_advance],
|
92
|
+
eid: recurring_product_price[:eid]
|
93
|
+
}.delete_if{|k,v| v.nil?},
|
94
|
+
priceRanges: price_ranges,
|
95
|
+
productUsageRules: product_usage_rules
|
96
|
+
}
|
97
|
+
|
98
|
+
recurringProductPrice.delete_if{|k,v| v.nil?}
|
99
|
+
end
|
58
100
|
end
|
59
101
|
|
60
102
|
end
|
@@ -6,20 +6,22 @@ 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 {Long} service_period_eid
|
17
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
16
18
|
#
|
17
|
-
def self.find_by_service_period_eid service_period_eid
|
18
|
-
GoTransverseTractApi.get_response_for(self, {service_period_eid: service_period_eid})
|
19
|
+
def self.find_by_service_period_eid service_period_eid, query_scope=nil
|
20
|
+
GoTransverseTractApi.get_response_for(self, {service_period_eid: service_period_eid, queryScope: query_scope})
|
19
21
|
end
|
20
22
|
|
21
23
|
end
|
22
24
|
|
23
25
|
end
|
24
26
|
|
25
|
-
end
|
27
|
+
end
|
@@ -8,72 +8,82 @@ module GoTransverseTractApi
|
|
8
8
|
|
9
9
|
#
|
10
10
|
# @param {Long} eid
|
11
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
11
12
|
#
|
12
|
-
def self.find_by_eid eid
|
13
|
-
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
13
|
+
def self.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} product_eid
|
19
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
18
20
|
#
|
19
|
-
def find_by_product_eid product_eid
|
20
|
-
GoTransverseTractApi.get_response_for(self, {product_eid: product_eid})
|
21
|
+
def find_by_product_eid product_eid, query_scope=nil
|
22
|
+
GoTransverseTractApi.get_response_for(self, {product_eid: product_eid, queryScope: query_scope})
|
21
23
|
end
|
22
24
|
|
23
25
|
#
|
24
26
|
# @param {Long} custom_field_value_eid
|
27
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
25
28
|
#
|
26
|
-
def find_by_custom_field_value_eid custom_field_value_eid
|
27
|
-
GoTransverseTractApi.get_response_for(self, {custom_field_value_eid: custom_field_value_eid})
|
29
|
+
def find_by_custom_field_value_eid custom_field_value_eid, query_scope=nil
|
30
|
+
GoTransverseTractApi.get_response_for(self, {custom_field_value_eid: custom_field_value_eid, queryScope: query_scope})
|
28
31
|
end
|
29
32
|
|
30
33
|
#
|
31
34
|
# @param {Long} parent_eid
|
35
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
32
36
|
#
|
33
|
-
def self.find_by_parent_eid parent_eid
|
34
|
-
GoTransverseTractApi.get_response_for(self, {parent_eid: parent_eid})
|
37
|
+
def self.find_by_parent_eid parent_eid, query_scope=nil
|
38
|
+
GoTransverseTractApi.get_response_for(self, {parent_eid: parent_eid, queryScope: query_scope})
|
35
39
|
end
|
36
40
|
|
37
41
|
#
|
38
42
|
# @param {Long} billing_account_eid
|
43
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
39
44
|
#
|
40
|
-
def find_by_billing_account_eid billing_account_eid
|
41
|
-
GoTransverseTractApi.get_response_for(self, {billing_account_eid: billing_account_eid})
|
45
|
+
def find_by_billing_account_eid billing_account_eid, query_scope=nil
|
46
|
+
GoTransverseTractApi.get_response_for(self, {billing_account_eid: billing_account_eid, queryScope: query_scope})
|
42
47
|
end
|
43
48
|
|
44
49
|
#
|
45
50
|
# @param {Long} agreement_eid
|
51
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
46
52
|
#
|
47
|
-
def find_by_agreement_eid agreement_eid
|
48
|
-
GoTransverseTractApi.get_response_for(self, {agreement_eid: agreement_eid})
|
53
|
+
def find_by_agreement_eid agreement_eid, query_scope=nil
|
54
|
+
GoTransverseTractApi.get_response_for(self, {agreement_eid: agreement_eid, queryScope: query_scope})
|
49
55
|
end
|
50
56
|
|
51
57
|
#
|
52
58
|
# @param {Long} account_num
|
59
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
53
60
|
#
|
54
|
-
def find_by_account_num account_num
|
55
|
-
GoTransverseTractApi.get_response_for(self, {account_num: account_num})
|
61
|
+
def find_by_account_num account_num, query_scope=nil
|
62
|
+
GoTransverseTractApi.get_response_for(self, {account_num: account_num, queryScope: query_scope})
|
56
63
|
end
|
57
64
|
|
58
65
|
#
|
59
66
|
# @param {Long} external_account_num
|
67
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
60
68
|
#
|
61
|
-
def find_by_external_account_num external_account_num
|
62
|
-
GoTransverseTractApi.get_response_for(self, {external_account_num: external_account_num})
|
69
|
+
def find_by_external_account_num external_account_num, query_scope=nil
|
70
|
+
GoTransverseTractApi.get_response_for(self, {external_account_num: external_account_num, queryScope: query_scope})
|
63
71
|
end
|
64
72
|
|
65
73
|
#
|
66
74
|
# @param {Long} service_resource_identifier
|
75
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
67
76
|
#
|
68
|
-
def find_by_service_resource_identifier service_resource_identifier
|
69
|
-
GoTransverseTractApi.get_response_for(self, {service_resource_identifier: service_resource_identifier})
|
77
|
+
def find_by_service_resource_identifier service_resource_identifier, query_scope=nil
|
78
|
+
GoTransverseTractApi.get_response_for(self, {service_resource_identifier: service_resource_identifier, queryScope: query_scope})
|
70
79
|
end
|
71
80
|
|
72
81
|
#
|
73
82
|
# @param {Long} renewal_count
|
83
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
74
84
|
#
|
75
|
-
def find_by_renewal_count renewal_count
|
76
|
-
GoTransverseTractApi.get_response_for(self, {renewal_count: renewal_count})
|
85
|
+
def find_by_renewal_count renewal_count, query_scope=nil
|
86
|
+
GoTransverseTractApi.get_response_for(self, {renewal_count: renewal_count, queryScope: query_scope})
|
77
87
|
end
|
78
88
|
|
79
89
|
#
|
@@ -8,30 +8,34 @@ module GoTransverseTractApi
|
|
8
8
|
|
9
9
|
#
|
10
10
|
# @param {Long} eid
|
11
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
11
12
|
#
|
12
|
-
def self.find_by_eid eid
|
13
|
-
GoTransverseTractApi.get_response_for(self, {eid: eid})
|
13
|
+
def self.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} product_eid
|
19
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
18
20
|
#
|
19
|
-
def find_by_product_eid product_eid
|
20
|
-
GoTransverseTractApi.get_response_for(self, {product_eid: product_eid})
|
21
|
+
def find_by_product_eid product_eid, query_scope=nil
|
22
|
+
GoTransverseTractApi.get_response_for(self, {product_eid: product_eid, queryScope: query_scope})
|
21
23
|
end
|
22
24
|
|
23
25
|
#
|
24
26
|
# @param {String} status
|
27
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
25
28
|
#
|
26
|
-
def find_by_status status
|
27
|
-
GoTransverseTractApi.get_response_for(self, {status: status})
|
29
|
+
def find_by_status status, query_scope=nil
|
30
|
+
GoTransverseTractApi.get_response_for(self, {status: status, queryScope: query_scope})
|
28
31
|
end
|
29
32
|
|
30
33
|
#
|
31
34
|
# @param {Long} serial_number
|
35
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
32
36
|
#
|
33
|
-
def self.find_by_serial_number serial_number
|
34
|
-
GoTransverseTractApi.get_response_for(self, {serial_number: serial_number})
|
37
|
+
def self.find_by_serial_number serial_number, query_scope=nil
|
38
|
+
GoTransverseTractApi.get_response_for(self, {serial_number: serial_number, queryScope: query_scope})
|
35
39
|
end
|
36
40
|
|
37
41
|
end
|