public class PaymentRequest extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PaymentRequest.PaymentRequestStatus |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
PAYMENT_REQUESTS_PATH |
| Modifier | Constructor and Description |
|---|---|
protected |
PaymentRequest() |
|
PaymentRequest(String merchantId) |
protected static final String PAYMENT_REQUESTS_PATH
protected PaymentRequest()
public PaymentRequest(String merchantId)
public static ApruveResponse<PaymentRequest> get(String paymentRequestId)
paymentRequestId - public ApruveResponse<PaymentRequestUpdateResponse> update()
Only the following fields are updated by this API call, and then only if the payment request status is NEW:
public ApruveResponse<PaymentRequestUpdateResponse> finalizeRequest()
public String toJson()
paymentRequest - public String toSecureHash()
protected String toValueString()
public void addLineItem(LineItem item)
public String getId()
public void setId(String id)
id - the id to setpublic String getMerchantId()
public void setMerchantId(String merchantId)
merchantId - the merchantId to setpublic PaymentRequest.PaymentRequestStatus getStatus()
protected void setStatus(PaymentRequest.PaymentRequestStatus status)
status - the status to setpublic void setStatus(String status)
status - the status to setpublic String getMerchantOrderId()
public void setMerchantOrderId(String merchantOrderId)
merchantOrderId - the merchantOrderId to setpublic Integer getAmountCents()
public void setAmountCents(Integer amountCents)
amountCents - the amountCents to setpublic void setAmountCents(String amountCents)
amountCents - the amountCents to setpublic Integer getTaxCents()
public void setTaxCents(Integer taxCents)
taxCents - the taxCents to setpublic void setTaxCents(String taxCents)
taxCents - the taxCents to setpublic Integer getShippingCents()
public void setShippingCents(Integer shippingCents)
shippingCents - the shippingCents to setpublic void setShippingCents(String shippingCents)
shippingCents - public Currency getCurrency()
public void setCurrency(Currency currency)
currency - the currency to setpublic void setCurrency(String currency)
currency - the currency to setpublic void setLineItems(List<LineItem> lineItems)
lineItems - the lineItems to setpublic URL getApiUrl()
protected void setApiUrl(URL apiUrl)
apiUrl - the apiUrl to setprotected void setApiUrl(String apiUrl) throws MalformedURLException
apiUrl - the apiUrl to setMalformedURLExceptionpublic URL getViewUrl()
protected void setViewUrl(URL viewUrl)
viewUrl - the viewUrl to setprotected void setViewUrl(String viewUrl) throws MalformedURLException
viewUrl - the viewUrl to setMalformedURLExceptionpublic Date getCreatedAt()
protected void setCreatedAt(Date createdAt)
createdAt - the createdAt to setprotected void setCreatedAt(String createdAt)
createdAt - the createdAt to setpublic Date getUpdatedAt()
protected void setUpdatedAt(Date updatedAt)
updatedAt - the updatedAt to setprotected void setUpdatedAt(String updatedAt)
updatedAt - public Date getExpiresAt()
public void setExpiresAt(Date expiresAt)
expiresAt - public void setExpiresAt(String expiresAt)
expiresAt - public String getUsername()
public static String getPaymentRequestsPath()
Copyright © 2016. All rights reserved.