Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #83 from duffelhq/IS82-return-offers-as-param
Browse files Browse the repository at this point in the history
IS-82 Add boolean for returning offers
  • Loading branch information
johnpeterharvey authored Jun 6, 2023
2 parents 50e0c41 + 68c0489 commit 0ea20a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/duffel/service/OfferRequestService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 0ea20a6

Please sign in to comment.