public static function update(
        int $requestInquiryId,
        int $monetaryAccountId = null,
        string $status = null,
        array $customHeaders = []
    ): BunqResponseRequestInquiry {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->put(
            vsprintf(
                self::ENDPOINT_URL_UPDATE,
                [static::determineUserId(), static::determineMonetaryAccountId($monetaryAccountId), $requestInquiryId]
            ),
            [self::FIELD_STATUS => $status],
            $customHeaders
        );

        return BunqResponseRequestInquiry::castFromBunqResponse(
            static::fromJson($responseRaw, self::OBJECT_TYPE_PUT)
        );
    }
public static function update(
        int $requestInquiryId,
        int $monetaryAccountId = null,
        string $status = null,
        array $customHeaders = []
    ): BunqResponseRequestInquiry {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->put(
            vsprintf(
                self::ENDPOINT_URL_UPDATE,
                [static::determineUserId(), static::determineMonetaryAccountId($monetaryAccountId), $requestInquiryId]
            ),
            [self::FIELD_STATUS => $status],
            $customHeaders
        );

        return BunqResponseRequestInquiry::castFromBunqResponse(
            static::fromJson($responseRaw, self::OBJECT_TYPE_PUT)
        );
    }
public static function update ( int $ requestInquiryId , int $ monetaryAccountId = null , string $ status = null , array $ customHeaders = [ ] ) : BunqResponseRequestInquiry { $ apiClient = new ApiClient ( static :: getApiContext ( ) ) ; $ responseRaw = $ apiClient -> put ( vsprintf ( self :: ENDPOINT_URL_UPDATE , [ static :: determineUserId ( ) , static :: determineMonetaryAccountId ( $ monetaryAccountId ) , $ requestInquiryId ] ) , [ self :: FIELD_STATUS => $ status ] , $ customHeaders ) ; return BunqResponseRequestInquiry :: castFromBunqResponse ( static :: fromJson ( $ responseRaw , self :: OBJECT_TYPE_PUT ) ) ; }
Revoke a request for payment, by updating the status to REVOKED.

@param int $requestInquiryId
@param int|null $monetaryAccountId
@param string|null $status The status of the RequestInquiry. Ignored in
POST requests but can be used for revoking (cancelling) the
RequestInquiry by setting REVOKED with a PUT request.
@param string[] $customHeaders

@return BunqResponseRequestInquiry
Revoke a request for payment by updating the status to REVOKED .