lib/gotransverse-tract-api/order/organization.rb in gotransverse-tract-api-0.5.2 vs lib/gotransverse-tract-api/order/organization.rb in gotransverse-tract-api-0.5.3
- old
+ new
@@ -8,26 +8,29 @@
GoTransverseTractApi.get_response_for(self)
end
#
# @param {Long} eid
+ # @param {String} query_scope (default: 'SHALLOW')
#
- def self.find_by_eid eid
- GoTransverseTractApi.get_response_for(self, {eid: eid})
+ def self.find_by_eid eid, query_scope=nil
+ GoTransverseTractApi.get_response_for(self, {eid: eid, queryScope: query_scope})
end
#
# @param {String} name
+ # @param {String} query_scope (default: 'SHALLOW')
#
- def self.find_by_name name
- GoTransverseTractApi.get_response_for(self, {name: name})
+ def self.find_by_name name, query_scope=nil
+ GoTransverseTractApi.get_response_for(self, {name: name, queryScope: query_scope})
end
#
# @param {Long} billing_account_eid
+ # @param {String} query_scope (default: 'SHALLOW')
#
- def self.find_by_billing_account_eid billing_account_eid
- GoTransverseTractApi.get_response_for(self, {billing_account_eid: billing_account_eid})
+ def self.find_by_billing_account_eid billing_account_eid, query_scope=nil
+ GoTransverseTractApi.get_response_for(self, {billing_account_eid: billing_account_eid, queryScope: query_scope})
end
#
# @param {Long} eid
# @param {Hash} address