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
@@ -8,51 +8,58 @@ 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} order_eid
|
19
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
18
20
|
#
|
19
|
-
def find_by_order_eid order_eid
|
20
|
-
GoTransverseTractApi.get_response_for(self, {order_eid: order_eid})
|
21
|
+
def find_by_order_eid order_eid, query_scope=nil
|
22
|
+
GoTransverseTractApi.get_response_for(self, {order_eid: order_eid, queryScope: query_scope})
|
21
23
|
end
|
22
24
|
|
23
25
|
#
|
24
26
|
# @param {Long} order_item_eid
|
27
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
25
28
|
#
|
26
|
-
def find_by_order_item_eid order_item_eid
|
27
|
-
GoTransverseTractApi.get_response_for(self, {order_item_eid: order_item_eid})
|
29
|
+
def find_by_order_item_eid order_item_eid, query_scope=nil
|
30
|
+
GoTransverseTractApi.get_response_for(self, {order_item_eid: order_item_eid, queryScope: query_scope})
|
28
31
|
end
|
29
32
|
|
30
33
|
#
|
31
34
|
# @param {Long} account_num
|
35
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
32
36
|
#
|
33
|
-
def find_by_account_num account_num
|
34
|
-
GoTransverseTractApi.get_response_for(self, {account_num: account_num})
|
37
|
+
def find_by_account_num account_num, query_scope=nil
|
38
|
+
GoTransverseTractApi.get_response_for(self, {account_num: account_num, 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 {String} not_to_invoice
|
51
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
46
52
|
#
|
47
|
-
def find_by_not_to_invoice not_to_invoice
|
48
|
-
GoTransverseTractApi.get_response_for(self, {not_to_invoice: not_to_invoice})
|
53
|
+
def find_by_not_to_invoice not_to_invoice, query_scope=nil
|
54
|
+
GoTransverseTractApi.get_response_for(self, {not_to_invoice: not_to_invoice, queryScope: query_scope})
|
49
55
|
end
|
50
56
|
|
51
57
|
#
|
52
58
|
# @param {Boolean} invoiced
|
59
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
53
60
|
#
|
54
|
-
def find_by_invoiced invoiced
|
55
|
-
GoTransverseTractApi.get_response_for(self, {invoiced: invoiced})
|
61
|
+
def find_by_invoiced invoiced, query_scope=nil
|
62
|
+
GoTransverseTractApi.get_response_for(self, {invoiced: invoiced, queryScope: query_scope})
|
56
63
|
end
|
57
64
|
|
58
65
|
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} billing_account_eid
|
29
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
27
30
|
#
|
28
|
-
def self.find_by_billing_account_eid billing_account_eid
|
29
|
-
GoTransverseTractApi.get_response_for(self, {billing_account_eid: billing_account_eid})
|
31
|
+
def self.find_by_billing_account_eid billing_account_eid, query_scope=nil
|
32
|
+
GoTransverseTractApi.get_response_for(self, {billing_account_eid: billing_account_eid, queryScope: query_scope})
|
30
33
|
end
|
31
34
|
|
32
35
|
#
|
@@ -10,30 +10,34 @@ 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 {String} description
|
29
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
27
30
|
#
|
28
|
-
def self.find_by_description description
|
29
|
-
GoTransverseTractApi.get_response_for(self, {description: description})
|
31
|
+
def self.find_by_description description, query_scope=nil
|
32
|
+
GoTransverseTractApi.get_response_for(self, {description: description, queryScope: query_scope})
|
30
33
|
end
|
31
34
|
|
32
35
|
#
|
33
36
|
# @param {String} status
|
37
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
34
38
|
#
|
35
|
-
def self.find_by_status status
|
36
|
-
GoTransverseTractApi.get_response_for(self, {status: status})
|
39
|
+
def self.find_by_status status, query_scope=nil
|
40
|
+
GoTransverseTractApi.get_response_for(self, {status: status, queryScope: query_scope})
|
37
41
|
end
|
38
42
|
|
39
43
|
end
|
@@ -12,30 +12,34 @@ 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} billing_account_category_eid
|
23
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
22
24
|
#
|
23
|
-
def find_by_billing_account_category_eid billing_account_category_eid
|
24
|
-
GoTransverseTractApi.get_response_for(self, {billing_account_category_eid: billing_account_category_eid})
|
25
|
+
def find_by_billing_account_category_eid billing_account_category_eid, query_scope=nil
|
26
|
+
GoTransverseTractApi.get_response_for(self, {billing_account_category_eid: billing_account_category_eid, 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
|
#
|
35
38
|
# @param {String} name
|
39
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
36
40
|
#
|
37
|
-
def find_by_name name
|
38
|
-
GoTransverseTractApi.get_response_for(self, {name: name})
|
41
|
+
def find_by_name name, query_scope=nil
|
42
|
+
GoTransverseTractApi.get_response_for(self, {name: name, queryScope: query_scope})
|
39
43
|
end
|
40
44
|
|
41
45
|
end
|
@@ -10,30 +10,34 @@ 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} first_name
|
21
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
20
22
|
#
|
21
|
-
def self.find_by_first_name first_name
|
22
|
-
GoTransverseTractApi.get_response_for(self, {first_name: first_name})
|
23
|
+
def self.find_by_first_name first_name, query_scope=nil
|
24
|
+
GoTransverseTractApi.get_response_for(self, {first_name: first_name, queryScope: query_scope})
|
23
25
|
end
|
24
26
|
|
25
27
|
#
|
26
28
|
# @param {String} last_name
|
29
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
27
30
|
#
|
28
|
-
def self.find_by_last_name last_name
|
29
|
-
GoTransverseTractApi.get_response_for(self, {last_name: last_name})
|
31
|
+
def self.find_by_last_name last_name, query_scope=nil
|
32
|
+
GoTransverseTractApi.get_response_for(self, {last_name: last_name, queryScope: query_scope})
|
30
33
|
end
|
31
34
|
|
32
35
|
#
|
33
36
|
# @param {Long} billing_account_eid
|
37
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
34
38
|
#
|
35
|
-
def self.find_by_billing_account_eid billing_account_eid
|
36
|
-
GoTransverseTractApi.get_response_for(self, {billing_account_eid: billing_account_eid})
|
39
|
+
def self.find_by_billing_account_eid billing_account_eid, query_scope=nil
|
40
|
+
GoTransverseTractApi.get_response_for(self, {billing_account_eid: billing_account_eid, queryScope: query_scope})
|
37
41
|
end
|
38
42
|
|
39
43
|
#
|
@@ -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} 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} type
|
27
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
25
28
|
#
|
26
|
-
def find_by_type type
|
27
|
-
GoTransverseTractApi.get_response_for(self, {type: type})
|
29
|
+
def find_by_type type, query_scope=nil
|
30
|
+
GoTransverseTractApi.get_response_for(self, {type: type, queryScope: query_scope})
|
28
31
|
end
|
29
32
|
|
30
33
|
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 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} order_num
|
19
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
18
20
|
#
|
19
|
-
def find_by_order_num order_num
|
20
|
-
GoTransverseTractApi.get_response_for(self, {order_num: order_num})
|
21
|
+
def find_by_order_num order_num, query_scope=nil
|
22
|
+
GoTransverseTractApi.get_response_for(self, {order_num: order_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} account_num
|
35
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
32
36
|
#
|
33
|
-
def find_by_account_num account_num
|
34
|
-
GoTransverseTractApi.get_response_for(self, {account_num: account_num})
|
37
|
+
def find_by_account_num account_num, query_scope=nil
|
38
|
+
GoTransverseTractApi.get_response_for(self, {account_num: account_num, queryScope: query_scope})
|
35
39
|
end
|
36
40
|
|
37
41
|
#
|
38
42
|
# @param {Long} external_account_num
|
43
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
39
44
|
#
|
40
|
-
def find_by_external_account_num external_account_num
|
41
|
-
GoTransverseTractApi.get_response_for(self, {external_account_num: external_account_num})
|
45
|
+
def find_by_external_account_num external_account_num, query_scope=nil
|
46
|
+
GoTransverseTractApi.get_response_for(self, {external_account_num: external_account_num, queryScope: query_scope})
|
42
47
|
end
|
43
48
|
|
44
49
|
#
|
45
50
|
# @param {Date} order_date
|
51
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
46
52
|
#
|
47
|
-
def find_by_order_date order_date
|
48
|
-
GoTransverseTractApi.get_response_for(self, {order_date: order_date})
|
53
|
+
def find_by_order_date order_date, query_scope=nil
|
54
|
+
GoTransverseTractApi.get_response_for(self, {order_date: order_date, queryScope: query_scope})
|
49
55
|
end
|
50
56
|
|
51
57
|
#
|
52
58
|
# @param {String} referral
|
59
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
53
60
|
#
|
54
|
-
def find_by_referral referral
|
55
|
-
GoTransverseTractApi.get_response_for(self, {referral: referral})
|
61
|
+
def find_by_referral referral, query_scope=nil
|
62
|
+
GoTransverseTractApi.get_response_for(self, {referral: referral, queryScope: query_scope})
|
56
63
|
end
|
57
64
|
|
58
65
|
#
|
59
66
|
# @param {Long} purchase_order_number
|
67
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
60
68
|
#
|
61
|
-
def find_by_purchase_order_number purchase_order_number
|
62
|
-
GoTransverseTractApi.get_response_for(self, {purchase_order_number: purchase_order_number})
|
69
|
+
def find_by_purchase_order_number purchase_order_number, query_scope=nil
|
70
|
+
GoTransverseTractApi.get_response_for(self, {purchase_order_number: purchase_order_number, queryScope: query_scope})
|
63
71
|
end
|
64
72
|
|
65
73
|
#
|
66
74
|
# @param {Date} renewal_date
|
75
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
67
76
|
#
|
68
|
-
def find_by_renewal_date renewal_date
|
69
|
-
GoTransverseTractApi.get_response_for(self, {renewal_date: renewal_date})
|
77
|
+
def find_by_renewal_date renewal_date, query_scope=nil
|
78
|
+
GoTransverseTractApi.get_response_for(self, {renewal_date: renewal_date, queryScope: query_scope})
|
70
79
|
end
|
71
80
|
|
72
81
|
#
|
73
82
|
# @param {Long} custom_field_value_eid
|
83
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
74
84
|
#
|
75
|
-
def find_by_custom_field_value_eid custom_field_value_eid
|
76
|
-
GoTransverseTractApi.get_response_for(self, {custom_field_value_eid: custom_field_value_eid})
|
85
|
+
def find_by_custom_field_value_eid custom_field_value_eid, query_scope=nil
|
86
|
+
GoTransverseTractApi.get_response_for(self, {custom_field_value_eid: custom_field_value_eid , queryScope: query_scope})
|
77
87
|
end
|
78
88
|
|
79
89
|
end
|
@@ -12,72 +12,82 @@ 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} order_num
|
23
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
22
24
|
#
|
23
|
-
def find_by_order_num order_num
|
24
|
-
GoTransverseTractApi.get_response_for(self, {order_num: order_num})
|
25
|
+
def find_by_order_num order_num, query_scope=nil
|
26
|
+
GoTransverseTractApi.get_response_for(self, {order_num: order_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
|
#
|
35
38
|
# @param {Long} account_num
|
39
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
36
40
|
#
|
37
|
-
def find_by_account_num account_num
|
38
|
-
GoTransverseTractApi.get_response_for(self, {account_num: account_num})
|
41
|
+
def find_by_account_num account_num, query_scope=nil
|
42
|
+
GoTransverseTractApi.get_response_for(self, {account_num: account_num, queryScope: query_scope})
|
39
43
|
end
|
40
44
|
|
41
45
|
#
|
42
46
|
# @param {Long} external_account_num
|
47
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
43
48
|
#
|
44
|
-
def find_by_external_account_num external_account_num
|
45
|
-
GoTransverseTractApi.get_response_for(self, {external_account_num: external_account_num})
|
49
|
+
def find_by_external_account_num external_account_num, query_scope=nil
|
50
|
+
GoTransverseTractApi.get_response_for(self, {external_account_num: external_account_num, queryScope: query_scope})
|
46
51
|
end
|
47
52
|
|
48
53
|
#
|
49
54
|
# @param {Date} order_date
|
55
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
50
56
|
#
|
51
|
-
def find_by_order_date order_date
|
52
|
-
GoTransverseTractApi.get_response_for(self, {order_date: order_date})
|
57
|
+
def find_by_order_date order_date, query_scope=nil
|
58
|
+
GoTransverseTractApi.get_response_for(self, {order_date: order_date, queryScope: query_scope})
|
53
59
|
end
|
54
60
|
|
55
61
|
#
|
56
62
|
# @param {String} referral
|
63
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
57
64
|
#
|
58
|
-
def find_by_referral referral
|
59
|
-
GoTransverseTractApi.get_response_for(self, {referral: referral})
|
65
|
+
def find_by_referral referral, query_scope=nil
|
66
|
+
GoTransverseTractApi.get_response_for(self, {referral: referral, queryScope: query_scope})
|
60
67
|
end
|
61
68
|
|
62
69
|
#
|
63
70
|
# @param {Long} purchase_order_num
|
71
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
64
72
|
#
|
65
|
-
def find_by_purchase_order_num purchase_order_num
|
66
|
-
GoTransverseTractApi.get_response_for(self, {purchase_order_num: purchase_order_num})
|
73
|
+
def find_by_purchase_order_num purchase_order_num, query_scope=nil
|
74
|
+
GoTransverseTractApi.get_response_for(self, {purchase_order_num: purchase_order_num, queryScope: query_scope})
|
67
75
|
end
|
68
76
|
|
69
77
|
#
|
70
78
|
# @param {String} status
|
79
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
71
80
|
#
|
72
|
-
def find_by_status status
|
73
|
-
GoTransverseTractApi.get_response_for(self, {status: status})
|
81
|
+
def find_by_status status, query_scope=nil
|
82
|
+
GoTransverseTractApi.get_response_for(self, {status: status, queryScope: query_scope})
|
74
83
|
end
|
75
84
|
|
76
85
|
#
|
77
86
|
# @param {Long} custom_field_value_eid
|
87
|
+
# @param {String} query_scope (default: 'SHALLOW')
|
78
88
|
#
|
79
|
-
def find_by_custom_field_value_eid custom_field_value_eid
|
80
|
-
GoTransverseTractApi.get_response_for(self, {custom_field_value_eid: custom_field_value_eid})
|
89
|
+
def find_by_custom_field_value_eid custom_field_value_eid, query_scope=nil
|
90
|
+
GoTransverseTractApi.get_response_for(self, {custom_field_value_eid: custom_field_value_eid, queryScope: query_scope})
|
81
91
|
end
|
82
92
|
|
83
93
|
#
|
@@ -203,6 +213,7 @@ module GoTransverseTractApi
|
|
203
213
|
}
|
204
214
|
}
|
205
215
|
|
216
|
+
debugger
|
206
217
|
xml_data = GoTransverseTractApi.generateXML(data, 'salesOrder')
|
207
218
|
GoTransverseTractApi.post_request_for(self, xml_data, "")
|
208
219
|
end
|