com.klarna.rest.api.hosted_payment_page.model.HPPMerchantUrlsV1 Maven / Gradle / Ivy
The newest version!
/*
* HPP
* Hosted Payment Page
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.klarna.rest.api.hosted_payment_page.model;
import java.util.Objects;
import java.util.Arrays;
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;
/**
* HPPMerchantUrlsV1
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-01-20T10:31:07.217Z")
public class HPPMerchantUrlsV1 {
@JsonProperty("back")
private String back = null;
@JsonProperty("cancel")
private String cancel = null;
@JsonProperty("error")
private String error = null;
@JsonProperty("failure")
private String failure = null;
@JsonProperty("privacy_policy")
private String privacyPolicy = null;
@JsonProperty("status_update")
private String statusUpdate = null;
@JsonProperty("success")
private String success = null;
@JsonProperty("terms")
private String terms = null;
public HPPMerchantUrlsV1 back(String back) {
this.back = back;
return this;
}
/**
* Back URL
* @return back
**/
@ApiModelProperty(example = "https://example.com/back?sid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&hppId={{session_id}}", value = "Back URL")
public String getBack() {
return back;
}
public void setBack(String back) {
this.back = back;
}
public HPPMerchantUrlsV1 cancel(String cancel) {
this.cancel = cancel;
return this;
}
/**
* Cancel URL
* @return cancel
**/
@ApiModelProperty(example = "https://example.com/cancel?sid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&hppId={{session_id}}", value = "Cancel URL")
public String getCancel() {
return cancel;
}
public void setCancel(String cancel) {
this.cancel = cancel;
}
public HPPMerchantUrlsV1 error(String error) {
this.error = error;
return this;
}
/**
* System error URL
* @return error
**/
@ApiModelProperty(example = "https://example.com/error?sid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&hppId={{session_id}}", value = "System error URL")
public String getError() {
return error;
}
public void setError(String error) {
this.error = error;
}
public HPPMerchantUrlsV1 failure(String failure) {
this.failure = failure;
return this;
}
/**
* Failure URL
* @return failure
**/
@ApiModelProperty(example = "https://example.com/fail?sid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&hppId={{session_id}}", value = "Failure URL")
public String getFailure() {
return failure;
}
public void setFailure(String failure) {
this.failure = failure;
}
public HPPMerchantUrlsV1 privacyPolicy(String privacyPolicy) {
this.privacyPolicy = privacyPolicy;
return this;
}
/**
* Privacy policy URL
* @return privacyPolicy
**/
@ApiModelProperty(example = "https://example.com/privacy_policy", value = "Privacy policy URL")
public String getPrivacyPolicy() {
return privacyPolicy;
}
public void setPrivacyPolicy(String privacyPolicy) {
this.privacyPolicy = privacyPolicy;
}
public HPPMerchantUrlsV1 statusUpdate(String statusUpdate) {
this.statusUpdate = statusUpdate;
return this;
}
/**
* Status update URL
* @return statusUpdate
**/
@ApiModelProperty(example = "https://example.com/status_update?sid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&secret=yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy&hppId={{session_id}}", value = "Status update URL")
public String getStatusUpdate() {
return statusUpdate;
}
public void setStatusUpdate(String statusUpdate) {
this.statusUpdate = statusUpdate;
}
public HPPMerchantUrlsV1 success(String success) {
this.success = success;
return this;
}
/**
* Success URL
* @return success
**/
@ApiModelProperty(example = "https://example.com/success?sid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&hppId={{session_id}}&token={{authorization_token}}", value = "Success URL")
public String getSuccess() {
return success;
}
public void setSuccess(String success) {
this.success = success;
}
public HPPMerchantUrlsV1 terms(String terms) {
this.terms = terms;
return this;
}
/**
* Terms URL
* @return terms
**/
@ApiModelProperty(example = "https://example.com/terms", value = "Terms URL")
public String getTerms() {
return terms;
}
public void setTerms(String terms) {
this.terms = terms;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
HPPMerchantUrlsV1 merchantUrlsV1 = (HPPMerchantUrlsV1) o;
return Objects.equals(this.back, merchantUrlsV1.back) &&
Objects.equals(this.cancel, merchantUrlsV1.cancel) &&
Objects.equals(this.error, merchantUrlsV1.error) &&
Objects.equals(this.failure, merchantUrlsV1.failure) &&
Objects.equals(this.privacyPolicy, merchantUrlsV1.privacyPolicy) &&
Objects.equals(this.statusUpdate, merchantUrlsV1.statusUpdate) &&
Objects.equals(this.success, merchantUrlsV1.success) &&
Objects.equals(this.terms, merchantUrlsV1.terms);
}
@Override
public int hashCode() {
return Objects.hash(back, cancel, error, failure, privacyPolicy, statusUpdate, success, terms);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class HPPMerchantUrlsV1 {\n");
sb.append(" back: ").append(toIndentedString(back)).append("\n");
sb.append(" cancel: ").append(toIndentedString(cancel)).append("\n");
sb.append(" error: ").append(toIndentedString(error)).append("\n");
sb.append(" failure: ").append(toIndentedString(failure)).append("\n");
sb.append(" privacyPolicy: ").append(toIndentedString(privacyPolicy)).append("\n");
sb.append(" statusUpdate: ").append(toIndentedString(statusUpdate)).append("\n");
sb.append(" success: ").append(toIndentedString(success)).append("\n");
sb.append(" terms: ").append(toIndentedString(terms)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}