Class PayPalCaptureAuthRequest
java.lang.Object
com.broadleafcommerce.paypal.micro.domain.api.AbstractPayPalRequest<Capture>
com.broadleafcommerce.paypal.micro.domain.api.PayPalCaptureAuthRequest
- All Implemented Interfaces:
PayPalRequest
Request object used to capture an authorization when doing auth immediately but delaying capture
until later (such as until after fulfillment). To capture the order immediately, use
PayPalCaptureOrderRequest.- Author:
- Nathan Moore
-
Constructor Summary
ConstructorsConstructorDescriptionPayPalCaptureAuthRequest(PayPalApiProvider apiProvider, com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, CaptureRequest captureRequest, String authId) -
Method Summary
Modifier and TypeMethodDescriptionexecuteInternal(String applicationId, String tenantId) Executes the configured request using thePayPalApiProvider.protected Stringprotected CaptureRequestprotected booleanImplementation 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 Details
-
PayPalCaptureAuthRequest
public PayPalCaptureAuthRequest(PayPalApiProvider apiProvider, com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, CaptureRequest captureRequest, String authId)
-
-
Method Details
-
executeInternal
public AbstractPayPalResponse<Capture> executeInternal(@Nullable String applicationId, @Nullable String tenantId) throws PayPalProviderApiException Description copied from class:AbstractPayPalRequestExecutes the configured request using thePayPalApiProvider.- Specified by:
executeInternalin classAbstractPayPalRequest<Capture>- Parameters:
applicationId- the application IDtenantId- the tenant ID- Returns:
- The response from PayPal
- Throws:
PayPalProviderApiException- Thrown if the request execution fails.
-
isValidInternal
protected boolean isValidInternal()Description copied from class:AbstractPayPalRequestImplementation specific determination of whether the request can be executed.- Specified by:
isValidInternalin classAbstractPayPalRequest<Capture>- Returns:
- Whether the request can be executed or is in an erroneous state.
-
getAuthId
-
getCaptureRequest
-