diff --git a/craftgate/adapter/installment_adapter.py b/craftgate/adapter/installment_adapter.py index 365520f..bf83469 100644 --- a/craftgate/adapter/installment_adapter.py +++ b/craftgate/adapter/installment_adapter.py @@ -23,8 +23,10 @@ def search_installments(self, request: SearchInstallmentsRequest) -> Installment response_type=InstallmentListResponse ) - def retrieve_bin_number(self, bin_number: str) -> BinNumberResponse: + def retrieve_bin_number(self, bin_number: str, include_global_bins: bool = False) -> BinNumberResponse: path = "/installment/v1/bins/{}".format(bin_number) + if include_global_bins: + path += "?includeGlobalBins=true" headers = self._create_headers(None, path) return self._http_client.request( method="GET",