All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.store.partnercenter.relationshiprequests.CustomerRelationshipRequestOperations Maven / Gradle / Ivy

There is a newer version: 1.15.3
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See the LICENSE file in the project root for full license information.

package com.microsoft.store.partnercenter.relationshiprequests;

import com.fasterxml.jackson.core.type.TypeReference;
import com.microsoft.store.partnercenter.BasePartnerComponentString;
import com.microsoft.store.partnercenter.IPartner;
import com.microsoft.store.partnercenter.PartnerService;
import com.microsoft.store.partnercenter.models.relationshiprequests.CustomerRelationshipRequest;

/**
 * Customer relationship request implementation class.
 */
public class CustomerRelationshipRequestOperations
	extends BasePartnerComponentString
	implements ICustomerRelationshipRequest
{
	/**
	 * Initializes a new instance of the CustomerRelationshipRequestOperations class.
	 * 
	 * @param rootPartnerOperations The root partner operations instance.
	 */
	public CustomerRelationshipRequestOperations(IPartner rootPartnerOperations)
	{
		super(rootPartnerOperations);
	}

	/**
	 * Retrieves the customer relationship request which can be used by a customer to establish a relationship with the
	 * current partner.
	 * 
	 * @return A customer relationship request.
	 */
	@Override
	public CustomerRelationshipRequest get()
	{
		return this.getPartner().getServiceClient().get(
			this.getPartner(),
			new TypeReference(){}, 
			PartnerService.getInstance().getConfiguration().getApis().get("GetCustomerRelationshipRequest").getPath());
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy