<reponame>bearstech/mangopay2-python-sdk
from mangopaysdk.tools.apibase import ApiBase
from mangopaysdk.entities.card import Card


class ApiCards (ApiBase):
    """Class to management MangoPay API for cards."""

    def Get(self, cardId):
        """Get card object
        param string Card identifier
        return Card Object returned from API
        """
        return self._getObject('card_get', cardId, 'Card')

    def Update(self, card):
        """Get card object
        param Card Card entity instance to be updated
        return Card Object returned from API
        """
        return self._saveObject('card_save', card, 'Card')

from mangopaysdk.tools.apibase import ApiBase
from mangopaysdk.entities.card import Card


class ApiCards (ApiBase):
    """Class to management MangoPay API for cards."""

    def Get(self, cardId):
        """Get card object
        param string Card identifier
        return Card Object returned from API
        """
        return self._getObject('card_get', cardId, 'Card')

    def Update(self, card):
        """Get card object
        param Card Card entity instance to be updated
        return Card Object returned from API
        """
        return self._saveObject('card_save', card, 'Card')
Class to management MangoPay API for cards. Get card object         param string Card identifier         return Card Object returned from API Get card object         param Card Card entity instance to be updated         return Card Object returned from API