com.paypal.api.payments.Credit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-api-sdk Show documentation
Show all versions of rest-api-sdk Show documentation
PayPal SDK for integrating with the REST APIs
// Generated by delombok at Wed Oct 12 18:15:55 CDT 2016
package com.paypal.api.payments;
import com.paypal.base.rest.PayPalModel;
public class Credit extends PayPalModel {
/**
* Unique identifier of credit resource.
*/
private String id;
/**
* specifies type of credit
*/
private String type;
/**
* Default Constructor
*/
public Credit() {
}
/**
* Parameterized Constructor
*/
public Credit(String type) {
this.type = type;
}
/**
* Unique identifier of credit resource.
*/
@java.lang.SuppressWarnings("all")
public String getId() {
return this.id;
}
/**
* specifies type of credit
*/
@java.lang.SuppressWarnings("all")
public String getType() {
return this.type;
}
/**
* Unique identifier of credit resource.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Credit setId(final String id) {
this.id = id;
return this;
}
/**
* specifies type of credit
* @return this
*/
@java.lang.SuppressWarnings("all")
public Credit setType(final String type) {
this.type = type;
return this;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof Credit)) return false;
final Credit other = (Credit) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$id = this.getId();
final java.lang.Object other$id = other.getId();
if (this$id == null ? other$id != null : !this$id.equals(other$id)) return false;
final java.lang.Object this$type = this.getType();
final java.lang.Object other$type = other.getType();
if (this$type == null ? other$type != null : !this$type.equals(other$type)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Credit;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
result = result * PRIME + super.hashCode();
final java.lang.Object $id = this.getId();
result = result * PRIME + ($id == null ? 43 : $id.hashCode());
final java.lang.Object $type = this.getType();
result = result * PRIME + ($type == null ? 43 : $type.hashCode());
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy