Skip to content

Commit b87ac3a

Browse files
Add global bin support
1 parent 9ef4dd0 commit b87ac3a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

craftgate/adapter/installment_adapter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ def search_installments(self, request: SearchInstallmentsRequest) -> Installment
2323
response_type=InstallmentListResponse
2424
)
2525

26-
def retrieve_bin_number(self, bin_number: str) -> BinNumberResponse:
26+
def retrieve_bin_number(self, bin_number: str, include_global_bins: bool = False) -> BinNumberResponse:
2727
path = "/installment/v1/bins/{}".format(bin_number)
28+
if include_global_bins:
29+
path += "?includeGlobalBins=true"
2830
headers = self._create_headers(None, path)
2931
return self._http_client.request(
3032
method="GET",

0 commit comments

Comments
 (0)