gotransverse-tract-api 0.7.5 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gotransverse-tract-api/api_data.rb +21 -2
  3. data/lib/gotransverse-tract-api/billing_account/adjustment.rb +6 -6
  4. data/lib/gotransverse-tract-api/billing_account/adjustment_application.rb +2 -2
  5. data/lib/gotransverse-tract-api/billing_account/adjustment_reason.rb +5 -5
  6. data/lib/gotransverse-tract-api/billing_account/billing_account.rb +17 -17
  7. data/lib/gotransverse-tract-api/billing_account/counter.rb +8 -8
  8. data/lib/gotransverse-tract-api/billing_account/custom_field.rb +6 -6
  9. data/lib/gotransverse-tract-api/billing_account/custom_field_value.rb +12 -12
  10. data/lib/gotransverse-tract-api/billing_account/invoice.rb +9 -9
  11. data/lib/gotransverse-tract-api/billing_account/invoice_item.rb +3 -3
  12. data/lib/gotransverse-tract-api/billing_account/invoice_item_charge.rb +1 -1
  13. data/lib/gotransverse-tract-api/billing_account/payment.rb +7 -7
  14. data/lib/gotransverse-tract-api/billing_account/reason.rb +4 -4
  15. data/lib/gotransverse-tract-api/billing_account/recurring_payment.rb +4 -4
  16. data/lib/gotransverse-tract-api/billing_account/refund.rb +5 -5
  17. data/lib/gotransverse-tract-api/billing_account/scheduled_charge.rb +5 -5
  18. data/lib/gotransverse-tract-api/billing_account/standard_invoice_adjustment_application.rb +2 -2
  19. data/lib/gotransverse-tract-api/general_ledger/general_ledger.rb +4 -4
  20. data/lib/gotransverse-tract-api/general_ledger/gl_account.rb +4 -4
  21. data/lib/gotransverse-tract-api/general_ledger/gl_account_category.rb +3 -3
  22. data/lib/gotransverse-tract-api/general_ledger/gl_accounting_entry.rb +6 -6
  23. data/lib/gotransverse-tract-api/general_ledger/gl_accounting_transaction.rb +7 -7
  24. data/lib/gotransverse-tract-api/general_ledger/gl_aggregate_batch.rb +6 -6
  25. data/lib/gotransverse-tract-api/general_ledger/gl_aggregate_entry.rb +5 -5
  26. data/lib/gotransverse-tract-api/general_ledger/gl_transaction_batch.rb +5 -5
  27. data/lib/gotransverse-tract-api/order/adjustment_category.rb +4 -4
  28. data/lib/gotransverse-tract-api/order/agreement.rb +9 -9
  29. data/lib/gotransverse-tract-api/order/bill_cycle.rb +6 -6
  30. data/lib/gotransverse-tract-api/order/billing_account_category.rb +4 -4
  31. data/lib/gotransverse-tract-api/order/order_item.rb +8 -8
  32. data/lib/gotransverse-tract-api/order/order_item_charge.rb +7 -7
  33. data/lib/gotransverse-tract-api/order/organization.rb +4 -4
  34. data/lib/gotransverse-tract-api/order/party_category.rb +5 -5
  35. data/lib/gotransverse-tract-api/order/payment_term.rb +5 -5
  36. data/lib/gotransverse-tract-api/order/people.rb +5 -5
  37. data/lib/gotransverse-tract-api/order/product_relation.rb +3 -3
  38. data/lib/gotransverse-tract-api/order/renewal_order.rb +10 -10
  39. data/lib/gotransverse-tract-api/order/sales_order.rb +11 -11
  40. data/lib/gotransverse-tract-api/product/action.rb +2 -2
  41. data/lib/gotransverse-tract-api/product/billing_account_segment_field.rb +5 -5
  42. data/lib/gotransverse-tract-api/product/discount.rb +5 -5
  43. data/lib/gotransverse-tract-api/product/discount_category.rb +4 -4
  44. data/lib/gotransverse-tract-api/product/discount_code.rb +10 -10
  45. data/lib/gotransverse-tract-api/product/discount_identifier.rb +4 -4
  46. data/lib/gotransverse-tract-api/product/one_time_product_price.rb +1 -1
  47. data/lib/gotransverse-tract-api/product/operation.rb +2 -2
  48. data/lib/gotransverse-tract-api/product/operation_attribute.rb +2 -2
  49. data/lib/gotransverse-tract-api/product/price_list.rb +3 -3
  50. data/lib/gotransverse-tract-api/product/product.rb +16 -16
  51. data/lib/gotransverse-tract-api/product/product_price.rb +7 -7
  52. data/lib/gotransverse-tract-api/product/product_price_range.rb +6 -6
  53. data/lib/gotransverse-tract-api/product/product_tag.rb +4 -4
  54. data/lib/gotransverse-tract-api/product/recurring_product_price.rb +7 -7
  55. data/lib/gotransverse-tract-api/service/service.rb +10 -10
  56. data/lib/gotransverse-tract-api/service/service_device_inventory_item.rb +4 -4
  57. data/lib/gotransverse-tract-api/service/service_period.rb +5 -5
  58. data/lib/gotransverse-tract-api/service/service_price.rb +5 -5
  59. data/lib/gotransverse-tract-api/service/service_price_range.rb +2 -2
  60. data/lib/gotransverse-tract-api/service/service_resource.rb +7 -7
  61. data/lib/gotransverse-tract-api/service/service_resource_category.rb +4 -4
  62. data/lib/gotransverse-tract-api/usage/global_usage_rule.rb +4 -4
  63. data/lib/gotransverse-tract-api/usage/order_item_usage_rule.rb +3 -3
  64. data/lib/gotransverse-tract-api/usage/product_usage_rule.rb +4 -4
  65. data/lib/gotransverse-tract-api/usage/rate_table.rb +2 -2
  66. data/lib/gotransverse-tract-api/usage/service_usage_rule.rb +3 -3
  67. data/lib/gotransverse-tract-api/usage/usage_event.rb +8 -8
  68. data/lib/gotransverse-tract-api/usage/usage_lookup_table.rb +3 -3
  69. data/lib/gotransverse-tract-api/usage/usage_lookup_table_entry.rb +4 -4
  70. data/lib/gotransverse-tract-api/usage/usage_price_category.rb +3 -3
  71. data/lib/gotransverse-tract-api/usage/usage_rule.rb +2 -2
  72. data/lib/gotransverse-tract-api/version.rb +1 -1
  73. data/spec/gotransverse-tract-api/billing_account/billing_account_spec.rb +51 -5
  74. data/spec/gotransverse-tract-api/billing_account/invoice_spec.rb +27 -1
  75. metadata +2 -2
@@ -10,7 +10,7 @@ module GoTransverseTractApi
10
10
  # @param {Long} eid
11
11
  # @param {Hash} options
12
12
  #
13
- def find_by_eid eid, options=nil
13
+ def find_by_eid eid, options={}
14
14
  return nil unless eid.present?
15
15
 
16
16
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
@@ -21,7 +21,7 @@ module GoTransverseTractApi
21
21
  # @param {Long} order_eid
22
22
  # @param {Hash} options
23
23
  #
24
- def find_by_order_eid order_eid, options=nil
24
+ def find_by_order_eid order_eid, options={}
25
25
  return nil unless order_eid.present?
26
26
 
27
27
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({order_eid: order_eid}, options)
@@ -32,7 +32,7 @@ module GoTransverseTractApi
32
32
  # @param {Long} order_item_eid
33
33
  # @param {Hash} options
34
34
  #
35
- def find_by_order_item_eid order_item_eid, options=nil
35
+ def find_by_order_item_eid order_item_eid, options={}
36
36
  return nil unless order_item_eid.present?
37
37
 
38
38
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({order_item_eid: order_item_eid}, options)
@@ -43,7 +43,7 @@ module GoTransverseTractApi
43
43
  # @param {Long} account_num
44
44
  # @param {Hash} options
45
45
  #
46
- def find_by_account_num account_num, options=nil
46
+ def find_by_account_num account_num, options={}
47
47
  return nil unless account_num.present?
48
48
 
49
49
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({account_num: account_num}, options)
@@ -54,7 +54,7 @@ module GoTransverseTractApi
54
54
  # @param {Long} billing_account_eid
55
55
  # @param {Hash} options
56
56
  #
57
- def find_by_billing_account_eid billing_account_eid, options=nil
57
+ def find_by_billing_account_eid billing_account_eid, options={}
58
58
  return nil unless billing_account_eid.present?
59
59
 
60
60
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({billing_account_eid: billing_account_eid}, options)
@@ -65,7 +65,7 @@ module GoTransverseTractApi
65
65
  # @param {String} not_to_invoice
66
66
  # @param {Hash} options
67
67
  #
68
- def find_by_not_to_invoice not_to_invoice, options=nil
68
+ def find_by_not_to_invoice not_to_invoice, options={}
69
69
  return nil unless not_to_invoice.present?
70
70
 
71
71
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({not_to_invoice: not_to_invoice}, options)
@@ -76,7 +76,7 @@ module GoTransverseTractApi
76
76
  # @param {Boolean} invoiced
77
77
  # @param {Hash} options
78
78
  #
79
- def find_by_invoiced invoiced, options=nil
79
+ def find_by_invoiced invoiced, options={}
80
80
  return nil unless invoiced.present?
81
81
 
82
82
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({invoiced: invoiced}, options)
@@ -7,7 +7,7 @@ module GoTransverseTractApi
7
7
  #
8
8
  # @param {Hash} options
9
9
  #
10
- def self.find_all options=nil
10
+ def self.find_all options={}
11
11
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({}, options)
12
12
  GoTransverseTractApi.get_response_for(self, params)
13
13
  end
@@ -16,7 +16,7 @@ module GoTransverseTractApi
16
16
  # @param {Long} eid
17
17
  # @param {Hash} options
18
18
  #
19
- def self.find_by_eid eid, options=nil
19
+ def self.find_by_eid eid, options={}
20
20
  return nil unless eid.present?
21
21
 
22
22
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
@@ -27,7 +27,7 @@ module GoTransverseTractApi
27
27
  # @param {String} name
28
28
  # @param {Hash} options
29
29
  #
30
- def self.find_by_name name, options=nil
30
+ def self.find_by_name name, options={}
31
31
  return nil unless name.present?
32
32
 
33
33
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({name: name}, options)
@@ -38,7 +38,7 @@ module GoTransverseTractApi
38
38
  # @param {Long} billing_account_eid
39
39
  # @param {Hash} options
40
40
  #
41
- def self.find_by_billing_account_eid billing_account_eid, options=nil
41
+ def self.find_by_billing_account_eid billing_account_eid, options={}
42
42
  return nil unless billing_account_eid.present?
43
43
 
44
44
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({billing_account_eid: billing_account_eid}, options)
@@ -7,7 +7,7 @@ module GoTransverseTractApi
7
7
  #
8
8
  # @param {Hash} options
9
9
  #
10
- def self.find_all options=nil
10
+ def self.find_all options={}
11
11
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({}, options)
12
12
  GoTransverseTractApi.get_response_for(self, params)
13
13
  end
@@ -16,7 +16,7 @@ module GoTransverseTractApi
16
16
  # @param {Long} eid
17
17
  # @param {Hash} options
18
18
  #
19
- def self.find_by_eid eid, options=nil
19
+ def self.find_by_eid eid, options={}
20
20
  return nil unless eid.present?
21
21
 
22
22
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
@@ -27,7 +27,7 @@ module GoTransverseTractApi
27
27
  # @param {String} name
28
28
  # @param {Hash} options
29
29
  #
30
- def self.find_by_name name, options=nil
30
+ def self.find_by_name name, options={}
31
31
  return nil unless name.present?
32
32
 
33
33
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({name: name}, options)
@@ -38,7 +38,7 @@ module GoTransverseTractApi
38
38
  # @param {String} description
39
39
  # @param {Hash} options
40
40
  #
41
- def self.find_by_description description, options=nil
41
+ def self.find_by_description description, options={}
42
42
  return nil unless description.present?
43
43
 
44
44
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({description: description}, options)
@@ -49,7 +49,7 @@ module GoTransverseTractApi
49
49
  # @param {String} status
50
50
  # @param {Hash} options
51
51
  #
52
- def self.find_by_status status, options=nil
52
+ def self.find_by_status status, options={}
53
53
  return nil unless status.present?
54
54
 
55
55
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({status: status}, options)
@@ -9,7 +9,7 @@ module GoTransverseTractApi
9
9
  #
10
10
  # @param {Hash} options
11
11
  #
12
- def find_all options=nil
12
+ def find_all options={}
13
13
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({}, options)
14
14
  GoTransverseTractApi.get_response_for(self, params)
15
15
  end
@@ -18,7 +18,7 @@ module GoTransverseTractApi
18
18
  # @param {Long} eid
19
19
  # @param {Hash} options
20
20
  #
21
- def find_by_eid eid, options=nil
21
+ def find_by_eid eid, options={}
22
22
  return nil unless eid.present?
23
23
 
24
24
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
@@ -29,7 +29,7 @@ module GoTransverseTractApi
29
29
  # @param {String} name
30
30
  # @param {Hash} options
31
31
  #
32
- def find_by_name name, options=nil
32
+ def find_by_name name, options={}
33
33
  return nil unless name.present?
34
34
 
35
35
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({name: name}, options)
@@ -40,7 +40,7 @@ module GoTransverseTractApi
40
40
  # @param {Long} billing_account_category_eid
41
41
  # @param {Hash} options
42
42
  #
43
- def find_by_billing_account_category_eid billing_account_category_eid, options=nil
43
+ def find_by_billing_account_category_eid billing_account_category_eid, options={}
44
44
  return nil unless billing_account_category_eid.present?
45
45
 
46
46
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({billing_account_category_eid: billing_account_category_eid}, options)
@@ -51,7 +51,7 @@ module GoTransverseTractApi
51
51
  # @param {Long} billing_account_eid
52
52
  # @param {Hash} options
53
53
  #
54
- def find_by_billing_account_eid billing_account_eid, options=nil
54
+ def find_by_billing_account_eid billing_account_eid, options={}
55
55
  return nil unless billing_account_eid.present?
56
56
 
57
57
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({billing_account_eid: billing_account_eid}, options)
@@ -7,7 +7,7 @@ module GoTransverseTractApi
7
7
  #
8
8
  # @param {Hash} options
9
9
  #
10
- def self.find_all options=nil
10
+ def self.find_all options={}
11
11
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({}, options)
12
12
  GoTransverseTractApi.get_response_for(self, params)
13
13
  end
@@ -16,7 +16,7 @@ module GoTransverseTractApi
16
16
  # @param {Long} eid
17
17
  # @param {Hash} options
18
18
  #
19
- def self.find_by_eid eid, options=nil
19
+ def self.find_by_eid eid, options={}
20
20
  return nil unless eid.present?
21
21
 
22
22
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
@@ -27,7 +27,7 @@ module GoTransverseTractApi
27
27
  # @param {String} first_name
28
28
  # @param {Hash} options
29
29
  #
30
- def self.find_by_first_name first_name, options=nil
30
+ def self.find_by_first_name first_name, options={}
31
31
  return nil unless first_name.present?
32
32
 
33
33
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({first_name: first_name}, options)
@@ -38,7 +38,7 @@ module GoTransverseTractApi
38
38
  # @param {String} last_name
39
39
  # @param {Hash} options
40
40
  #
41
- def self.find_by_last_name last_name, options=nil
41
+ def self.find_by_last_name last_name, options={}
42
42
  return nil unless last_name.present?
43
43
 
44
44
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({last_name: last_name}, options)
@@ -49,7 +49,7 @@ module GoTransverseTractApi
49
49
  # @param {Long} billing_account_eid
50
50
  # @param {Hash} options
51
51
  #
52
- def self.find_by_billing_account_eid billing_account_eid, options=nil
52
+ def self.find_by_billing_account_eid billing_account_eid, options={}
53
53
  return nil unless billing_account_eid.present?
54
54
 
55
55
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({billing_account_eid: billing_account_eid}, options)
@@ -10,7 +10,7 @@ module GoTransverseTractApi
10
10
  # @param {Long} eid
11
11
  # @param {Hash} options
12
12
  #
13
- def find_by_eid eid, options=nil
13
+ def find_by_eid eid, options={}
14
14
  return nil unless eid.present?
15
15
 
16
16
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
@@ -21,7 +21,7 @@ module GoTransverseTractApi
21
21
  # @param {Long} product_eid
22
22
  # @param {Hash} options
23
23
  #
24
- def find_by_product_eid product_eid, options=nil
24
+ def find_by_product_eid product_eid, options={}
25
25
  return nil unless product_eid.present?
26
26
 
27
27
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_eid: product_eid}, options)
@@ -32,7 +32,7 @@ module GoTransverseTractApi
32
32
  # @param {String} type
33
33
  # @param {Hash} options
34
34
  #
35
- def find_by_type type, options=nil
35
+ def find_by_type type, options={}
36
36
  return nil unless type.present?
37
37
 
38
38
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({type: type}, options)
@@ -10,7 +10,7 @@ module GoTransverseTractApi
10
10
  # @param {Long} eid
11
11
  # @param {Hash} options
12
12
  #
13
- def find_by_eid eid, options=nil
13
+ def find_by_eid eid, options={}
14
14
  return nil unless eid.present?
15
15
 
16
16
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
@@ -21,7 +21,7 @@ module GoTransverseTractApi
21
21
  # @param {Long} order_num
22
22
  # @param {Hash} options
23
23
  #
24
- def find_by_order_num order_num, options=nil
24
+ def find_by_order_num order_num, options={}
25
25
  return nil unless order_num.present?
26
26
 
27
27
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({order_num: order_num}, options)
@@ -32,7 +32,7 @@ module GoTransverseTractApi
32
32
  # @param {Long} billing_account_eid
33
33
  # @param {Hash} options
34
34
  #
35
- def find_by_billing_account_eid billing_account_eid, options=nil
35
+ def find_by_billing_account_eid billing_account_eid, options={}
36
36
  return nil unless billing_account_eid.present?
37
37
 
38
38
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({billing_account_eid: billing_account_eid}, options)
@@ -43,7 +43,7 @@ module GoTransverseTractApi
43
43
  # @param {Long} account_num
44
44
  # @param {Hash} options
45
45
  #
46
- def find_by_account_num account_num, options=nil
46
+ def find_by_account_num account_num, options={}
47
47
  return nil unless account_num.present?
48
48
 
49
49
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({account_num: account_num}, options)
@@ -54,7 +54,7 @@ module GoTransverseTractApi
54
54
  # @param {Long} external_account_num
55
55
  # @param {Hash} options
56
56
  #
57
- def find_by_external_account_num external_account_num, options=nil
57
+ def find_by_external_account_num external_account_num, options={}
58
58
  return nil unless external_account_num.present?
59
59
 
60
60
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({external_account_num: external_account_num}, options)
@@ -65,7 +65,7 @@ module GoTransverseTractApi
65
65
  # @param {Date} order_date
66
66
  # @param {Hash} options
67
67
  #
68
- def find_by_order_date order_date, options=nil
68
+ def find_by_order_date order_date, options={}
69
69
  return nil unless order_date.present?
70
70
 
71
71
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({order_date: order_date}, options)
@@ -76,7 +76,7 @@ module GoTransverseTractApi
76
76
  # @param {String} referral
77
77
  # @param {Hash} options
78
78
  #
79
- def find_by_referral referral, options=nil
79
+ def find_by_referral referral, options={}
80
80
  return nil unless referral.present?
81
81
 
82
82
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({referral: referral}, options)
@@ -87,7 +87,7 @@ module GoTransverseTractApi
87
87
  # @param {Long} purchase_order_num
88
88
  # @param {Hash} options
89
89
  #
90
- def find_by_purchase_order_num purchase_order_num, options=nil
90
+ def find_by_purchase_order_num purchase_order_num, options={}
91
91
  return nil unless purchase_order_num.present?
92
92
 
93
93
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({purchase_order_num: purchase_order_num}, options)
@@ -98,7 +98,7 @@ module GoTransverseTractApi
98
98
  # @param {Date} renewal_date
99
99
  # @param {Hash} options
100
100
  #
101
- def find_by_renewal_date renewal_date, options=nil
101
+ def find_by_renewal_date renewal_date, options={}
102
102
  return nil unless renewal_date.present?
103
103
 
104
104
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({renewal_date: renewal_date}, options)
@@ -109,7 +109,7 @@ module GoTransverseTractApi
109
109
  # @param {Long} custom_field_value_eid
110
110
  # @param {Hash} options
111
111
  #
112
- def find_by_custom_field_value_eid custom_field_value_eid, options=nil
112
+ def find_by_custom_field_value_eid custom_field_value_eid, options={}
113
113
  return nil unless custom_field_value_eid.present?
114
114
 
115
115
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({custom_field_value_eid: custom_field_value_eid}, options)
@@ -9,7 +9,7 @@ module GoTransverseTractApi
9
9
  #
10
10
  # @param {Hash} options
11
11
  #
12
- def find_all options=nil
12
+ def find_all options={}
13
13
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({}, options)
14
14
  GoTransverseTractApi.get_response_for(self, params)
15
15
  end
@@ -18,7 +18,7 @@ module GoTransverseTractApi
18
18
  # @param {Long} eid
19
19
  # @param {Hash} options
20
20
  #
21
- def find_by_eid eid, options=nil
21
+ def find_by_eid eid, options={}
22
22
  return nil unless eid.present?
23
23
 
24
24
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
@@ -29,7 +29,7 @@ module GoTransverseTractApi
29
29
  # @param {Long} order_num
30
30
  # @param {Hash} options
31
31
  #
32
- def find_by_order_num order_num, options=nil
32
+ def find_by_order_num order_num, options={}
33
33
  return nil unless order_num.present?
34
34
 
35
35
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({order_num: order_num}, options)
@@ -40,7 +40,7 @@ module GoTransverseTractApi
40
40
  # @param {Long} billing_account_eid
41
41
  # @param {Hash} options
42
42
  #
43
- def find_by_billing_account_eid billing_account_eid, options=nil
43
+ def find_by_billing_account_eid billing_account_eid, options={}
44
44
  return nil unless billing_account_eid.present?
45
45
 
46
46
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({billing_account_eid: billing_account_eid}, options)
@@ -51,7 +51,7 @@ module GoTransverseTractApi
51
51
  # @param {Long} account_num
52
52
  # @param {Hash} options
53
53
  #
54
- def find_by_account_num account_num, options=nil
54
+ def find_by_account_num account_num, options={}
55
55
  return nil unless account_num.present?
56
56
 
57
57
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({account_num: account_num}, options)
@@ -62,7 +62,7 @@ module GoTransverseTractApi
62
62
  # @param {Long} external_account_num
63
63
  # @param {Hash} options
64
64
  #
65
- def find_by_external_account_num external_account_num, options=nil
65
+ def find_by_external_account_num external_account_num, options={}
66
66
  return nil unless external_account_num.present?
67
67
 
68
68
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({external_account_num: external_account_num}, options)
@@ -73,7 +73,7 @@ module GoTransverseTractApi
73
73
  # @param {Date} order_date
74
74
  # @param {Hash} options
75
75
  #
76
- def find_by_order_date order_date, options=nil
76
+ def find_by_order_date order_date, options={}
77
77
  return nil unless order_date.present?
78
78
 
79
79
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({order_date: order_date}, options)
@@ -84,7 +84,7 @@ module GoTransverseTractApi
84
84
  # @param {String} referral
85
85
  # @param {Hash} options
86
86
  #
87
- def find_by_referral referral, options=nil
87
+ def find_by_referral referral, options={}
88
88
  return nil unless referral.present?
89
89
 
90
90
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({referral: referral}, options)
@@ -95,7 +95,7 @@ module GoTransverseTractApi
95
95
  # @param {Long} purchase_order_num
96
96
  # @param {Hash} options
97
97
  #
98
- def find_by_purchase_order_num purchase_order_num, options=nil
98
+ def find_by_purchase_order_num purchase_order_num, options={}
99
99
  return nil unless purchase_order_num.present?
100
100
 
101
101
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({purchase_order_num: purchase_order_num}, options)
@@ -106,7 +106,7 @@ module GoTransverseTractApi
106
106
  # @param {String} status
107
107
  # @param {Hash} options
108
108
  #
109
- def find_by_status status, options=nil
109
+ def find_by_status status, options={}
110
110
  return nil unless status.present?
111
111
 
112
112
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({status: status}, options)
@@ -117,7 +117,7 @@ module GoTransverseTractApi
117
117
  # @param {Long} custom_field_value_eid
118
118
  # @param {Hash} options
119
119
  #
120
- def find_by_custom_field_value_eid custom_field_value_eid, options=nil
120
+ def find_by_custom_field_value_eid custom_field_value_eid, options={}
121
121
  return nil unless custom_field_value_eid.present?
122
122
 
123
123
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({custom_field_value_eid: custom_field_value_eid}, options)
@@ -8,7 +8,7 @@ module GoTransverseTractApi
8
8
  # @param {Long} eid
9
9
  # @param {Hash} options
10
10
  #
11
- def self.find_by_eid eid, options=nil
11
+ def self.find_by_eid eid, options={}
12
12
  return nil unless eid.present?
13
13
 
14
14
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options)
@@ -19,7 +19,7 @@ module GoTransverseTractApi
19
19
  # @param {Long} product_eid
20
20
  # @param {Hash} options
21
21
  #
22
- def self.find_by_product_eid product_eid, options=nil
22
+ def self.find_by_product_eid product_eid, options={}
23
23
  return nil unless product_eid.present?
24
24
 
25
25
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_eid: product_eid}, options)