def master_accounts_id_get(id):  # noqa: E501
    """Returns a specific master-account

     # noqa: E501

    :param id: 
    :type id: str

    :rtype: MasterAccount
    """
    response = service.masters.read(id)
    return MasterAccount.from_dict(response)
Esempio n. 2
0
def master_accounts_id_get(id):  # noqa: E501
    """Get the details of a specific master-account

    The detailed view of a master-account includes the list of transactions to and from that master-account. The `id` should correspond to one of the `id`s listed by `GET /master-accounts` or the call will return a 404. # noqa: E501

    :param id: 
    :type id: str

    :rtype: MasterAccount
    """
    response = service.masters.read(id)
    return MasterAccount.from_dict(response)
    def test_master_accounts_id_put(self):
        """Test case for master_accounts_id_put

        Re-upload a master-account's information
        """
        body = MasterAccount()
        response = self.client.open(
            '/v1/master-accounts/{id}'.format(id='id_example'),
            method='PUT',
            data=json.dumps(body),
            content_type='application/nl.kpmg.v1.master-account+json')
        self.assert200(response,
                       'Response body is : ' + response.data.decode('utf-8'))
def master_accounts_id_put(id, body):  # noqa: E501
    """Re-upload a master-account's information

     # noqa: E501

    :param id: 
    :type id: str
    :param body: master-account details
    :type body: dict | bytes

    :rtype: MasterAccount
    """
    if connexion.request.is_json:
        body = MasterAccount.from_dict(connexion.request.get_json())  # noqa: E501
    raise service.exceptions.NotImplementedException('Not yet implemented')
def master_accounts_id_patch(id, body):  # noqa: E501
    """Edit a master-account's information

     # noqa: E501

    :param id: 
    :type id: str
    :param body: master-account properties to be updated
    :type body: dict | bytes

    :rtype: MasterAccount
    """
    if connexion.request.is_json:
        body = MasterAccount.from_dict(connexion.request.get_json())  # noqa: E501
    raise service.exceptions.NotImplementedException('Not yet implemented')
def master_accounts_post(body):  # noqa: E501
    """Create a new master-account

     # noqa: E501

    :param body: master-account to add
    :type body: dict | bytes

    :rtype: MasterAccount
    """
    if connexion.request.is_json:
        body = MasterAccountBase.from_dict(connexion.request.get_json())  # noqa: E501

    response = service.masters.create(body.to_dict())
    return MasterAccount.from_dict(response)
Esempio n. 7
0
def master_accounts_post(body):  # noqa: E501
    """Create a new master-account

    A new master-account will be created in the system and assigned a unique id. If `iban` is provided, an account with that IBAN is assumed to exist in the linked bank profile, and this one will be added to the database for caching. If no `iban` is provided, a new bank account will be opened under the name of the linked account. The details of the new or existing account are returned. # noqa: E501

    :param body: master-account to add
    :type body: dict | bytes

    :rtype: MasterAccount
    """
    if connexion.request.is_json:
        body = MasterAccountBase.from_dict(
            connexion.request.get_json())  # noqa: E501

    response = service.masters.create(body.to_dict())
    return MasterAccount.from_dict(response)