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

com.tinypass.client.publisher.model.WebhookConfig 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;

public class WebhookConfig {

  /* The webhook config key */
  private String key = null;
    //public enum keyEnum {  new_purchase,  psc_purchase,  payment_verified,  free_access_granted,  new_registration_conversion,  free_promo_redemption,  provisional_access_granted,  cross_app_access_granted,  term_applied_by_publisher,  payment_verified_by_publisher,  new_custom_term_conversion,  new_site_license_conversion,  subscription_updated,  subscription_manually_renewed,  subscription_auto_renewed,  access_modified,  cross_app_access_modified,  grace_period_extension_on_renewal,  site_license_renewed,  access_revoked,  subscription_auto_renewed_failure,  access_ended,  subscription_canceled,  subscription_expired,  cross_app_access_revoked,  site_license_expired,  site_license_canceled,  keying_content_state_updated,  voucher_purchase,  voucher_delivery,  to_giftee_voucher_redeemed,  voucher_revoked,  term_change,  term_change_finished,  shared_subscription_child,  user_updated,  piano_id_user_password_updated,  piano_id_user_custom_fields_updated,  user_address_updated,  address_updated,  user_created,  user_disabled,  piano_id_user_email_confirmed,  subscription_auto_renew_changed_by_end_user,  licensee_created,  licensee_updated,  contract_created,  contract_updated,  contract_deleted,  licensee_contract_redeemed,  licensee_contract_auto_renewed,  licensee_invite_to_contract,  contract_user_created,  licensee_contract_access_expired,  licensee_contract_subscription_canceled,  user_payment_method_new,  user_payment_method_update,  purchase_refund,  subscription_auto_renewed_auth_failure,  term_change_scheduled,  term_change_canceled,  term_change_suspended,  term_change_resumed,  term_change_failure,  };


  /* The webhook config label */
  private String label = null;
  

  /* The webhook config enabled */
  private Boolean enabled = null;
  

  /* The webhook type */
  private String type = null;
    //public enum typeEnum {  access_granted,  access_revoked,  contract_user_created,  voucher_redeemed,  user_created,  licensee_created,  voucher_purchased,  term_changed,  subscription_renewal,  user_address_updated,  contract_user_access_expired,  licensee_invite_to_contract,  contract_user_access_revoked,  term_change,  user_disabled,  access_modified,  subscription_auto_renew_changed,  user_payment_method,  licensee_updated,  shared_subscription_child,  address_updated,  voucher_revoked,  term_change_finished,  user_email_confirmed,  contract_renewed,  user_updated,  contract_deleted,  contract_updated,  contract_redeemed,  payment_refund,  content_algorithm,  contract_created,  voucher_delivered,  };



  public String getKey() {
    return key;
  }
  public void setKey(String key) {
    this.key = key;
  }


  public String getLabel() {
    return label;
  }
  public void setLabel(String label) {
    this.label = label;
  }


  public Boolean getEnabled() {
    return enabled;
  }
  public void setEnabled(Boolean enabled) {
    this.enabled = enabled;
  }


  public String getType() {
    return type;
  }
  public void setType(String type) {
    this.type = type;
  }


  @Override
  public String toString()  {
    StringBuilder sb = new StringBuilder();
    sb.append("class WebhookConfig {\n");
    sb.append("  key: ").append(key).append("\n");
    sb.append("  label: ").append(label).append("\n");
    sb.append("  enabled: ").append(enabled).append("\n");
    sb.append("  type: ").append(type).append("\n");
    sb.append("}\n");
    return sb.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy