public class JetAPIRefund extends JetAPIReturn implements IJetRefund, IJetAPIRefund
API.REQUEST_TYPE
AUTH_TEST_RESPONSE, config
client, context, lockHost, maxDownloadSize
Constructor and Description |
---|
JetAPIRefund(IAPIHttpClient client,
JetConfig conf)
Create a new API instance
|
JetAPIRefund(IAPIHttpClient client,
JetConfig conf,
boolean lockHost)
Create a new API instance
|
JetAPIRefund(IAPIHttpClient client,
JetConfig conf,
boolean lockHost,
long maxDownloadSize)
Create a new API instance
|
Modifier and Type | Method and Description |
---|---|
RefundRec |
getRefundDetail(String refundAuthId)
Get details about a refund
|
List<String> |
pollRefunds(RefundStatus status)
Poll for refunds
|
List<String> |
pollRefunds(RefundStatus status,
boolean includePath)
Poll for refunds
|
String |
postCreateRefund(String orderId,
String altRefundId,
List<RefundItemRec> items)
Merchant Initiated Refunds can be created using this API method
|
IJetAPIResponse |
sendGetRefundDetail(String refundAuthId)
Get details about a refund
|
IJetAPIResponse |
sendPollRefunds(String status)
Poll for refunds
|
IJetAPIResponse |
sendPostCreateRefund(String orderId,
String altRefundId,
List<RefundItemRec> items)
Merchant Initiated Refunds can be created using this API method
|
completeReturn, getReturnDetail, getReturnsStatusTokens, getReturnStatusTokens, putCompleteReturn, sendGetReturnDetail, sendPollReturns, sendPutCompleteReturn
executeRequest, get, getHeaderBuilder, getJSONHeaderBuilder, getPlainHeaderBuilder, jsonArrayToTokenList, login, post, post, post, put, put, put, setErrorHandler
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
completeReturn, getReturnDetail, getReturnsStatusTokens, getReturnStatusTokens
putCompleteReturn, sendGetReturnDetail, sendPollReturns, sendPutCompleteReturn
get, getHeaderBuilder, getJSONHeaderBuilder, getPlainHeaderBuilder, post, post, post, put, put, put, setErrorHandler
public JetAPIRefund(IAPIHttpClient client, JetConfig conf)
client
- The built APIHttpClient instanceconf
- The Jet Configuration objectpublic JetAPIRefund(IAPIHttpClient client, JetConfig conf, boolean lockHost)
client
- The built APIHttpClient instanceconf
- The Jet Configuration objectlockHost
- Toggle locking the host to a domain if http is not present
in the url string.public JetAPIRefund(IAPIHttpClient client, JetConfig conf, boolean lockHost, long maxDownloadSize)
client
- The built APIHttpClient instanceconf
- The Jet Configuration objectlockHost
- Toggle locking the host to a domain if http is not present
in the url string.maxDownloadSize
- Set a maximum download site for the local client.
This is a fixed limit.public IJetAPIResponse sendPollRefunds(String status) throws APIException, JetException
sendPollRefunds
in interface IJetAPIRefund
status
- Status to pollAPIException
JetException
public List<String> pollRefunds(RefundStatus status) throws APIException, JetException
pollRefunds
in interface IJetRefund
status
- Status to pollAPIException
JetException
public List<String> pollRefunds(RefundStatus status, boolean includePath) throws APIException, JetException
pollRefunds
in interface IJetRefund
status
- Status to pollincludePath
- true = full path from jet, false = right part.APIException
JetException
public IJetAPIResponse sendGetRefundDetail(String refundAuthId) throws APIException, JetException
sendGetRefundDetail
in interface IJetAPIRefund
refundAuthId
- auth id for the refundAPIException
JetException
public RefundRec getRefundDetail(String refundAuthId) throws APIException, JetException
getRefundDetail
in interface IJetRefund
refundAuthId
- auth id for the refundAPIException
JetException
public IJetAPIResponse sendPostCreateRefund(String orderId, String altRefundId, List<RefundItemRec> items) throws APIException, JetException
sendPostCreateRefund
in interface IJetAPIRefund
orderId
- The Order ID you wish to create a refund for.altRefundId
- The Alternative Refund ID that you must create for a
refund.items
- A list of items that are included in the refund from the order
being refunded.APIException
JetException
public String postCreateRefund(String orderId, String altRefundId, List<RefundItemRec> items) throws APIException, JetException
postCreateRefund
in interface IJetRefund
orderId
- The Order ID you wish to create a refund for.altRefundId
- The Alternative Refund ID that you must create for a
refund.items
- A list of items that are included in the refund from the order
being refunded.APIException
JetException
Copyright © 2017. All rights reserved.