public class SettlementHandler extends AbstractHandler
| Constructor and Description |
|---|
SettlementHandler(String baseUrl) |
| Modifier and Type | Method and Description |
|---|---|
SettlementResponse |
getNextSettlement()
Retrieve the details of the current settlement that has not yet been paid out.
|
SettlementResponse |
getNextSettlement(QueryParams params)
Retrieve the details of the current settlement that has not yet been paid out.
|
SettlementResponse |
getOpenSettlement()
Retrieve the details of the open balance of the organization.
|
SettlementResponse |
getOpenSettlement(QueryParams params)
Retrieve the details of the open balance of the organization.
|
SettlementResponse |
getSettlement(String id)
Successful payments, together with refunds, captures and chargebacks are collected into settlements, which are then paid out according to your organization’s payout schedule.
|
SettlementResponse |
getSettlement(String id,
QueryParams params)
Successful payments, together with refunds, captures and chargebacks are collected into settlements, which are then paid out according to your organization’s payout schedule.
|
Pagination<CaptureListResponse> |
getSettlementCaptures(String settlementId)
Retrieve all captures in a certain settlement.
|
Pagination<CaptureListResponse> |
getSettlementCaptures(String settlementId,
QueryParams params)
Retrieve all captures in a certain settlement.
|
Pagination<ChargebackListResponse> |
getSettlementChargebacks(String settlementId)
Retrieve all chargebacks included in a settlement.
|
Pagination<ChargebackListResponse> |
getSettlementChargebacks(String settlementId,
QueryParams params)
Retrieve all chargebacks included in a settlement.
|
Pagination<PaymentListResponse> |
getSettlementPayments(String settlementId)
Retrieve all payments included in a settlement.
|
Pagination<PaymentListResponse> |
getSettlementPayments(String settlementId,
QueryParams params)
Retrieve all payments included in a settlement.
|
Pagination<RefundListResponse> |
getSettlementRefund(String settlementId)
Retrieve all refunds included in a settlement.
|
Pagination<RefundListResponse> |
getSettlementRefund(String settlementId,
QueryParams params)
Retrieve all refunds included in a settlement.
|
Pagination<SettlementListResponse> |
getSettlements()
Retrieve all settlements, ordered from new to old.
|
Pagination<SettlementListResponse> |
getSettlements(QueryParams params)
Retrieve all settlements, ordered from new to old.
|
delete, delete, delete, get, get, patch, patch, post, post, postWithoutBody, validateResponsepublic SettlementHandler(String baseUrl)
public SettlementResponse getSettlement(String id) throws MollieException
Beside payments, settlements can be composed of other entities such as refunds, chargebacks or captures.
id - A settlement IDMollieException - when something went wrongpublic SettlementResponse getSettlement(String id, QueryParams params) throws MollieException
Beside payments, settlements can be composed of other entities such as refunds, chargebacks or captures.
id - A settlement IDparams - a map of query paramsMollieException - when something went wrongpublic Pagination<SettlementListResponse> getSettlements() throws MollieException
MollieException - when something went wrongpublic Pagination<SettlementListResponse> getSettlements(QueryParams params) throws MollieException
params - a map of query paramsMollieException - when something went wrongpublic SettlementResponse getNextSettlement() throws MollieException
MollieException - when something went wrongpublic SettlementResponse getNextSettlement(QueryParams params) throws MollieException
params - a map of query paramsMollieException - when something went wrongpublic SettlementResponse getOpenSettlement() throws MollieException
MollieException - when something went wrongpublic SettlementResponse getOpenSettlement(QueryParams params) throws MollieException
params - a map of query paramsMollieException - when something went wrongpublic Pagination<PaymentListResponse> getSettlementPayments(String settlementId) throws MollieException
Note that payments for pay after delivery methods (such as Klarna Pay Later) are not listed in here. These payment methods are settled using captures. To retrieve the captures, use the List settlement captures endpoint.
settlementId - A settlement IDMollieException - when something went wrongpublic Pagination<PaymentListResponse> getSettlementPayments(String settlementId, QueryParams params) throws MollieException
Note that payments for pay after delivery methods (such as Klarna Pay Later) are not listed in here. These payment methods are settled using captures. To retrieve the captures, use the List settlement captures endpoint.
settlementId - A settlement IDparams - a map of query paramsMollieException - when something went wrongpublic Pagination<RefundListResponse> getSettlementRefund(String settlementId) throws MollieException
settlementId - A settlement IDMollieException - when something went wrongpublic Pagination<RefundListResponse> getSettlementRefund(String settlementId, QueryParams params) throws MollieException
settlementId - A settlement IDparams - a map of query paramsMollieException - when something went wrongpublic Pagination<ChargebackListResponse> getSettlementChargebacks(String settlementId) throws MollieException
settlementId - A settlement IDMollieException - when something went wrongpublic Pagination<ChargebackListResponse> getSettlementChargebacks(String settlementId, QueryParams params) throws MollieException
settlementId - A settlement IDparams - a map of query paramsMollieException - when something went wrongpublic Pagination<CaptureListResponse> getSettlementCaptures(String settlementId) throws MollieException
Captures are used for pay after delivery payment methods. The only payment methods at the moment that have this flow are Klarna Pay later and Klarna Slice it. Captures are created when (part of) an Order is shipped. The capture is then settled to the merchant
settlementId - A settlement IDMollieException - when something went wrongpublic Pagination<CaptureListResponse> getSettlementCaptures(String settlementId, QueryParams params) throws MollieException
Captures are used for pay after delivery payment methods. The only payment methods at the moment that have this flow are Klarna Pay later and Klarna Slice it. Captures are created when (part of) an Order is shipped. The capture is then settled to the merchant
settlementId - A settlement IDparams - a map of query paramsMollieException - when something went wrongCopyright © 2020. All rights reserved.