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

com.tinypass.client.publisher.model.CreateLinkedTermRequest Maven / Gradle / Ivy

There is a newer version: 16.331.0
Show newest version
package com.tinypass.client.publisher.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class CreateLinkedTermRequest {

  /* The application ID */
  private String aid = null;
  

  /* The ID of the term in the external system. Provided by the external system. */
  private String externalTermId = null;
  

  /* The term name */
  private String name = null;
  

  /* The description of the term */
  private String description = null;
  

  /* A link to the external system where users can manage their subscriptions (similar to Piano’s MyAccount). */
  private String subscriptionManagementUrl = null;
  

  /* “External products\" are entities of the external system accessed by users. If you enter multiple values (separated by a comma), Piano will create a standard resource for each product and also a bundled resource that will group them. Example: \"digital_prod,print_sub_access,main_articles\". */
  private String externalProductIds = null;
  

  /* The custom fields similar to those filled in PD on Linked term creation. */
  private Map customData = new HashMap();
  


  public String getAid() {
    return aid;
  }
  public void setAid(String aid) {
    this.aid = aid;
  }


  public String getExternalTermId() {
    return externalTermId;
  }
  public void setExternalTermId(String externalTermId) {
    this.externalTermId = externalTermId;
  }


  public String getName() {
    return name;
  }
  public void setName(String name) {
    this.name = name;
  }


  public String getDescription() {
    return description;
  }
  public void setDescription(String description) {
    this.description = description;
  }


  public String getSubscriptionManagementUrl() {
    return subscriptionManagementUrl;
  }
  public void setSubscriptionManagementUrl(String subscriptionManagementUrl) {
    this.subscriptionManagementUrl = subscriptionManagementUrl;
  }


  public String getExternalProductIds() {
    return externalProductIds;
  }
  public void setExternalProductIds(String externalProductIds) {
    this.externalProductIds = externalProductIds;
  }


  public Map getCustomData() {
    return customData;
  }
  public void setCustomData(Map customData) {
    this.customData = customData;
  }


  @Override
  public String toString()  {
    StringBuilder sb = new StringBuilder();
    sb.append("class CreateLinkedTermRequest {\n");
    sb.append("  aid: ").append(aid).append("\n");
    sb.append("  externalTermId: ").append(externalTermId).append("\n");
    sb.append("  name: ").append(name).append("\n");
    sb.append("  description: ").append(description).append("\n");
    sb.append("  subscriptionManagementUrl: ").append(subscriptionManagementUrl).append("\n");
    sb.append("  externalProductIds: ").append(externalProductIds).append("\n");
    sb.append("  customData: ").append(customData).append("\n");
    sb.append("}\n");
    return sb.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy