From b87ac3ab5514b6a2d2c680c412e173fdd408ff41 Mon Sep 17 00:00:00 2001 From: Onur Polattimur Date: Thu, 4 Jun 2026 17:27:16 +0300 Subject: [PATCH] Add global bin support --- craftgate/adapter/installment_adapter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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",