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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b5c6c10d87f68b4e989cf51a01ed71f86b9e46a
4
- data.tar.gz: 2a40c0379d1ce0be0a43c3c4535be66449f561d5
3
+ metadata.gz: 2629c94f225f8cfd2116c91d7c090be1d1dd3921
4
+ data.tar.gz: d0b8b6df786d7b947224b2e9c490c803aa6a3c12
5
5
  SHA512:
6
- metadata.gz: 6eef510765a90d1b45e9b18b5a30a0a20d2d5a43593efd2e35fd6e6d9729bfd2e96ad4e3626cc5e8aef9718bb16bfd272cb102b28b919aa92bd9a509a7f62e75
7
- data.tar.gz: 931ad46776a4a726bf0ce96c4fd6a364f4f66854ffd6a368783975c5fe50113de254037a49910b2d1afea55d7825b54c9c6d4dd2846453e32ffdbaae38651117
6
+ metadata.gz: 517b7b16a41eba9210cadcd73893320869fdbde9a266716fc22638e7f3b270c49ad0e8c858895338b61bfc7d07802a2dadb9897d0f4787912ab3d22844dd5d6d
7
+ data.tar.gz: d941e6f54d0a2647eabab0635448bc105a532d358b37375475ea48b81c73deecb97d6300bf6550216e3471bf8107e6a52ee9f972291eeb7fce2308d420724c89
@@ -58,7 +58,7 @@ module GoTransverseTractApi
58
58
  customFieldValues: BillingAccount::CustomFieldValue.get_custom_field_values(sales_order[:custom_field_values]),
59
59
  orderItems: {
60
60
  attributes: {},
61
- orderItem: Order::OrderItem.get_order_item(sales_order[:order_items][:order_item])
61
+ orderItem: get_order_items(sales_order[:order_items][:order_item])
62
62
  },
63
63
  billingAccount: get_billing_account(sales_order[:billing_account])
64
64
  }
@@ -66,6 +66,23 @@ module GoTransverseTractApi
66
66
  so_details
67
67
  end
68
68
 
69
+ #
70
+ # @param {Array} order_items
71
+ #
72
+ # Returns an Array of order item structure
73
+ #
74
+ def get_order_items(order_items)
75
+ order_item_struct = []
76
+
77
+ order_items.each do|item|
78
+ order_item_struct << {
79
+ orderItem: Order::OrderItem.get_order_item(item)
80
+ }
81
+ end
82
+
83
+ order_item_struct
84
+ end
85
+
69
86
  # Returns [Array] Products
70
87
  def get_products(sales_order)
71
88
  products = []
@@ -228,7 +245,9 @@ module GoTransverseTractApi
228
245
  end
229
246
 
230
247
  def get_query_params(params, options={})
231
- params.merge!(options) if(options.present?)
248
+ if(options.present? && options.is_a?(Hash))
249
+ params.merge!(options)
250
+ end
232
251
 
233
252
  params
234
253
  end
@@ -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} billing_account_eid
22
22
  # @param {Hash} options
23
23
  #
24
- def find_by_billing_account_eid billing_account_eid, options=nil
24
+ def find_by_billing_account_eid billing_account_eid, options={}
25
25
  return nil unless billing_account_eid.present?
26
26
 
27
27
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({billing_account_eid: billing_account_eid}, options)
@@ -32,7 +32,7 @@ module GoTransverseTractApi
32
32
  # @param {Long} account_num
33
33
  # @param {Hash} options
34
34
  #
35
- def find_by_account_num account_num, options=nil
35
+ def find_by_account_num account_num, options={}
36
36
  return nil unless account_num.present?
37
37
 
38
38
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({account_num: account_num}, options)
@@ -43,7 +43,7 @@ module GoTransverseTractApi
43
43
  # @param {Long} invoice_num
44
44
  # @param {Hash} options
45
45
  #
46
- def find_by_invoice_num invoice_num, options=nil
46
+ def find_by_invoice_num invoice_num, options={}
47
47
  return nil unless invoice_num.present?
48
48
 
49
49
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({invoice_num: invoice_num}, options)
@@ -54,7 +54,7 @@ module GoTransverseTractApi
54
54
  # @param {Long} invoice_eid
55
55
  # @param {Hash} options
56
56
  #
57
- def find_by_invoice_eid invoice_eid, options=nil
57
+ def find_by_invoice_eid invoice_eid, options={}
58
58
  return nil unless invoice_eid.present?
59
59
 
60
60
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({invoice_eid: invoice_eid}, options)
@@ -65,7 +65,7 @@ module GoTransverseTractApi
65
65
  # @param {String} status
66
66
  # @param {Hash} options
67
67
  #
68
- def find_by_status status, options=nil
68
+ def find_by_status status, options={}
69
69
  return nil unless status.present?
70
70
 
71
71
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({status: status}, 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} adjustment_eid
22
22
  # @param {Hash} options
23
23
  #
24
- def find_by_adjustment_eid adjustment_eid, options=nil
24
+ def find_by_adjustment_eid adjustment_eid, options={}
25
25
  return nil unless adjustment_eid.present?
26
26
 
27
27
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({adjustment_eid: adjustment_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 {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 {String} status
41
41
  # @param {Hash} options
42
42
  #
43
- def find_by_status status, options=nil
43
+ def find_by_status status, options={}
44
44
  return nil unless status.present?
45
45
 
46
46
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({status: status}, options)
@@ -51,7 +51,7 @@ module GoTransverseTractApi
51
51
  # @param {Boolean} credit_only
52
52
  # @param {Hash} options
53
53
  #
54
- def find_by_credit_only credit_only, options=nil
54
+ def find_by_credit_only credit_only, options={}
55
55
  return nil unless credit_only.present?
56
56
 
57
57
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({credit_only: credit_only}, 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} account_num
30
30
  # @param {Hash} options
31
31
  #
32
- def find_by_account_num account_num, options=nil
32
+ def find_by_account_num account_num, options={}
33
33
  return nil unless account_num.present?
34
34
 
35
35
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({account_num: account_num}, options)
@@ -40,7 +40,7 @@ module GoTransverseTractApi
40
40
  # @param {Long} external_account_num
41
41
  # @param {Hash} options
42
42
  #
43
- def find_by_external_account_num external_account_num, options=nil
43
+ def find_by_external_account_num external_account_num, options={}
44
44
  return nil unless external_account_num.present?
45
45
 
46
46
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({external_account_num: external_account_num}, options)
@@ -51,7 +51,7 @@ module GoTransverseTractApi
51
51
  # @param {Long} party_eid
52
52
  # @param {Hash} options
53
53
  #
54
- def find_by_party_eid party_eid, options=nil
54
+ def find_by_party_eid party_eid, options={}
55
55
  return nil unless party_eid.present?
56
56
 
57
57
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({party_eid: party_eid}, options)
@@ -62,7 +62,7 @@ module GoTransverseTractApi
62
62
  # @param {String} status
63
63
  # @param {Hash} options
64
64
  #
65
- def find_by_status status, options=nil
65
+ def find_by_status status, options={}
66
66
  return nil unless status.present?
67
67
 
68
68
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({status: status}, options)
@@ -73,7 +73,7 @@ module GoTransverseTractApi
73
73
  # @param {String} email_address
74
74
  # @param {Hash} options
75
75
  #
76
- def find_by_email_address email_address, options=nil
76
+ def find_by_email_address email_address, options={}
77
77
  return nil unless email_address.present?
78
78
 
79
79
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({email_address: email_address}, options)
@@ -84,7 +84,7 @@ module GoTransverseTractApi
84
84
  # @param {Long} billing_account_category_eid
85
85
  # @param {Hash} options
86
86
  #
87
- def find_by_billing_account_category_eid billing_account_category_eid, options=nil
87
+ def find_by_billing_account_category_eid billing_account_category_eid, options={}
88
88
  return nil unless billing_account_category_eid.present?
89
89
 
90
90
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({billing_account_category_eid: billing_account_category_eid}, options)
@@ -95,7 +95,7 @@ module GoTransverseTractApi
95
95
  # @param {Long} purchase_order_number
96
96
  # @param {Hash} options
97
97
  #
98
- def find_by_purchase_order_num purchase_order_number, options=nil
98
+ def find_by_purchase_order_num purchase_order_number, options={}
99
99
  return nil unless purchase_order_number.present?
100
100
 
101
101
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({purchase_order_number: purchase_order_number}, options)
@@ -106,7 +106,7 @@ module GoTransverseTractApi
106
106
  # @param {Long} order_num
107
107
  # @param {Hash} options
108
108
  #
109
- def find_by_order_num order_num, options=nil
109
+ def find_by_order_num order_num, options={}
110
110
  return nil unless order_num.present?
111
111
 
112
112
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({order_num: order_num}, 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)
@@ -128,7 +128,7 @@ module GoTransverseTractApi
128
128
  # @param {String} bill_type
129
129
  # @param {Hash} options
130
130
  #
131
- def find_by_bill_type bill_type, options=nil
131
+ def find_by_bill_type bill_type, options={}
132
132
  return nil unless bill_type.present?
133
133
 
134
134
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({bill_type: bill_type}, options)
@@ -139,7 +139,7 @@ module GoTransverseTractApi
139
139
  # @param {String} referral
140
140
  # @param {Hash} options
141
141
  #
142
- def find_by_referral referral, options=nil
142
+ def find_by_referral referral, options={}
143
143
  return nil unless referral.present?
144
144
 
145
145
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({referral: referral}, options)
@@ -150,7 +150,7 @@ module GoTransverseTractApi
150
150
  # @param {Long} billing_account_segment_eid
151
151
  # @param {Hash} options
152
152
  #
153
- def find_by_billing_account_segment_eid billing_account_segment_eid, options=nil
153
+ def find_by_billing_account_segment_eid billing_account_segment_eid, options={}
154
154
  return nil unless billing_account_segment_eid.present?
155
155
 
156
156
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({billing_account_segment_eid: billing_account_segment_eid}, options)
@@ -161,7 +161,7 @@ module GoTransverseTractApi
161
161
  # @param {String} currency_type
162
162
  # @param {Hash} options
163
163
  #
164
- def find_by_currency_type currency_type, options=nil
164
+ def find_by_currency_type currency_type, options={}
165
165
  return nil unless currency_type.present?
166
166
 
167
167
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({currency_type: currency_type}, options)
@@ -172,7 +172,7 @@ module GoTransverseTractApi
172
172
  # @param {Long} product_eid
173
173
  # @param {Hash} options
174
174
  #
175
- def find_by_product_eid product_eid, options=nil
175
+ def find_by_product_eid product_eid, options={}
176
176
  return nil unless product_eid.present?
177
177
 
178
178
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_eid: product_eid}, options)
@@ -183,7 +183,7 @@ module GoTransverseTractApi
183
183
  # @param {Long} service_eid
184
184
  # @param {Hash} options
185
185
  #
186
- def find_by_service_eid service_eid, options=nil
186
+ def find_by_service_eid service_eid, options={}
187
187
  return nil unless service_eid.present?
188
188
 
189
189
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({service_eid: service_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} service_eid
22
22
  # @param {Hash} options
23
23
  #
24
- def find_by_service_eid service_eid, options=nil
24
+ def find_by_service_eid service_eid, options={}
25
25
  return nil unless service_eid.present?
26
26
 
27
27
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({service_eid: service_eid}, options)
@@ -32,7 +32,7 @@ module GoTransverseTractApi
32
32
  # @param {String} name
33
33
  # @param {Hash} options
34
34
  #
35
- def find_by_name name, options=nil
35
+ def find_by_name name, options={}
36
36
  return nil unless name.present?
37
37
 
38
38
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({name: name}, options)
@@ -43,7 +43,7 @@ module GoTransverseTractApi
43
43
  # @param {String} status
44
44
  # @param {Hash} options
45
45
  #
46
- def find_by_status status, options=nil
46
+ def find_by_status status, options={}
47
47
  return nil unless status.present?
48
48
 
49
49
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({status: status}, options)
@@ -54,7 +54,7 @@ module GoTransverseTractApi
54
54
  # @param {String} type
55
55
  # @param {Hash} options
56
56
  #
57
- def find_by_type type, options=nil
57
+ def find_by_type type, options={}
58
58
  return nil unless type.present?
59
59
 
60
60
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({type: type}, options)
@@ -65,7 +65,7 @@ module GoTransverseTractApi
65
65
  # @param {String} entity_relation_type
66
66
  # @param {Hash} options
67
67
  #
68
- def find_by_entity_relation_type entity_relation_type, options=nil
68
+ def find_by_entity_relation_type entity_relation_type, options={}
69
69
  return nil unless entity_relation_type.present?
70
70
 
71
71
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({entity_relation_type: entity_relation_type}, options)
@@ -76,7 +76,7 @@ module GoTransverseTractApi
76
76
  # @param {Date} from_date
77
77
  # @param {Hash} options
78
78
  #
79
- def find_by_from_date from_date, options=nil
79
+ def find_by_from_date from_date, options={}
80
80
  return nil unless from_date.present?
81
81
 
82
82
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({from_date: from_date}, options)
@@ -87,7 +87,7 @@ module GoTransverseTractApi
87
87
  # @param {Date} thru_date
88
88
  # @param {Hash} options
89
89
  #
90
- def find_by_thru_date thru_date, options=nil
90
+ def find_by_thru_date thru_date, options={}
91
91
  return nil unless thru_date.present?
92
92
 
93
93
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({thru_date: thru_date}, 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 {String} type
41
41
  # @param {Hash} options
42
42
  #
43
- def find_by_type type, options=nil
43
+ def find_by_type type, options={}
44
44
  return nil unless type.present?
45
45
 
46
46
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({type: type}, options)
@@ -51,7 +51,7 @@ module GoTransverseTractApi
51
51
  # @param {Boolean} enabled
52
52
  # @param {Hash} options
53
53
  #
54
- def find_by_enabled enabled, options=nil
54
+ def find_by_enabled enabled, options={}
55
55
  return nil unless enabled.present?
56
56
 
57
57
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({enabled: enabled}, options)
@@ -62,7 +62,7 @@ module GoTransverseTractApi
62
62
  # @param {Boolean} searchable
63
63
  # @param {Hash} options
64
64
  #
65
- def find_by_searchable searchable, options=nil
65
+ def find_by_searchable searchable, options={}
66
66
  return nil unless searchable.present?
67
67
 
68
68
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({searchable: searchable}, 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} account_num
30
30
  # @param {Hash} options
31
31
  #
32
- def find_by_account_num account_num, options=nil
32
+ def find_by_account_num account_num, options={}
33
33
  return nil unless account_num.present?
34
34
 
35
35
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({account_num: account_num}, options)
@@ -40,7 +40,7 @@ module GoTransverseTractApi
40
40
  # @param {Long} external_account_num
41
41
  # @param {Hash} options
42
42
  #
43
- def find_by_external_account_num external_account_num, options=nil
43
+ def find_by_external_account_num external_account_num, options={}
44
44
  return nil unless external_account_num.present?
45
45
 
46
46
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({external_account_num: external_account_num}, 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)
@@ -62,7 +62,7 @@ module GoTransverseTractApi
62
62
  # @param {Long} custom_field_eid
63
63
  # @param {Hash} options
64
64
  #
65
- def find_by_custom_field_eid custom_field_eid, options=nil
65
+ def find_by_custom_field_eid custom_field_eid, options={}
66
66
  return nil unless custom_field_eid.present?
67
67
 
68
68
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({custom_field_eid: custom_field_eid}, options)
@@ -73,7 +73,7 @@ module GoTransverseTractApi
73
73
  # @param {Long} order_eid
74
74
  # @param {Hash} options
75
75
  #
76
- def find_by_order_eid order_eid, options=nil
76
+ def find_by_order_eid order_eid, options={}
77
77
  return nil unless order_eid.present?
78
78
 
79
79
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({order_eid: order_eid}, options)
@@ -84,7 +84,7 @@ module GoTransverseTractApi
84
84
  # @param {Long} service_eid
85
85
  # @param {Hash} options
86
86
  #
87
- def find_by_service_eid service_eid, options=nil
87
+ def find_by_service_eid service_eid, options={}
88
88
  return nil unless service_eid.present?
89
89
 
90
90
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({service_eid: service_eid}, options)
@@ -95,7 +95,7 @@ module GoTransverseTractApi
95
95
  # @param {Long} order_item_eid
96
96
  # @param {Hash} options
97
97
  #
98
- def find_by_order_item_eid order_item_eid, options=nil
98
+ def find_by_order_item_eid order_item_eid, options={}
99
99
  return nil unless order_item_eid.present?
100
100
 
101
101
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({order_item_eid: order_item_eid}, options)
@@ -106,7 +106,7 @@ module GoTransverseTractApi
106
106
  # @param {Long} order_num
107
107
  # @param {Hash} options
108
108
  #
109
- def find_by_order_num order_num, options=nil
109
+ def find_by_order_num order_num, options={}
110
110
  return nil unless order_num.present?
111
111
 
112
112
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({order_num: order_num}, options)
@@ -117,7 +117,7 @@ module GoTransverseTractApi
117
117
  # @param {String} custom_field_name
118
118
  # @param {Hash} options
119
119
  #
120
- def find_by_custom_field_name custom_field_name, options=nil
120
+ def find_by_custom_field_name custom_field_name, options={}
121
121
  return nil unless custom_field_name.present?
122
122
 
123
123
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({custom_field_name: custom_field_name}, options)
@@ -128,7 +128,7 @@ module GoTransverseTractApi
128
128
  # @param {Long} value
129
129
  # @param {Hash} options
130
130
  #
131
- def find_by_value value, options=nil
131
+ def find_by_value value, options={}
132
132
  return nil unless value.present?
133
133
 
134
134
  params ||= GoTransverseTractApi::ApiData.new.get_query_params({value: value}, options)