Package com.stripe.model
Class Order.Credit
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Order.Credit
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- Order
-
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
The amount of this credit to apply to the order.Details for a gift card.Line items on this order that are ineligible for this credit.getType()
The type of credit to apply to the order, onlygift_card
currently supported.int
hashCode()
void
The amount of this credit to apply to the order.void
setGiftCard
(Order.Credit.GiftCard giftCard) Details for a gift card.void
setIneligibleLineItems
(List<String> ineligibleLineItems) Line items on this order that are ineligible for this credit.void
The type of credit to apply to the order, onlygift_card
currently supported.Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Credit
public Credit()
-
-
Method Details
-
getAmount
The amount of this credit to apply to the order. -
getGiftCard
Details for a gift card. -
getIneligibleLineItems
Line items on this order that are ineligible for this credit. -
getType
The type of credit to apply to the order, onlygift_card
currently supported.Equal to
gift_card
. -
setAmount
The amount of this credit to apply to the order. -
setGiftCard
Details for a gift card. -
setIneligibleLineItems
Line items on this order that are ineligible for this credit. -
setType
The type of credit to apply to the order, onlygift_card
currently supported.Equal to
gift_card
. -
equals
-
canEqual
-
hashCode
public int hashCode()
-