public class Payment extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Payment.PaymentStatus |
| Modifier | Constructor and Description |
|---|---|
protected |
Payment() |
|
Payment(String paymentRequestId,
Integer amountCents) |
public static ApruveResponse<Payment> get(String paymentRequestId, String paymentId)
paymentRequestId - The ID of the PaymentRequest that owns the PaymentpaymentId - The ID of the Paymentpublic static ApruveResponse<List<Payment>> getAll(String paymentRequestId)
paymentRequestId - The ID of the PaymentRequest that owns the Paymentpublic ApruveResponse<PaymentCreateResponse> create()
public String toJson()
public String getUrl(ApruveClient client)
public String getId()
public void setId(String id)
id - the id to setpublic String getPaymentRequestId()
public void setPaymentRequestId(String paymentRequestId)
paymentRequestId - the paymentRequestId to setpublic Integer getAmountCents()
public void setAmountCents(Integer amountCents)
amountCents - the amountCents to setpublic Currency getCurrency()
public void setCurrency(Currency currency)
currency - the currency to setpublic void setCurrency(String currency)
currency - the currency to setpublic String getMerchantNotes()
public void setMerchantNotes(String merchantNotes)
merchantNotes - the merchantNotes to setpublic URL getApiUrl()
public void setApiUrl(URL apiUrl)
apiUrl - the apiUrl to setpublic void setApiUrl(String apiUrl) throws MalformedURLException
apiUrl - MalformedURLExceptionpublic URL getViewUrl()
public void setViewUrl(URL viewUrl)
viewUrl - the viewUrl to setpublic void setViewUrl(String viewUrl) throws MalformedURLException
viewUrl - MalformedURLExceptionpublic Date getCreatedAt()
public void setCreatedAt(Date createdAt)
createdAt - the createdAt to setpublic Date getUpdatedAt()
public void setUpdatedAt(Date updatedAt)
updatedAt - the updatedAt to setpublic Payment.PaymentStatus getStatus()
public void setStatus(Payment.PaymentStatus status)
public List<PaymentItem> getPaymentItems()
public void setPaymentItems(List<PaymentItem> paymentItems)
Copyright © 2016. All rights reserved.