public class ShipmentHandler extends AbstractHandler
| Constructor and Description |
|---|
ShipmentHandler(String baseUrl) |
| Modifier and Type | Method and Description |
|---|---|
ShipmentResponse |
createShipment(String orderId,
ShipmentRequest body)
In addition to the Orders API, the create shipment endpoint can be used to ship order lines.
|
ShipmentResponse |
createShipment(String orderId,
ShipmentRequest body,
QueryParams params)
In addition to the Orders API, the create shipment endpoint can be used to ship order lines.
|
ShipmentResponse |
getShipment(String orderId,
String shipmentId)
Retrieve a single shipment and the order lines shipped by a shipment’s ID.
|
ShipmentResponse |
getShipment(String orderId,
String shipmentId,
QueryParams params)
Retrieve a single shipment and the order lines shipped by a shipment’s ID.
|
Pagination<ShipmentListResponse> |
getShipments(String orderId)
Retrieve all shipments for an order.
|
Pagination<ShipmentListResponse> |
getShipments(String orderId,
QueryParams params)
Retrieve all shipments for an order.
|
ShipmentResponse |
updateShipment(String orderId,
String shipmentId,
ShipmentUpdateRequest body)
This endpoint can be used to update the tracking information of a shipment.
|
ShipmentResponse |
updateShipment(String orderId,
String shipmentId,
ShipmentUpdateRequest body,
QueryParams params)
This endpoint can be used to update the tracking information of a shipment.
|
delete, delete, delete, get, get, patch, patch, post, post, postWithoutBody, validateResponsepublic ShipmentHandler(String baseUrl)
public ShipmentResponse createShipment(String orderId, ShipmentRequest body) throws MollieException
When using Klarna Pay later and Klarna Slice it this is mandatory for the order amount to be captured. An capture will automatically be created for the shipment.
The word “shipping” is used in the figurative sense here. It can also mean that a service was provided or digital content was delivered.
orderId - An order IDbody - ShipmentRequest objectMollieException - when something went wrongpublic ShipmentResponse createShipment(String orderId, ShipmentRequest body, QueryParams params) throws MollieException
When using Klarna Pay later and Klarna Slice it this is mandatory for the order amount to be captured. An capture will automatically be created for the shipment.
The word “shipping” is used in the figurative sense here. It can also mean that a service was provided or digital content was delivered.
orderId - An order IDbody - ShipmentRequest objectparams - A map of query paramsMollieException - when something went wrongpublic ShipmentResponse getShipment(String orderId, String shipmentId) throws MollieException
orderId - An order IDshipmentId - A shipment IDMollieException - when something went wrongpublic ShipmentResponse getShipment(String orderId, String shipmentId, QueryParams params) throws MollieException
orderId - An order IDshipmentId - A shipment IDparams - a map of query paramsMollieException - when something went wrongpublic Pagination<ShipmentListResponse> getShipments(String orderId) throws MollieException
orderId - An order IDMollieException - when something went wrongpublic Pagination<ShipmentListResponse> getShipments(String orderId, QueryParams params) throws MollieException
orderId - An order IDparams - a map of query paramsMollieException - when something went wrongpublic ShipmentResponse updateShipment(String orderId, String shipmentId, ShipmentUpdateRequest body) throws MollieException
orderId - An order IDbody - ShipmentUpdateRequest objectMollieException - when something went wrongpublic ShipmentResponse updateShipment(String orderId, String shipmentId, ShipmentUpdateRequest body, QueryParams params) throws MollieException
orderId - An order IDbody - ShipmentUpdateRequest objectparams - A map of query paramsMollieException - when something went wrongCopyright © 2020. All rights reserved.