com.paypal.api.payments.PatchRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.commerce.payment.method.paypal
Show all versions of com.liferay.commerce.payment.method.paypal
Liferay Commerce Payment Method PayPal
The newest version!
// Generated by delombok at Thu Nov 16 13:48:05 CST 2017
package com.paypal.api.payments;
import com.paypal.base.rest.PayPalModel;
public class PatchRequest extends PayPalModel {
/**
* The operation to perform.
*/
private String op;
/**
* string containing a JSON-Pointer value that references a location within the target document (the target location) where the operation is performed.
*/
private String path;
/**
* New value to apply based on the operation.
*/
private String value;
/**
* A string containing a JSON Pointer value that references the location in the target document to move the value from.
*/
private String from;
/**
* Default Constructor
*/
public PatchRequest() {
}
/**
* Parameterized Constructor
*/
public PatchRequest(String op, String path) {
this.op = op;
this.path = path;
}
/**
* The operation to perform.
*/
@java.lang.SuppressWarnings("all")
public String getOp() {
return this.op;
}
/**
* string containing a JSON-Pointer value that references a location within the target document (the target location) where the operation is performed.
*/
@java.lang.SuppressWarnings("all")
public String getPath() {
return this.path;
}
/**
* New value to apply based on the operation.
*/
@java.lang.SuppressWarnings("all")
public String getValue() {
return this.value;
}
/**
* A string containing a JSON Pointer value that references the location in the target document to move the value from.
*/
@java.lang.SuppressWarnings("all")
public String getFrom() {
return this.from;
}
/**
* The operation to perform.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PatchRequest setOp(final String op) {
this.op = op;
return this;
}
/**
* string containing a JSON-Pointer value that references a location within the target document (the target location) where the operation is performed.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PatchRequest setPath(final String path) {
this.path = path;
return this;
}
/**
* New value to apply based on the operation.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PatchRequest setValue(final String value) {
this.value = value;
return this;
}
/**
* A string containing a JSON Pointer value that references the location in the target document to move the value from.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PatchRequest setFrom(final String from) {
this.from = from;
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 PatchRequest)) return false;
final PatchRequest other = (PatchRequest) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$op = this.getOp();
final java.lang.Object other$op = other.getOp();
if (this$op == null ? other$op != null : !this$op.equals(other$op)) return false;
final java.lang.Object this$path = this.getPath();
final java.lang.Object other$path = other.getPath();
if (this$path == null ? other$path != null : !this$path.equals(other$path)) return false;
final java.lang.Object this$value = this.getValue();
final java.lang.Object other$value = other.getValue();
if (this$value == null ? other$value != null : !this$value.equals(other$value)) return false;
final java.lang.Object this$from = this.getFrom();
final java.lang.Object other$from = other.getFrom();
if (this$from == null ? other$from != null : !this$from.equals(other$from)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof PatchRequest;
}
@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 $op = this.getOp();
result = result * PRIME + ($op == null ? 43 : $op.hashCode());
final java.lang.Object $path = this.getPath();
result = result * PRIME + ($path == null ? 43 : $path.hashCode());
final java.lang.Object $value = this.getValue();
result = result * PRIME + ($value == null ? 43 : $value.hashCode());
final java.lang.Object $from = this.getFrom();
result = result * PRIME + ($from == null ? 43 : $from.hashCode());
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy