Package com.stripe.model
Class QuoteLine.Action.AddDiscount
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.QuoteLine.Action.AddDiscount
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- QuoteLine.Action
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Get ID of expandablecoupon
object.Get expandedcoupon
.Get ID of expandablediscount
object.Details to determine how long the discount should be applied for.Get expandeddiscount
.getIndex()
The index, starting at 0, at which to position the new discount.int
hashCode()
void
void
setCouponObject
(Coupon expandableObject) void
setDiscount
(String id) void
setDiscountEnd
(QuoteLine.Action.AddDiscount.DiscountEnd discountEnd) Details to determine how long the discount should be applied for.void
setDiscountObject
(Discount expandableObject) void
The index, starting at 0, at which to position the new discount.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
AddDiscount
public AddDiscount()
-
-
Method Details
-
getCoupon
Get ID of expandablecoupon
object. -
setCoupon
-
getCouponObject
Get expandedcoupon
. -
setCouponObject
-
getDiscount
Get ID of expandablediscount
object. -
setDiscount
-
getDiscountObject
Get expandeddiscount
. -
setDiscountObject
-
getDiscountEnd
Details to determine how long the discount should be applied for. -
getIndex
The index, starting at 0, at which to position the new discount. When not supplied, Stripe defaults to appending the discount to the end of thediscounts
array. -
setDiscountEnd
Details to determine how long the discount should be applied for. -
setIndex
The index, starting at 0, at which to position the new discount. When not supplied, Stripe defaults to appending the discount to the end of thediscounts
array. -
equals
-
canEqual
-
hashCode
public int hashCode()
-