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
@@ -6,20 +6,22 @@ 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} product_eid
17
+ # @param {String} query_scope (default: 'SHALLOW')
16
18
  #
17
- def self.find_by_product_eid product_eid
18
- GoTransverseTractApi.get_response_for(self, {product_eid: product_eid})
19
+ def self.find_by_product_eid product_eid, query_scope=nil
20
+ GoTransverseTractApi.get_response_for(self, {product_eid: product_eid, queryScope: query_scope})
19
21
  end
20
22
 
21
23
  end
22
24
 
23
25
  end
24
26
 
25
- end
27
+ end
@@ -8,37 +8,42 @@ 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} billing_account_segment_eid
19
+ # @param {String} query_scope (default: 'SHALLOW')
18
20
  #
19
- def find_by_billing_account_segment_eid billing_account_segment_eid
20
- GoTransverseTractApi.get_response_for(self, {billing_account_segment_eid: billing_account_segment_eid})
21
+ def find_by_billing_account_segment_eid billing_account_segment_eid, query_scope=nil
22
+ GoTransverseTractApi.get_response_for(self, {billing_account_segment_eid: billing_account_segment_eid, queryScope: query_scope})
21
23
  end
22
24
 
23
25
  #
24
26
  # @param {String} billing_account_segment_name
27
+ # @param {String} query_scope (default: 'SHALLOW')
25
28
  #
26
- def find_by_billing_account_segment_name billing_account_segment_name
27
- GoTransverseTractApi.get_response_for(self, {billing_account_segment_name: billing_account_segment_name})
29
+ def find_by_billing_account_segment_name billing_account_segment_name, query_scope=nil
30
+ GoTransverseTractApi.get_response_for(self, {billing_account_segment_name: billing_account_segment_name, queryScope: query_scope})
28
31
  end
29
32
 
30
33
  #
31
34
  # @param {String} type
35
+ # @param {String} query_scope (default: 'SHALLOW')
32
36
  #
33
- def find_by_type type
34
- GoTransverseTractApi.get_response_for(self, {type: type})
37
+ def find_by_type type, query_scope=nil
38
+ GoTransverseTractApi.get_response_for(self, {type: type, queryScope: query_scope})
35
39
  end
36
40
 
37
41
  #
38
42
  # @param {Boolean} required
43
+ # @param {String} query_scope (default: 'SHALLOW')
39
44
  #
40
- def find_by_required required
41
- GoTransverseTractApi.get_response_for(self, {required: required})
45
+ def find_by_required required, query_scope=nil
46
+ GoTransverseTractApi.get_response_for(self, {required: required, queryScope: query_scope})
42
47
  end
43
48
 
44
49
  end
@@ -8,37 +8,42 @@ module GoTransverseTractApi
8
8
 
9
9
  #
10
10
  # @param {String} type
11
+ # @param {String} query_scope (default: 'SHALLOW')
11
12
  #
12
- def find_by_type type
13
- GoTransverseTractApi.get_response_for(self, {type: type})
13
+ def find_by_type type, query_scope=nil
14
+ GoTransverseTractApi.get_response_for(self, {type: type, queryScope: query_scope})
14
15
  end
15
16
 
16
17
  #
17
18
  # @param {Long} discount_category_eid
19
+ # @param {String} query_scope (default: 'SHALLOW')
18
20
  #
19
- def find_by_discount_category_eid discount_category_eid
20
- GoTransverseTractApi.get_response_for(self, {discount_category_eid: discount_category_eid})
21
+ def find_by_discount_category_eid discount_category_eid, query_scope=nil
22
+ GoTransverseTractApi.get_response_for(self, {discount_category_eid: discount_category_eid, queryScope: query_scope})
21
23
  end
22
24
 
23
25
  #
24
26
  # @param {Boolean} one_time
27
+ # @param {String} query_scope (default: 'SHALLOW')
25
28
  #
26
- def find_by_one_time one_time
27
- GoTransverseTractApi.get_response_for(self, {one_time: one_time})
29
+ def find_by_one_time one_time, query_scope=nil
30
+ GoTransverseTractApi.get_response_for(self, {one_time: one_time, queryScope: query_scope})
28
31
  end
29
32
 
30
33
  #
31
34
  # @param {Boolean} recurring
35
+ # @param {String} query_scope (default: 'SHALLOW')
32
36
  #
33
- def find_by_recurring recurring
34
- GoTransverseTractApi.get_response_for(self, {recurring: recurring})
37
+ def find_by_recurring recurring, query_scope=nil
38
+ GoTransverseTractApi.get_response_for(self, {recurring: recurring, queryScope: query_scope})
35
39
  end
36
40
 
37
41
  #
38
42
  # @param {String} currency_type
43
+ # @param {String} query_scope (default: 'SHALLOW')
39
44
  #
40
- def find_by_currency_type currency_type
41
- GoTransverseTractApi.get_response_for(self, {currency_type: currency_type})
45
+ def find_by_currency_type currency_type, query_scope=nil
46
+ GoTransverseTractApi.get_response_for(self, {currency_type: currency_type, queryScope: query_scope})
42
47
  end
43
48
 
44
49
  end
@@ -10,23 +10,26 @@ 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
@@ -6,72 +6,82 @@ module GoTransverseTractApi
6
6
 
7
7
  #
8
8
  # @param {Long} discount_charge_category_eid
9
+ # @param {String} query_scope (default: 'SHALLOW')
9
10
  #
10
- def self.find_by_discount_charge_category_eid discount_charge_category_eid
11
- GoTransverseTractApi.get_response_for(self, {discount_charge_category_eid: discount_charge_category_eid})
11
+ def self.find_by_discount_charge_category_eid discount_charge_category_eid, query_scope=nil
12
+ GoTransverseTractApi.get_response_for(self, {discount_charge_category_eid: discount_charge_category_eid, queryScope: query_scope})
12
13
  end
13
14
 
14
15
  #
15
16
  # @param {DateTime} valid_from
17
+ # @param {String} query_scope (default: 'SHALLOW')
16
18
  #
17
- def self.find_by_valid_from valid_from
18
- GoTransverseTractApi.get_response_for(self, {valid_from: valid_from})
19
+ def self.find_by_valid_from valid_from, query_scope=nil
20
+ GoTransverseTractApi.get_response_for(self, {valid_from: valid_from, queryScope: query_scope})
19
21
  end
20
22
 
21
23
  #
22
24
  # @param {DateTime} valid_to
25
+ # @param {String} query_scope (default: 'SHALLOW')
23
26
  #
24
- def self.find_by_valid_to valid_to
25
- GoTransverseTractApi.get_response_for(self, {valid_to: valid_to})
27
+ def self.find_by_valid_to valid_to, query_scope=nil
28
+ GoTransverseTractApi.get_response_for(self, {valid_to: valid_to, queryScope: query_scope})
26
29
  end
27
30
 
28
31
  #
29
32
  # @param {Long} discount_eid
33
+ # @param {String} query_scope (default: 'SHALLOW')
30
34
  #
31
- def self.find_by_discount_eid discount_eid
32
- GoTransverseTractApi.get_response_for(self, {discount_eid: discount_eid})
35
+ def self.find_by_discount_eid discount_eid, query_scope=nil
36
+ GoTransverseTractApi.get_response_for(self, {discount_eid: discount_eid, queryScope: query_scope})
33
37
  end
34
38
 
35
39
  #
36
40
  # @param {Long} discount_identifier
41
+ # @param {String} query_scope (default: 'SHALLOW')
37
42
  #
38
- def self.find_by_discount_identifier discount_identifier
39
- GoTransverseTractApi.get_response_for(self, {discount_identifier: discount_identifier})
43
+ def self.find_by_discount_identifier discount_identifier, query_scope=nil
44
+ GoTransverseTractApi.get_response_for(self, {discount_identifier: discount_identifier, queryScope: query_scope})
40
45
  end
41
46
 
42
47
  #
43
48
  # @param {Long} discount_identifier_eid
49
+ # @param {String} query_scope (default: 'SHALLOW')
44
50
  #
45
- def self.find_by_discount_identifier_eid discount_identifier_eid
46
- GoTransverseTractApi.get_response_for(self, {discount_identifier_eid: discount_identifier_eid})
51
+ def self.find_by_discount_identifier_eid discount_identifier_eid, query_scope=nil
52
+ GoTransverseTractApi.get_response_for(self, {discount_identifier_eid: discount_identifier_eid, queryScope: query_scope})
47
53
  end
48
54
 
49
55
  #
50
56
  # @param {Long} price_list_eid
57
+ # @param {String} query_scope (default: 'SHALLOW')
51
58
  #
52
- def self.find_by_price_list_eid price_list_eid
53
- GoTransverseTractApi.get_response_for(self, {price_list_eid: price_list_eid})
59
+ def self.find_by_price_list_eid price_list_eid, query_scope=nil
60
+ GoTransverseTractApi.get_response_for(self, {price_list_eid: price_list_eid, queryScope: query_scope})
54
61
  end
55
62
 
56
63
  #
57
64
  # @param {String} price_list_is_master
65
+ # @param {String} query_scope (default: 'SHALLOW')
58
66
  #
59
- def self.find_by_price_list_is_master price_list_is_master
60
- GoTransverseTractApi.get_response_for(self, {price_list_is_master: price_list_is_master})
67
+ def self.find_by_price_list_is_master price_list_is_master, query_scope=nil
68
+ GoTransverseTractApi.get_response_for(self, {price_list_is_master: price_list_is_master, queryScope: query_scope})
61
69
  end
62
70
 
63
71
  #
64
72
  # @param {String} currency_type
73
+ # @param {String} query_scope (default: 'SHALLOW')
65
74
  #
66
- def self.find_by_currency_type currency_type
67
- GoTransverseTractApi.get_response_for(self, {currency_type: currency_type})
75
+ def self.find_by_currency_type currency_type, query_scope=nil
76
+ GoTransverseTractApi.get_response_for(self, {currency_type: currency_type, queryScope: query_scope})
68
77
  end
69
78
 
70
79
  #
71
80
  # @param {Long} product_eid
81
+ # @param {String} query_scope (default: 'SHALLOW')
72
82
  #
73
- def self.find_by_product_eid product_eid
74
- GoTransverseTractApi.get_response_for(self, {product_eid: product_eid})
83
+ def self.find_by_product_eid product_eid, query_scope=nil
84
+ GoTransverseTractApi.get_response_for(self, {product_eid: product_eid, queryScope: query_scope})
75
85
  end
76
86
 
77
87
  end
@@ -8,23 +8,26 @@ module GoTransverseTractApi
8
8
 
9
9
  #
10
10
  # @param {Long} eid
11
+ # @param {String} query_scope (default: 'SHALLOW')
11
12
  #
12
- def find_by_eid eid
13
- GoTransverseTractApi.get_response_for(self, {eid: eid})
13
+ def find_by_eid eid, query_scope=nil
14
+ GoTransverseTractApi.get_response_for(self, {eid: eid, queryScope: query_scope})
14
15
  end
15
16
 
16
17
  #
17
18
  # @param {Long} identifier
19
+ # @param {String} query_scope (default: 'SHALLOW')
18
20
  #
19
- def find_by_identifier identifier
20
- GoTransverseTractApi.get_response_for(self, {identifier: identifier})
21
+ def find_by_identifier identifier, query_scope=nil
22
+ GoTransverseTractApi.get_response_for(self, {identifier: identifier, queryScope: query_scope})
21
23
  end
22
24
 
23
25
  #
24
26
  # @param {Long} order_item_eid
27
+ # @param {String} query_scope (default: 'SHALLOW')
25
28
  #
26
- def find_by_order_item_eid order_item_eid
27
- GoTransverseTractApi.get_response_for(self, {order_item_eid: order_item_eid})
29
+ def find_by_order_item_eid order_item_eid, query_scope=nil
30
+ GoTransverseTractApi.get_response_for(self, {order_item_eid: order_item_eid, queryScope: query_scope})
28
31
  end
29
32
 
30
33
  end
@@ -8,9 +8,10 @@ module GoTransverseTractApi
8
8
 
9
9
  #
10
10
  # @param {Boolean} charge_during_renewal
11
+ # @param {String} query_scope (default: 'SHALLOW')
11
12
  #
12
- def find_by_charge_during_renewal charge_during_renewal
13
- GoTransverseTractApi.get_response_for(self, {charge_during_renewal: charge_during_renewal})
13
+ def find_by_charge_during_renewal charge_during_renewal, query_scope=nil
14
+ GoTransverseTractApi.get_response_for(self, {charge_during_renewal: charge_during_renewal, queryScope: query_scope})
14
15
  end
15
16
  end
16
17
 
@@ -6,20 +6,21 @@ 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} action_eid
16
17
  #
17
- def self.find_by_action_eid action_eid
18
- GoTransverseTractApi.get_response_for(self, {action_eid: action_eid})
18
+ def self.find_by_action_eid action_eid, query_scope=nil
19
+ GoTransverseTractApi.get_response_for(self, {action_eid: action_eid, queryScope: query_scope})
19
20
  end
20
21
 
21
22
  end
22
23
 
23
24
  end
24
25
 
25
- end
26
+ end
@@ -6,20 +6,22 @@ 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} product_order_item_eid
17
+ # @param {String} query_scope (default: 'SHALLOW')
16
18
  #
17
- def self.find_by_product_order_item_eid product_order_item_eid
18
- GoTransverseTractApi.get_response_for(self, {product_order_item_eid: product_order_item_eid})
19
+ def self.find_by_product_order_item_eid product_order_item_eid, query_scope=nil
20
+ GoTransverseTractApi.get_response_for(self, {product_order_item_eid: product_order_item_eid, queryScope: query_scope})
19
21
  end
20
22
 
21
23
  end
22
24
 
23
25
  end
24
26
 
25
- end
27
+ end
@@ -10,16 +10,18 @@ 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
  #
@@ -36,86 +36,98 @@ module GoTransverseTractApi
36
36
 
37
37
  #
38
38
  # @param {String} external_product_number
39
+ # @param {String} query_scope (default: 'SHALLOW')
39
40
  #
40
- def find_by_external_product_number external_product_number
41
- GoTransverseTractApi.get_response_for(self, {external_product_number: external_product_number})
41
+ def find_by_external_product_number external_product_number, query_scope=nil
42
+ GoTransverseTractApi.get_response_for(self, {external_product_number: external_product_number, queryScope: query_scope})
42
43
  end
43
44
 
44
45
  #
45
46
  # @param {String} sku
47
+ # @param {String} query_scope (default: 'SHALLOW')
46
48
  #
47
- def find_by_sku sku
48
- GoTransverseTractApi.get_response_for(self, {sku: sku})
49
+ def find_by_sku sku, query_scope=nil
50
+ GoTransverseTractApi.get_response_for(self, {sku: sku, queryScope: query_scope})
49
51
  end
50
52
 
51
53
  #
52
54
  # @param {String} product_type_code
55
+ # @param {String} query_scope (default: 'SHALLOW')
53
56
  #
54
- def find_by_product_type_code product_type_code
55
- GoTransverseTractApi.get_response_for(self, {product_type_code: product_type_code})
57
+ def find_by_product_type_code product_type_code, query_scope=nil
58
+ GoTransverseTractApi.get_response_for(self, {product_type_code: product_type_code, queryScope: query_scope})
56
59
  end
57
60
 
58
61
  #
59
62
  # @param {String} product_state
63
+ # @param {String} query_scope (default: 'SHALLOW')
60
64
  #
61
- def find_by_product_state product_state
62
- GoTransverseTractApi.get_response_for(self, {product_state: product_state})
65
+ def find_by_product_state product_state, query_scope=nil
66
+ GoTransverseTractApi.get_response_for(self, {product_state: product_state, queryScope: query_scope})
63
67
  end
64
68
 
65
69
  #
66
70
  # @param {Long} service_resource_category_eid
71
+ # @param {String} query_scope (default: 'SHALLOW')
67
72
  #
68
- def find_by_service_resource_category_eid service_resource_category_eid
69
- GoTransverseTractApi.get_response_for(self, {service_resource_category_eid: service_resource_category_eid})
73
+ def find_by_service_resource_category_eid service_resource_category_eid, query_scope=nil
74
+ GoTransverseTractApi.get_response_for(self, {service_resource_category_eid: service_resource_category_eid, queryScope: query_scope})
70
75
  end
71
76
 
72
77
  #
73
78
  # @param {String} service_resource_category_name
79
+ # @param {String} query_scope (default: 'SHALLOW')
74
80
  #
75
- def find_by_service_resource_category_name service_resource_category_name
76
- GoTransverseTractApi.get_response_for(self, {service_resource_category_name: service_resource_category_name})
81
+ def find_by_service_resource_category_name service_resource_category_name, query_scope=nil
82
+ GoTransverseTractApi.get_response_for(self, {service_resource_category_name: service_resource_category_name, queryScope: query_scope})
77
83
  end
78
84
 
79
85
  #
80
86
  # @param {Long} product_category_eid
87
+ # @param {String} query_scope (default: 'SHALLOW')
81
88
  #
82
- def find_by_product_category_eid product_category_eid
83
- GoTransverseTractApi.get_response_for(self, {product_category_eid: product_category_eid})
89
+ def find_by_product_category_eid product_category_eid, query_scope=nil
90
+ GoTransverseTractApi.get_response_for(self, {product_category_eid: product_category_eid, queryScope: query_scope})
84
91
  end
85
92
 
86
93
  #
87
94
  # @param {String} product_category_name
95
+ # @param {String} query_scope (default: 'SHALLOW')
88
96
  #
89
- def find_by_product_category_name product_category_name
90
- GoTransverseTractApi.get_response_for(self, {product_category_name: product_category_name})
97
+ def find_by_product_category_name product_category_name, query_scope=nil
98
+ GoTransverseTractApi.get_response_for(self, {product_category_name: product_category_name, queryScope: query_scope})
91
99
  end
92
100
 
93
101
  #
94
102
  # @param {Long} price_list_eid
103
+ # @param {String} query_scope (default: 'SHALLOW')
95
104
  #
96
- def find_by_price_list_eid price_list_eid
97
- GoTransverseTractApi.get_response_for(self, {price_list_eid: price_list_eid})
105
+ def find_by_price_list_eid price_list_eid, query_scope=nil
106
+ GoTransverseTractApi.get_response_for(self, {price_list_eid: price_list_eid, queryScope: query_scope})
98
107
  end
99
108
 
100
109
  #
101
110
  # @param {Boolean} price_list_is_master
111
+ # @param {String} query_scope (default: 'SHALLOW')
102
112
  #
103
- def find_by_price_list_is_master price_list_is_master
104
- GoTransverseTractApi.get_response_for(self, {price_list_is_master: price_list_is_master})
113
+ def find_by_price_list_is_master price_list_is_master, query_scope=nil
114
+ GoTransverseTractApi.get_response_for(self, {price_list_is_master: price_list_is_master, queryScope: query_scope})
105
115
  end
106
116
 
107
117
  #
108
118
  # @param {String} currency_type
119
+ # @param {String} query_scope (default: 'SHALLOW')
109
120
  #
110
- def find_by_currency_type currency_type
111
- GoTransverseTractApi.get_response_for(self, {currency_type: currency_type})
121
+ def find_by_currency_type currency_type, query_scope=nil
122
+ GoTransverseTractApi.get_response_for(self, {currency_type: currency_type, queryScope: query_scope})
112
123
  end
113
124
 
114
125
  #
115
126
  # @param {Long} product_tag_eid
127
+ # @param {String} query_scope (default: 'SHALLOW')
116
128
  #
117
- def find_by_product_tag_eid product_tag_eid
118
- GoTransverseTractApi.get_response_for(self, {product_tag_eid: product_tag_eid})
129
+ def find_by_product_tag_eid product_tag_eid, query_scope=nil
130
+ GoTransverseTractApi.get_response_for(self, {product_tag_eid: product_tag_eid, queryScope: query_scope})
119
131
  end
120
132
 
121
133
  #
@@ -135,7 +147,7 @@ module GoTransverseTractApi
135
147
  end
136
148
 
137
149
  if product.has_key?(:product_usage_rules)
138
- product_usage_rules = Order::ProductUsageRule.get_product_usage_rule(product[:product_usage_rules])
150
+ product_usage_rules = Usage::ProductUsageRule.get_product_usage_rule(product[:product_usage_rules])
139
151
  end
140
152
 
141
153
  product_info = {