com.paypal.api.payments.InputFields 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 Tue Jan 31 13:36:37 CST 2017
package com.paypal.api.payments;
import com.paypal.base.rest.PayPalModel;
public class InputFields extends PayPalModel {
/**
* Indicates whether the buyer can enter a note to the merchant on the PayPal page during checkout.
*/
private Boolean allowNote;
/**
* Indicates whether PayPal displays shipping address fields on the experience pages. Valid value is `0`, `1`, or `2`. Set to `0` to display the shipping address on the PayPal pages. Set to `1` to redact shipping address fields from the PayPal pages. Set to `2` to not pass the shipping address but instead get it from the buyer's account profile. For digital goods, this field is required and value must be `1`.
*/
private int noShipping;
/**
* Indicates whether to display the shipping address that is passed to this call rather than the one on file with PayPal for this buyer on the PayPal experience pages. Valid value is `0` or `1`. Set to `0` to display the shipping address on file. Set to `1` to display the shipping address supplied to this call; the buyer cannot edit this shipping address.
*/
private int addressOverride;
/**
* Default Constructor
*/
public InputFields() {
}
/**
* Indicates whether the buyer can enter a note to the merchant on the PayPal page during checkout.
*/
@java.lang.SuppressWarnings("all")
public Boolean getAllowNote() {
return this.allowNote;
}
/**
* Indicates whether PayPal displays shipping address fields on the experience pages. Valid value is `0`, `1`, or `2`. Set to `0` to display the shipping address on the PayPal pages. Set to `1` to redact shipping address fields from the PayPal pages. Set to `2` to not pass the shipping address but instead get it from the buyer's account profile. For digital goods, this field is required and value must be `1`.
*/
@java.lang.SuppressWarnings("all")
public int getNoShipping() {
return this.noShipping;
}
/**
* Indicates whether to display the shipping address that is passed to this call rather than the one on file with PayPal for this buyer on the PayPal experience pages. Valid value is `0` or `1`. Set to `0` to display the shipping address on file. Set to `1` to display the shipping address supplied to this call; the buyer cannot edit this shipping address.
*/
@java.lang.SuppressWarnings("all")
public int getAddressOverride() {
return this.addressOverride;
}
/**
* Indicates whether the buyer can enter a note to the merchant on the PayPal page during checkout.
* @return this
*/
@java.lang.SuppressWarnings("all")
public InputFields setAllowNote(final Boolean allowNote) {
this.allowNote = allowNote;
return this;
}
/**
* Indicates whether PayPal displays shipping address fields on the experience pages. Valid value is `0`, `1`, or `2`. Set to `0` to display the shipping address on the PayPal pages. Set to `1` to redact shipping address fields from the PayPal pages. Set to `2` to not pass the shipping address but instead get it from the buyer's account profile. For digital goods, this field is required and value must be `1`.
* @return this
*/
@java.lang.SuppressWarnings("all")
public InputFields setNoShipping(final int noShipping) {
this.noShipping = noShipping;
return this;
}
/**
* Indicates whether to display the shipping address that is passed to this call rather than the one on file with PayPal for this buyer on the PayPal experience pages. Valid value is `0` or `1`. Set to `0` to display the shipping address on file. Set to `1` to display the shipping address supplied to this call; the buyer cannot edit this shipping address.
* @return this
*/
@java.lang.SuppressWarnings("all")
public InputFields setAddressOverride(final int addressOverride) {
this.addressOverride = addressOverride;
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 InputFields)) return false;
final InputFields other = (InputFields) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$allowNote = this.getAllowNote();
final java.lang.Object other$allowNote = other.getAllowNote();
if (this$allowNote == null ? other$allowNote != null : !this$allowNote.equals(other$allowNote)) return false;
if (this.getNoShipping() != other.getNoShipping()) return false;
if (this.getAddressOverride() != other.getAddressOverride()) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof InputFields;
}
@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 $allowNote = this.getAllowNote();
result = result * PRIME + ($allowNote == null ? 43 : $allowNote.hashCode());
result = result * PRIME + this.getNoShipping();
result = result * PRIME + this.getAddressOverride();
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy