public class PurchaseUnitRequest extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PurchaseUnitRequest.Builder
Class to build instances of
PurchaseUnitRequest. |
| Constructor and Description |
|---|
PurchaseUnitRequest()
Default constructor.
|
PurchaseUnitRequest(AmountWithBreakdown amount,
String referenceId,
PayeeBase payee,
PaymentInstruction paymentInstruction,
String description,
String customId,
String invoiceId,
String softDescriptor,
List<Item> items,
ShippingDetails shipping,
SupplementaryData supplementaryData)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AmountWithBreakdown |
getAmount()
Getter for Amount.
|
String |
getCustomId()
Getter for CustomId.
|
String |
getDescription()
Getter for Description.
|
String |
getInvoiceId()
Getter for InvoiceId.
|
List<Item> |
getItems()
Getter for Items.
|
PayeeBase |
getPayee()
Getter for Payee.
|
PaymentInstruction |
getPaymentInstruction()
Getter for PaymentInstruction.
|
String |
getReferenceId()
Getter for ReferenceId.
|
ShippingDetails |
getShipping()
Getter for Shipping.
|
String |
getSoftDescriptor()
Getter for SoftDescriptor.
|
SupplementaryData |
getSupplementaryData()
Getter for SupplementaryData.
|
void |
setAmount(AmountWithBreakdown amount)
Setter for Amount.
|
void |
setCustomId(String customId)
Setter for CustomId.
|
void |
setDescription(String description)
Setter for Description.
|
void |
setInvoiceId(String invoiceId)
Setter for InvoiceId.
|
void |
setItems(List<Item> items)
Setter for Items.
|
void |
setPayee(PayeeBase payee)
Setter for Payee.
|
void |
setPaymentInstruction(PaymentInstruction paymentInstruction)
Setter for PaymentInstruction.
|
void |
setReferenceId(String referenceId)
Setter for ReferenceId.
|
void |
setShipping(ShippingDetails shipping)
Setter for Shipping.
|
void |
setSoftDescriptor(String softDescriptor)
Setter for SoftDescriptor.
|
void |
setSupplementaryData(SupplementaryData supplementaryData)
Setter for SupplementaryData.
|
PurchaseUnitRequest.Builder |
toBuilder()
Builds a new
PurchaseUnitRequest.Builder object. |
String |
toString()
Converts this PurchaseUnitRequest into string format.
|
public PurchaseUnitRequest()
public PurchaseUnitRequest(AmountWithBreakdown amount, String referenceId, PayeeBase payee, PaymentInstruction paymentInstruction, String description, String customId, String invoiceId, String softDescriptor, List<Item> items, ShippingDetails shipping, SupplementaryData supplementaryData)
amount - AmountWithBreakdown value for amount.referenceId - String value for referenceId.payee - PayeeBase value for payee.paymentInstruction - PaymentInstruction value for paymentInstruction.description - String value for description.customId - String value for customId.invoiceId - String value for invoiceId.softDescriptor - String value for softDescriptor.items - List of Item value for items.shipping - ShippingDetails value for shipping.supplementaryData - SupplementaryData value for supplementaryData.public String getReferenceId()
public void setReferenceId(String referenceId)
referenceId - Value for Stringpublic AmountWithBreakdown getAmount()
public void setAmount(AmountWithBreakdown amount)
amount - Value for AmountWithBreakdownpublic PayeeBase getPayee()
public void setPayee(PayeeBase payee)
payee - Value for PayeeBasepublic PaymentInstruction getPaymentInstruction()
public void setPaymentInstruction(PaymentInstruction paymentInstruction)
paymentInstruction - Value for PaymentInstructionpublic String getDescription()
public void setDescription(String description)
description - Value for Stringpublic String getCustomId()
public void setCustomId(String customId)
customId - Value for Stringpublic String getInvoiceId()
public void setInvoiceId(String invoiceId)
invoiceId - Value for Stringpublic String getSoftDescriptor()
public void setSoftDescriptor(String softDescriptor)
softDescriptor - Value for Stringpublic List<Item> getItems()
public void setItems(List<Item> items)
items - Value for List of Itempublic ShippingDetails getShipping()
public void setShipping(ShippingDetails shipping)
shipping - Value for ShippingDetailspublic SupplementaryData getSupplementaryData()
public void setSupplementaryData(SupplementaryData supplementaryData)
supplementaryData - Value for SupplementaryDatapublic String toString()
public PurchaseUnitRequest.Builder toBuilder()
PurchaseUnitRequest.Builder object.
Creates the instance with the state of the current model.PurchaseUnitRequest.Builder objectCopyright © 2025. All rights reserved.