Package com.mercadopago.client.payment
Class PaymentItemRequest.PaymentItemRequestBuilder
- java.lang.Object
-
- com.mercadopago.client.payment.PaymentItemRequest.PaymentItemRequestBuilder
-
- Enclosing class:
- PaymentItemRequest
public static class PaymentItemRequest.PaymentItemRequestBuilder extends Object
-
-
Method Summary
-
-
-
Method Detail
-
id
public PaymentItemRequest.PaymentItemRequestBuilder id(String id)
Item code.- Returns:
this
.
-
title
public PaymentItemRequest.PaymentItemRequestBuilder title(String title)
Item name.- Returns:
this
.
-
description
public PaymentItemRequest.PaymentItemRequestBuilder description(String description)
Long item description.- Returns:
this
.
-
pictureUrl
public PaymentItemRequest.PaymentItemRequestBuilder pictureUrl(String pictureUrl)
Image URL.- Returns:
this
.
-
categoryId
public PaymentItemRequest.PaymentItemRequestBuilder categoryId(String categoryId)
Category of the item.- Returns:
this
.
-
quantity
public PaymentItemRequest.PaymentItemRequestBuilder quantity(Integer quantity)
Item's quantity.- Returns:
this
.
-
unitPrice
public PaymentItemRequest.PaymentItemRequestBuilder unitPrice(BigDecimal unitPrice)
Unit price.- Returns:
this
.
-
categoryDescriptor
public PaymentItemRequest.PaymentItemRequestBuilder categoryDescriptor(PaymentCategoryDescriptorRequest categoryDescriptor)
Item information related to the category.- Returns:
this
.
-
warranty
public PaymentItemRequest.PaymentItemRequestBuilder warranty(boolean warranty)
True if you purchase the item with warranty, false if not.- Returns:
this
.
-
eventDate
public PaymentItemRequest.PaymentItemRequestBuilder eventDate(OffsetDateTime eventDate)
Event date.- Returns:
this
.
-
build
public PaymentItemRequest build()
-
-