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.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gotransverse-tract-api.rb +1 -6
  3. data/lib/gotransverse-tract-api/api_data.rb +1 -0
  4. data/lib/gotransverse-tract-api/billing_account/adjustment.rb +18 -12
  5. data/lib/gotransverse-tract-api/billing_account/adjustment_application.rb +6 -4
  6. data/lib/gotransverse-tract-api/billing_account/adjustment_reason.rb +12 -8
  7. data/lib/gotransverse-tract-api/billing_account/billing_account.rb +54 -38
  8. data/lib/gotransverse-tract-api/billing_account/counter.rb +24 -16
  9. data/lib/gotransverse-tract-api/billing_account/custom_field.rb +15 -10
  10. data/lib/gotransverse-tract-api/billing_account/custom_field_value.rb +47 -22
  11. data/lib/gotransverse-tract-api/billing_account/invoice.rb +27 -18
  12. data/lib/gotransverse-tract-api/billing_account/invoice_item.rb +9 -6
  13. data/lib/gotransverse-tract-api/billing_account/invoice_item_charge.rb +3 -2
  14. data/lib/gotransverse-tract-api/billing_account/payment.rb +21 -14
  15. data/lib/gotransverse-tract-api/billing_account/reason.rb +9 -6
  16. data/lib/gotransverse-tract-api/billing_account/recurring_payment.rb +9 -6
  17. data/lib/gotransverse-tract-api/billing_account/refund.rb +24 -16
  18. data/lib/gotransverse-tract-api/billing_account/scheduled_charge.rb +29 -8
  19. data/lib/gotransverse-tract-api/billing_account/standard_invoice_adjustment_application.rb +6 -4
  20. data/lib/gotransverse-tract-api/general_ledger/general_ledger.rb +10 -7
  21. data/lib/gotransverse-tract-api/general_ledger/gl_account.rb +13 -9
  22. data/lib/gotransverse-tract-api/general_ledger/gl_account_category.rb +10 -7
  23. data/lib/gotransverse-tract-api/general_ledger/gl_accounting_entry.rb +18 -12
  24. data/lib/gotransverse-tract-api/general_ledger/gl_accounting_transaction.rb +21 -14
  25. data/lib/gotransverse-tract-api/general_ledger/gl_adjustment_accounting_transaction.rb +21 -14
  26. data/lib/gotransverse-tract-api/general_ledger/gl_aggregate_batch.rb +18 -12
  27. data/lib/gotransverse-tract-api/general_ledger/gl_aggregate_entry.rb +15 -10
  28. data/lib/gotransverse-tract-api/general_ledger/gl_transaction_batch.rb +15 -10
  29. data/lib/gotransverse-tract-api/order/adjustment_category.rb +9 -6
  30. data/lib/gotransverse-tract-api/order/agreement.rb +24 -16
  31. data/lib/gotransverse-tract-api/order/bill_cycle.rb +15 -10
  32. data/lib/gotransverse-tract-api/order/billing_account_category.rb +9 -6
  33. data/lib/gotransverse-tract-api/order/order_item.rb +31 -18
  34. data/lib/gotransverse-tract-api/order/order_item_charge.rb +21 -14
  35. data/lib/gotransverse-tract-api/order/organization.rb +9 -6
  36. data/lib/gotransverse-tract-api/order/party_category.rb +12 -8
  37. data/lib/gotransverse-tract-api/order/payment_term.rb +12 -8
  38. data/lib/gotransverse-tract-api/order/people.rb +12 -8
  39. data/lib/gotransverse-tract-api/order/product_relation.rb +9 -6
  40. data/lib/gotransverse-tract-api/order/renewal_order.rb +30 -20
  41. data/lib/gotransverse-tract-api/order/sales_order.rb +31 -20
  42. data/lib/gotransverse-tract-api/product/action.rb +7 -5
  43. data/lib/gotransverse-tract-api/product/billing_account_segment_field.rb +15 -10
  44. data/lib/gotransverse-tract-api/product/discount.rb +15 -10
  45. data/lib/gotransverse-tract-api/product/discount_category.rb +9 -6
  46. data/lib/gotransverse-tract-api/product/discount_code.rb +30 -20
  47. data/lib/gotransverse-tract-api/product/discount_identifier.rb +9 -6
  48. data/lib/gotransverse-tract-api/product/one_time_product_price.rb +3 -2
  49. data/lib/gotransverse-tract-api/product/operation.rb +6 -5
  50. data/lib/gotransverse-tract-api/product/operation_attribute.rb +7 -5
  51. data/lib/gotransverse-tract-api/product/price_list.rb +6 -4
  52. data/lib/gotransverse-tract-api/product/product.rb +37 -25
  53. data/lib/gotransverse-tract-api/product/product_price.rb +21 -14
  54. data/lib/gotransverse-tract-api/product/product_price_range.rb +18 -12
  55. data/lib/gotransverse-tract-api/product/product_tag.rb +9 -6
  56. data/lib/gotransverse-tract-api/product/recurring_product_price.rb +56 -14
  57. data/lib/gotransverse-tract-api/product/usage_rule.rb +7 -5
  58. data/lib/gotransverse-tract-api/service/service.rb +30 -20
  59. data/lib/gotransverse-tract-api/service/service_device_inventory_item.rb +12 -8
  60. data/lib/gotransverse-tract-api/service/service_period.rb +15 -10
  61. data/lib/gotransverse-tract-api/service/service_price.rb +15 -10
  62. data/lib/gotransverse-tract-api/service/service_price_range.rb +6 -4
  63. data/lib/gotransverse-tract-api/service/service_resource.rb +21 -14
  64. data/lib/gotransverse-tract-api/service/service_resource_category.rb +22 -6
  65. data/lib/gotransverse-tract-api/usage/global_usage_rule.rb +9 -6
  66. data/lib/gotransverse-tract-api/usage/order_item_usage_rule.rb +47 -6
  67. data/lib/gotransverse-tract-api/usage/product_usage_rule.rb +41 -8
  68. data/lib/gotransverse-tract-api/usage/rate_table.rb +6 -4
  69. data/lib/gotransverse-tract-api/usage/service_usage_rule.rb +9 -6
  70. data/lib/gotransverse-tract-api/usage/usage_event.rb +15 -10
  71. data/lib/gotransverse-tract-api/usage/usage_lookup_table.rb +9 -6
  72. data/lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb +12 -8
  73. data/lib/gotransverse-tract-api/usage/usage_price_category.rb +6 -4
  74. data/lib/gotransverse-tract-api/{order → usage}/usage_rate.rb +1 -2
  75. data/lib/gotransverse-tract-api/usage/usage_rule.rb +6 -4
  76. data/lib/gotransverse-tract-api/version.rb +1 -1
  77. data/spec/gotransverse-tract-api/billing_account/adjustment_spec.rb +1 -1
  78. data/spec/gotransverse-tract-api/billing_account/billing_account_spec.rb +14 -0
  79. data/spec/gotransverse-tract-api/billing_account/counter_spec.rb +1 -1
  80. data/spec/gotransverse-tract-api/billing_account/invoice_spec.rb +1 -1
  81. data/spec/gotransverse-tract-api/billing_account/payment_spec.rb +1 -1
  82. data/spec/gotransverse-tract-api/billing_account/refund_spec.rb +1 -1
  83. data/spec/gotransverse-tract-api/general_ledger/gl_aggregate_batch_spec.rb +1 -1
  84. data/spec/gotransverse-tract-api/general_ledger/gl_transaction_batch_spec.rb +1 -1
  85. data/spec/gotransverse-tract-api/order/order_item_spec.rb +2 -4
  86. data/spec/gotransverse-tract-api/order/organization_spec.rb +2 -4
  87. data/spec/gotransverse-tract-api/order/people_spec.rb +1 -5
  88. data/spec/gotransverse-tract-api/service/service_resource_spec.rb +1 -1
  89. data/spec/gotransverse-tract-api/service/service_spec.rb +1 -1
  90. data/spec/gotransverse-tract-api/{order → usage}/order_item_usage_rule_spec.rb +3 -2
  91. data/spec/gotransverse-tract-api/{order → usage}/product_usage_rule_spec.rb +1 -1
  92. metadata +7 -12
  93. data/lib/gotransverse-tract-api/order/order_item_usage_rule.rb +0 -65
  94. data/lib/gotransverse-tract-api/order/product_usage_rule.rb +0 -49
  95. data/lib/gotransverse-tract-api/order/recurring_product_price.rb +0 -48
  96. data/lib/gotransverse-tract-api/order/scheduled_charge.rb +0 -26
  97. 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, query_scope: 'DEEP'})
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