diff --git a/src/main/java/com/duffel/service/OfferRequestService.java b/src/main/java/com/duffel/service/OfferRequestService.java index 72ea9c4..b632347 100644 --- a/src/main/java/com/duffel/service/OfferRequestService.java +++ b/src/main/java/com/duffel/service/OfferRequestService.java @@ -17,6 +17,10 @@ public OfferResponse post(OfferRequest request) { return super.post(OfferResponse.class, new PostData<>(request)).getData(); } + public OfferResponse post(OfferRequest request, boolean returnOffers) { + return super.post(OfferResponse.class, "?return_offers=" + returnOffers, new PostData<>(request)).getData(); + } + public OfferResponse getById(String id) { return super.getById(OfferResponse.class, id).getData(); }