gotransverse-tract-api 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gotransverse-tract-api.rb +0 -1
  3. data/lib/gotransverse-tract-api/api_data.rb +6 -0
  4. data/lib/gotransverse-tract-api/billing_account/adjustment.rb +38 -20
  5. data/lib/gotransverse-tract-api/billing_account/adjustment_application.rb +12 -6
  6. data/lib/gotransverse-tract-api/billing_account/adjustment_reason.rb +30 -14
  7. data/lib/gotransverse-tract-api/billing_account/billing_account.rb +103 -50
  8. data/lib/gotransverse-tract-api/billing_account/counter.rb +50 -26
  9. data/lib/gotransverse-tract-api/billing_account/custom_field.rb +36 -17
  10. data/lib/gotransverse-tract-api/billing_account/custom_field_value.rb +72 -35
  11. data/lib/gotransverse-tract-api/billing_account/invoice.rb +54 -27
  12. data/lib/gotransverse-tract-api/billing_account/invoice_item.rb +18 -9
  13. data/lib/gotransverse-tract-api/billing_account/invoice_item_charge.rb +6 -3
  14. data/lib/gotransverse-tract-api/billing_account/payment.rb +44 -23
  15. data/lib/gotransverse-tract-api/billing_account/reason.rb +24 -11
  16. data/lib/gotransverse-tract-api/billing_account/recurring_payment.rb +24 -11
  17. data/lib/gotransverse-tract-api/billing_account/refund.rb +30 -43
  18. data/lib/gotransverse-tract-api/billing_account/scheduled_charge.rb +30 -14
  19. data/lib/gotransverse-tract-api/billing_account/standard_invoice_adjustment_application.rb +12 -6
  20. data/lib/gotransverse-tract-api/general_ledger/general_ledger.rb +42 -25
  21. data/lib/gotransverse-tract-api/general_ledger/gl_account.rb +24 -12
  22. data/lib/gotransverse-tract-api/general_ledger/gl_account_category.rb +18 -9
  23. data/lib/gotransverse-tract-api/general_ledger/gl_accounting_entry.rb +36 -18
  24. data/lib/gotransverse-tract-api/general_ledger/gl_accounting_transaction.rb +42 -21
  25. data/lib/gotransverse-tract-api/general_ledger/gl_adjustment_accounting_transaction.rb +1 -61
  26. data/lib/gotransverse-tract-api/general_ledger/gl_aggregate_batch.rb +37 -19
  27. data/lib/gotransverse-tract-api/general_ledger/gl_aggregate_entry.rb +53 -34
  28. data/lib/gotransverse-tract-api/general_ledger/gl_invoice_accounting_transaction.rb +1 -1
  29. data/lib/gotransverse-tract-api/general_ledger/gl_payment_accounting_transaction.rb +1 -1
  30. data/lib/gotransverse-tract-api/general_ledger/gl_transaction_batch.rb +32 -17
  31. data/lib/gotransverse-tract-api/order/adjustment_category.rb +24 -11
  32. data/lib/gotransverse-tract-api/order/agreement.rb +55 -26
  33. data/lib/gotransverse-tract-api/order/bill_cycle.rb +36 -17
  34. data/lib/gotransverse-tract-api/order/billing_account_category.rb +26 -11
  35. data/lib/gotransverse-tract-api/order/order_item.rb +48 -24
  36. data/lib/gotransverse-tract-api/order/order_item_charge.rb +42 -21
  37. data/lib/gotransverse-tract-api/order/organization.rb +24 -11
  38. data/lib/gotransverse-tract-api/order/party_category.rb +30 -14
  39. data/lib/gotransverse-tract-api/order/payment_term.rb +33 -17
  40. data/lib/gotransverse-tract-api/order/people.rb +30 -14
  41. data/lib/gotransverse-tract-api/order/product_relation.rb +18 -9
  42. data/lib/gotransverse-tract-api/order/renewal_order.rb +61 -31
  43. data/lib/gotransverse-tract-api/order/sales_order.rb +66 -32
  44. data/lib/gotransverse-tract-api/product/action.rb +12 -6
  45. data/lib/gotransverse-tract-api/product/billing_account_segment_field.rb +30 -15
  46. data/lib/gotransverse-tract-api/product/discount.rb +30 -15
  47. data/lib/gotransverse-tract-api/product/discount_category.rb +24 -11
  48. data/lib/gotransverse-tract-api/product/discount_code.rb +60 -30
  49. data/lib/gotransverse-tract-api/product/discount_identifier.rb +24 -11
  50. data/lib/gotransverse-tract-api/product/one_time_product_price.rb +6 -3
  51. data/lib/gotransverse-tract-api/product/operation.rb +12 -5
  52. data/lib/gotransverse-tract-api/product/operation_attribute.rb +12 -6
  53. data/lib/gotransverse-tract-api/product/price_list.rb +18 -8
  54. data/lib/gotransverse-tract-api/product/product.rb +96 -47
  55. data/lib/gotransverse-tract-api/product/product_price.rb +42 -21
  56. data/lib/gotransverse-tract-api/product/product_price_range.rb +36 -18
  57. data/lib/gotransverse-tract-api/product/product_tag.rb +26 -13
  58. data/lib/gotransverse-tract-api/product/recurring_product_price.rb +42 -21
  59. data/lib/gotransverse-tract-api/service/service.rb +60 -31
  60. data/lib/gotransverse-tract-api/service/service_device_inventory_item.rb +24 -12
  61. data/lib/gotransverse-tract-api/service/service_period.rb +30 -15
  62. data/lib/gotransverse-tract-api/service/service_price.rb +30 -15
  63. data/lib/gotransverse-tract-api/service/service_price_range.rb +12 -6
  64. data/lib/gotransverse-tract-api/service/service_resource.rb +42 -21
  65. data/lib/gotransverse-tract-api/service/service_resource_category.rb +24 -11
  66. data/lib/gotransverse-tract-api/usage/global_usage_rule.rb +24 -11
  67. data/lib/gotransverse-tract-api/usage/order_item_usage_rule.rb +18 -9
  68. data/lib/gotransverse-tract-api/usage/product_usage_rule.rb +24 -12
  69. data/lib/gotransverse-tract-api/usage/rate_table.rb +12 -6
  70. data/lib/gotransverse-tract-api/usage/service_usage_rule.rb +18 -9
  71. data/lib/gotransverse-tract-api/usage/usage_event.rb +48 -24
  72. data/lib/gotransverse-tract-api/usage/usage_lookup_table.rb +19 -10
  73. data/lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb +24 -12
  74. data/lib/gotransverse-tract-api/usage/usage_price_category.rb +19 -9
  75. data/lib/gotransverse-tract-api/usage/usage_rule.rb +12 -6
  76. data/lib/gotransverse-tract-api/version.rb +1 -1
  77. data/spec/gotransverse-tract-api/order/sales_order_spec.rb +44 -0
  78. data/spec/gotransverse-tract-api/product/product_spec.rb +1 -1
  79. metadata +2 -3
  80. data/lib/gotransverse-tract-api/product/usage_rule.rb +0 -27
@@ -8,50 +8,68 @@ module GoTransverseTractApi
8
8
 
9
9
  #
10
10
  # @param {Long} eid
11
- # @param {String} query_scope (default: 'SHALLOW')
11
+ # @param {Hash} options
12
12
  #
13
- def find_by_eid eid, query_scope=nil
14
- GoTransverseTractApi.get_response_for(self, {eid: eid, queryScope: query_scope})
13
+ def find_by_eid eid, options=nil
14
+ return nil unless eid.present?
15
+
16
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
17
+ GoTransverseTractApi.get_response_for(self, params)
15
18
  end
16
19
 
17
20
  #
18
21
  # @param {Long} batch_num
19
- # @param {String} query_scope (default: 'SHALLOW')
22
+ # @param {Hash} options
20
23
  #
21
- def find_by_batch_num batch_num, query_scope=nil
22
- GoTransverseTractApi.get_response_for(self, {batch_num: batch_num, queryScope: query_scope})
24
+ def find_by_batch_num batch_num, options=nil
25
+ return nil unless batch_num.present?
26
+
27
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({batch_num: batch_num}, options)
28
+ GoTransverseTractApi.get_response_for(self, params)
23
29
  end
24
30
 
25
31
  #
26
32
  # @param {String} status
27
- # @param {String} query_scope (default: 'SHALLOW')
33
+ # @param {Hash} options
28
34
  #
29
- def find_by_status status, query_scope=nil
30
- GoTransverseTractApi.get_response_for(self, {status: status, queryScope: query_scope})
35
+ def find_by_status status, options=nil
36
+ return nil unless status.present?
37
+
38
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({status: status}, options)
39
+ GoTransverseTractApi.get_response_for(self, params)
31
40
  end
32
41
 
33
42
  #
34
43
  # @param {Boolean} exported
35
- # @param {String} query_scope (default: 'SHALLOW')
44
+ # @param {Hash} options
36
45
  #
37
- def find_by_exported exported, query_scope=nil
38
- GoTransverseTractApi.get_response_for(self, {exported: exported, queryScope: query_scope})
46
+ def find_by_exported exported, options=nil
47
+ return nil unless exported.present?
48
+
49
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({exported: exported}, options)
50
+ GoTransverseTractApi.get_response_for(self, params)
39
51
  end
40
52
 
41
53
  #
42
54
  # @param {DateTime} posted_on
43
- # @param {String} query_scope (default: 'SHALLOW')
55
+ # @param {Hash} options
44
56
  #
45
- def find_by_posted_on posted_on, query_scope=nil
46
- GoTransverseTractApi.get_response_for(self, {posted_on: posted_on, queryScope: query_scope})
57
+ def find_by_posted_on posted_on, options=nil
58
+ return nil unless posted_on.present?
59
+
60
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({posted_on: posted_on}, options)
61
+ GoTransverseTractApi.get_response_for(self, params)
47
62
  end
48
63
 
49
64
  #
50
- # @param {DateTime} batch_posted_on
51
- # @param {String} query_scope (default: 'SHALLOW')
65
+ # @param {Date} batch_posted_on
66
+ # @param {Hash} options
52
67
  #
53
- def find_by_batch_posted_on batch_posted_on, query_scope=nil
54
- GoTransverseTractApi.get_response_for(self, {batch_posted_on: batch_posted_on, queryScope: query_scope})
68
+ def find_by_batch_posted_on batch_posted_on, options=nil
69
+ return nil unless batch_posted_on.present?
70
+
71
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({batch_posted_on: batch_posted_on}, options)
72
+ GoTransverseTractApi.get_response_for(self, params)
55
73
  end
56
74
 
57
75
  #
@@ -4,44 +4,63 @@ module GoTransverseTractApi
4
4
 
5
5
  class GLAggregateEntry
6
6
 
7
- #
8
- # @param {Long} eid
9
- # @param {String} query_scope (default: 'SHALLOW')
10
- #
11
- def self.find_by_eid eid, query_scope=nil
12
- GoTransverseTractApi.get_response_for(self, {eid: eid, queryScope: query_scope})
13
- end
7
+ class << self
14
8
 
15
- #
16
- # @param {Long} gl_account_eid
17
- # @param {String} query_scope (default: 'SHALLOW')
18
- #
19
- def self.find_by_gl_account_eid gl_account_eid, query_scope=nil
20
- GoTransverseTractApi.get_response_for(self, {gl_account_eid: gl_account_eid, queryScope: query_scope})
21
- end
9
+ #
10
+ # @param {Long} eid
11
+ # @param {Hash} options
12
+ #
13
+ def find_by_eid eid, options=nil
14
+ return nil unless eid.present?
22
15
 
23
- #
24
- # @param {Long} gl_aggregate_batch_eid
25
- # @param {String} query_scope (default: 'SHALLOW')
26
- #
27
- def self.find_by_gl_aggregate_batch_eid gl_aggregate_batch_eid, query_scope=nil
28
- GoTransverseTractApi.get_response_for(self, {gl_aggregate_batch_eid: gl_aggregate_batch_eid, queryScope: query_scope})
29
- end
16
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
17
+ GoTransverseTractApi.get_response_for(self, params)
18
+ end
30
19
 
31
- #
32
- # @param {DateTime} posted_on
33
- # @param {String} query_scope (default: 'SHALLOW')
34
- #
35
- def self.find_by_posted_on posted_on, query_scope=nil
36
- GoTransverseTractApi.get_response_for(self, {posted_on: posted_on, queryScope: query_scope})
37
- end
20
+ #
21
+ # @param {Long} batch_num
22
+ # @param {Hash} options
23
+ #
24
+ def find_by_batch_num batch_num, options=nil
25
+ return nil unless batch_num.present?
26
+
27
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({batch_num: batch_num}, options)
28
+ GoTransverseTractApi.get_response_for(self, params)
29
+ end
30
+
31
+ #
32
+ # @param {DateTime} posted_on
33
+ # @param {Hash} options
34
+ #
35
+ def find_by_posted_on posted_on, options=nil
36
+ return nil unless posted_on.present?
37
+
38
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({posted_on: posted_on}, options)
39
+ GoTransverseTractApi.get_response_for(self, params)
40
+ end
41
+
42
+ #
43
+ # @param {Long} gl_account_eid
44
+ # @param {Hash} options
45
+ #
46
+ def find_by_gl_account_eid gl_account_eid, options=nil
47
+ return nil unless gl_account_eid.present?
48
+
49
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({gl_account_eid: gl_account_eid}, options)
50
+ GoTransverseTractApi.get_response_for(self, params)
51
+ end
52
+
53
+ #
54
+ # @param {Long} gl_aggregate_batch_eid
55
+ # @param {Hash} options
56
+ #
57
+ def find_by_gl_aggregate_batch_eid gl_aggregate_batch_eid, options=nil
58
+ return nil unless gl_aggregate_batch_eid.present?
59
+
60
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({gl_aggregate_batch_eid: gl_aggregate_batch_eid}, options)
61
+ GoTransverseTractApi.get_response_for(self, params)
62
+ end
38
63
 
39
- #
40
- # @param {Long} batch_num
41
- # @param {String} query_scope (default: 'SHALLOW')
42
- #
43
- def self.find_by_batch_num batch_num, query_scope=nil
44
- GoTransverseTractApi.get_response_for(self, {batch_num: batch_num, queryScope: query_scope})
45
64
  end
46
65
 
47
66
  end
@@ -2,7 +2,7 @@ module GoTransverseTractApi
2
2
 
3
3
  module GeneralLedger
4
4
 
5
- class GLInvoiceAccountingTransaction < GLAdjustmentAccountingTransaction
5
+ class GLInvoiceAccountingTransaction < GLAccountingTransaction
6
6
  # same methods of parent class
7
7
 
8
8
  end
@@ -2,7 +2,7 @@ module GoTransverseTractApi
2
2
 
3
3
  module GeneralLedger
4
4
 
5
- class GLPaymentAccountingTransaction < GLAdjustmentAccountingTransaction
5
+ class GLPaymentAccountingTransaction < GLAccountingTransaction
6
6
  # same methods of parent class
7
7
 
8
8
  end
@@ -8,42 +8,57 @@ module GoTransverseTractApi
8
8
 
9
9
  #
10
10
  # @param {Long} eid
11
- # @param {String} query_scope (default: 'SHALLOW')
11
+ # @param {Hash} options
12
12
  #
13
- def find_by_eid eid, query_scope=nil
14
- GoTransverseTractApi.get_response_for(self, {eid: eid, queryScope: query_scope})
13
+ def find_by_eid eid, options=nil
14
+ return nil unless eid.present?
15
+
16
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
17
+ GoTransverseTractApi.get_response_for(self, params)
15
18
  end
16
19
 
17
20
  #
18
21
  # @param {Long} batch_num
19
- # @param {String} query_scope (default: 'SHALLOW')
22
+ # @param {Hash} options
20
23
  #
21
- def find_by_batch_num batch_num, query_scope=nil
22
- GoTransverseTractApi.get_response_for(self, {batch_num: batch_num, queryScope: query_scope})
24
+ def find_by_batch_num batch_num, options=nil
25
+ return nil unless batch_num.present?
26
+
27
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({batch_num: batch_num}, options)
28
+ GoTransverseTractApi.get_response_for(self, params)
23
29
  end
24
30
 
25
31
  #
26
32
  # @param {DateTime} posted_on
27
- # @param {String} query_scope (default: 'SHALLOW')
33
+ # @param {Hash} options
28
34
  #
29
- def find_by_posted_on posted_on, query_scope=nil
30
- GoTransverseTractApi.get_response_for(self, {posted_on: posted_on, queryScope: query_scope})
35
+ def find_by_posted_on posted_on, options=nil
36
+ return nil unless posted_on.present?
37
+
38
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({posted_on: posted_on}, options)
39
+ GoTransverseTractApi.get_response_for(self, params)
31
40
  end
32
41
 
33
42
  #
34
- # @param {Boolean} exported
35
- # @param {String} query_scope (default: 'SHALLOW')
43
+ # @param {String} status
44
+ # @param {Hash} options
36
45
  #
37
- def find_by_exported exported, query_scope=nil
38
- GoTransverseTractApi.get_response_for(self, {exported: exported, queryScope: query_scope})
46
+ def find_by_status status, options=nil
47
+ return nil unless status.present?
48
+
49
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({status: status}, options)
50
+ GoTransverseTractApi.get_response_for(self, params)
39
51
  end
40
52
 
41
53
  #
42
- # @param {String} status
43
- # @param {String} query_scope (default: 'SHALLOW')
54
+ # @param {Boolean} exported
55
+ # @param {Hash} options
44
56
  #
45
- def find_by_status status, query_scope=nil
46
- GoTransverseTractApi.get_response_for(self, {status: status, queryScope: query_scope})
57
+ def find_by_exported exported, options=nil
58
+ return nil unless exported.present?
59
+
60
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({exported: exported}, options)
61
+ GoTransverseTractApi.get_response_for(self, params)
47
62
  end
48
63
 
49
64
  #
@@ -6,32 +6,45 @@ module GoTransverseTractApi
6
6
 
7
7
  class << self
8
8
 
9
- def find_all
10
- GoTransverseTractApi.get_response_for(self)
9
+ #
10
+ # @param {Hash} options
11
+ #
12
+ def find_all options=nil
13
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({}, options)
14
+ GoTransverseTractApi.get_response_for(self, params)
11
15
  end
12
16
 
13
17
  #
14
18
  # @param {Long} eid
15
- # @param {String} query_scope (default: 'SHALLOW')
19
+ # @param {Hash} options
16
20
  #
17
- def find_by_eid eid, query_scope=nil
18
- GoTransverseTractApi.get_response_for(self, {eid: eid, queryScope: query_scope})
21
+ def find_by_eid eid, options=nil
22
+ return nil unless eid.present?
23
+
24
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
25
+ GoTransverseTractApi.get_response_for(self, params)
19
26
  end
20
27
 
21
28
  #
22
29
  # @param {String} name
23
- # @param {String} query_scope (default: 'SHALLOW')
30
+ # @param {Hash} options
24
31
  #
25
- def find_by_name name, query_scope=nil
26
- GoTransverseTractApi.get_response_for(self, {name: name, queryScope: query_scope})
32
+ def find_by_name name, options=nil
33
+ return nil unless name.present?
34
+
35
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({name: name}, options)
36
+ GoTransverseTractApi.get_response_for(self, params)
27
37
  end
28
38
 
29
39
  #
30
40
  # @param {String} status
31
- # @param {String} query_scope (default: 'SHALLOW')
41
+ # @param {Hash} options
32
42
  #
33
- def find_by_status status, query_scope=nil
34
- GoTransverseTractApi.get_response_for(self, {status: status, queryScope: query_scope})
43
+ def find_by_status status, options=nil
44
+ return nil unless status.present?
45
+
46
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({status: status}, options)
47
+ GoTransverseTractApi.get_response_for(self, params)
35
48
  end
36
49
 
37
50
  end
@@ -5,72 +5,101 @@ module GoTransverseTractApi
5
5
  class Agreement
6
6
 
7
7
  class << self
8
- def find_all
9
- GoTransverseTractApi.get_response_for(self)
8
+
9
+ #
10
+ # @param {Hash} options
11
+ #
12
+ def find_all options=nil
13
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({}, options)
14
+ GoTransverseTractApi.get_response_for(self, params)
10
15
  end
11
16
 
12
17
  #
13
18
  # @param {Long} eid
14
- # @param {String} query_scope (default: 'SHALLOW')
19
+ # @param {Hash} options
15
20
  #
16
- def find_by_eid eid, query_scope=nil
17
- GoTransverseTractApi.get_response_for(self, {eid: eid, queryScope: query_scope})
21
+ def find_by_eid eid, options=nil
22
+ return nil unless eid.present?
23
+
24
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
25
+ GoTransverseTractApi.get_response_for(self, params)
18
26
  end
19
27
 
20
28
  #
21
29
  # @param {String} name
22
- # @param {String} query_scope (default: 'SHALLOW')
30
+ # @param {Hash} options
23
31
  #
24
- def find_by_name name, query_scope=nil
25
- GoTransverseTractApi.get_response_for(self, {name: name, queryScope: query_scope})
32
+ def find_by_name name, options=nil
33
+ return nil unless name.present?
34
+
35
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({name: name}, options)
36
+ GoTransverseTractApi.get_response_for(self, params)
26
37
  end
27
38
 
28
39
  #
29
40
  # @param {Long} product_eid
30
- # @param {String} query_scope (default: 'SHALLOW')
41
+ # @param {Hash} options
31
42
  #
32
- def find_by_product_eid product_eid, query_scope=nil
33
- GoTransverseTractApi.get_response_for(self, {product_eid: product_eid, queryScope: query_scope})
43
+ def find_by_product_eid product_eid, options=nil
44
+ return nil unless product_eid.present?
45
+
46
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_eid: product_eid}, options)
47
+ GoTransverseTractApi.get_response_for(self, params)
34
48
  end
35
49
 
36
50
  #
37
51
  # @param {String} status
38
- # @param {String} query_scope (default: 'SHALLOW')
52
+ # @param {Hash} options
39
53
  #
40
- def find_by_status status, query_scope=nil
41
- GoTransverseTractApi.get_response_for(self, {status: status, queryScope: query_scope})
54
+ def find_by_status status, options=nil
55
+ return nil unless status.present?
56
+
57
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({status: status}, options)
58
+ GoTransverseTractApi.get_response_for(self, params)
42
59
  end
43
60
 
44
61
  #
45
62
  # @param {String} termination_fee_currency_type
46
- # @param {String} query_scope (default: 'SHALLOW')
63
+ # @param {Hash} options
47
64
  #
48
- def find_by_termination_fee_currency_type termination_fee_currency_type, query_scope=nil
49
- GoTransverseTractApi.get_response_for(self, {termination_fee_currency_type: termination_fee_currency_type, queryScope: query_scope})
65
+ def find_by_termination_fee_currency_type termination_fee_currency_type, options=nil
66
+ return nil unless termination_fee_currency_type.present?
67
+
68
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({termination_fee_currency_type: termination_fee_currency_type}, options)
69
+ GoTransverseTractApi.get_response_for(self, params)
50
70
  end
51
71
 
52
72
  #
53
73
  # @param {String} max_termination_fee_currency_type
54
- # @param {String} query_scope (default: 'SHALLOW')
74
+ # @param {Hash} options
55
75
  #
56
- def find_by_max_termination_fee_currency_type max_termination_fee_currency_type, query_scope=nil
57
- GoTransverseTractApi.get_response_for(self, {max_termination_fee_currency_type: max_termination_fee_currency_type, queryScope: query_scope})
76
+ def find_by_max_termination_fee_currency_type max_termination_fee_currency_type, options=nil
77
+ return nil unless max_termination_fee_currency_type.present?
78
+
79
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({max_termination_fee_currency_type: max_termination_fee_currency_type}, options)
80
+ GoTransverseTractApi.get_response_for(self, params)
58
81
  end
59
82
 
60
83
  #
61
84
  # @param {Date} from_date
62
- # @param {String} query_scope (default: 'SHALLOW')
85
+ # @param {Hash} options
63
86
  #
64
- def find_by_from_date from_date, query_scope=nil
65
- GoTransverseTractApi.get_response_for(self, {from_date: from_date, queryScope: query_scope})
87
+ def find_by_from_date from_date, options=nil
88
+ return nil unless from_date.present?
89
+
90
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({from_date: from_date}, options)
91
+ GoTransverseTractApi.get_response_for(self, params)
66
92
  end
67
93
 
68
94
  #
69
95
  # @param {Date} thru_date
70
- # @param {String} query_scope (default: 'SHALLOW')
96
+ # @param {Hash} options
71
97
  #
72
- def find_by_thru_date thru_date, query_scope=nil
73
- GoTransverseTractApi.get_response_for(self, {thru_date: thru_date, queryScope: query_scope})
98
+ def find_by_thru_date thru_date, options=nil
99
+ return nil unless thru_date.present?
100
+
101
+ params ||= GoTransverseTractApi::ApiData.new.get_query_params({thru_date: thru_date}, options)
102
+ GoTransverseTractApi.get_response_for(self, params)
74
103
  end
75
104
 
76
105
  #