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()
A coupon contains information about a percent-off or amount-off discount you might want to
apply to a customer.
|
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)
A coupon contains information about a percent-off or amount-off discount you might want to
apply to a customer.
|
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()
customer
object.public void setCustomer(java.lang.String id)
public Customer getCustomerObject()
customer
.public void setCustomerObject(Customer expandableObject)
public Coupon getCoupon()
public java.lang.Boolean getDeleted()
public java.lang.Long getEnd()
repeating
, the date that this discount will end. If the
coupon has a duration of once
or forever
, this attribute will be null.public java.lang.String getObject()
Equal to discount
.
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)
repeating
, the date that this discount will end. If the
coupon has a duration of once
or forever
, this attribute will be null.public void setObject(java.lang.String object)
Equal to discount
.
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