public class CaptureRequest extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CaptureRequest.Builder
Class to build instances of
CaptureRequest. |
| Constructor and Description |
|---|
CaptureRequest()
Default constructor.
|
CaptureRequest(String invoiceId,
String noteToPayer,
Money amount,
Boolean finalCapture,
CapturePaymentInstruction paymentInstruction,
String softDescriptor)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Money |
getAmount()
Getter for Amount.
|
Boolean |
getFinalCapture()
Getter for FinalCapture.
|
String |
getInvoiceId()
Getter for InvoiceId.
|
String |
getNoteToPayer()
Getter for NoteToPayer.
|
CapturePaymentInstruction |
getPaymentInstruction()
Getter for PaymentInstruction.
|
String |
getSoftDescriptor()
Getter for SoftDescriptor.
|
void |
setAmount(Money amount)
Setter for Amount.
|
void |
setFinalCapture(Boolean finalCapture)
Setter for FinalCapture.
|
void |
setInvoiceId(String invoiceId)
Setter for InvoiceId.
|
void |
setNoteToPayer(String noteToPayer)
Setter for NoteToPayer.
|
void |
setPaymentInstruction(CapturePaymentInstruction paymentInstruction)
Setter for PaymentInstruction.
|
void |
setSoftDescriptor(String softDescriptor)
Setter for SoftDescriptor.
|
CaptureRequest.Builder |
toBuilder()
Builds a new
CaptureRequest.Builder object. |
String |
toString()
Converts this CaptureRequest into string format.
|
public CaptureRequest()
public CaptureRequest(String invoiceId, String noteToPayer, Money amount, Boolean finalCapture, CapturePaymentInstruction paymentInstruction, String softDescriptor)
invoiceId - String value for invoiceId.noteToPayer - String value for noteToPayer.amount - Money value for amount.finalCapture - Boolean value for finalCapture.paymentInstruction - CapturePaymentInstruction value for paymentInstruction.softDescriptor - String value for softDescriptor.public String getInvoiceId()
public void setInvoiceId(String invoiceId)
invoiceId - Value for Stringpublic String getNoteToPayer()
public void setNoteToPayer(String noteToPayer)
noteToPayer - Value for Stringpublic Money getAmount()
public void setAmount(Money amount)
amount - Value for Moneypublic Boolean getFinalCapture()
public void setFinalCapture(Boolean finalCapture)
finalCapture - Value for Booleanpublic CapturePaymentInstruction getPaymentInstruction()
public void setPaymentInstruction(CapturePaymentInstruction paymentInstruction)
paymentInstruction - Value for CapturePaymentInstructionpublic String getSoftDescriptor()
public void setSoftDescriptor(String softDescriptor)
softDescriptor - Value for Stringpublic String toString()
public CaptureRequest.Builder toBuilder()
CaptureRequest.Builder object.
Creates the instance with the state of the current model.CaptureRequest.Builder objectCopyright © 2025. All rights reserved.