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
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 Details extends PayPalModel {
/**
* Amount of the subtotal of the items. **Required** if line items are specified. 10 characters max, with support for 2 decimal places.
*/
private String subtotal;
/**
* Amount charged for shipping. 10 characters max with support for 2 decimal places.
*/
private String shipping;
/**
* Amount charged for tax. 10 characters max with support for 2 decimal places.
*/
private String tax;
/**
* Amount being charged for the handling fee. Only supported when the `payment_method` is set to `paypal`.
*/
private String handlingFee;
/**
* Amount being discounted for the shipping fee. Only supported when the `payment_method` is set to `paypal`.
*/
private String shippingDiscount;
/**
* Amount being charged for the insurance fee. Only supported when the `payment_method` is set to `paypal`.
*/
private String insurance;
/**
* Amount being charged as gift wrap fee.
*/
private String giftWrap;
/**
* 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;
/**
* Default Constructor
*/
public Details() {
}
/**
* Amount of the subtotal of the items. **Required** if line items are specified. 10 characters max, with support for 2 decimal places.
*/
@java.lang.SuppressWarnings("all")
public String getSubtotal() {
return this.subtotal;
}
/**
* Amount charged for shipping. 10 characters max with support for 2 decimal places.
*/
@java.lang.SuppressWarnings("all")
public String getShipping() {
return this.shipping;
}
/**
* Amount charged for tax. 10 characters max with support for 2 decimal places.
*/
@java.lang.SuppressWarnings("all")
public String getTax() {
return this.tax;
}
/**
* Amount being charged for the handling fee. Only supported when the `payment_method` is set to `paypal`.
*/
@java.lang.SuppressWarnings("all")
public String getHandlingFee() {
return this.handlingFee;
}
/**
* Amount being discounted for the shipping fee. Only supported when the `payment_method` is set to `paypal`.
*/
@java.lang.SuppressWarnings("all")
public String getShippingDiscount() {
return this.shippingDiscount;
}
/**
* Amount being charged for the insurance fee. Only supported when the `payment_method` is set to `paypal`.
*/
@java.lang.SuppressWarnings("all")
public String getInsurance() {
return this.insurance;
}
/**
* Amount being charged as gift wrap fee.
*/
@java.lang.SuppressWarnings("all")
public String getGiftWrap() {
return this.giftWrap;
}
/**
* 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 of the subtotal of the items. **Required** if line items are specified. 10 characters max, with support for 2 decimal places.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Details setSubtotal(final String subtotal) {
this.subtotal = subtotal;
return this;
}
/**
* Amount charged for shipping. 10 characters max with support for 2 decimal places.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Details setShipping(final String shipping) {
this.shipping = shipping;
return this;
}
/**
* Amount charged for tax. 10 characters max with support for 2 decimal places.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Details setTax(final String tax) {
this.tax = tax;
return this;
}
/**
* Amount being charged for the handling fee. Only supported when the `payment_method` is set to `paypal`.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Details setHandlingFee(final String handlingFee) {
this.handlingFee = handlingFee;
return this;
}
/**
* Amount being discounted for the shipping fee. Only supported when the `payment_method` is set to `paypal`.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Details setShippingDiscount(final String shippingDiscount) {
this.shippingDiscount = shippingDiscount;
return this;
}
/**
* Amount being charged for the insurance fee. Only supported when the `payment_method` is set to `paypal`.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Details setInsurance(final String insurance) {
this.insurance = insurance;
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;
}
/**
* 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;
}
@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$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$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$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$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$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;
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$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$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;
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 $subtotal = this.getSubtotal();
result = result * PRIME + ($subtotal == null ? 43 : $subtotal.hashCode());
final java.lang.Object $shipping = this.getShipping();
result = result * PRIME + ($shipping == null ? 43 : $shipping.hashCode());
final java.lang.Object $tax = this.getTax();
result = result * PRIME + ($tax == null ? 43 : $tax.hashCode());
final java.lang.Object $handlingFee = this.getHandlingFee();
result = result * PRIME + ($handlingFee == null ? 43 : $handlingFee.hashCode());
final java.lang.Object $shippingDiscount = this.getShippingDiscount();
result = result * PRIME + ($shippingDiscount == null ? 43 : $shippingDiscount.hashCode());
final java.lang.Object $insurance = this.getInsurance();
result = result * PRIME + ($insurance == null ? 43 : $insurance.hashCode());
final java.lang.Object $giftWrap = this.getGiftWrap();
result = result * PRIME + ($giftWrap == null ? 43 : $giftWrap.hashCode());
final java.lang.Object $fee = this.getFee();
result = result * PRIME + ($fee == null ? 43 : $fee.hashCode());
return result;
}
}