Skip to content

fix issue for update in RecipientAccountGateway.php #66

@AndriiOleinych

Description

@AndriiOleinych

fix return type please in RecipientAccountGateway for update method
public function update($recipientId, $accountId, $attrib) { $response = $this->_http->patch('/v1/recipients/' . $recipientId . '/accounts/' . $accountId, $attrib); if ($response['ok']) { return Recipient::factory($response['account']); } else if ($response['errors']){ throw new Exception\Standard($response['errors']); } else { throw new Exception\DownForMaintenance(); } }

correct version:
public function update($recipientId, $accountId, $attrib) { $response = $this->_http->patch('/v1/recipients/' . $recipientId . '/accounts/' . $accountId, $attrib); if ($response['ok']) { return RecipientAccount::factory($response['account']); // fix } else if ($response['errors']){ throw new Exception\Standard($response['errors']); } else { throw new Exception\DownForMaintenance(); } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions