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
@@ -10,58 +10,66 @@ 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 {Long} payment_eid
21
+ # @param {String} query_scope (default: 'SHALLOW')
20
22
  #
21
- def self.find_by_payment_eid payment_eid
22
- GoTransverseTractApi.get_response_for(self, {payment_eid: payment_eid})
23
+ def self.find_by_payment_eid payment_eid, query_scope=nil
24
+ GoTransverseTractApi.get_response_for(self, {payment_eid: payment_eid, queryScope: query_scope})
23
25
  end
24
26
 
25
27
  #
26
28
  # @param {String} account_num
29
+ # @param {String} query_scope (default: 'SHALLOW')
27
30
  #
28
- def self.find_by_account_num account_num
29
- GoTransverseTractApi.get_response_for(self, {account_num: account_num})
31
+ def self.find_by_account_num account_num, query_scope=nil
32
+ GoTransverseTractApi.get_response_for(self, {account_num: account_num, 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
  #
40
44
  # @param {DateTime} occured_on
45
+ # @param {String} query_scope (default: 'SHALLOW')
41
46
  #
42
- def self.find_by_occured_on occured_on
43
- GoTransverseTractApi.get_response_for(self, {occured_on: occured_on})
47
+ def self.find_by_occured_on occured_on, query_scope=nil
48
+ GoTransverseTractApi.get_response_for(self, {occured_on: occured_on, queryScope: query_scope})
44
49
  end
45
50
 
46
51
  #
47
52
  # @param {String} reference
53
+ # @param {String} query_scope (default: 'SHALLOW')
48
54
  #
49
- def self.find_by_reference reference
50
- GoTransverseTractApi.get_response_for(self, {reference: reference})
55
+ def self.find_by_reference reference, query_scope=nil
56
+ GoTransverseTractApi.get_response_for(self, {reference: reference, queryScope: query_scope})
51
57
  end
52
58
 
53
59
  #
54
60
  # @param {String} status
61
+ # @param {String} query_scope (default: 'SHALLOW')
55
62
  #
56
- def self.find_by_status status
57
- GoTransverseTractApi.get_response_for(self, {status: status})
63
+ def self.find_by_status status, query_scope=nil
64
+ GoTransverseTractApi.get_response_for(self, {status: status, queryScope: query_scope})
58
65
  end
59
66
 
60
67
  #
61
68
  # @param {String} authorization
69
+ # @param {String} query_scope (default: 'SHALLOW')
62
70
  #
63
- def self.find_by_authorization authorization
64
- GoTransverseTractApi.get_response_for(self, {authorization: authorization})
71
+ def self.find_by_authorization authorization, query_scope=nil
72
+ GoTransverseTractApi.get_response_for(self, {authorization: authorization, queryScope: query_scope})
65
73
  end
66
74
 
67
75
  #
@@ -12,32 +12,53 @@ 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} service_price_eid
23
+ # @param {String} query_scope (default: 'SHALLOW')
22
24
  #
23
- def find_by_service_price_eid service_price_eid
24
- GoTransverseTractApi.get_response_for(self, {service_price_eid: service_price_eid})
25
+ def find_by_service_price_eid service_price_eid, query_scope=nil
26
+ GoTransverseTractApi.get_response_for(self, {service_price_eid: service_price_eid, queryScope: query_scope})
25
27
  end
26
28
 
27
29
  #
28
30
  # @param {Boolean} invoiced
31
+ # @param {String} query_scope (default: 'SHALLOW')
29
32
  #
30
- def find_by_invoiced invoiced
31
- GoTransverseTractApi.get_response_for(self, {invoiced: invoiced})
33
+ def find_by_invoiced invoiced, query_scope=nil
34
+ GoTransverseTractApi.get_response_for(self, {invoiced: invoiced, queryScope: query_scope})
32
35
  end
33
36
 
34
37
  #
35
38
  # @param {Long} order_item_eid
39
+ # @param {String} query_scope (default: 'SHALLOW')
36
40
  #
37
- def find_by_order_item_eid order_item_eid
38
- GoTransverseTractApi.get_response_for(self, {order_item_eid: order_item_eid})
41
+ def find_by_order_item_eid order_item_eid, query_scope=nil
42
+ GoTransverseTractApi.get_response_for(self, {order_item_eid: order_item_eid, queryScope: query_scope})
39
43
  end
40
44
 
45
+ #
46
+ # @param {Hash} scheduled_charges
47
+ #
48
+ def self.get_scheduled_charges scheduled_charges
49
+ sch_charges = {
50
+ attributes: api_data.get_page_info(scheduled_charges),
51
+ scheduleCharge: {
52
+ eid: scheduled_charges[:eid],
53
+ description: scheduled_charges[:description],
54
+ amount: scheduled_charges[:amount],
55
+ invoiced: scheduled_charges[:invoiced],
56
+ chargeDate: scheduled_charges[:charge_date]
57
+ }
58
+ }
59
+
60
+ sch_charges.delete_if{|k,v| v.nil?}
61
+ end
41
62
  end
42
63
 
43
64
  end
@@ -8,16 +8,18 @@ module GoTransverseTractApi
8
8
 
9
9
  #
10
10
  # @param {Long} invoice_eid
11
+ # @param {String} query_scope (default: 'SHALLOW')
11
12
  #
12
- def find_by_invoice_eid invoice_eid
13
- GoTransverseTractApi.get_response_for(self, {invoice_eid: invoice_eid})
13
+ def find_by_invoice_eid invoice_eid, query_scope=nil
14
+ GoTransverseTractApi.get_response_for(self, {invoice_eid: invoice_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
  end
@@ -10,27 +10,30 @@ 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} status
29
+ # @param {String} query_scope (default: 'SHALLOW')
27
30
  #
28
- def self.find_by_status status
29
- GoTransverseTractApi.get_response_for(self, {status: status})
31
+ def self.find_by_status status, query_scope=nil
32
+ GoTransverseTractApi.get_response_for(self, {status: status, queryScope: query_scope})
30
33
  end
31
34
 
32
35
  end
33
36
 
34
37
  end
35
38
 
36
- end
39
+ end
@@ -6,34 +6,38 @@ 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} general_ledger_eid
17
+ # @param {String} query_scope (default: 'SHALLOW')
16
18
  #
17
- def self.find_by_general_ledger_eid general_ledger_eid
18
- GoTransverseTractApi.get_response_for(self, {general_ledger_eid: general_ledger_eid})
19
+ def self.find_by_general_ledger_eid general_ledger_eid, query_scope=nil
20
+ GoTransverseTractApi.get_response_for(self, {general_ledger_eid: general_ledger_eid, queryScope: query_scope})
19
21
  end
20
22
 
21
23
  #
22
24
  # @param {String} name
25
+ # @param {String} query_scope (default: 'SHALLOW')
23
26
  #
24
- def self.find_by_name name
25
- GoTransverseTractApi.get_response_for(self, {name: name})
27
+ def self.find_by_name name, query_scope=nil
28
+ GoTransverseTractApi.get_response_for(self, {name: name, queryScope: query_scope})
26
29
  end
27
30
 
28
31
  #
29
32
  # @param {String} account_num
33
+ # @param {String} query_scope (default: 'SHALLOW')
30
34
  #
31
- def self.find_by_account_num account_num
32
- GoTransverseTractApi.get_response_for(self, {account_num: account_num})
35
+ def self.find_by_account_num account_num, query_scope=nil
36
+ GoTransverseTractApi.get_response_for(self, {account_num: account_num, queryScope: query_scope})
33
37
  end
34
38
 
35
39
  end
36
40
 
37
41
  end
38
42
 
39
- end
43
+ end
@@ -6,27 +6,30 @@ 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} name
17
+ # @param {String} query_scope (default: 'SHALLOW')
16
18
  #
17
- def self.find_by_name name
18
- GoTransverseTractApi.get_response_for(self, {name: name})
19
+ def self.find_by_name name, query_scope=nil
20
+ GoTransverseTractApi.get_response_for(self, {name: name, queryScope: query_scope})
19
21
  end
20
22
 
21
23
  #
22
24
  # @param {String} status
25
+ # @param {String} query_scope (default: 'SHALLOW')
23
26
  #
24
- def self.find_by_status status
25
- GoTransverseTractApi.get_response_for(self, {status: status})
27
+ def self.find_by_status status, query_scope=nil
28
+ GoTransverseTractApi.get_response_for(self, {status: status, queryScope: query_scope})
26
29
  end
27
30
 
28
31
  end
29
32
 
30
33
  end
31
34
 
32
- end
35
+ end
@@ -8,44 +8,50 @@ 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} gl_account_eid
19
+ # @param {String} query_scope (default: 'SHALLOW')
18
20
  #
19
- def find_by_gl_account_eid gl_account_eid
20
- GoTransverseTractApi.get_response_for(self, {gl_account_eid: gl_account_eid})
21
+ def find_by_gl_account_eid gl_account_eid, query_scope=nil
22
+ GoTransverseTractApi.get_response_for(self, {gl_account_eid: gl_account_eid, queryScope: query_scope})
21
23
  end
22
24
 
23
25
  #
24
26
  # @param {Long} gl_accounting_transaction_eid
27
+ # @param {String} query_scope (default: 'SHALLOW')
25
28
  #
26
- def find_by_gl_accounting_transaction_eid gl_accounting_transaction_eid
27
- GoTransverseTractApi.get_response_for(self, {gl_accounting_transaction_eid: gl_accounting_transaction_eid})
29
+ def find_by_gl_accounting_transaction_eid gl_accounting_transaction_eid, query_scope=nil
30
+ GoTransverseTractApi.get_response_for(self, {gl_accounting_transaction_eid: gl_accounting_transaction_eid, queryScope: query_scope})
28
31
  end
29
32
 
30
33
  #
31
34
  # @param {Long} gl_transaction_batch_num
35
+ # @param {String} query_scope (default: 'SHALLOW')
32
36
  #
33
- def find_by_gl_transaction_batch_num gl_transaction_batch_num
34
- GoTransverseTractApi.get_response_for(self, {gl_transaction_batch_num: gl_transaction_batch_num})
37
+ def find_by_gl_transaction_batch_num gl_transaction_batch_num, query_scope=nil
38
+ GoTransverseTractApi.get_response_for(self, {gl_transaction_batch_num: gl_transaction_batch_num, queryScope: query_scope})
35
39
  end
36
40
 
37
41
  #
38
42
  # @param {Long} gl_aggregate_eid
43
+ # @param {String} query_scope (default: 'SHALLOW')
39
44
  #
40
- def find_by_gl_aggregate_eid gl_aggregate_eid
41
- GoTransverseTractApi.get_response_for(self, {gl_aggregate_eid: gl_aggregate_eid})
45
+ def find_by_gl_aggregate_eid gl_aggregate_eid, query_scope=nil
46
+ GoTransverseTractApi.get_response_for(self, {gl_aggregate_eid: gl_aggregate_eid, queryScope: query_scope})
42
47
  end
43
48
 
44
49
  #
45
50
  # @param {Long} gl_aggregate_batch_num
51
+ # @param {String} query_scope (default: 'SHALLOW')
46
52
  #
47
- def find_by_gl_aggregate_batch_num gl_aggregate_batch_num
48
- GoTransverseTractApi.get_response_for(self, {gl_aggregate_batch_num: gl_aggregate_batch_num})
53
+ def find_by_gl_aggregate_batch_num gl_aggregate_batch_num, query_scope=nil
54
+ GoTransverseTractApi.get_response_for(self, {gl_aggregate_batch_num: gl_aggregate_batch_num, queryScope: query_scope})
49
55
  end
50
56
 
51
57
  end
@@ -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 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} gl_transaction_batch_eid
19
+ # @param {String} query_scope (default: 'SHALLOW')
18
20
  #
19
- def self.find_by_gl_transaction_batch_eid gl_transaction_batch_eid
20
- GoTransverseTractApi.get_response_for(self, {gl_transaction_batch_eid: gl_transaction_batch_eid})
21
+ def self.find_by_gl_transaction_batch_eid gl_transaction_batch_eid, query_scope=nil
22
+ GoTransverseTractApi.get_response_for(self, {gl_transaction_batch_eid: gl_transaction_batch_eid, queryScope: query_scope})
21
23
  end
22
24
 
23
25
  #
24
26
  # @param {Long} batch_num
27
+ # @param {String} query_scope (default: 'SHALLOW')
25
28
  #
26
- def self.find_by_batch_num batch_num
27
- GoTransverseTractApi.get_response_for(self, {batch_num: batch_num})
29
+ def self.find_by_batch_num batch_num, query_scope=nil
30
+ GoTransverseTractApi.get_response_for(self, {batch_num: batch_num, queryScope: query_scope})
28
31
  end
29
32
 
30
33
  #
31
34
  # @param {Date} batch_posted_on
35
+ # @param {String} query_scope (default: 'SHALLOW')
32
36
  #
33
- def self.find_by_batch_posted_on batch_posted_on
34
- GoTransverseTractApi.get_response_for(self, {batch_posted_on: batch_posted_on})
37
+ def self.find_by_batch_posted_on batch_posted_on, query_scope=nil
38
+ GoTransverseTractApi.get_response_for(self, {batch_posted_on: batch_posted_on, queryScope: query_scope})
35
39
  end
36
40
 
37
41
  #
38
42
  # @param {Date} occurred_on
43
+ # @param {String} query_scope (default: 'SHALLOW')
39
44
  #
40
- def self.find_by_occurred_on occurred_on
41
- GoTransverseTractApi.get_response_for(self, {occurred_on: occurred_on})
45
+ def self.find_by_occurred_on occurred_on, query_scope=nil
46
+ GoTransverseTractApi.get_response_for(self, {occurred_on: occurred_on, queryScope: query_scope})
42
47
  end
43
48
 
44
49
  #
45
50
  # @param {String} currency_type
51
+ # @param {String} query_scope (default: 'SHALLOW')
46
52
  #
47
- def self.find_by_currency_type currency_type
48
- GoTransverseTractApi.get_response_for(self, {currency_type: currency_type})
53
+ def self.find_by_currency_type currency_type, query_scope=nil
54
+ GoTransverseTractApi.get_response_for(self, {currency_type: currency_type, queryScope: query_scope})
49
55
  end
50
56
 
51
57
  #
52
58
  # @param {String} original_currency_type
59
+ # @param {String} query_scope (default: 'SHALLOW')
53
60
  #
54
- def self.find_by_original_currency_type original_currency_type
55
- GoTransverseTractApi.get_response_for(self, {original_currency_type: original_currency_type})
61
+ def self.find_by_original_currency_type original_currency_type, query_scope=nil
62
+ GoTransverseTractApi.get_response_for(self, {original_currency_type: original_currency_type, queryScope: query_scope})
56
63
  end
57
64
 
58
65
  end
@@ -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} batch_num
19
+ # @param {String} query_scope (default: 'SHALLOW')
18
20
  #
19
- def find_by_batch_num batch_num
20
- GoTransverseTractApi.get_response_for(self, {batch_num: batch_num})
21
+ def find_by_batch_num batch_num, query_scope=nil
22
+ GoTransverseTractApi.get_response_for(self, {batch_num: batch_num, queryScope: query_scope})
21
23
  end
22
24
 
23
25
  #
24
26
  # @param {Long} gl_transaction_batch_eid
27
+ # @param {String} query_scope (default: 'SHALLOW')
25
28
  #
26
- def find_by_gl_transaction_batch_eid gl_transaction_batch_eid
27
- GoTransverseTractApi.get_response_for(self, {gl_transaction_batch_eid: gl_transaction_batch_eid})
29
+ def find_by_gl_transaction_batch_eid gl_transaction_batch_eid, query_scope=nil
30
+ GoTransverseTractApi.get_response_for(self, {gl_transaction_batch_eid: gl_transaction_batch_eid, queryScope: query_scope})
28
31
  end
29
32
 
30
33
  #
31
34
  # @param {String} currency_type
35
+ # @param {String} query_scope (default: 'SHALLOW')
32
36
  #
33
- def find_by_currency_type currency_type
34
- GoTransverseTractApi.get_response_for(self, {currency_type: currency_type})
37
+ def find_by_currency_type currency_type, query_scope=nil
38
+ GoTransverseTractApi.get_response_for(self, {currency_type: currency_type, queryScope: query_scope})
35
39
  end
36
40
 
37
41
  #
38
42
  # @param {String} original_currency_type
43
+ # @param {String} query_scope (default: 'SHALLOW')
39
44
  #
40
- def find_by_original_currency_type original_currency_type
41
- GoTransverseTractApi.get_response_for(self, {original_currency_type: original_currency_type})
45
+ def find_by_original_currency_type original_currency_type, query_scope=nil
46
+ GoTransverseTractApi.get_response_for(self, {original_currency_type: original_currency_type, queryScope: query_scope})
42
47
  end
43
48
 
44
49
  #
45
50
  # @param {DateTime} occurred_on
51
+ # @param {String} query_scope (default: 'SHALLOW')
46
52
  #
47
- def find_by_occurred_on occurred_on
48
- GoTransverseTractApi.get_response_for(self, {occurred_on: occurred_on})
53
+ def find_by_occurred_on occurred_on, query_scope=nil
54
+ GoTransverseTractApi.get_response_for(self, {occurred_on: occurred_on, queryScope: query_scope})
49
55
  end
50
56
 
51
57
  #
52
58
  # @param {DateTime} batch_posted_on
59
+ # @param {String} query_scope (default: 'SHALLOW')
53
60
  #
54
- def find_by_batch_posted_on batch_posted_on
55
- GoTransverseTractApi.get_response_for(self, {batch_posted_on: batch_posted_on})
61
+ def find_by_batch_posted_on batch_posted_on, query_scope=nil
62
+ GoTransverseTractApi.get_response_for(self, {batch_posted_on: batch_posted_on, queryScope: query_scope})
56
63
  end
57
64
 
58
65
  end