It seems that the SDK can not handle the Travel (Credit) Card.
That is, a 'CardDebit' field is expected in the JSON response, whereas for the Travel Card the field is named 'CardCredit'.
This results in a KeyError exception when e.g.,
using endpoint.Card.list(...) to retrieve the list of cards if one of them is a Travel Card
using endpoint.Card.get(id) if the card identified by id is a Travel Card
It seems that the SDK can not handle the Travel (Credit) Card. That is, a 'CardDebit' field is expected in the JSON response, whereas for the Travel Card the field is named 'CardCredit'.
This results in a KeyError exception when e.g.,
endpoint.Card.list(...)
to retrieve the list of cards if one of them is a Travel Cardendpoint.Card.get(id)
if the card identified byid
is a Travel Cardand so on.