com.stripe.model.TaxDeductedAtSource Maven / Gradle / Ivy
// Generated by delombok at Thu Mar 12 08:35:04 PDT 2020
package com.stripe.model;
import com.google.gson.annotations.SerializedName;
public class TaxDeductedAtSource extends StripeObject implements BalanceTransactionSource {
/**
* Unique identifier for the object.
*/
@SerializedName("id")
String id;
/**
* String representing the object's type. Objects of the same type share the same value.
*
* Equal to {@code tax_deducted_at_source}.
*/
@SerializedName("object")
String object;
/**
* The end of the invoicing period. This TDS applies to Stripe fees collected during this
* invoicing period.
*/
@SerializedName("period_end")
Long periodEnd;
/**
* The start of the invoicing period. This TDS applies to Stripe fees collected during this
* invoicing period.
*/
@SerializedName("period_start")
Long periodStart;
/**
* The TAN that was supplied to Stripe when TDS was assessed.
*/
@SerializedName("tax_deduction_account_number")
String taxDeductionAccountNumber;
/**
* String representing the object's type. Objects of the same type share the same value.
*
*
Equal to {@code tax_deducted_at_source}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getObject() {
return this.object;
}
/**
* The end of the invoicing period. This TDS applies to Stripe fees collected during this
* invoicing period.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Long getPeriodEnd() {
return this.periodEnd;
}
/**
* The start of the invoicing period. This TDS applies to Stripe fees collected during this
* invoicing period.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Long getPeriodStart() {
return this.periodStart;
}
/**
* The TAN that was supplied to Stripe when TDS was assessed.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getTaxDeductionAccountNumber() {
return this.taxDeductionAccountNumber;
}
/**
* Unique identifier for the object.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setId(final String id) {
this.id = id;
}
/**
* String representing the object's type. Objects of the same type share the same value.
*
*
Equal to {@code tax_deducted_at_source}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setObject(final String object) {
this.object = object;
}
/**
* The end of the invoicing period. This TDS applies to Stripe fees collected during this
* invoicing period.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setPeriodEnd(final Long periodEnd) {
this.periodEnd = periodEnd;
}
/**
* The start of the invoicing period. This TDS applies to Stripe fees collected during this
* invoicing period.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setPeriodStart(final Long periodStart) {
this.periodStart = periodStart;
}
/**
* The TAN that was supplied to Stripe when TDS was assessed.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setTaxDeductionAccountNumber(final String taxDeductionAccountNumber) {
this.taxDeductionAccountNumber = taxDeductionAccountNumber;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof TaxDeductedAtSource)) return false;
final TaxDeductedAtSource other = (TaxDeductedAtSource) o;
if (!other.canEqual((java.lang.Object) this)) 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$object = this.getObject();
final java.lang.Object other$object = other.getObject();
if (this$object == null ? other$object != null : !this$object.equals(other$object)) return false;
final java.lang.Object this$periodEnd = this.getPeriodEnd();
final java.lang.Object other$periodEnd = other.getPeriodEnd();
if (this$periodEnd == null ? other$periodEnd != null : !this$periodEnd.equals(other$periodEnd)) return false;
final java.lang.Object this$periodStart = this.getPeriodStart();
final java.lang.Object other$periodStart = other.getPeriodStart();
if (this$periodStart == null ? other$periodStart != null : !this$periodStart.equals(other$periodStart)) return false;
final java.lang.Object this$taxDeductionAccountNumber = this.getTaxDeductionAccountNumber();
final java.lang.Object other$taxDeductionAccountNumber = other.getTaxDeductionAccountNumber();
if (this$taxDeductionAccountNumber == null ? other$taxDeductionAccountNumber != null : !this$taxDeductionAccountNumber.equals(other$taxDeductionAccountNumber)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected boolean canEqual(final java.lang.Object other) {
return other instanceof TaxDeductedAtSource;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $id = this.getId();
result = result * PRIME + ($id == null ? 43 : $id.hashCode());
final java.lang.Object $object = this.getObject();
result = result * PRIME + ($object == null ? 43 : $object.hashCode());
final java.lang.Object $periodEnd = this.getPeriodEnd();
result = result * PRIME + ($periodEnd == null ? 43 : $periodEnd.hashCode());
final java.lang.Object $periodStart = this.getPeriodStart();
result = result * PRIME + ($periodStart == null ? 43 : $periodStart.hashCode());
final java.lang.Object $taxDeductionAccountNumber = this.getTaxDeductionAccountNumber();
result = result * PRIME + ($taxDeductionAccountNumber == null ? 43 : $taxDeductionAccountNumber.hashCode());
return result;
}
/**
* Unique identifier for the object.
*/
@Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getId() {
return this.id;
}
}