public class OrderRequest extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OrderRequest.Builder
Class to build instances of
OrderRequest. |
| Constructor and Description |
|---|
OrderRequest()
Default constructor.
|
OrderRequest(CheckoutPaymentIntent intent,
List<PurchaseUnitRequest> purchaseUnits,
Payer payer,
PaymentSource paymentSource,
OrderApplicationContext applicationContext)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
OrderApplicationContext |
getApplicationContext()
Getter for ApplicationContext.
|
CheckoutPaymentIntent |
getIntent()
Getter for Intent.
|
Payer |
getPayer()
Getter for Payer.
|
PaymentSource |
getPaymentSource()
Getter for PaymentSource.
|
List<PurchaseUnitRequest> |
getPurchaseUnits()
Getter for PurchaseUnits.
|
void |
setApplicationContext(OrderApplicationContext applicationContext)
Setter for ApplicationContext.
|
void |
setIntent(CheckoutPaymentIntent intent)
Setter for Intent.
|
void |
setPayer(Payer payer)
Setter for Payer.
|
void |
setPaymentSource(PaymentSource paymentSource)
Setter for PaymentSource.
|
void |
setPurchaseUnits(List<PurchaseUnitRequest> purchaseUnits)
Setter for PurchaseUnits.
|
OrderRequest.Builder |
toBuilder()
Builds a new
OrderRequest.Builder object. |
String |
toString()
Converts this OrderRequest into string format.
|
public OrderRequest()
public OrderRequest(CheckoutPaymentIntent intent, List<PurchaseUnitRequest> purchaseUnits, Payer payer, PaymentSource paymentSource, OrderApplicationContext applicationContext)
intent - CheckoutPaymentIntent value for intent.purchaseUnits - List of PurchaseUnitRequest value for purchaseUnits.payer - Payer value for payer.paymentSource - PaymentSource value for paymentSource.applicationContext - OrderApplicationContext value for applicationContext.public CheckoutPaymentIntent getIntent()
public void setIntent(CheckoutPaymentIntent intent)
intent - Value for CheckoutPaymentIntentpublic Payer getPayer()
public void setPayer(Payer payer)
payer - Value for Payerpublic List<PurchaseUnitRequest> getPurchaseUnits()
public void setPurchaseUnits(List<PurchaseUnitRequest> purchaseUnits)
purchaseUnits - Value for List of PurchaseUnitRequestpublic PaymentSource getPaymentSource()
public void setPaymentSource(PaymentSource paymentSource)
paymentSource - Value for PaymentSourcepublic OrderApplicationContext getApplicationContext()
public void setApplicationContext(OrderApplicationContext applicationContext)
applicationContext - Value for OrderApplicationContextpublic String toString()
public OrderRequest.Builder toBuilder()
OrderRequest.Builder object.
Creates the instance with the state of the current model.OrderRequest.Builder objectCopyright © 2025. All rights reserved.