Class PayPalCreateOrderRequest
- java.lang.Object
 - 
- com.broadleafcommerce.paypal.micro.domain.api.AbstractPayPalRequest<Order>
 - 
- com.broadleafcommerce.paypal.micro.domain.api.PayPalCreateOrderRequest
 
 
 
- 
- All Implemented Interfaces:
 PayPalRequest
public class PayPalCreateOrderRequest extends AbstractPayPalRequest<Order>
 
- 
- 
Constructor Summary
Constructors Constructor Description PayPalCreateOrderRequest(PayPalApiProvider apiProvider, com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, OrderRequest orderRequest) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Consumer<org.springframework.http.HttpHeaders>applyHeadersConsumer()protected AbstractPayPalResponse<Order>executeInternal(String applicationId, String tenantId)Executes the configured request using thePayPalApiProvider.protected OrderRequestgetOrderRequest()protected booleanisValidInternal()Implementation specific determination of whether the request can be executed.- 
Methods inherited from class com.broadleafcommerce.paypal.micro.domain.api.AbstractPayPalRequest
buildIdempotencyKey, configureRequestHeaders, execute, getPaymentRequest, getPayPalApiProvider, isExecuted, isValid, preferMinimalHeader, preferRepresentationHeader 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
PayPalCreateOrderRequest
public PayPalCreateOrderRequest(PayPalApiProvider apiProvider, com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, OrderRequest orderRequest)
 
 - 
 
- 
Method Detail
- 
executeInternal
protected AbstractPayPalResponse<Order> executeInternal(@Nullable String applicationId, @Nullable String tenantId) throws PayPalProviderApiException
Description copied from class:AbstractPayPalRequestExecutes the configured request using thePayPalApiProvider.- Specified by:
 executeInternalin classAbstractPayPalRequest<Order>- Parameters:
 applicationId- the application IDtenantId- the tenant ID- Returns:
 - The response from PayPal
 - Throws:
 PayPalProviderApiException- Thrown if the request execution fails.
 
- 
applyHeadersConsumer
protected Consumer<org.springframework.http.HttpHeaders> applyHeadersConsumer()
 
- 
isValidInternal
protected boolean isValidInternal()
Description copied from class:AbstractPayPalRequestImplementation specific determination of whether the request can be executed.- Specified by:
 isValidInternalin classAbstractPayPalRequest<Order>- Returns:
 - Whether the request can be executed or is in an erroneous state.
 
 
- 
getOrderRequest
protected OrderRequest getOrderRequest()
 
 - 
 
 -