Class LockPaymentRequest
java.lang.Object
com.broadleafcommerce.paymenttransaction.web.endpoint.domain.LockPaymentRequest
- All Implemented Interfaces:
Serializable
A request DTO used to establish locks on a set of
Payments.- Author:
- Chris Kittrell (ckittrell)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe id of the entity that owns this payment.Describes the owner of the payment.The list of ids of the payments to lock.inthashCode()booleanbooleanvoidsetOwnerId(String ownerId) The id of the entity that owns this payment.voidsetOwnerType(String ownerType) Describes the owner of the payment.voidsetPaymentIds(List<String> paymentIds) The list of ids of the payments to lock.toString()
-
Constructor Details
-
LockPaymentRequest
public LockPaymentRequest()
-
-
Method Details
-
hasPaymentIds
public boolean hasPaymentIds() -
hasOwnerTypeAndId
public boolean hasOwnerTypeAndId() -
getPaymentIds
The list of ids of the payments to lock.If this is not provided, then
ownerTypeandownerIdare used to lock the payments. -
getOwnerType
Describes the owner of the payment. For example, the payment could have originated with a cart or a subscription, therefore this value might be CART or SUBSCRIPTION.This will be ignored if
paymentIdsare provided.- Returns:
- The type describing the owner of the payment
-
getOwnerId
The id of the entity that owns this payment. For example, this may be a cart id, or a subscription billing cycle id.This will be ignored if
paymentIdsare provided.- Returns:
- The id of the entity that owns this payment.
-
setPaymentIds
The list of ids of the payments to lock.If this is not provided, then
ownerTypeandownerIdare used to lock the payments. -
setOwnerType
Describes the owner of the payment. For example, the payment could have originated with a cart or a subscription, therefore this value might be CART or SUBSCRIPTION.This will be ignored if
paymentIdsare provided.- Parameters:
ownerType- The type describing the owner of the payment
-
setOwnerId
The id of the entity that owns this payment. For example, this may be a cart id, or a subscription billing cycle id.This will be ignored if
paymentIdsare provided.- Parameters:
ownerId- The id of the entity that owns this payment.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-