def create(self, card: Card) -> NewCardResponse: response = self._post(self._format_url(), json=card.as_dict()) return NewCardResponse(**response)
def testAsDict(self): card = Card(**sample) self.assertDictEqual(card.as_dict(), sample)
def verify(self, card: Card) -> bool: response = self._post(self._format_url(card_id="verification"), json=card.as_dict()) return response.get("status") == "VERIFIED"