require 'ysm4r/v1/UserManagementServiceMappingRegistry' module YSM::UserManagementService require 'soap/rpc/driver' class UserManagementService < ::SOAP::RPC::Driver DefaultEndpointUrl = "https://USE_ADDRESS_RETURNED_BY_LOCATION_SERVICE/services/V1/UserManagementService" Methods = [ [ "", "resetUserPassword", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "resetUserPassword"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "resetUserPasswordResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "addUser", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "addUser"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "addUserResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "getUserStatus", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getUserStatus"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getUserStatusResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "getPaymentMethods", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getPaymentMethods"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getPaymentMethodsResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "addAuthorizationsForUser", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "addAuthorizationsForUser"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "addAuthorizationsForUserResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "updateCreditCard", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "updateCreditCard"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "updateCreditCardResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "enableUser", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "enableUser"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "enableUserResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "getUsersInCompany", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getUsersInCompany"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getUsersInCompanyResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "updateUserAddress", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "updateUserAddress"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "updateUserAddressResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "updateUserInfo", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "updateUserInfo"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "updateUserInfoResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "getAuthorizedUsersByMasterAccountID", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getAuthorizedUsersByMasterAccountID"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getAuthorizedUsersByMasterAccountIDResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "getUserAddress", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getUserAddress"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getUserAddressResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "getUserEmail", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getUserEmail"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getUserEmailResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "addAuthorizationForUser", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "addAuthorizationForUser"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "addAuthorizationForUserResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "updateMyUserInfo", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "updateMyUserInfo"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "updateMyUserInfoResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "deleteAuthorizationForUser", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "deleteAuthorizationForUser"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "deleteAuthorizationForUserResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "updateMyPassword", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "updateMyPassword"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "updateMyPasswordResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "getMyUserInfo", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getMyUserInfo"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getMyUserInfoResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "testUsername", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "testUsername"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "testUsernameResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "updateMyEmail", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "updateMyEmail"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "updateMyEmailResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "getCapabilitiesForRole", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getCapabilitiesForRole"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getCapabilitiesForRoleResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "getMyAddress", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getMyAddress"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getMyAddressResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "getAuthorizedUsersByAccountID", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getAuthorizedUsersByAccountID"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getAuthorizedUsersByAccountIDResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "getAuthorizationsForUser", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getAuthorizationsForUser"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getAuthorizationsForUserResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "updateMyAddress", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "updateMyAddress"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "updateMyAddressResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "deleteAuthorizationsForUser", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "deleteAuthorizationsForUser"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "deleteAuthorizationsForUserResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "addCreditCard", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "addCreditCard"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "addCreditCardResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "getMyAuthorizations", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getMyAuthorizations"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getMyAuthorizationsResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "getAvailableRolesByAccountID", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getAvailableRolesByAccountID"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getAvailableRolesByAccountIDResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "disableUser", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "disableUser"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "disableUserResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ], [ "", "getUserInfo", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getUserInfo"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getUserInfoResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {"YSM::UserManagementService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} } ] ] def initialize(endpoint_url = nil) endpoint_url ||= DefaultEndpointUrl super(endpoint_url, nil) self.mapping_registry = DefaultMappingRegistry::EncodedRegistry self.literal_mapping_registry = DefaultMappingRegistry::LiteralRegistry init_methods end private def init_methods Methods.each do |definitions| opt = definitions.last if opt[:request_style] == :document add_document_operation(*definitions) else add_rpc_operation(*definitions) qname = definitions[0] name = definitions[2] if qname.name != name and qname.name.capitalize == name.capitalize ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg| __send__(name, *arg) end end end end end end end