def get(self, *, cart_id: str, expand: typing.List['str']=None, headers: typing.Dict[(str, str)]=None, options: typing.Dict[(str, typing.Any)]=None) -> typing.Optional['ShippingMethodPagedQueryResponse']:
    headers = ({} if (headers is None) else headers)
    response = self._client._get(endpoint=f'/{self._project_key}/shipping-methods/matching-cart', params={'cartId': cart_id, 'expand': expand}, headers=headers, options=options)
    if (response.status_code == 200):
        return ShippingMethodPagedQueryResponse.deserialize(response.json())
    elif (response.status_code in (400, 401, 403, 500, 503)):
        obj = ErrorResponse.deserialize(response.json())
        raise self._client._create_exception(obj, response)
    elif (response.status_code == 404):
        return None
    raise ValueError('Unhandled status code %s', response.status_code)
def get(self, *, cart_id: str, expand: typing.List['str']=None, headers: typing.Dict[(str, str)]=None, options: typing.Dict[(str, typing.Any)]=None) -> typing.Optional['ShippingMethodPagedQueryResponse']:
    headers = ({} if (headers is None) else headers)
    response = self._client._get(endpoint=f'/{self._project_key}/shipping-methods/matching-cart', params={'cartId': cart_id, 'expand': expand}, headers=headers, options=options)
    if (response.status_code == 200):
        return ShippingMethodPagedQueryResponse.deserialize(response.json())
    elif (response.status_code in (400, 401, 403, 500, 503)):
        obj = ErrorResponse.deserialize(response.json())
        raise self._client._create_exception(obj, response)
    elif (response.status_code == 404):
        return None
    raise ValueError('Unhandled status code %s', response.status_code)