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 classFor more details about PaymentMethodOptions, please refer to the API Reference.static classFor 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_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe discount applied on this line item represented in the smallest currency unit.getId()Unique identifier for the object.String representing the object's type.Payment method-specific information for line items.The product code of the line item, such as an SKU.The product name of the line item.The quantity of items.getTax()Contains information about the tax on the item.The unit cost of the line item represented in the smallest currency unit.A unit of measure for the line item, such as gallons, feet, meters, etc.inthashCode()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.voidsetDiscountAmount(Long discountAmount) The discount applied on this line item represented in the smallest currency unit.voidUnique identifier for the object.voidString representing the object's type.voidsetPaymentMethodOptions(PaymentIntentAmountDetailsLineItem.PaymentMethodOptions paymentMethodOptions) Payment method-specific information for line items.voidsetProductCode(String productCode) The product code of the line item, such as an SKU.voidsetProductName(String productName) The product name of the line item.voidsetQuantity(Long quantity) The quantity of items.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidContains information about the tax on the item.voidsetUnitCost(Long unitCost) The unit cost of the line item represented in the smallest currency unit.voidsetUnitOfMeasure(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, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
getDiscountAmount
The discount applied on this line item represented in the smallest currency unit. An integer greater than 0.This field is mutually exclusive with the
amount_details[discount_amount]field. -
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
The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long. -
getProductName
The product name of the line item. Required for L3 rates. At most 1024 characters long.For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters.
-
getQuantity
The quantity of items. Required for L3 rates. An integer greater than 0. -
getTax
Contains information about the tax on the item. -
getUnitCost
The unit cost of the line item represented in the smallest currency unit. Required for L3 rates. An integer greater than or equal to 0. -
getUnitOfMeasure
A unit of measure for the line item, such as gallons, feet, meters, etc. Required for L3 rates. At most 12 alphanumeric characters long. -
setDiscountAmount
The discount applied on this line item represented in the smallest currency unit. An integer greater than 0.This field is mutually exclusive with the
amount_details[discount_amount]field. -
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
The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long. -
setProductName
The product name of the line item. Required for L3 rates. At most 1024 characters long.For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters.
-
setQuantity
The quantity of items. Required for L3 rates. An integer greater than 0. -
setTax
Contains information about the tax on the item. -
setUnitCost
The unit cost of the line item represented in the smallest currency unit. Required for L3 rates. An integer greater than or equal to 0. -
setUnitOfMeasure
A unit of measure for the line item, such as gallons, feet, meters, etc. Required for L3 rates. At most 12 alphanumeric characters long. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-