Package com.stripe.model
Class PaymentIntentAmountDetailsLineItem
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.PaymentIntentAmountDetailsLineItem
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
For more details about PaymentMethodOptions, please refer to the API Reference.static class
For more details about Tax, please refer to the API Reference.Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The amount an item was discounted for.getId()
Unique identifier for the object.String representing the object's type.Payment method-specific information for line items.Unique identifier of the product.Name of the product.Number of items of the product.getTax()
Contains information about the tax on the item.Cost of the product.A unit of measure for the line item, such as gallons, feet, meters, etc.int
hashCode()
list
(String intent, PaymentIntentAmountDetailsLineItemListParams params) Lists all LineItems of a given PaymentIntent.list
(String intent, PaymentIntentAmountDetailsLineItemListParams params, RequestOptions options) Lists all LineItems of a given PaymentIntent.Lists all LineItems of a given PaymentIntent.Lists all LineItems of a given PaymentIntent.void
setDiscountAmount
(Long discountAmount) The amount an item was discounted for.void
Unique identifier for the object.void
String representing the object's type.void
setPaymentMethodOptions
(PaymentIntentAmountDetailsLineItem.PaymentMethodOptions paymentMethodOptions) Payment method-specific information for line items.void
setProductCode
(String productCode) Unique identifier of the product.void
setProductName
(String productName) Name of the product.void
setQuantity
(Long quantity) Number of items of the product.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
Contains information about the tax on the item.void
setUnitCost
(Long unitCost) Cost of the product.void
setUnitOfMeasure
(String unitOfMeasure) A unit of measure for the line item, such as gallons, feet, meters, etc.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
PaymentIntentAmountDetailsLineItem
public PaymentIntentAmountDetailsLineItem()
-
-
Method Details
-
list
public static PaymentIntentAmountDetailsLineItemCollection list(String intent, Map<String, Object> params) throws StripeExceptionLists all LineItems of a given PaymentIntent.- Throws:
StripeException
-
list
public static PaymentIntentAmountDetailsLineItemCollection list(String intent, Map<String, Object> params, RequestOptions options) throws StripeExceptionLists all LineItems of a given PaymentIntent.- Throws:
StripeException
-
list
public static PaymentIntentAmountDetailsLineItemCollection list(String intent, PaymentIntentAmountDetailsLineItemListParams params) throws StripeException Lists all LineItems of a given PaymentIntent.- Throws:
StripeException
-
list
public static PaymentIntentAmountDetailsLineItemCollection list(String intent, PaymentIntentAmountDetailsLineItemListParams params, RequestOptions options) throws StripeException Lists all LineItems of a given PaymentIntent.- Throws:
StripeException
-
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getDiscountAmount
The amount an item was discounted for. Positive integer. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
payment_intent_amount_details_line_item
. -
getPaymentMethodOptions
Payment method-specific information for line items. -
getProductCode
Unique identifier of the product. At most 12 characters long. -
getProductName
Name of the product. At most 100 characters long. -
getQuantity
Number of items of the product. Positive integer. -
getTax
Contains information about the tax on the item. -
getUnitCost
Cost of the product. Non-negative integer. -
getUnitOfMeasure
A unit of measure for the line item, such as gallons, feet, meters, etc. -
setDiscountAmount
The amount an item was discounted for. Positive integer. -
setId
Unique identifier for the object. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
payment_intent_amount_details_line_item
. -
setPaymentMethodOptions
public void setPaymentMethodOptions(PaymentIntentAmountDetailsLineItem.PaymentMethodOptions paymentMethodOptions) Payment method-specific information for line items. -
setProductCode
Unique identifier of the product. At most 12 characters long. -
setProductName
Name of the product. At most 100 characters long. -
setQuantity
Number of items of the product. Positive integer. -
setTax
Contains information about the tax on the item. -
setUnitCost
Cost of the product. Non-negative integer. -
setUnitOfMeasure
A unit of measure for the line item, such as gallons, feet, meters, etc. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-