Module: PortfolioManager::Services::Property::UniqueIdentifiers::Live

Included in:
All::Live
Defined in:
lib/portfolio_manager/services/property.rb

Overview

Live Environment

Instance Method Summary collapse

Instance Method Details

#add_property_identifier_value(property_id, additional_identifier) ⇒ PortfolioManager::Xml::ResponseType

Add Property Identifier Value

This web service adds a name and value to a specific additional property identifier for a given property based on the information provided in the XML request.



498
499
500
# File 'lib/portfolio_manager/services/property.rb', line 498

def add_property_identifier_value(property_id, additional_identifier)
  request(Net::HTTP::Post, path_for("property", property_id, "identifier"), {}, {}, additional_identifier, "additionalIdentifier", PortfolioManager::Xml::ResponseType, basic_auth: true)
end

#delete_property_identifier_value(property_id, identifier_id) ⇒ PortfolioManager::Xml::ResponseType

Delete Property Identifier Value

This web service deletes the property identifier value for a specific property and property identifier.



513
514
515
# File 'lib/portfolio_manager/services/property.rb', line 513

def delete_property_identifier_value(property_id, identifier_id)
  request(Net::HTTP::Delete, path_for("property", property_id, "identifier", identifier_id), {}, {}, nil, nil, PortfolioManager::Xml::ResponseType, basic_auth: true)
end

#edit_property_identifier_value(property_id, identifier_id, additional_identifier) ⇒ PortfolioManager::Xml::ResponseType

Edit Property Identifier Value

This web service updates the property identifier value for a specific property based on the information provided in the XML request.



530
531
532
# File 'lib/portfolio_manager/services/property.rb', line 530

def edit_property_identifier_value(property_id, identifier_id, additional_identifier)
  request(Net::HTTP::Put, path_for("property", property_id, "identifier", identifier_id), {}, {}, additional_identifier, "additionalIdentifier", PortfolioManager::Xml::ResponseType, basic_auth: true)
end

#get_property_identifier_listPortfolioManager::Xml::AdditionalIdentifierTypes, PortfolioManager::Xml::ResponseType

Get Property Identifier List

This web service retrieves a list of all of the standard and unique identifiers that are currently approved for use by EPA. These identifiers are used to provide additional information on a property.



545
546
547
# File 'lib/portfolio_manager/services/property.rb', line 545

def get_property_identifier_list
  request(Net::HTTP::Get, path_for("property", "identifier", "list"), {}, {}, nil, nil, PortfolioManager::Xml::AdditionalIdentifierTypes, basic_auth: true)
end

#get_property_identifier_value(property_id, identifier_id) ⇒ PortfolioManager::Xml::AdditionalIdentifier, PortfolioManager::Xml::ResponseType

Get Property Identifier Value

This web service retrieves the property identifier value for a specific property and property identifier.



560
561
562
# File 'lib/portfolio_manager/services/property.rb', line 560

def get_property_identifier_value(property_id, identifier_id)
  request(Net::HTTP::Get, path_for("property", property_id, "identifier", identifier_id), {}, {}, nil, nil, PortfolioManager::Xml::AdditionalIdentifier, basic_auth: true)
end

#get_property_identifier_value_list(property_id) ⇒ PortfolioManager::Xml::AdditionalIdentifiers, PortfolioManager::Xml::ResponseType

Get Property Identifier Value List

This web service retrieves a list of property identifier values for a specific property specified in the URL.



574
575
576
# File 'lib/portfolio_manager/services/property.rb', line 574

def get_property_identifier_value_list(property_id)
  request(Net::HTTP::Get, path_for("property", property_id, "identifier", "list"), {}, {}, nil, nil, PortfolioManager::Xml::AdditionalIdentifiers, basic_auth: true)
end