public class Discount extends StripeObject
PRETTY_PRINT_GSON
Constructor and Description |
---|
Discount() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
Coupon |
getCoupon() |
java.lang.String |
getCustomer()
Get id of expandable `customer` object.
|
Customer |
getCustomerObject()
Get expanded `customer`.
|
java.lang.Boolean |
getDeleted()
Always true for a deleted object.
|
java.lang.Long |
getEnd()
If the coupon has a duration of `repeating`, the date that this discount will end.
|
java.lang.String |
getObject()
String representing the object's type.
|
java.lang.Long |
getStart()
Date that the coupon was applied.
|
java.lang.String |
getSubscription()
The subscription that this coupon is applied to, if it is applied to a particular subscription.
|
int |
hashCode() |
void |
setCoupon(Coupon coupon) |
void |
setCustomer(java.lang.String id) |
void |
setCustomerObject(Customer expandableObject) |
void |
setDeleted(java.lang.Boolean deleted)
Always true for a deleted object.
|
void |
setEnd(java.lang.Long end)
If the coupon has a duration of `repeating`, the date that this discount will end.
|
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setStart(java.lang.Long start)
Date that the coupon was applied.
|
void |
setSubscription(java.lang.String subscription)
The subscription that this coupon is applied to, if it is applied to a particular subscription.
|
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public java.lang.String getCustomer()
public void setCustomer(java.lang.String id)
public Customer getCustomerObject()
public void setCustomerObject(Customer expandableObject)
public Coupon getCoupon()
public java.lang.Boolean getDeleted()
public java.lang.Long getEnd()
public java.lang.String getObject()
public java.lang.Long getStart()
public java.lang.String getSubscription()
public void setCoupon(Coupon coupon)
public void setDeleted(java.lang.Boolean deleted)
public void setEnd(java.lang.Long end)
public void setObject(java.lang.String object)
public void setStart(java.lang.Long start)
public void setSubscription(java.lang.String subscription)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object