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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c7f435163db5b1137f0375d2e9c8e58aa8610b3
4
- data.tar.gz: 42fb7ca3c1b81b1be6f9bc0115fe9859d07f7727
3
+ metadata.gz: 3e8247a4641747c300186f244e88909e10f4c24b
4
+ data.tar.gz: 109ee221b923d5fae32d4def190083631b74a64d
5
5
  SHA512:
6
- metadata.gz: b15ce602d1686d11a4ae79ada887d6d017b4c0b9ce8ffbaa5598473bff638033ebcbef5feb2d006f5e2867156676928b023e45320f6a65d0bbcb313364a2f7c9
7
- data.tar.gz: 3fffa4c91445462473355a3f90bad190ba92c01d00d9d80667cebc2108f79d0be5f682f571f565f17733426cb7114ddec8203ae7f0b6729dcb6601a9860c1ce2
6
+ metadata.gz: affbe1012447ed2010075346f25391a572ee3db14dc27c2bf73cbc068dd19d470482dfd4fb0a9a646c9c16b170f37fd7b3dc2c6fc56383d5d84e30e76cb238f0
7
+ data.tar.gz: 5a8d05d20a6be221b10e4db2832e698a6c8209fdcc12aa26c11caf6a2397cacb3f2cf54d98f7cd61edde402561547b10f2712416d4335cbae92acb3d045e4411
@@ -51,13 +51,7 @@ require "gotransverse-tract-api/order/sales_order"
51
51
  require "gotransverse-tract-api/order/agreement_configuration"
52
52
  require "gotransverse-tract-api/order/discount_configuration"
53
53
  require "gotransverse-tract-api/order/inventory_item"
54
- require "gotransverse-tract-api/order/order_item_usage_rule"
55
54
  require "gotransverse-tract-api/order/price_range"
56
- require "gotransverse-tract-api/order/product_usage_rule"
57
- require "gotransverse-tract-api/order/recurring_product_price"
58
- require "gotransverse-tract-api/order/scheduled_charge"
59
- require "gotransverse-tract-api/order/usage_rate"
60
- require "gotransverse-tract-api/product/service_resource_category"
61
55
 
62
56
  require "gotransverse-tract-api/product/action"
63
57
  require "gotransverse-tract-api/product/discount_category"
@@ -98,6 +92,7 @@ require "gotransverse-tract-api/usage/usage_lookup_table"
98
92
  require "gotransverse-tract-api/usage/usage_lookup_table_entry"
99
93
  require "gotransverse-tract-api/usage/usage_rule"
100
94
  require "gotransverse-tract-api/usage/usage_price_category"
95
+ require "gotransverse-tract-api/usage/usage_rate"
101
96
 
102
97
  require "httpclient"
103
98
  require "nokogiri"
@@ -55,6 +55,7 @@ module GoTransverseTractApi
55
55
  orderDate: sales_order[:order_date],
56
56
  orderStatus: sales_order[:order_status]
57
57
  },
58
+ customFieldValues: BillingAccount::CustomFieldValue.get_custom_field_values(sales_order[:custom_field_values]),
58
59
  orderItems: {
59
60
  attributes: {},
60
61
  orderItem: Order::OrderItem.get_order_item(sales_order[:order_items][:order_item])
@@ -8,44 +8,50 @@ module GoTransverseTractApi
8
8
 
9
9
  #
10
10
  # @param {Long} eid
11
+ # @param {String} query_scope (default: 'SHALLOW')
11
12
  #
12
- def find_by_eid eid
13
- GoTransverseTractApi.get_response_for(self, {eid: eid})
13
+ def find_by_eid eid, query_scope=nil
14
+ GoTransverseTractApi.get_response_for(self, {eid: eid, queryScope: query_scope})
14
15
  end
15
16
 
16
17
  #
17
18
  # @param {Long} account_num
19
+ # @param {String} query_scope (default: 'SHALLOW')
18
20
  #
19
- def find_by_account_num account_num
20
- GoTransverseTractApi.get_response_for(self, {account_num: account_num})
21
+ def find_by_account_num account_num, query_scope=nil
22
+ GoTransverseTractApi.get_response_for(self, {account_num: account_num, queryScope: query_scope})
21
23
  end
22
24
 
23
25
  #
24
26
  # @param {Long} billing_account_eid
27
+ # @param {String} query_scope (default: 'SHALLOW')
25
28
  #
26
- def find_by_billing_account_eid billing_account_eid
27
- GoTransverseTractApi.get_response_for(self, {billing_account_eid: billing_account_eid})
29
+ def find_by_billing_account_eid billing_account_eid, query_scope=nil
30
+ GoTransverseTractApi.get_response_for(self, {billing_account_eid: billing_account_eid, queryScope: query_scope})
28
31
  end
29
32
 
30
33
  #
31
34
  # @param {Long} invoice_num
35
+ # @param {String} query_scope (default: 'SHALLOW')
32
36
  #
33
- def find_by_invoice_num invoice_num
34
- GoTransverseTractApi.get_response_for(self, {invoice_num: invoice_num})
37
+ def find_by_invoice_num invoice_num, query_scope=nil
38
+ GoTransverseTractApi.get_response_for(self, {invoice_num: invoice_num, queryScope: query_scope})
35
39
  end
36
40
 
37
41
  #
38
42
  # @param {Long} invoice_eid
43
+ # @param {String} query_scope (default: 'SHALLOW')
39
44
  #
40
- def find_by_invoice_eid invoice_eid
41
- GoTransverseTractApi.get_response_for(self, {invoice_eid: invoice_eid})
45
+ def find_by_invoice_eid invoice_eid, query_scope=nil
46
+ GoTransverseTractApi.get_response_for(self, {invoice_eid: invoice_eid, queryScope: query_scope})
42
47
  end
43
48
 
44
49
  #
45
50
  # @param {String} status
51
+ # @param {String} query_scope (default: 'SHALLOW')
46
52
  #
47
- def find_by_status status
48
- GoTransverseTractApi.get_response_for(self, {status: status})
53
+ def find_by_status status, query_scope=nil
54
+ GoTransverseTractApi.get_response_for(self, {status: status, queryScope: query_scope})
49
55
  end
50
56
 
51
57
  #
@@ -8,16 +8,18 @@ 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} adjustment_eid
19
+ # @param {String} query_scope (default: 'SHALLOW')
18
20
  #
19
- def find_by_adjustment_eid adjustment_eid
20
- GoTransverseTractApi.get_response_for(self, {adjustment_eid: adjustment_eid})
21
+ def find_by_adjustment_eid adjustment_eid, query_scope=nil
22
+ GoTransverseTractApi.get_response_for(self, {adjustment_eid: adjustment_eid, queryScope: query_scope})
21
23
  end
22
24
 
23
25
  end
@@ -12,30 +12,34 @@ module GoTransverseTractApi
12
12
 
13
13
  #
14
14
  # @param {Long} eid
15
+ # @param {String} query_scope (default: 'SHALLOW')
15
16
  #
16
- def find_by_eid eid
17
- GoTransverseTractApi.get_response_for(self, {eid: eid})
17
+ def find_by_eid eid, query_scope=nil
18
+ GoTransverseTractApi.get_response_for(self, {eid: eid, queryScope: query_scope})
18
19
  end
19
20
 
20
21
  #
21
22
  # @param {String} name
23
+ # @param {String} query_scope (default: 'SHALLOW')
22
24
  #
23
- def find_by_name name
24
- GoTransverseTractApi.get_response_for(self, {name: name})
25
+ def find_by_name name, query_scope=nil
26
+ GoTransverseTractApi.get_response_for(self, {name: name, queryScope: query_scope})
25
27
  end
26
28
 
27
29
  #
28
30
  # @param {String} status
31
+ # @param {String} query_scope (default: 'SHALLOW')
29
32
  #
30
- def find_by_status status
31
- GoTransverseTractApi.get_response_for(self, {status: status})
33
+ def find_by_status status, query_scope=nil
34
+ GoTransverseTractApi.get_response_for(self, {status: status, queryScope: query_scope})
32
35
  end
33
36
 
34
37
  #
35
38
  # @param {Boolean} credit_only
39
+ # @param {String} query_scope (default: 'SHALLOW')
36
40
  #
37
- def find_by_credit_only credit_only
38
- GoTransverseTractApi.get_response_for(self, {credit_only: credit_only})
41
+ def find_by_credit_only credit_only, query_scope=nil
42
+ GoTransverseTractApi.get_response_for(self, {credit_only: credit_only, queryScope: query_scope})
39
43
  end
40
44
 
41
45
  end
@@ -11,114 +11,130 @@ module GoTransverseTractApi
11
11
 
12
12
  #
13
13
  # @param {Long} eid
14
+ # @param {String} query_scope (default: 'SHALLOW')
14
15
  #
15
- def find_by_eid eid
16
- GoTransverseTractApi.get_response_for(self, {eid: eid})
16
+ def find_by_eid eid, query_scope=nil
17
+ GoTransverseTractApi.get_response_for(self, {eid: eid, queryScope: query_scope})
17
18
  end
18
19
 
19
20
  #
20
21
  # @param {Long} account_num
22
+ # @param {String} query_scope (default: 'SHALLOW')
21
23
  #
22
- def find_by_account_num account_num
23
- GoTransverseTractApi.get_response_for(self, {account_num: account_num})
24
+ def find_by_account_num account_num, query_scope=nil
25
+ GoTransverseTractApi.get_response_for(self, {account_num: account_num, queryScope: query_scope})
24
26
  end
25
27
 
26
28
  #
27
29
  # @param {Long} external_account_num
30
+ # @param {String} query_scope (default: 'SHALLOW')
28
31
  #
29
- def find_by_external_account_num external_account_num
30
- GoTransverseTractApi.get_response_for(self, {external_account_num: external_account_num})
32
+ def find_by_external_account_num external_account_num, query_scope=nil
33
+ GoTransverseTractApi.get_response_for(self, {external_account_num: external_account_num, queryScope: query_scope})
31
34
  end
32
35
 
33
36
  #
34
37
  # @param {Long} party_eid
38
+ # @param {String} query_scope (default: 'SHALLOW')
35
39
  #
36
- def find_by_party_eid party_eid
37
- GoTransverseTractApi.get_response_for(self, {party_eid: party_eid})
40
+ def find_by_party_eid party_eid, query_scope=nil
41
+ GoTransverseTractApi.get_response_for(self, {party_eid: party_eid, queryScope: query_scope})
38
42
  end
39
43
 
40
44
  #
41
45
  # @param {String} status
46
+ # @param {String} query_scope (default: 'SHALLOW')
42
47
  #
43
- def find_by_status status
44
- GoTransverseTractApi.get_response_for(self, {status: status})
48
+ def find_by_status status, query_scope=nil
49
+ GoTransverseTractApi.get_response_for(self, {status: status, queryScope: query_scope})
45
50
  end
46
51
 
47
52
  #
48
53
  # @param {String} email_address
54
+ # @param {String} query_scope (default: 'SHALLOW')
49
55
  #
50
- def find_by_email_address email_address
51
- GoTransverseTractApi.get_response_for(self, {email_address: email_address})
56
+ def find_by_email_address email_address, query_scope=nil
57
+ GoTransverseTractApi.get_response_for(self, {email_address: email_address, queryScope: query_scope})
52
58
  end
53
59
 
54
60
  #
55
61
  # @param {Long} billing_account_category_eid
62
+ # @param {String} query_scope (default: 'SHALLOW')
56
63
  #
57
- def find_by_billing_account_category_eid billing_account_category_eid
58
- GoTransverseTractApi.get_response_for(self, {billing_account_category_eid: billing_account_category_eid})
64
+ def find_by_billing_account_category_eid billing_account_category_eid, query_scope=nil
65
+ GoTransverseTractApi.get_response_for(self, {billing_account_category_eid: billing_account_category_eid, queryScope: query_scope})
59
66
  end
60
67
 
61
68
  #
62
69
  # @param {Long} purchase_order_number
70
+ # @param {String} query_scope (default: 'SHALLOW')
63
71
  #
64
- def find_by_purchase_order_number purchase_order_number
65
- GoTransverseTractApi.get_response_for(self, {purchase_order_number: purchase_order_number})
72
+ def find_by_purchase_order_number purchase_order_number, query_scope=nil
73
+ GoTransverseTractApi.get_response_for(self, {purchase_order_number: purchase_order_number, queryScope: query_scope})
66
74
  end
67
75
 
68
76
  #
69
77
  # @param {Long} order_num
78
+ # @param {String} query_scope (default: 'SHALLOW')
70
79
  #
71
- def find_by_order_num order_num
72
- GoTransverseTractApi.get_response_for(self, {order_num: order_num})
80
+ def find_by_order_num order_num, query_scope=nil
81
+ GoTransverseTractApi.get_response_for(self, {order_num: order_num, queryScope: query_scope})
73
82
  end
74
83
 
75
84
  #
76
85
  # @param {Long} custom_field_value_eid
86
+ # @param {String} query_scope (default: 'SHALLOW')
77
87
  #
78
- def find_by_custom_field_value_eid custom_field_value_eid
79
- GoTransverseTractApi.get_response_for(self, {custom_field_value_eid: custom_field_value_eid})
88
+ def find_by_custom_field_value_eid custom_field_value_eid, query_scope=nil
89
+ GoTransverseTractApi.get_response_for(self, {custom_field_value_eid: custom_field_value_eid, queryScope: query_scope})
80
90
  end
81
91
 
82
92
  #
83
93
  # @param {String} bill_type
94
+ # @param {String} query_scope (default: 'SHALLOW')
84
95
  #
85
- def find_by_bill_type bill_type
86
- GoTransverseTractApi.get_response_for(self, {bill_type: bill_type})
96
+ def find_by_bill_type bill_type, query_scope=nil
97
+ GoTransverseTractApi.get_response_for(self, {bill_type: bill_type, queryScope: query_scope})
87
98
  end
88
99
 
89
100
  #
90
101
  # @param {String} referral
102
+ # @param {String} query_scope (default: 'SHALLOW')
91
103
  #
92
- def find_by_referral referral
93
- GoTransverseTractApi.get_response_for(self, {referral: referral})
104
+ def find_by_referral referral, query_scope=nil
105
+ GoTransverseTractApi.get_response_for(self, {referral: referral, queryScope: query_scope})
94
106
  end
95
107
 
96
108
  #
97
109
  # @param {Long} billing_account_segment_eid
110
+ # @param {String} query_scope (default: 'SHALLOW')
98
111
  #
99
- def find_by_billing_account_segment_eid billing_account_segment_eid
100
- GoTransverseTractApi.get_response_for(self, {billing_account_segment_eid: billing_account_segment_eid})
112
+ def find_by_billing_account_segment_eid billing_account_segment_eid, query_scope=nil
113
+ GoTransverseTractApi.get_response_for(self, {billing_account_segment_eid: billing_account_segment_eid, queryScope: query_scope})
101
114
  end
102
115
 
103
116
  #
104
117
  # @param {String} currency_type
118
+ # @param {String} query_scope (default: 'SHALLOW')
105
119
  #
106
- def find_by_currency_type currency_type
107
- GoTransverseTractApi.get_response_for(self, {currency_type: currency_type})
120
+ def find_by_currency_type currency_type, query_scope=nil
121
+ GoTransverseTractApi.get_response_for(self, {currency_type: currency_type, queryScope: query_scope})
108
122
  end
109
123
 
110
124
  #
111
125
  # @param {Long} product_eid
126
+ # @param {String} query_scope (default: 'SHALLOW')
112
127
  #
113
- def find_by_product_eid product_eid
114
- GoTransverseTractApi.get_response_for(self, {product_eid: product_eid})
128
+ def find_by_product_eid product_eid, query_scope=nil
129
+ GoTransverseTractApi.get_response_for(self, {product_eid: product_eid, queryScope: query_scope})
115
130
  end
116
131
 
117
132
  #
118
133
  # @param {Long} service_eid
134
+ # @param {String} query_scope (default: 'SHALLOW')
119
135
  #
120
- def find_by_service_eid service_eid
121
- GoTransverseTractApi.get_response_for(self, {service_eid: service_eid})
136
+ def find_by_service_eid service_eid, query_scope=nil
137
+ GoTransverseTractApi.get_response_for(self, {service_eid: service_eid, queryScope: query_scope})
122
138
  end
123
139
 
124
140
  #
@@ -281,12 +297,12 @@ module GoTransverseTractApi
281
297
 
282
298
  #
283
299
  # @param {Long} eid
284
- # @param {Hash} billing_account
300
+ # @param {Hash} order_details
285
301
  #
286
- def create_draft_order eid, billing_account
302
+ def create_draft_order eid, order_details
287
303
  data = {
288
304
  createDraftOrder: {},
289
- salesOrder: GoTransverseTractApi::ApiData.new.sales_order_details(billing_account[:sales_order])
305
+ salesOrder: GoTransverseTractApi::ApiData.new.sales_order_details(order_details[:sales_order])
290
306
  }
291
307
 
292
308
  xml_data = GoTransverseTractApi.generateXML(data, 'createDraftOrder')
@@ -295,12 +311,12 @@ module GoTransverseTractApi
295
311
 
296
312
  #
297
313
  # @param {Long} eid
298
- # @param {Hash} billing_account
314
+ # @param {Hash} order_details
299
315
  #
300
- def void_draft_order eid, billing_account
316
+ def void_draft_order eid, order_details
301
317
  data = {
302
318
  voidDraftOrder: {},
303
- salesOrder: GoTransverseTractApi::ApiData.new.sales_order_details(billing_account[:sales_order])
319
+ salesOrder: GoTransverseTractApi::ApiData.new.sales_order_details(order_details[:sales_order])
304
320
  }
305
321
 
306
322
  xml_data = GoTransverseTractApi.generateXML(data, 'voidDraftOrder')
@@ -8,58 +8,66 @@ 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} service_eid
19
+ # @param {String} query_scope (default: 'SHALLOW')
18
20
  #
19
- def find_by_service_eid service_eid
20
- GoTransverseTractApi.get_response_for(self, {service_eid: service_eid})
21
+ def find_by_service_eid service_eid, query_scope=nil
22
+ GoTransverseTractApi.get_response_for(self, {service_eid: service_eid, queryScope: query_scope})
21
23
  end
22
24
 
23
25
  #
24
26
  # @param {String} name
27
+ # @param {String} query_scope (default: 'SHALLOW')
25
28
  #
26
- def find_by_name name
27
- GoTransverseTractApi.get_response_for(self, {name: name})
29
+ def find_by_name name, query_scope=nil
30
+ GoTransverseTractApi.get_response_for(self, {name: name, queryScope: query_scope})
28
31
  end
29
32
 
30
33
  #
31
34
  # @param {String} status
35
+ # @param {String} query_scope (default: 'SHALLOW')
32
36
  #
33
- def find_by_status status
34
- GoTransverseTractApi.get_response_for(self, {status: status})
37
+ def find_by_status status, query_scope=nil
38
+ GoTransverseTractApi.get_response_for(self, {status: status, queryScope: query_scope})
35
39
  end
36
40
 
37
41
  #
38
42
  # @param {String} type
43
+ # @param {String} query_scope (default: 'SHALLOW')
39
44
  #
40
- def find_by_type type
41
- GoTransverseTractApi.get_response_for(self, {type: type})
45
+ def find_by_type type, query_scope=nil
46
+ GoTransverseTractApi.get_response_for(self, {type: type, queryScope: query_scope})
42
47
  end
43
48
 
44
49
  #
45
50
  # @param {String} entity_relation_type
51
+ # @param {String} query_scope (default: 'SHALLOW')
46
52
  #
47
- def find_by_entity_relation_type entity_relation_type
48
- GoTransverseTractApi.get_response_for(self, {entity_relation_type: entity_relation_type})
53
+ def find_by_entity_relation_type entity_relation_type, query_scope=nil
54
+ GoTransverseTractApi.get_response_for(self, {entity_relation_type: entity_relation_type, queryScope: query_scope})
49
55
  end
50
56
 
51
57
  #
52
58
  # @param {DateTime} from_date
59
+ # @param {String} query_scope (default: 'SHALLOW')
53
60
  #
54
- def find_by_from_date from_date
55
- GoTransverseTractApi.get_response_for(self, {from_date: from_date})
61
+ def find_by_from_date from_date, query_scope=nil
62
+ GoTransverseTractApi.get_response_for(self, {from_date: from_date, queryScope: query_scope})
56
63
  end
57
64
 
58
65
  #
59
66
  # @param {DateTime} thru_date
67
+ # @param {String} query_scope (default: 'SHALLOW')
60
68
  #
61
- def find_by_thru_date thru_date
62
- GoTransverseTractApi.get_response_for(self, {thru_date: thru_date})
69
+ def find_by_thru_date thru_date, query_scope=nil
70
+ GoTransverseTractApi.get_response_for(self, {thru_date: thru_date, queryScope: query_scope})
63
71
  end
64
72
 
65
73
  #