public class PurchaseUnit extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PurchaseUnit.Builder
Class to build instances of
PurchaseUnit. |
| Constructor and Description |
|---|
PurchaseUnit()
Default constructor.
|
PurchaseUnit(String referenceId,
AmountWithBreakdown amount,
PayeeBase payee,
PaymentInstruction paymentInstruction,
String description,
String customId,
String invoiceId,
String id,
String softDescriptor,
List<Item> items,
ShippingWithTrackingDetails shipping,
SupplementaryData supplementaryData,
PaymentCollection payments,
List<JsonValue> mostRecentErrors)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AmountWithBreakdown |
getAmount()
Getter for Amount.
|
String |
getCustomId()
Getter for CustomId.
|
String |
getDescription()
Getter for Description.
|
String |
getId()
Getter for Id.
|
String |
getInvoiceId()
Getter for InvoiceId.
|
List<Item> |
getItems()
Getter for Items.
|
List<JsonValue> |
getMostRecentErrors()
Getter for MostRecentErrors.
|
PayeeBase |
getPayee()
Getter for Payee.
|
PaymentInstruction |
getPaymentInstruction()
Getter for PaymentInstruction.
|
PaymentCollection |
getPayments()
Getter for Payments.
|
String |
getReferenceId()
Getter for ReferenceId.
|
ShippingWithTrackingDetails |
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 |
setId(String id)
Setter for Id.
|
void |
setInvoiceId(String invoiceId)
Setter for InvoiceId.
|
void |
setItems(List<Item> items)
Setter for Items.
|
void |
setMostRecentErrors(List<JsonValue> mostRecentErrors)
Setter for MostRecentErrors.
|
void |
setPayee(PayeeBase payee)
Setter for Payee.
|
void |
setPaymentInstruction(PaymentInstruction paymentInstruction)
Setter for PaymentInstruction.
|
void |
setPayments(PaymentCollection payments)
Setter for Payments.
|
void |
setReferenceId(String referenceId)
Setter for ReferenceId.
|
void |
setShipping(ShippingWithTrackingDetails shipping)
Setter for Shipping.
|
void |
setSoftDescriptor(String softDescriptor)
Setter for SoftDescriptor.
|
void |
setSupplementaryData(SupplementaryData supplementaryData)
Setter for SupplementaryData.
|
PurchaseUnit.Builder |
toBuilder()
Builds a new
PurchaseUnit.Builder object. |
String |
toString()
Converts this PurchaseUnit into string format.
|
public PurchaseUnit()
public PurchaseUnit(String referenceId, AmountWithBreakdown amount, PayeeBase payee, PaymentInstruction paymentInstruction, String description, String customId, String invoiceId, String id, String softDescriptor, List<Item> items, ShippingWithTrackingDetails shipping, SupplementaryData supplementaryData, PaymentCollection payments, List<JsonValue> mostRecentErrors)
referenceId - String value for referenceId.amount - AmountWithBreakdown value for amount.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.id - String value for id.softDescriptor - String value for softDescriptor.items - List of Item value for items.shipping - ShippingWithTrackingDetails value for shipping.supplementaryData - SupplementaryData value for supplementaryData.payments - PaymentCollection value for payments.mostRecentErrors - List of JsonValue value for mostRecentErrors.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 getId()
public void setId(String id)
id - 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 ShippingWithTrackingDetails getShipping()
public void setShipping(ShippingWithTrackingDetails shipping)
shipping - Value for ShippingWithTrackingDetailspublic SupplementaryData getSupplementaryData()
public void setSupplementaryData(SupplementaryData supplementaryData)
supplementaryData - Value for SupplementaryDatapublic PaymentCollection getPayments()
public void setPayments(PaymentCollection payments)
payments - Value for PaymentCollectionpublic List<JsonValue> getMostRecentErrors()
public void setMostRecentErrors(List<JsonValue> mostRecentErrors)
mostRecentErrors - Value for List of JsonValuepublic String toString()
public PurchaseUnit.Builder toBuilder()
PurchaseUnit.Builder object.
Creates the instance with the state of the current model.PurchaseUnit.Builder objectCopyright © 2025. All rights reserved.