com.paypal.api.payments.Details 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 Details extends PayPalModel {
/**
* Amount being charged for shipping.
*/
private String shipping;
/**
* Sub-total (amount) of items being paid for.
*/
private String subtotal;
/**
* Amount being charged as tax.
*/
private String tax;
/**
* Fee charged by PayPal. In case of a refund, this is the fee amount refunded to the original receipient of the payment.
*/
private String fee;
/**
* Amount being charged as handling fee.
*/
private String handlingFee;
/**
* Amount being charged as gift wrap fee.
*/
private String giftWrap;
/**
* Amount being charged for the insurance fee.
*/
private String insurance;
/**
* Amount being discounted for the shipping fee.
*/
private String shippingDiscount;
/**
* Default Constructor
*/
public Details() {
}
/**
* Amount being charged for shipping.
*/
@java.lang.SuppressWarnings("all")
public String getShipping() {
return this.shipping;
}
/**
* Sub-total (amount) of items being paid for.
*/
@java.lang.SuppressWarnings("all")
public String getSubtotal() {
return this.subtotal;
}
/**
* Amount being charged as tax.
*/
@java.lang.SuppressWarnings("all")
public String getTax() {
return this.tax;
}
/**
* Fee charged by PayPal. In case of a refund, this is the fee amount refunded to the original receipient of the payment.
*/
@java.lang.SuppressWarnings("all")
public String getFee() {
return this.fee;
}
/**
* Amount being charged as handling fee.
*/
@java.lang.SuppressWarnings("all")
public String getHandlingFee() {
return this.handlingFee;
}
/**
* Amount being charged as gift wrap fee.
*/
@java.lang.SuppressWarnings("all")
public String getGiftWrap() {
return this.giftWrap;
}
/**
* Amount being charged for the insurance fee.
*/
@java.lang.SuppressWarnings("all")
public String getInsurance() {
return this.insurance;
}
/**
* Amount being discounted for the shipping fee.
*/
@java.lang.SuppressWarnings("all")
public String getShippingDiscount() {
return this.shippingDiscount;
}
/**
* Amount being charged for shipping.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Details setShipping(final String shipping) {
this.shipping = shipping;
return this;
}
/**
* Sub-total (amount) of items being paid for.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Details setSubtotal(final String subtotal) {
this.subtotal = subtotal;
return this;
}
/**
* Amount being charged as tax.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Details setTax(final String tax) {
this.tax = tax;
return this;
}
/**
* Fee charged by PayPal. In case of a refund, this is the fee amount refunded to the original receipient of the payment.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Details setFee(final String fee) {
this.fee = fee;
return this;
}
/**
* Amount being charged as handling fee.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Details setHandlingFee(final String handlingFee) {
this.handlingFee = handlingFee;
return this;
}
/**
* Amount being charged as gift wrap fee.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Details setGiftWrap(final String giftWrap) {
this.giftWrap = giftWrap;
return this;
}
/**
* Amount being charged for the insurance fee.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Details setInsurance(final String insurance) {
this.insurance = insurance;
return this;
}
/**
* Amount being discounted for the shipping fee.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Details setShippingDiscount(final String shippingDiscount) {
this.shippingDiscount = shippingDiscount;
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 Details)) return false;
final Details other = (Details) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$shipping = this.getShipping();
final java.lang.Object other$shipping = other.getShipping();
if (this$shipping == null ? other$shipping != null : !this$shipping.equals(other$shipping)) return false;
final java.lang.Object this$subtotal = this.getSubtotal();
final java.lang.Object other$subtotal = other.getSubtotal();
if (this$subtotal == null ? other$subtotal != null : !this$subtotal.equals(other$subtotal)) return false;
final java.lang.Object this$tax = this.getTax();
final java.lang.Object other$tax = other.getTax();
if (this$tax == null ? other$tax != null : !this$tax.equals(other$tax)) return false;
final java.lang.Object this$fee = this.getFee();
final java.lang.Object other$fee = other.getFee();
if (this$fee == null ? other$fee != null : !this$fee.equals(other$fee)) return false;
final java.lang.Object this$handlingFee = this.getHandlingFee();
final java.lang.Object other$handlingFee = other.getHandlingFee();
if (this$handlingFee == null ? other$handlingFee != null : !this$handlingFee.equals(other$handlingFee)) return false;
final java.lang.Object this$giftWrap = this.getGiftWrap();
final java.lang.Object other$giftWrap = other.getGiftWrap();
if (this$giftWrap == null ? other$giftWrap != null : !this$giftWrap.equals(other$giftWrap)) return false;
final java.lang.Object this$insurance = this.getInsurance();
final java.lang.Object other$insurance = other.getInsurance();
if (this$insurance == null ? other$insurance != null : !this$insurance.equals(other$insurance)) return false;
final java.lang.Object this$shippingDiscount = this.getShippingDiscount();
final java.lang.Object other$shippingDiscount = other.getShippingDiscount();
if (this$shippingDiscount == null ? other$shippingDiscount != null : !this$shippingDiscount.equals(other$shippingDiscount)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Details;
}
@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 $shipping = this.getShipping();
result = result * PRIME + ($shipping == null ? 43 : $shipping.hashCode());
final java.lang.Object $subtotal = this.getSubtotal();
result = result * PRIME + ($subtotal == null ? 43 : $subtotal.hashCode());
final java.lang.Object $tax = this.getTax();
result = result * PRIME + ($tax == null ? 43 : $tax.hashCode());
final java.lang.Object $fee = this.getFee();
result = result * PRIME + ($fee == null ? 43 : $fee.hashCode());
final java.lang.Object $handlingFee = this.getHandlingFee();
result = result * PRIME + ($handlingFee == null ? 43 : $handlingFee.hashCode());
final java.lang.Object $giftWrap = this.getGiftWrap();
result = result * PRIME + ($giftWrap == null ? 43 : $giftWrap.hashCode());
final java.lang.Object $insurance = this.getInsurance();
result = result * PRIME + ($insurance == null ? 43 : $insurance.hashCode());
final java.lang.Object $shippingDiscount = this.getShippingDiscount();
result = result * PRIME + ($shippingDiscount == null ? 43 : $shippingDiscount.hashCode());
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy