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

com.kaltura.client.services.CompensationService Maven / Gradle / Ivy

Go to download

KalturaOttApiClient is a library of Java classes that can be used to interact with the Kaltura OTT REST API. More information about the REST API can be found at https://ott.developer.kaltura.com/ Many of the Java classes in this library are auto-generated from a schema that defines the objects that are used to interact with the API.

There is a newer version: 5.1.2.17630
Show newest version
// ===================================================================================================
//                           _  __     _ _
//                          | |/ /__ _| | |_ _  _ _ _ __ _
//                          | ' .
//
// @ignore
// ===================================================================================================
package com.kaltura.client.services;

import com.kaltura.client.types.Compensation;
import com.kaltura.client.utils.request.NullRequestBuilder;
import com.kaltura.client.utils.request.RequestBuilder;

/**
 * This class was generated using clients-generator\exec.php
 * against an XML schema provided by Kaltura.
 * 
 * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN.
 */

public class CompensationService {
	
	public static class AddCompensationBuilder extends RequestBuilder {
		
		public AddCompensationBuilder(Compensation compensation) {
			super(Compensation.class, "compensation", "add");
			params.add("compensation", compensation);
		}
	}

	/**
	 * Adds a new compensation for a household for a given number of iterations of a
	  subscription renewal for a fixed amount / percentage of the renewal price.
	 * 
	 * @param compensation Compensation parameters
	 */
    public static AddCompensationBuilder add(Compensation compensation)  {
		return new AddCompensationBuilder(compensation);
	}
	
	public static class DeleteCompensationBuilder extends NullRequestBuilder {
		
		public DeleteCompensationBuilder(long id) {
			super("compensation", "delete");
			params.add("id", id);
		}
		
		public void id(String multirequestToken) {
			params.add("id", multirequestToken);
		}
	}

	/**
	 * Delete a compensation by identifier
	 * 
	 * @param id Compensation identifier
	 */
    public static DeleteCompensationBuilder delete(long id)  {
		return new DeleteCompensationBuilder(id);
	}
	
	public static class GetCompensationBuilder extends RequestBuilder {
		
		public GetCompensationBuilder(long id) {
			super(Compensation.class, "compensation", "get");
			params.add("id", id);
		}
		
		public void id(String multirequestToken) {
			params.add("id", multirequestToken);
		}
	}

	/**
	 * Get a compensation by identifier
	 * 
	 * @param id Compensation identifier
	 */
    public static GetCompensationBuilder get(long id)  {
		return new GetCompensationBuilder(id);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy