public class CheckoutResponse extends Object implements Serializable
Constructor and Description |
---|
CheckoutResponse() |
Modifier and Type | Method and Description |
---|---|
com.broadleafcommerce.cart.client.domain.Cart |
getCart()
The
Cart related to the checkout submission. |
String |
getFailureMessage()
Message intended to inform why the checkout submission failed if
isSuccess() is
false. |
String |
getFailureType()
The type of checkout failure which can be used programmatically by the client application to
react to the failure.
|
Map<String,String> |
getItemFailureMessages()
Line item error messages used to describe issues with individual fields, cart items, etc.
|
Map<String,String> |
getPayment3DSVerificationUrls()
Payment 3DS Verification URLs used to determine payments which require 3DS verification
during the checkout workflow.
|
String |
getRequestId()
The id representing the customer's request to checkout
|
boolean |
isSuccess()
Whether or not the checkout submission was successful.
|
void |
setCart(com.broadleafcommerce.cart.client.domain.Cart cart)
The
Cart related to the checkout submission. |
void |
setFailureMessage(String failureMessage)
Message intended to inform why the checkout submission failed if
isSuccess() is
false. |
void |
setFailureType(String failureType)
The type of checkout failure which can be used programmatically by the client application to
react to the failure.
|
void |
setItemFailureMessages(Map<String,String> itemFailureMessages)
Line item error messages used to describe issues with individual fields, cart items, etc.
|
void |
setPayment3DSVerificationUrls(Map<String,String> payment3DSVerificationUrls)
Payment 3DS Verification URLs used to determine payments which require 3DS verification
during the checkout workflow.
|
void |
setRequestId(String requestId)
The id representing the customer's request to checkout
|
void |
setSuccess(boolean success)
Whether or not the checkout submission was successful.
|
public com.broadleafcommerce.cart.client.domain.Cart getCart()
Cart
related to the checkout submission.public boolean isSuccess()
public String getFailureType()
isSuccess()
is false.CheckoutFailureType
public String getFailureMessage()
isSuccess()
is
false.isSuccess()
is false.public Map<String,String> getItemFailureMessages()
public Map<String,String> getPayment3DSVerificationUrls()
public String getRequestId()
public void setCart(com.broadleafcommerce.cart.client.domain.Cart cart)
Cart
related to the checkout submission.cart
- The Cart related to the checkout submission.public void setSuccess(boolean success)
success
- Whether or not the checkout submission was successful.public void setFailureType(String failureType)
isSuccess()
is false.failureType
- The type of checkout failureCheckoutFailureType
public void setFailureMessage(String failureMessage)
isSuccess()
is
false.failureMessage
- Message intended to inform why the checkout submission failed if
isSuccess()
is false.public void setItemFailureMessages(Map<String,String> itemFailureMessages)
itemFailureMessages
- Line item error messages used to describe issues with individual
fields, cart items, etc.public void setPayment3DSVerificationUrls(Map<String,String> payment3DSVerificationUrls)
payment3DSVerificationUrls
- Payment 3DS Verification URLs used to determine payments
which require 3DS verification during the checkout workflowpublic void setRequestId(String requestId)
requestId
- The id representing the customer's request to checkoutCopyright © 2021. All rights reserved.